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

mp-lui

v1.1.0

Published

A Mpvue project

Downloads

9

Readme

mp-lui

A Mpvue project

基于MpVue框架以及iview、lui库搭建的小程序UI组件库。

Build Setup

小程序项目路径:../mp-lui/dist

# install dependencies
npm install

npm run dev

# build for production with minification
npm run build

开发进度

表单

  • [x] Button(基于小程序原生组件)
  • [x] Checkbox
  • [x] Radio
  • [x] Slider
  • [x] Switch
  • [ ] Uploader

基础组件

  • [x] Avatar
  • [x] Badge
  • [x] Card
  • [x] Col
  • [x] Row
  • [x] Drawer
  • [ ] Gallery
  • [x] Grid
  • [x] Icons(小程序原生组件)
  • [x] Notice-Bar
  • [x] Panel
  • [x] Progress
  • [ ] Footer

操作反馈

  • [x] Actionsheet
  • [x] Alert
  • [x] Spin
  • [ ] Dialog
  • [ ] Msg
  • [x] Picker
  • [ ] Toast

导航相关

  • [ ] Navbar
  • [x] Tabbar(建议采用小程序原生的tabbar,通过设置app.json来实现)
  • [x] Tabs(建议采用小程序原生的tabbar,通过设置app.json来实现)

搜索相关

  • [ ] Searchbar

问题

  1. 在进行iActionSheet组件开发时,使用iButton组件,并对其进行循环渲染,iButton组件中含有slot。经过mpvue的编译后发现,并未对循环中不同的slot做编译,导致所有slot的编译仅有一个,从而导致了渲染bug。因此,在iActionSheet组件中目前使用小程序Button组件,mpvue中已经有组件循环 slot内容分发问题的issue,需要进一步观察从而进行优化

  2. 在进行Grid组件开发时,GridGroup仅作为外层包裹,但如果对Grid进行循环渲染,则页面无显示,还是slot的支持度不够的问题

  3. 进行Notice-bar组件开发时,发现原生小程序的动画无法被识别编译

  4. 进行Tabbar组件开发时,TabbarItem中是由Badge组件包裹的,然后Tabbar包裹TabbarItem组件,但此时props中传递的title无法被渲染出来,mpvue超过三层以上的组件嵌套导致编译出现紊乱,因此将badge组件拆成原生实现了

  5. MpVue组件中的props避免使用key关键字,会导致页面渲染异常

  6. 在使用cell组件时,内部有contentfooter两个slot,然后在slot中加入其它组件时,页面无法正常渲染,只能保留一个slot才能生效

  7. 在调用mpvue组件时,再向slot中加入结构,dataprop的数据无法传入

  8. 组件中使用了小程序原生组件picker-view后,如果在页面中使用此组件并且该页面开启了下拉刷新,会产生一个bug,当在picker-view中下拉时,会导致页面下拉刷新,小程序官方已发现此bug,修复中。

  9. 循环中,key中不能为字符串,否则编译报错

  10. 嵌套循环中,需要给v-for不同的index名称,否则mpvue编译报错