bitmui
v1.0.5
Published
基于vue的组件库
Downloads
7
Readme
bitmui
基于vue的组件库
使用组件
安装依赖
yarn add bitmui
开发组件
安装依赖
yarn 或者 npm i
创建组件
npm run create -- --name=compnent-name
开启 dev
yarn dev 或者 npm run dev
打包库,不过公司内部用不着
yarn lib 或者 npm run lib
如需记录组件当前提交的日志
需要全局安装一下 commitizen
npm i commitizen -g
提交时执行, 按照提示完成提交流程
npm run cz
给组件添加国际化
packages/local/lang.js
中添加组件的文案, 以bmui-
开头,避免命名和项目冲突
export default {
en: {
'bmui-symbol-picker': {
nofavorites: "No Data",
all: "all",
}
},
cn: {
'bmui-symbol-picker': {
nofavorites: "暂无数据",
all: "全部",
}
}
}
组件中
<Option :label="$t('bmui-symbol-picker.all')" value="" />