Material Design Lite + Vue
Installation & Setup
0. Requirement
1. Install
npm install --save balm-ui-lite
2. Setup
2.1 CSS Config
/path/to/_vendor.scss
@import 'node_modules/balm-ui-lite/src/styles/main.scss';
2.2 JS Config
gulpfile.js
balm.config = {
...
scripts: {
loaders: [{
test: /\.vue$/,
loader: 'vue'
}, {
test: /balm-ui-lite.src.*?js$/,
loader: 'babel'
}],
alias: {
'vue$': balm.config.production ? 'vue/dist/vue.min.js' : 'vue/dist/vue.esm.js',
'balm-ui': 'balm-ui-lite/src/index.js'
}
},
...
};
/path/to/main.js
import Vue from 'vue';
import BalmUI from 'balm-ui';
Vue.use(BalmUI);
3. Assets Config
images & fonts
Components
Layout
- layout
- navigation
- grid
- tabs
- footer
Common
- badge
- button
- chip
- loading
- menu
- tooltip
- divider (new)
Form
- slider
- checkbox
- radio
- icon toggle
- switch
- textfield
- select (new)
- autocomplete (new)
- datepicker (new)
Data View
- card
- list
- table
- pagination (new)
- dialog
- alert
- confirm
- snackbar
thx BalmJS & Vue.js