wec-mint-ui
v1.0.5
Published
Mobile UI elements for vue.js
Downloads
12
Maintainers
Readme
Mint UI 定制版
- 风格稍做调整
For Vue 2.x
- Homepage
- Components Demo
- 组件说明文档请参考官方 Mint UI
Installation
npm i wec-mint-ui -S
## Usage
Import all components.
```javascript
import Vue from 'vue';
import Mint from 'wec-mint-ui';
import 'wec-mint-ui/lib/style.css';
Vue.use(Mint);
Or import specified component. (Use babel-plugin-component)
With this mode, the wec-mint-ui css should be imported globally:
import 'wec-mint-ui/src/style/wec-mint-ui.css'
import { Cell, Checklist } from 'wec-mint-ui';
Vue.component(Cell.name, Cell);
Vue.component(Checklist.name, Checklist);
Equals to
import Vue from 'vue';
import Mint from 'wec-mint-ui';
import 'wec-mint-ui/lib/style.css';
Vue.use(Mint);
// import specified component
import MtRadio from 'wec-mint-ui/lib/radio';
import 'wec-mint-ui/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": "wec-mint-ui", "style": true }
]]]
}
CDN
- https://unpkg.com/wec-mint-ui/lib/index.js
- https://unpkg.com/wec-mint-ui/lib/style.css
Development
npm run dev
Contribution
Just make a pull request.
License
MIT