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 🙏

© 2026 – Pkg Stats / Ryan Hefner

mls-common-ui

v0.2.8

Published

mls项目的公共组件库

Downloads

16

Readme

mls-common-ui

这是一个基于Vue,ElementUI的组件库项目,该组件库依赖父项目的Vue与ElementUI库。查看文档
mls公共组件库目前有两个组件:

  • MlsCommonForm
  • MlsCommonTable

MlsCommonForm组件是由Vue JSON Schema Form这个组件二次封装而来。加入了按钮组插槽,规范了项目中表单的样式。能帮助我们通过json配置快速生成表单。

MlsCommonTable组件是由lb-element-table这个组件二次封装而来。整合了分页组件,规范了table组件的单选/多选逻辑代码的写法。能帮助我们通过json配置快速生成table。

安装

## npm
npm install --save mls-common-ui

## yarn
yarn add mls-common-ui

使用

<template>
    <mls-common-form
        v-model="formData"
        :uiSchema="uiSchema"
        :schema="schema"
    >
    </mls-common-form>
</template>

<script>
import { MlsCommonForm } from 'mls-common-ui';
import Vue from 'vue';

// 全局注册
Vue.component(MlsCommonForm.name, MlsCommonForm);

export default {
    name: 'Demo',
    components: {
      // MlsCommonForm // 或者可以在组件内注册
    }
    data() {
        return {
            formData: {},
            schema: {
                type: 'object',
                required: [
                    'userName',
                    'age',
                ],
                properties: {
                    userName: {
                        type: 'string',
                        title: '用户名',
                        default: 'xigua',
                    },
                    age: {
                        type: 'number',
                        title: '年龄'
                    },
                    bio: {
                        type: 'string',
                        title: '签名',
                        minLength: 10,
                        default: '知道的越多、就知道的越少',
                    }
                }
            },
            uiSchema: {
                bio: {
                    'ui:options': {
                        placeholder: '请输入你的签名',
                        type: 'textarea',
                        rows: 1
                    },
                    'ui:canBeClose': true // 这个参数表示这个项可以被收起
                }
            }
        };
    }
};
</script>