0.0.0 • Published 1 year ago
wan4-ui v0.0.0
wan4-ui 万饰公共方法及组件说明
使用安装
// npm安装
npm install wan4-ui --save
npm install babel-plugin-import --save-dev
// 配置.babelrc.js
``
module.exports = {
"presets": ["@vue/app"],
"plugins": [
[
"import",
{
"libraryName": "wan4-ui",//组件库名称
"camel2DashComponentName": false,//关闭驼峰自动转链式
"camel2UnderlineComponentName": false,//关闭蛇形自动转链式
"style": (name) =>{
const cssName = name.split('/')[2];
return `wan4-ui/lib/style/${cssName}.css`
}
}
],
]
}
``
// 按需引入
import { icon,button } from 'wan4-ui'
components:{
icon,
button
}
// html内
``<icon></icon>``