海霸王VUE公共组件库
Project setup
npm install hpw-vue-pub-components -S
全局注册:
//main.js
import HpwVuePubComponents from 'hpw-vue-pub-components/packages';
Vue.use(HpwVuePubComponents)
按需引入:
import HpwCloudForm from 'hpw-vue-pub-components/packages/HpwCloudForm';
export default {
name: 'App',
components: {
HpwCloudForm,
},
}
Compiles and hot-reloads for development
npm run serve
Compiles and minifies for production
npm run build
Lints and fixes files
npm run lint