one-ui-element

- npm - yarn 用法
657
Install
npm install one-ui-element
Latest Version:0.3.3
Vue:2
Last Updated:Sep 13, 2022
Links: npm
Maintainer: bobo234

安装

  • npm
npm install one-ui-element -S
  • yarn
yarn add one-ui-element -S

用法

全局引入

import OneUI from 'one-ui-element'
Vue.use(OneUI)

按需引入

import { Button } from 'one-ui-element'
// 引入字体
import 'one-ui-element/lib/fonts/style.css'   
Vue.use(Button)

配置

按需引入的项目需要安装如下任意一个插件,进行配置

  • babel-plugin-component
npm install babel-plugin-component -D
  • Babel 配置
plugins: [
    [
      "component",
      {
        libraryName: "one-ui-element",
        // 是否解析名称为破折号模式
        camel2Dash: false,
        // import js and css from 'style.css'
        style: true,
      },
      "one-ui-element",
    ],
  ],

Version History

Version Released Vue License
0.3.3 ^2.6.14
0.3.2 ^2.6.14
0.3.1 ^2.6.14
0.3.0 ^2.6.14
0.2.9 ^2.6.14