Package Exports
- bh-mint-ui
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (bh-mint-ui) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
mint-ui
Mobile UI elements for vue.js
Installation
npm i mint-ui -SUsage
import all components.
import Vue from 'vue'
import Mint from 'mint-ui';
Vue.use(Mint);Or import specified component. (Use babel-plugin-component)
import { Cell, Checklist } from 'mint-ui';
Vue.component(Cell.name, Cell);
Vue.component(Checklist.name, Checklist);Equal to
import Vue from 'vue';
import Mint from 'mint-ui';
import 'mint-ui/lib/style.css';
Vue.use(Mint);
// import specified component
import MtRadio from 'mint-ui/lib/radio';
import '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 -DUsage
.babelrc
{
"plugins": ["other-plugin", ["component", [
{ "libraryName": "mint-ui", "style": true }
]]]
}Development
npm i cooking -g
make devProduction
make distDeploy Example
make deployLicense
MIT
Note
fork from mint-ui