bxs-tools-ui 3.1.0-0 → 3.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,13 +1,73 @@
1
- ### bxs-tools-vue
2
- 基于 `vue + vant + rollup`,开发的保险师计划书业务相关组件库。包含以下模块:
3
- * 追加领取(减保领取)
4
- * 调整保额
5
- * 名片
6
- * canvas 绘制海报
7
- * 交易计算
8
- * 计划书人员信息
9
- * 计划书产品信息
10
- * 一些计划书常用的函数
11
-
12
- [组件预览](https://docs.winbaoxian.cn/bxs-tools-ui/demo.html#/Home)
13
- [文档说明](https://docs.winbaoxian.cn/bxs-tools-ui/docs.html#/)
1
+ # bxs-tools-ui
2
+
3
+ 基于 `vue2 + vant + rollup` 开发的保险师计划书业务相关组件库。
4
+
5
+ ## 组件列表
6
+
7
+ | 组件 | 说明 |
8
+ |------|------|
9
+ | AddAndTake | 追加领取(减保领取) |
10
+ | AdjustBaoe | 调整保额 |
11
+ | BusinessCard | 名片 |
12
+ | CanvasPoster | canvas 绘制海报 |
13
+ | InsureCalculate | 试算业务组件 |
14
+ | PersonInfo | 计划书人员信息 |
15
+ | ProductInfo | 计划书产品信息 |
16
+ | ShareSheet | 分享面板 |
17
+ | PlanbookInput | 计划书投保页 |
18
+ | BxsUtils | 计划书常用工具函数 |
19
+
20
+ ## 链接
21
+
22
+ [组件预览](https://docs.winbaoxian.cn/bxs-tools-ui/demo/#/Home)
23
+ [文档说明](https://docs.winbaoxian.cn/bxs-tools-ui/docs/#/Quickstart)
24
+
25
+ ## 快速上手
26
+
27
+ ### 安装
28
+
29
+ ```shell
30
+ npm install bxs-tools-ui
31
+ ```
32
+
33
+ ### 全量引入
34
+
35
+ ```js
36
+ import BxsToolsUI from 'bxs-tools-ui'
37
+ import 'bxs-tools-ui/lib/index.css'
38
+
39
+ Vue.use(BxsToolsUI)
40
+ ```
41
+
42
+ ### 按需引入
43
+
44
+ ```js
45
+ import { AddAndTake } from 'bxs-tools-ui'
46
+ import 'bxs-tools-ui/es/add-and-take/index.css'
47
+
48
+ Vue.use(AddAndTake)
49
+ ```
50
+
51
+ ## 本地开发
52
+
53
+ ```shell
54
+ # 安装依赖
55
+ npm install
56
+
57
+ # 启动开发服务(demo + docs)
58
+ npm run dev
59
+
60
+ # 构建组件库
61
+ npm run build
62
+
63
+ # 构建说明文档
64
+ npm run docs
65
+
66
+ # 新建组件
67
+ npm run create
68
+ ```
69
+
70
+ 本地访问地址:
71
+ - Demo:`https://localhost:9800/demo/index.html#/Home`
72
+ - Docs:`https://localhost:9800/docs/index.html#/Quickstart`
73
+