bxs-ui
v2.0.3
Published
BSX Components
Downloads
6
Readme
BXS-UI
概述
保险师业务组件库
开发
## 安装依赖
npm install
## 启动example
npm run dev
## 构建
npm run build
## 发布patch版本1.1.1
npm run release:patch
## 发布minor版本1.1.0
npm run release:minor
## 发布major版本2.0.0
npm run release:major
本地调试
使用npm link bxs-ui和npm unlink bxs-ui
## 到bxs-ui工程下执行
npm link
## 到业务工程下执行
npm link bxs-ui
## 取消本地调试执行
npm unlink bxs-ui
使用
npm install bxs-ui
npm install bxs-ui --save-dev
CDN
<link rel="stylesheet" href="//res.winbaoxian.com/auto_upload_ci/bxs_ui/2.0.2/bxs.css" />
<script src="//res.winbaoxian.com/auto_upload_ci/bxs_ui/2.0.2/bxs.min.js"></script>
<script type="text/javascript">
Bxs.Loading.show();
</script>
import all components
import 'bxs-ui/dist/bxs.css';
import Bxs from 'bxs-ui';
Bxs.Loading.show();
import specified component(Use babel-plugin-component)
import {Loading} from 'bxs-ui';
Loading.show();
Use babel-plugin-component
"plugins": [
"add-module-exports", [
"component", {
"libraryName": "bxs-ui",
"libDir": "dist/components",
"style": "index.css"
}
]
]