vivo-ui

vivo ui component lib for vue
1,142
Install
npm install vivo-ui
Latest Version:0.0.17
Vue:2
License:ISC
Last Updated:Dec 11, 2018
Links: npm
Maintainer: greenhand

vivo-ui

vivo的Vue组件库,能够按需加载 (v0.01版本有问题,无法使用,请使用v0.02+)

注意(v0.0.8新增)

** webpack4以下不支持package.json的sideEffects属性,必须依赖babel-plugin-import插件来实现按需加载,且不能使用prefix浏览器前缀相关的工具函数。而且由于babel-plugin-import的bug,我们不能取别名,例如import {Toast as VToast} from 'vivo-ui' **

安装babel-loader和babel-plugin-import

npm i -D babel-loader babel-plugin-import

webpack配置如下

module: {
  rules: [{
    test: /\.js$/,
    exclude: /node_modules|bower_components/,
    use: {
      loader: 'babel-loader',
      options: {
        plugins: [['import', require('vivo-ui/babel.import')]]
      }
    }
  }]
}

或者在.babelrc中配置

.babelrc文件

{
  "presets": [
    "./.babelrc.js"
  ]
}

.babelrc.js文件

module.exports = {
  plugins: [
    ['import', require('vivo-ui/babel.import')]
  ]
}

Related Packages

rxz-ui

rxz-ui is a combined API based on Vue3, providing rich components, instructions,...

951 213
@hyone-labs/aurora-vue

Aurora-Vue is UI - Library write in Vue.js

818 2
@n0d3rr/nexus-ui

Simple ui lib for vuejs

817

Version History

Version Released Vue License
0.0.17 ^2.5.16 ISC
0.0.16 ^2.5.16 ISC
0.0.15 ^2.5.16 ISC
0.0.14 ^2.5.16 ISC
0.0.13 ^2.5.16 ISC