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 +73 -13
- package/es/index.css +1 -1
- package/es/index.js +25 -9
- package/es/share-sheet/index.css +1 -1
- package/es/share-sheet/index.js +24 -8
- package/lib/index.css +1 -1
- package/lib/index.js +25 -9
- package/lib/share-sheet/index.css +1 -1
- package/lib/share-sheet/index.js +24 -8
- package/package.json +10 -34
- package/packages/index.ts +1 -1
- package/packages/share-sheet/constant.js +24 -5
- package/packages/share-sheet/demo/index.vue +3 -3
- package/packages/share-sheet/handler.js +1 -1
- package/packages/share-sheet/index.css +0 -3
- package/packages/share-sheet/index.vue +3 -3
- package/packages/share-sheet/readme.md +29 -21
package/README.md
CHANGED
|
@@ -1,13 +1,73 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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
|
+
|