0.0.1 • Published 4 years ago

component-qy v0.0.1

Weekly downloads
12
License
-
Repository
-
Last release
4 years ago

component-qy

一个基于Vue CLI 3.0,Babel7,VUE2.6封装的VUE-UI组件库模版,内置两个组件header,支持统一加载和按需加载,可以按需分别加载对应组件的js和css,模块化的方式基本参考VantUI,按需加载用babel-plugin-component组件支持。

Installing

npm install component-qy --save

Example

// 统一加载
import componentUI from 'component-qy'
Vue.use(componentUI)

// 只加载header
import { header } from 'component-qy'
Vue.use(header)

标签

    <header></header>

按需加载功能只针对有Babel配置的项目,单纯用script和link的方式引入js和样式是全量引入

License