hen-mui
v1.0.1
Published
基于mint-ui的vue组件
Downloads
3
Readme
hen-mui v0.1.21
Mobile UI elements for vue.js
Installation
npm i hen-mui -S
Usage
import all components.
import Vue from 'vue'
import HenMui from 'hen-mui';
Vue.use(HenMui);
Or import specified component. (Use babel-plugin-component)
import { Cell, Checklist } from 'hen-mui';
Vue.component(Cell.name, Cell);
Vue.component(Checklist.name, Checklist);
Equal to
import Vue from 'vue';
import HenMui from 'hen-mui';
import 'hen-mui/lib/style.css';
Vue.use(Mint);
// import specified component
import MtRadio from 'hen-mui/lib/radio';
import 'hen-mui/lib/radio/style.css';
Vue.component(MtRadio.name, MtRadio);
babel-plugin-component
- Auto import css file
- Modular import component
Installation
npm i babel-plugin-component -D
Usage
.babelrc
{
"plugins": ["other-plugin", ["component", [
{ "libraryName": "mint-ui", "style": true }
]]]
}
Development
npm i cooking -g
make dev
Production
make dist
Deploy Example
make deploy
Publish
npm run release
License
MIT