0.1.20 • Published 7 years ago

mz-ui v0.1.20

Weekly downloads
22
License
ISC
Repository
-
Last release
7 years ago

Overview

Vue components.

Installation

First, install mz-ui from npm :

$ npm install mz-ui

Usage

Import all components.

import Vue from 'vue';
import Mz from 'mz-ui';
//use toast
Mz.Toast.info('test');

Or import specified component.(按需加载, 需安装babel-plugin-component)

//use toast
import Vue from 'vue';
import {Toast} from 'mz-ui';
Toast.info('test');

babel-plugin-component .babelrc 加入如下代码

{
  "plugins": [["component", [
    { "libraryName": "mint-ui", "style": true }
  ]]]
}

Development

first

npm install
npm run serve //本地运行example
npm run dev //生成组件js非压缩
npm run build //生成组件js(压缩)
npm run build:index //打包lib/index.js

add component

  • 组件源码放入packages,一个组件一个文件夹
  • components.json & src/main.js 加入对应组件路径

License

MIT

0.1.20

7 years ago

0.1.20-np

7 years ago

0.1.19

7 years ago

0.1.18

7 years ago

0.1.17

7 years ago

0.1.16

7 years ago

0.1.15

7 years ago

0.1.14

7 years ago

0.1.13

7 years ago

0.1.12

7 years ago

0.1.11

7 years ago

0.1.10

7 years ago

0.1.8

7 years ago

0.1.7

7 years ago

0.1.6

7 years ago

0.1.5

7 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago