0.0.2 • Published 2 years ago

vj-vant2-component v0.0.2

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

jh-ui

vjh 介绍

按需引入

  1. npm i babel-plugin-import -D
  2. 配置babel.config.js
    [
      "import",
      {
        "libraryName": "vj-vant2-component",
        "style": (name) => {
          return `${name}/style.css`;
        }
      },
      "vj-vant2-component"
    ]
  1. 使用组件
import { colorPicker, vjhButton, vjhField} from 'vj-vant2-component'
Vue.use(colorPicker)
Vue.use(vjhButton)
Vue.use(vjhField)

全局引入

import vjhUI from 'vj-vant2-component'
import 'vj-vant2-component/lib/index/style.css'
Vue.use(vjhUI)
0.0.2

2 years ago

0.0.1

2 years ago