0.1.2 • Published 5 years ago

@vfe-clt/v-ui v0.1.2

Weekly downloads
1
License
ISC
Repository
-
Last release
5 years ago

安装

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)

按需引入

安装 babel-plugin-component

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)
0.1.2

5 years ago