@vfe-clt/v-ui
v0.1.2
Published
``` JavaScript npm i @lp/v-ui -S ```
Downloads
3
Keywords
Readme
安装
npm i @lp/v-ui -S
整体引入
import Vue from 'vue'
import VUI from '@lp/v-ui'
import '@lp/v-ui/lib/index.css'
Vue.use(VUI)
按需引入
npm i babel-plugin-component -D
配置.babelrc
{
//......
// 其他配置
//......
"plugins": [
[
"component",
{
"libraryName": "@lp/v-ui",
"libDir": "lib",
"style": "index.css"
}
]
]
}
使用时直接引入组件,不再需要显示的引入css
import Vue from 'vue'
import { Button } from '@lp/v-ui'
Vue.use(Button)