0.0.3 • Published 3 years ago

data-production-common v0.0.3

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

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',
} : {},

Customize configuration

See Configuration Reference.