1.0.3 • Published 3 years ago
bobi-ui v1.0.3
vue project
install dependencies
yarn install or npm install or cnpm install
serve with hot reload at localhost:8080
npm run dev
build for production
npm run build
按需组件引用 在根目录下.babelrc.js
文件中按如下配置
module.exports = {
"presets": ["@vue/app"],
"plugins": [
[
"import",
{
"libraryName": "bobi-ui",//组件库名称
"camel2DashComponentName": false,//关闭驼峰自动转链式
"camel2UnderlineComponentName": false,//关闭蛇形自动转链式
"style": (name) =>{
const cssName = name.split('/')[2];
return `bobi-ui/lib/style/${cssName}.css`
}
}
],
]
}