0.1.20 • Published 8 years ago
mz-ui v0.1.20
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
8 years ago
0.1.20-np
8 years ago
0.1.19
8 years ago
0.1.18
8 years ago
0.1.17
8 years ago
0.1.16
8 years ago
0.1.15
8 years ago
0.1.14
8 years ago
0.1.13
8 years ago
0.1.12
8 years ago
0.1.11
8 years ago
0.1.10
8 years ago
0.1.8
8 years ago
0.1.7
8 years ago
0.1.6
8 years ago
0.1.5
8 years ago
0.1.4
8 years ago
0.1.3
8 years ago
0.1.2
8 years ago
0.1.1
8 years ago
0.1.0
8 years ago