npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

wx-index

v2.0.1

Published

小程序字母索引

Downloads

3

Readme

微信小程序字母检索-indexList

废话不多说,小程序开始以来比较火热,但是没有封装好的字母检索功能,这个在app应用里应该是经常需要用到的,基于小程序和web页面开发比较相似,这里采用js制作了,这个功能脚本。

动图效果gif

indexList详细内容

功能要点

  • 触摸右侧字母,左侧scrollview滚动到目标位置
  • 可在search.wxss中自定义样式
  • 注意: 这里的右侧字母所在的view高度,也就是 .index-english view 高度固定为15px不可修改,如果有需要以后的版本再改善,其他部分样式可以自定义

下载地址

bower install indexList(停止更新bower)

npm install wx-index (从node_modules目录下面拷贝出项目代码即可)

如何使用

  1. 直接使用 page/search/search 这是page形式的代码,可修改性比较强,可以直接拷贝来使用
  2. 使用component方式使用 拷贝 component文件到项目根目录中,在需要调用组件的页面中调用(暂不支持自定义样式,如果需要修改请使用方法1)
// xxx.wxml
<zx-index list="{{list}}"></zx-index>

// xxx.json
{
  "usingComponents": {
    "zx-index": "../../component/index/index"
  }
}

最后

如果觉得此组件可以帮助到你,请给个star以资鼓励,谢谢。

如果此组件有什么不足之处,欢迎提出issue或有好的方案直接PR。

本人前端开发三年,希望有机会也可以内推入坑,感谢!