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

mpui

v0.11.0

Published

Mini-program's UI for mpvue

Downloads

4

Readme

MpUI (Mini-program's UI for mpvue)

weui-mpvue

MpUI 是一套基于 weui-wxss 开发的 mpvue 组件库,增加了一些新的特性、样式和组件。

npm version npm download license

说明

部分组件因 mpvue 尚不支持的语法而无法实现,详细见不支持列表

开发文档

打开开发文档

安装

$ yarn add mpui

预览

$ git clone https://github.com/kankungyip/mpui
$ cd mpui
$ yarn run example

微信web开发者工具打开 mpui 项目目录。

使用

引入全局样式

<style lang="less">
@import "path/to/node_modules/mpui/theme/mpui";
</style>

并非全部组件样式,仅全局(字体、颜色等)样式和未被 Vue 组件化的 weui-wxss。

使用组件

<template>
  <ui-article :content="content" />
</template>

<script>
import uiArticle from 'mpui/components/article'

export default {
  components: {
    uiArticle,
  },

  data () {
    return {
      content: `# 大标题

## 章标题

### 1.1 节标题

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

![](https://mp.weixin.qq.com/wxopen/qrcode?action=show&type=2&fakeid=3834027984&token=2071919981)

### 1.2 节标题

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
`,
    }
  },
}
</script>

需要 Slot 支持暂未实现的组件,请使用全局样式,详细见文档。

组件状态

部分组件样式源自 zanuiminui 项目,并对其进行了必要重构以符合 weui-wxss。

表单

  • [x] Agree
  • [x] Button
  • [ ] ButtonArea(需要 Slot 支持,暂使用样式)
  • [ ] List(需要 Slot 支持,暂使用样式)
  • [x] Cell(需配合 List 一起使用)
  • [x] Input(需配合 List 一起使用)
  • [x] CheckboxGroup(需配合 List 一起使用)
  • [x] RadioGroup(需配合 List 一起使用)
  • [x] Select(需配合 List 一起使用)
  • [x] Switch(需配合 List 一起使用)
  • [x] Uploader(可配合 List 一起使用)
  • [x] Counter(可配合 List 一起使用)

基础组件

  • [x] Icons
  • [x] Article
  • [x] Avatar
  • [x] Badge
  • [ ] BadgeBox(需要 Slot 支持,暂使用样式)
  • [ ] Row(需要 Slot 支持,暂使用样式)
  • [ ] Col(需要 Slot 支持,暂使用样式)
  • [x] Grid
  • [ ] Panel(需要 Slot 支持,暂使用样式)
  • [x] MediaBox(可配合 Panel 一起使用)
  • [x] Footer
  • [x] Loadmore
  • [x] Ellipsis
  • [x] Preview
  • [x] Price
  • [x] Progress
  • [x] Tag
  • [ ] Timeline
  • [ ] Countdown

操作反馈

  • [x] LoadingBar
  • [x] Msg
  • [ ] NoticeBar
  • [x] Toptips

导航相关

  • [ ] Tabs(需要 Slot 支持,暂使用样式)
  • [ ] Sidenav
  • [x] Steps

搜索相关

  • [x] SearchBar

计划

  • [ ] 为表单引入独立 API vm.$form,方便表单数据的获取和校验
  • [ ] 支持 i18n

License

The MIT License

请自由地享受和参与开源