@vfe-clt/v-ui

0.1.2 • Public • Published

安装

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)

Readme

Keywords

none

Package Sidebar

Install

npm i @vfe-clt/v-ui

Weekly Downloads

1

Version

0.1.2

License

ISC

Unpacked Size

20.1 kB

Total Files

12

Last publish

Collaborators

  • lianbinghua
  • xuanyazhang
  • jsliushen.com