veui
VEUI
Enterprise UI components for Vue.js. Based on Baidu Light Design Language System (Light Design).
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.
Related Packages
Version History
| Version | Released | License |
|---|---|---|
| 2.17.10 | MIT | |
| 2.17.9 | MIT | |
| 2.17.8 | MIT | |
| 2.17.7 | MIT | |
| 2.17.6 | MIT | |
| 2.17.5 | MIT | |
| 2.17.4 | MIT | |
| 2.17.3 | MIT | |
| 2.17.2 | MIT | |
| 2.17.1 | MIT | |
| 2.17.0 | MIT | |
| 2.16.4 | MIT | |
| 2.16.3 | MIT | |
| 2.16.2 | MIT | |
| 2.16.1 | MIT | |
| 2.16.0 | MIT | |
| 2.15.1 | MIT | |
| 2.15.0 | MIT | |
| 2.14.6 | MIT | |
| 2.14.5 | MIT | |
| 2.14.4 | MIT | |
| 2.14.3 | MIT | |
| 2.14.2 | MIT | |
| 2.14.1 | MIT | |
| 2.14.0 | MIT | |
| 2.13.9 | MIT | |
| 2.13.8 | MIT | |
| 2.13.7 | MIT | |
| 2.13.6 | MIT | |
| 2.13.5 | MIT |
Showing the latest 30 of 106. See every release on npm
Pre-releases (98)
| Version | Released | License |
|---|---|---|
| 2.17.0-beta.1 | MIT | |
| 2.0.0-rc.5 | MIT | |
| 2.0.0-rc.4 | MIT | |
| 2.0.0-rc.3 | MIT | |
| 2.0.0-rc.2 | MIT | |
| 2.0.0-rc.1 | MIT | |
| 2.0.0-rc.0 | MIT | |
| 2.0.0-beta.32 | MIT | |
| 2.0.0-beta.31 | MIT | |
| 2.0.0-beta.30 | MIT | |
| 2.0.0-beta.29 | MIT | |
| 2.0.0-beta.28 | MIT | |
| 2.0.0-beta.27 | MIT | |
| 2.0.0-beta.26 | MIT | |
| 2.0.0-beta.25 | MIT | |
| 2.0.0-beta.24 | MIT | |
| 2.0.0-beta.23 | MIT | |
| 2.0.0-beta.22 | MIT | |
| 2.0.0-beta.21 | MIT | |
| 2.0.0-beta.20 | MIT | |
| 2.0.0-beta.19 | MIT | |
| 2.0.0-beta.18 | MIT | |
| 2.0.0-beta.17 | MIT | |
| 2.0.0-beta.16 | MIT | |
| 2.0.0-beta.15 | MIT | |
| 2.0.0-beta.14 | MIT | |
| 2.0.0-beta.13 | MIT | |
| 2.0.0-beta.12 | MIT | |
| 2.0.0-beta.11 | MIT | |
| 2.0.0-beta.10 | MIT |
Showing the latest 30 of 98. See every release on npm