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

@mcui/vue

v1.0.0

Published

basic component ui

Downloads

1

Readme

基础 UI 组件

// 规则描述 Rule Description 简称 RD
const rd = {
  // 筛选配置
  limit: [
    {
      label: '',
      field: '',
      paths: '',
      enums: [],
      modle: '',
      value: '',
      rules: [],
      logic: true | false,
      _view: 1,
    }
  ],

  // 表格配置
  table: [
    {
      label: '', // 标签名
      field: '', // 字段名
      paths: '', // 源数据里的JSON结构层级 如{a:{aa:{aaaa:1},b:{bb:{bbb:2}}} 如果field是bbb则需要在paths里填写'b.bb'告诉驱动器这个字段在源数据中所处的位置
      enums: [], // 枚举
      modle: '', // 模型 链接Link|复制Copy|图片Image|标签Tag|... 有一个特殊的自定义代码'@',当驱动器不会自动处理这个字段需要手工在业务代码里处理
      value: '', // 显示内容,一般不填写,只有需要计算显示值时才使用,比如给显示值设置特殊格式{ value: ()=> idate(val).format('YYYY-MM-DD') }
      event: {}, // 事件
      attrs: {}, // 属性
      popup: {}, // 提示(无限套娃遍历)
      logic: true, // 逻辑控制(开启关闭)
      fixed: true|false|1|0|'l'|'r' // 是否固定
      rules: [], // 校验规则
      view: true|false|'always', // 是否显示(自动生成静态值交互可控)
      chlid:[], // 子元素(无限套娃遍历)
      clear: true|false // 是否清除字段,代替logic,logic另有他用
    }
  ],

  // 表单配置
  form: [
    {
      label: '', // 标签名
      field: '', // 字段名
      paths: '', // 源数据里的JSON结构层级 如{a:{aa:{aaaa:1},b:{bb:{bbb:2}}} 如果field是bbb则需要在paths里填写'b.bb'告诉驱动器这个字段在源数据中所处的位置
      enums: [], // 枚举
      modle: '', // 模型 简写'Select',详细写法 ['Select',{ attrName:'1' }]
      value: '',
      event: {}, // 事件
      attrs: {}, // 属性
      logic: true, // 逻辑控制(开启关闭)
      rules: [
        {
          type: 'risk',
          msg: '这是必填项',
          required: true
        },
        {
          type: 'risk',
          msg: '请正确填写中文名',
          validator: () => validateChineseName
        }
      ],
      logic: true | false, // 是否显示
      media: 'mob-24 pad-12 dpc-8', // 媒体查询

      // 数组类型
      array: true,
      // 子块标题
      title: (data: any, item: any) => {
        return item.customerName + '的评价';
      },
      // 子块字段
      child: []
    }
  ]
};

封装组件

TableLoader           ✓
LimitLoader           ✓
FormView              ✓
FormRowView           ✓
FormColView           ✓


Grid                  0%
Button                0%
Input                 ✓
NumberInput           0%
Radio                 0%
Checkbox              0%
Rate                  0%
Slider                0%
Select                ✓
MoreSelect            ✓
SearchSelect          ✓
SearchMoreSelect      ✓
PageSelect            ✓
TreeSelect            ✓
CascaderSelect        ✓
DatePicker            50%  急
TimePicker            50%  急
DateTimePicker        50%  急
Switch                50%
Textarea              50%
FileUpload            0%
ImageUpload           ✓
Avatar                0%
Badge                 0%
Calendar              0%
Card                  0%
Carousel              0%
Collapse              0%
Empty                 0%
Image                 ✓
InfiniteScroll        0%
Pagination            ✓
Progress              0%
Result                0%
Tag                   0%
Timeline              0%
Tree                  0%
Tabs                  0%
Divider               0%
Message               0%

Version

v1.0.0
开源第一版本