iview-tree
Project setup
npm install
Compiles and hot-reloads for development
npm run serve
Compiles and minifies for production
npm run deploy
Lints and fixes files
npm run lint
How to use these components
In your application's main.js, add follow codes:
import { IviewTree, IviewMenu, ImagePreview, ThemePicker } from 'iview-components';
Vue.use(IviewTree)
Vue.use(IviewMenu)
Vue.use(ThemePicker)
Vue.prototype.$imgPreview = ImagePreview;
The more details info to how to use, you can find at this application's App.vue file.
Notice
The vue and iview dependents should be externals in the vue.config.js, and alias
resolve: {
alias: {
'iview': 'view-design',
'Vue': 'vue',
}
},
externals: process.env.NODE_ENV === 'production' ? {
vue: 'Vue',
"view-design": 'iview',
} : {},