veui
TypeScript icon, indicating that this package has built-in type declarations

2.17.10 • Public • Published

VEUI

Enterprise UI components for Vue.js. Based on Baidu Light Design Language System (Light Design).

DEMO

Installation

npm i --save veui
npm i --save-dev babel-plugin-veui veui-loader lodash babel-plugin-lodash less less-loader

To use default theme dls you have to install it too.

npm i --save veui-theme-dls

Configuration

First, scaffold your project using @vue/cli.

Babel plugins

VEUI requires some Babel plugins to work. Configure babel.config.js as follows:

module.exports = {
  presets: [
    '@vue/app'
  ],
  plugins: [
    'veui',
    'lodash'
  ]
}

webpack configs

You need to configure vue.config.js as follows to make VEUI loader and the transpilation work:

module.exports = {
  css: {
    loaderOptions: {
      less: {
        javascriptEnabled: true
      }
    }
  },
  transpileDependencies: [
    'veui',
    'vue-awesome',
    'resize-detector'
  ],
  chainWebpack: config => {
    config.module
      .rule('veui')
      .test(/\.vue$/)
      .pre()
      .use('veui-loader')
      .loader('veui-loader')
      .tap(() => {
        return {
          modules: [
            {
              package: 'veui-theme-dls',
              fileName: '{module}.less'
            },
            {
              package: 'veui-theme-dls',
              fileName: '{module}.js',
              transform: false
            }
          ]
        }
      })
  }
}

Global styles

You can import global styles from veui-theme-dls in JS/Less:

import 'veui-theme-dls/common.less'

or

@import "~veui-theme-dls/common.less";

Browser Support

Evergreen browsers, IE11 and above.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
2.0.0-alpha.210alpha
2.17.1096latest

Version History

VersionDownloads (Last 7 Days)Published
2.17.1096
2.17.90
2.17.80
2.17.71
2.17.60
2.17.50
2.17.40
2.17.30
2.17.20
2.17.10
2.17.00
2.17.0-beta.10
2.16.40
2.16.30
2.16.20
2.16.10
2.16.00
2.15.10
2.15.00
2.14.60
2.14.50
2.14.40
2.14.30
2.14.20
2.14.10
2.14.00
2.13.90
2.13.80
2.13.70
2.13.60
2.13.50
2.13.40
2.13.30
2.13.215
2.13.10
2.13.00
2.12.20
2.12.10
2.12.02
2.11.20
2.11.10
2.11.00
2.10.40
2.10.30
2.10.20
2.10.10
2.10.00
2.9.00
2.8.20
2.8.10
2.8.00
2.7.30
2.7.20
2.7.10
2.7.00
2.6.50
2.6.40
2.6.32
2.6.20
2.6.10
2.6.00
2.5.50
2.5.40
2.5.30
2.5.20
2.5.10
2.5.02
2.4.40
2.4.30
2.4.20
2.4.10
2.4.00
2.3.40
2.3.30
2.3.20
2.3.10
2.3.01
2.2.10
2.2.00
2.1.70
2.1.60
2.1.50
2.1.40
2.1.30
2.1.20
2.1.10
2.1.00
2.0.61
2.0.50
2.0.40
2.0.30
2.0.20
2.0.10
2.0.00
2.0.0-rc.50
2.0.0-rc.40
2.0.0-rc.30
2.0.0-rc.20
2.0.0-rc.10
2.0.0-rc.00
2.0.0-beta.320
2.0.0-beta.310
2.0.0-beta.300
2.0.0-beta.290
2.0.0-beta.280
2.0.0-beta.270
2.0.0-beta.260
2.0.0-beta.250
2.0.0-beta.240
2.0.0-beta.230
2.0.0-beta.220
2.0.0-beta.210
2.0.0-beta.200
2.0.0-beta.190
2.0.0-beta.180
2.0.0-beta.170
2.0.0-beta.160
2.0.0-beta.150
2.0.0-beta.140
2.0.0-beta.130
2.0.0-beta.120
2.0.0-beta.110
2.0.0-beta.100
2.0.0-beta.90
2.0.0-beta.80
2.0.0-beta.70
2.0.0-beta.60
2.0.0-beta.50
2.0.0-alpha.210
2.0.0-alpha.200
2.0.0-beta.40
2.0.0-beta.30
2.0.0-beta.20
2.0.0-beta.10
2.0.0-alpha.190
2.0.0-beta.00
2.0.0-alpha.180
2.0.0-alpha.170
2.0.0-alpha.160
2.0.0-alpha.150
2.0.0-alpha.140
1.0.0-alpha.360
1.0.0-alpha.350
2.0.0-alpha.130
2.0.0-alpha.120
2.0.0-alpha.110
2.0.0-alpha.100
2.0.0-alpha.90
2.0.0-alpha.80
2.0.0-alpha.70
2.0.0-alpha.60
2.0.0-alpha.50
2.0.0-alpha.40
2.0.0-alpha.30
1.0.0-alpha.340
2.0.0-alpha.20
1.0.0-alpha.330
2.0.0-alpha.10
2.0.0-alpha.00
1.0.0-alpha.320
1.0.0-alpha.310
1.0.0-alpha.300
1.0.0-alpha.291
1.0.0-alpha.280
1.0.0-alpha.270
1.0.0-alpha.260
1.0.0-alpha.250
1.0.0-alpha.240
1.0.0-alpha.230
1.0.0-alpha.220
1.0.0-alpha.210
1.0.0-alpha.200
1.0.0-alpha.190
1.0.0-alpha.180
1.0.0-alpha.170
1.0.0-alpha.162
1.0.0-alpha.150
1.0.0-alpha.140
1.0.0-alpha.130
1.0.0-alpha.120
1.0.0-alpha.110
1.0.0-alpha.100
1.0.0-alpha.90
1.0.0-alpha.80
1.0.0-alpha.70
1.0.0-alpha.60
1.0.0-alpha.50
1.0.0-alpha.40
1.0.0-alpha.30
1.0.0-alpha.20
1.0.0-alpha.10
0.3.30
0.3.20
0.3.10
0.3.00
0.2.40
0.2.30
0.2.20
0.2.10
0.2.00
0.1.31
0.1.20
0.1.10
0.1.00

Package Sidebar

Install

npm i veui

Weekly Downloads

124

Version

2.17.10

License

MIT

Unpacked Size

4.6 MB

Total Files

388

Last publish

Collaborators

  • fuqiang15
  • xdbobname
  • okaychen
  • zttonly
  • gkiwi001
  • ovilia
  • 100pah
  • ecomfe-core
  • ecomfe-admin
  • otakustay
  • leeight
  • justineo
  • gdjinbo
  • luyuan
  • errorrik
  • ksky521
  • lang
  • jinzhan