@cloudbase/weda-ui 0.2.16 → 1.0.24
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 +41 -169
- package/package.json +23 -11
- package/src/configs/components/calendar.json +4 -1
- package/src/configs/components/chart/bar.json +724 -0
- package/src/configs/components/chart/line.json +679 -0
- package/src/configs/components/chart/pie.json +497 -0
- package/src/configs/components/chart/statisticsCard.json +61 -13
- package/src/configs/components/container.json +7 -2
- package/src/configs/components/dataView.json +21 -6
- package/src/configs/components/form/checkbox.json +97 -5
- package/src/configs/components/form/radio.json +96 -4
- package/src/configs/components/form/select.json +245 -11
- package/src/configs/components/graphicCard.json +84 -73
- package/src/configs/components/image.json +7 -2
- package/src/configs/components/link.json +19 -3
- package/src/configs/components/listView.json +65 -18
- package/src/configs/components/lottery.json +151 -0
- package/src/configs/components/modal.json +37 -5
- package/src/configs/components/navLayout.json +87 -75
- package/src/configs/components/navigationBar.json +59 -0
- package/src/configs/components/richtextview.json +4 -1
- package/src/configs/components/scrollVeiw.json +74 -22
- package/src/configs/components/swiper.json +4 -1
- package/src/configs/components/tabs.json +51 -8
- package/src/configs/components/text.json +33 -25
- package/src/configs/components/wxOpenApi/phone.json +141 -0
- package/src/configs/components/wxOpenApi/phoneCode.json +121 -0
- package/src/configs/components/wxOpenApi/share.json +167 -0
- package/src/configs/components/wxOpenApi/userInfo.json +174 -0
- package/src/configs/index.js +20 -0
- package/src/index.js +2 -0
- package/src/mp/components/button/index.wxml +1 -2
- package/src/mp/components/chart/bar/index.js +258 -0
- package/src/mp/components/chart/bar/index.json +6 -0
- package/src/mp/components/chart/bar/index.wxml +3 -0
- package/src/mp/components/chart/bar/index.wxss +9 -0
- package/src/mp/components/chart/common/config/bar.js +50 -0
- package/src/mp/components/chart/common/config/global.js +16 -0
- package/src/mp/components/chart/common/config/line.js +48 -0
- package/src/mp/components/chart/common/config/pie.js +36 -0
- package/src/mp/components/chart/common/core/eChartBar.js +263 -0
- package/src/mp/components/chart/common/core/eChartBase.js +375 -0
- package/src/mp/components/chart/common/core/eChartLine.js +229 -0
- package/src/mp/components/chart/common/core/eChartPie.js +166 -0
- package/src/mp/components/chart/common/lib/echarts.min.js +18 -0
- package/src/mp/components/chart/ec-canvas/ec-canvas.js +277 -0
- package/src/mp/components/chart/ec-canvas/ec-canvas.json +4 -0
- package/src/mp/components/chart/ec-canvas/ec-canvas.wxml +4 -0
- package/src/mp/components/chart/ec-canvas/ec-canvas.wxss +4 -0
- package/src/mp/components/chart/ec-canvas/wx-canvas.js +107 -0
- package/src/mp/components/chart/line/index.js +247 -0
- package/src/mp/components/chart/line/index.json +6 -0
- package/src/mp/components/chart/line/index.wxml +3 -0
- package/src/mp/components/chart/line/index.wxss +9 -0
- package/src/mp/components/chart/pie/index.js +182 -0
- package/src/mp/components/chart/pie/index.json +6 -0
- package/src/mp/components/chart/pie/index.wxml +4 -0
- package/src/mp/components/chart/pie/index.wxss +9 -0
- package/src/mp/components/chart/statisticsCard/index.js +33 -6
- package/src/mp/components/form/checkbox/index.js +41 -2
- package/src/mp/components/form/checkbox/index.wxml +1 -1
- package/src/mp/components/form/form/index.wxml +1 -2
- package/src/mp/components/form/input/index.js +1 -1
- package/src/mp/components/form/location/index.js +43 -2
- package/src/mp/components/form/radio/index.js +38 -0
- package/src/mp/components/form/select/index.js +348 -40
- package/src/mp/components/form/select/index.wxml +21 -6
- package/src/mp/components/form/select/region/index.js +101 -0
- package/src/mp/components/form/textarea/index.wxml +6 -5
- package/src/mp/components/form/uploader/index.js +76 -44
- package/src/mp/components/form/uploader/index.wxml +15 -3
- package/src/mp/components/form/uploaderFile/index.js +61 -29
- package/src/mp/components/graphicCard/index.js +26 -28
- package/src/mp/components/listView/index.js +52 -64
- package/src/mp/components/listView/index.wxml +2 -2
- package/src/mp/components/listView/index.wxss +5 -0
- package/src/mp/components/lottery/index.js +270 -0
- package/src/mp/components/lottery/index.json +4 -0
- package/src/mp/components/lottery/index.wxml +43 -0
- package/src/mp/components/lottery/index.wxss +317 -0
- package/src/mp/components/navLayout/index.js +3 -3
- package/src/mp/components/navigationBar/index.js +193 -0
- package/src/mp/components/navigationBar/index.json +6 -0
- package/src/mp/components/navigationBar/index.wxml +88 -0
- package/src/mp/components/navigationBar/index.wxss +1257 -0
- package/src/mp/components/tabs/index.js +7 -2
- package/src/mp/components/tabs/index.wxml +2 -1
- package/src/mp/components/text/index.js +0 -25
- package/src/mp/components/text/index.wxml +3 -3
- package/src/mp/components/wxOpenApi/phone/index.js +117 -0
- package/src/mp/components/wxOpenApi/phone/index.json +4 -0
- package/src/mp/components/wxOpenApi/phone/index.wxml +15 -0
- package/src/mp/components/wxOpenApi/phone/index.wxss +22 -0
- package/src/mp/components/wxOpenApi/phoneCode/index.js +89 -0
- package/src/mp/components/wxOpenApi/phoneCode/index.json +4 -0
- package/src/mp/components/wxOpenApi/phoneCode/index.wxml +15 -0
- package/src/mp/components/wxOpenApi/phoneCode/index.wxss +22 -0
- package/src/mp/components/wxOpenApi/share/index.js +117 -0
- package/src/mp/components/wxOpenApi/share/index.json +4 -0
- package/src/mp/components/wxOpenApi/share/index.wxml +15 -0
- package/src/mp/components/wxOpenApi/share/index.wxss +22 -0
- package/src/mp/components/wxOpenApi/userInfo/index.js +88 -0
- package/src/mp/components/wxOpenApi/userInfo/index.json +4 -0
- package/src/mp/components/wxOpenApi/userInfo/index.wxml +14 -0
- package/src/mp/components/wxOpenApi/userInfo/index.wxss +22 -0
- package/src/mp/index.json +10 -1
- package/src/mp/style/weda-ui.wxss +2 -0
- package/src/mp/utils/constant.js +15 -0
- package/src/mp/utils/destr.js +48 -0
- package/src/mp/utils/lodash.js +2 -0
- package/src/mp/utils/platform.js +25 -0
- package/src/mp/utils/tcb.js +44 -0
- package/src/setupTests.js +2 -1
- package/src/web/components/button/index.css +8 -1
- package/src/web/components/button/index.tsx +3 -2
- package/src/web/components/chart/bar/index.tsx +140 -0
- package/src/web/components/chart/common/config/bar.js +49 -0
- package/src/web/components/chart/common/config/global.js +16 -0
- package/src/web/components/chart/common/config/line.js +50 -0
- package/src/web/components/chart/common/config/pie.js +37 -0
- package/src/web/components/chart/common/core/eChartBar.js +265 -0
- package/src/web/components/chart/common/core/eChartBase.ts +383 -0
- package/src/web/components/chart/common/core/eChartLine.js +231 -0
- package/src/web/components/chart/common/core/eChartPie.js +170 -0
- package/src/web/components/chart/common/core/type.ts +34 -0
- package/src/web/components/chart/common/echart.css +106 -0
- package/src/web/components/chart/common/echarts.ts +33 -0
- package/src/web/components/chart/common/useChart.tsx +69 -0
- package/src/web/components/chart/line/index.tsx +136 -0
- package/src/web/components/chart/pie/index.tsx +99 -0
- package/src/web/components/chart/statisticsCard/index.tsx +29 -8
- package/src/web/components/form/checkbox/index.tsx +61 -23
- package/src/web/components/form/formcell/index.tsx +10 -5
- package/src/web/components/form/location/components/LocationH5/location.h5.jsx +3 -3
- package/src/web/components/form/location/components/LocationPC/location.PC.jsx +2 -2
- package/src/web/components/form/radio/index.tsx +90 -53
- package/src/web/components/form/select/h5.tsx +371 -72
- package/src/web/components/form/select/index.css +10 -0
- package/src/web/components/form/select/index.tsx +392 -145
- package/src/web/components/form/select/region/index.ts +122 -31
- package/src/web/components/form/select/time.jsx +90 -0
- package/src/web/components/form/select/year.tsx +170 -0
- package/src/web/components/form/tips/index.css +4 -0
- package/src/web/components/form/tips/index.tsx +4 -3
- package/src/web/components/form/uploader/uploader.h5.tsx +28 -19
- package/src/web/components/form/uploader/uploader.pc.tsx +17 -20
- package/src/web/components/form/uploaderFile/uploadFile.h5.tsx +48 -44
- package/src/web/components/form/uploaderFile/uploadFile.pc.tsx +28 -26
- package/src/web/components/graphicCard/index.css +1 -5
- package/src/web/components/graphicCard/index.tsx +4 -3
- package/src/web/components/image/image.tsx +1 -1
- package/src/web/components/image/index.tsx +1 -1
- package/src/web/components/index.js +13 -2
- package/src/web/components/link/index.tsx +6 -3
- package/src/web/components/listView/index.css +4 -0
- package/src/web/components/listView/index.tsx +10 -18
- package/src/web/components/lottery/index.css +327 -0
- package/src/web/components/lottery/index.tsx +567 -0
- package/src/web/components/lottery/lotteryUtil.ts +130 -0
- package/src/web/components/modal/index.tsx +3 -1
- package/src/web/components/navigationBar/chevron-right--double.svg +3 -0
- package/src/web/components/navigationBar/common.tsx +198 -0
- package/src/web/components/navigationBar/h5Menu.tsx +179 -0
- package/src/web/components/navigationBar/horizontalMenu.tsx +200 -0
- package/src/web/components/navigationBar/index.css +762 -0
- package/src/web/components/navigationBar/index.tsx +231 -0
- package/src/web/components/navigationBar/type.d.ts +111 -0
- package/src/web/components/navigationBar/verticalMenu.tsx +81 -0
- package/src/web/components/phone/index.css +0 -0
- package/src/web/components/phone/index.tsx +22 -0
- package/src/web/components/phoneCode/index.css +0 -0
- package/src/web/components/phoneCode/index.tsx +22 -0
- package/src/web/components/richTextView/index.tsx +3 -5
- package/src/web/components/share/index.css +0 -0
- package/src/web/components/share/index.tsx +38 -0
- package/src/web/components/tabs/index.tsx +2 -0
- package/src/web/components/tabs/tabs.h5.tsx +43 -33
- package/src/web/components/tabs/tabs.pc.tsx +23 -10
- package/src/web/components/text/index.tsx +6 -14
- package/src/web/components/userInfo/index.css +0 -0
- package/src/web/components/userInfo/index.tsx +30 -0
- package/src/web/utils/{constant.js → constant.ts} +17 -2
- package/src/web/utils/lodash.ts +2 -0
- package/src/web/utils/platform.js +10 -1
- package/src/web/utils/tcb.js +20 -6
- package/src/web/weda-ui.css +2 -0
- package/CHANGELOG.md +0 -240
- package/src/.DS_Store +0 -0
- package/src/configs/.DS_Store +0 -0
- package/src/mp/.gitignore +0 -10
- package/src/web/.DS_Store +0 -0
- package/src/web/components/form/select/region/cities.ts +0 -2410
- package/src/web/components/form/select/region/provinces.ts +0 -240
- package/src/web/components/form/select/region/regions.ts +0 -20645
|
@@ -2,32 +2,69 @@
|
|
|
2
2
|
"$schema": "https://comp-public-1303824488.cos.ap-shanghai.myqcloud.com/schema/lcds_component.json",
|
|
3
3
|
"data": {
|
|
4
4
|
"properties": {
|
|
5
|
+
"isMultipleSlot": {
|
|
6
|
+
"type": "boolean",
|
|
7
|
+
"title": "启用多个插槽",
|
|
8
|
+
"default": true,
|
|
9
|
+
"x-index": 10,
|
|
10
|
+
"x-props": {
|
|
11
|
+
"data-hidebind": true
|
|
12
|
+
},
|
|
13
|
+
"x-linkages": [
|
|
14
|
+
{
|
|
15
|
+
"type": "value:schema",
|
|
16
|
+
"schema": {
|
|
17
|
+
"x-props": {
|
|
18
|
+
"data-hidebind": "{{ $value }}"
|
|
19
|
+
},
|
|
20
|
+
"x-auto-num": {}
|
|
21
|
+
},
|
|
22
|
+
"target": "tabs"
|
|
23
|
+
}
|
|
24
|
+
]
|
|
25
|
+
},
|
|
5
26
|
"tabs": {
|
|
6
27
|
"title": "选项卡标签",
|
|
7
28
|
"x-props": {
|
|
8
|
-
"data-hidebind": true
|
|
29
|
+
"data-hidebind": true,
|
|
30
|
+
"data-withBindMeta": true
|
|
9
31
|
},
|
|
10
|
-
"x-
|
|
32
|
+
"x-component-props": {
|
|
33
|
+
"origin-component": "list"
|
|
34
|
+
},
|
|
35
|
+
"x-index": 20,
|
|
11
36
|
"type": "array",
|
|
12
37
|
"maxLength": 20,
|
|
13
38
|
"default": [
|
|
14
39
|
{
|
|
15
|
-
"title": "选项一"
|
|
40
|
+
"title": "选项一",
|
|
41
|
+
"value": "选项一"
|
|
16
42
|
},
|
|
17
43
|
{
|
|
18
|
-
"title": "选项二"
|
|
44
|
+
"title": "选项二",
|
|
45
|
+
"value": "选项二"
|
|
19
46
|
},
|
|
20
47
|
{
|
|
21
|
-
"title": "选项三"
|
|
48
|
+
"title": "选项三",
|
|
49
|
+
"value": "选项三"
|
|
22
50
|
}
|
|
23
51
|
],
|
|
24
52
|
"items": {
|
|
25
53
|
"type": "object",
|
|
54
|
+
"default": {
|
|
55
|
+
"title": "标签名称",
|
|
56
|
+
"value": "标签值"
|
|
57
|
+
},
|
|
26
58
|
"properties": {
|
|
27
59
|
"title": {
|
|
28
60
|
"title": "标签名称",
|
|
29
61
|
"type": "string",
|
|
30
62
|
"default": "标题"
|
|
63
|
+
},
|
|
64
|
+
"value": {
|
|
65
|
+
"type": "string",
|
|
66
|
+
"title": "标签值",
|
|
67
|
+
"default": "标签值"
|
|
31
68
|
}
|
|
32
69
|
}
|
|
33
70
|
},
|
|
@@ -41,21 +78,24 @@
|
|
|
41
78
|
}
|
|
42
79
|
}
|
|
43
80
|
}
|
|
44
|
-
]
|
|
81
|
+
],
|
|
82
|
+
"x-component": "list-bind-switch"
|
|
45
83
|
},
|
|
46
84
|
"selectedIndex": {
|
|
47
85
|
"title": "选中标签",
|
|
48
86
|
"type": "number",
|
|
49
87
|
"default": 0,
|
|
88
|
+
"x-index": 30,
|
|
50
89
|
"x-category": "基础属性",
|
|
51
90
|
"x-component": "select"
|
|
52
91
|
},
|
|
53
92
|
"panel": {
|
|
54
93
|
"title": "面板1",
|
|
94
|
+
"x-index": 40,
|
|
55
95
|
"type": "slot",
|
|
56
96
|
"x-auto-num": {
|
|
57
97
|
"from": 1,
|
|
58
|
-
"to": "{{ $form.values.tabs.length }}"
|
|
98
|
+
"to": "{{ $form.values.isMultipleSlot ? $form.values.tabs.length : 1 }}"
|
|
59
99
|
}
|
|
60
100
|
}
|
|
61
101
|
}
|
|
@@ -69,8 +109,11 @@
|
|
|
69
109
|
"meta": {
|
|
70
110
|
"name": "Tabs",
|
|
71
111
|
"title": "选项卡",
|
|
72
|
-
"description": "
|
|
112
|
+
"description": "用于实现常见的选项卡切换效果。",
|
|
73
113
|
"category": "展示",
|
|
74
114
|
"icon": "//imgcache.qq.com/qcloud/lowcode/static/ide/left-material-icon/TabsContainer.svg"
|
|
115
|
+
},
|
|
116
|
+
"configMeta": {
|
|
117
|
+
"docsUrl": "https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/show/Tabs"
|
|
75
118
|
}
|
|
76
119
|
}
|
|
@@ -12,13 +12,34 @@
|
|
|
12
12
|
},
|
|
13
13
|
"level": {
|
|
14
14
|
"enum": [
|
|
15
|
-
{
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
{
|
|
20
|
-
|
|
21
|
-
|
|
15
|
+
{
|
|
16
|
+
"label": "正文",
|
|
17
|
+
"value": "0"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"label": "标题 H1",
|
|
21
|
+
"value": "1"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"label": "标题 H2",
|
|
25
|
+
"value": "2"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"label": "标题 H3",
|
|
29
|
+
"value": "3"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"label": "标题 H4",
|
|
33
|
+
"value": "4"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"label": "标题 H5",
|
|
37
|
+
"value": "5"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"label": "标题 H6",
|
|
41
|
+
"value": "6"
|
|
42
|
+
}
|
|
22
43
|
],
|
|
23
44
|
"type": "string",
|
|
24
45
|
"title": "文本格式",
|
|
@@ -26,30 +47,14 @@
|
|
|
26
47
|
"x-index": 2,
|
|
27
48
|
"description": "标题级别,H1 - H6"
|
|
28
49
|
},
|
|
29
|
-
"textAlign": {
|
|
30
|
-
"title": "对齐",
|
|
31
|
-
"type": "string",
|
|
32
|
-
"default": "left",
|
|
33
|
-
"x-component": "textAlign",
|
|
34
|
-
"x-index": 3,
|
|
35
|
-
"x-category": "基础属性"
|
|
36
|
-
},
|
|
37
|
-
"textColor": {
|
|
38
|
-
"title": "颜色",
|
|
39
|
-
"type": "string",
|
|
40
|
-
"x-component": "color",
|
|
41
|
-
"x-index": 4,
|
|
42
|
-
"x-category": "基础属性",
|
|
43
|
-
"default": "rgb(0, 0, 0)"
|
|
44
|
-
},
|
|
45
50
|
"maxLines": {
|
|
46
51
|
"title": "最大行数",
|
|
47
52
|
"type": "number",
|
|
53
|
+
"description": "应用发布为小程序时,该属性不生效",
|
|
48
54
|
"default": 2,
|
|
49
55
|
"x-index": 5,
|
|
50
56
|
"x-category": "高级属性"
|
|
51
57
|
},
|
|
52
|
-
|
|
53
58
|
"space": {
|
|
54
59
|
"title": "连续空格",
|
|
55
60
|
"type": "boolean",
|
|
@@ -74,9 +79,12 @@
|
|
|
74
79
|
],
|
|
75
80
|
"meta": {
|
|
76
81
|
"title": "文本",
|
|
77
|
-
"description": "
|
|
82
|
+
"description": "用于展示页面中的文本内容。",
|
|
78
83
|
"category": "文本",
|
|
79
84
|
"componentOrder": 100,
|
|
80
85
|
"icon": "//imgcache.qq.com/qcloud/lowcode/static/ide/left-material-icon/Text.svg"
|
|
86
|
+
},
|
|
87
|
+
"configMeta": {
|
|
88
|
+
"docsUrl": "https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/text/Text"
|
|
81
89
|
}
|
|
82
90
|
}
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://comp-public-1303824488.cos.ap-shanghai.myqcloud.com/schema/lcds_component.json",
|
|
3
|
+
"data": {
|
|
4
|
+
"properties": {
|
|
5
|
+
"text": {
|
|
6
|
+
"title": "按钮标题",
|
|
7
|
+
"default": "获取用户手机号",
|
|
8
|
+
"remarks": "按钮组件的标题",
|
|
9
|
+
"type": "string",
|
|
10
|
+
"x-category": "基础属性",
|
|
11
|
+
"x-platforms": [
|
|
12
|
+
"MP"
|
|
13
|
+
],
|
|
14
|
+
"x-index": 1
|
|
15
|
+
},
|
|
16
|
+
"type": {
|
|
17
|
+
"title": "按钮风格",
|
|
18
|
+
"type": "string",
|
|
19
|
+
"default": "wechat",
|
|
20
|
+
"remarks": "按钮组件的风格,相对于普通按钮组件,新增“微信”按钮风格",
|
|
21
|
+
"enum": [
|
|
22
|
+
{
|
|
23
|
+
"label": "默认",
|
|
24
|
+
"value": "default"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"label": "微信",
|
|
28
|
+
"value": "wechat"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"label": "主要",
|
|
32
|
+
"value": "primary"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"label": "警告",
|
|
36
|
+
"value": "warn"
|
|
37
|
+
}
|
|
38
|
+
],
|
|
39
|
+
"x-category": "基础属性",
|
|
40
|
+
"x-platforms": [
|
|
41
|
+
"MP"
|
|
42
|
+
],
|
|
43
|
+
"x-index": 2
|
|
44
|
+
},
|
|
45
|
+
"size": {
|
|
46
|
+
"title": "按钮大小",
|
|
47
|
+
"type": "string",
|
|
48
|
+
"default": "default",
|
|
49
|
+
"remarks": "按钮的大小",
|
|
50
|
+
"enum": [
|
|
51
|
+
{
|
|
52
|
+
"label": "中",
|
|
53
|
+
"value": "default"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"label": "小",
|
|
57
|
+
"value": "mini"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"label": "大",
|
|
61
|
+
"value": "large"
|
|
62
|
+
}
|
|
63
|
+
],
|
|
64
|
+
"x-category": "基础属性",
|
|
65
|
+
"x-platforms": [
|
|
66
|
+
"MP"
|
|
67
|
+
],
|
|
68
|
+
"x-index": 3
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"events": [
|
|
73
|
+
{
|
|
74
|
+
"title": "手机号授权成功",
|
|
75
|
+
"name": "phonesuccess",
|
|
76
|
+
"remarks": "弹窗中点击了允许按钮后触发的事件",
|
|
77
|
+
"x-platforms": [
|
|
78
|
+
"MP"
|
|
79
|
+
],
|
|
80
|
+
"detail": {
|
|
81
|
+
"phoneNumber": {
|
|
82
|
+
"type": "string",
|
|
83
|
+
"title": "区号+手机号",
|
|
84
|
+
"x-index": 1
|
|
85
|
+
},
|
|
86
|
+
"purePhoneNumber": {
|
|
87
|
+
"type": "string",
|
|
88
|
+
"title": "无区号手机号",
|
|
89
|
+
"x-index": 2
|
|
90
|
+
},
|
|
91
|
+
"countryCode": {
|
|
92
|
+
"type": "string",
|
|
93
|
+
"title": "区号",
|
|
94
|
+
"x-index": 3
|
|
95
|
+
},
|
|
96
|
+
"timestamp": {
|
|
97
|
+
"type": "string",
|
|
98
|
+
"title": "授权时间",
|
|
99
|
+
"x-index": 4
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"title": "手机号授权失败",
|
|
105
|
+
"remarks": "弹窗中点击了拒绝按钮后触发的事件",
|
|
106
|
+
"name": "phonefail",
|
|
107
|
+
"x-platforms": [
|
|
108
|
+
"MP"
|
|
109
|
+
]
|
|
110
|
+
}
|
|
111
|
+
],
|
|
112
|
+
"meta": {
|
|
113
|
+
"title": "获取用户手机号",
|
|
114
|
+
"description": "在小程序运行态对用户的手机号进行获取。",
|
|
115
|
+
"icon": "//imgcache.qq.com/qcloud/lowcode/static/ide/left-material-icon/Phone.svg",
|
|
116
|
+
"category": "微信开放能力",
|
|
117
|
+
"categoryOrder": 100,
|
|
118
|
+
"componentOrder": 2,
|
|
119
|
+
"platform": [
|
|
120
|
+
"MP"
|
|
121
|
+
],
|
|
122
|
+
"visible": [
|
|
123
|
+
"APP"
|
|
124
|
+
],
|
|
125
|
+
"validate": [
|
|
126
|
+
{
|
|
127
|
+
"rule": "checkBusiness",
|
|
128
|
+
"options": {
|
|
129
|
+
"allowFailure": true,
|
|
130
|
+
"title": "小程序组件(获取用户手机号)",
|
|
131
|
+
"description": "组件功能依赖企业主体小程序",
|
|
132
|
+
"type": "mp",
|
|
133
|
+
"version": ""
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
]
|
|
137
|
+
},
|
|
138
|
+
"configMeta": {
|
|
139
|
+
"docsUrl": "https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/wxOpen/Phone"
|
|
140
|
+
}
|
|
141
|
+
}
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://comp-public-1303824488.cos.ap-shanghai.myqcloud.com/schema/lcds_component.json",
|
|
3
|
+
"data": {
|
|
4
|
+
"properties": {
|
|
5
|
+
"text": {
|
|
6
|
+
"title": "按钮标题",
|
|
7
|
+
"default": "获取用户手机号授权令牌",
|
|
8
|
+
"remarks": "按钮组件的标题",
|
|
9
|
+
"type": "string",
|
|
10
|
+
"x-category": "基础属性",
|
|
11
|
+
"x-platforms": [
|
|
12
|
+
"MP"
|
|
13
|
+
],
|
|
14
|
+
"x-index": 1
|
|
15
|
+
},
|
|
16
|
+
"type": {
|
|
17
|
+
"title": "按钮风格",
|
|
18
|
+
"type": "string",
|
|
19
|
+
"default": "wechat",
|
|
20
|
+
"remarks": "按钮组件的风格,相对于普通按钮组件,新增“微信”按钮风格",
|
|
21
|
+
"enum": [
|
|
22
|
+
{
|
|
23
|
+
"label": "默认",
|
|
24
|
+
"value": "default"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"label": "微信",
|
|
28
|
+
"value": "wechat"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"label": "主要",
|
|
32
|
+
"value": "primary"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"label": "警告",
|
|
36
|
+
"value": "warn"
|
|
37
|
+
}
|
|
38
|
+
],
|
|
39
|
+
"x-category": "基础属性",
|
|
40
|
+
"x-platforms": [
|
|
41
|
+
"MP"
|
|
42
|
+
],
|
|
43
|
+
"x-index": 2
|
|
44
|
+
},
|
|
45
|
+
"size": {
|
|
46
|
+
"title": "按钮大小",
|
|
47
|
+
"type": "string",
|
|
48
|
+
"default": "default",
|
|
49
|
+
"remarks": "按钮的大小",
|
|
50
|
+
"enum": [
|
|
51
|
+
{
|
|
52
|
+
"label": "中",
|
|
53
|
+
"value": "default"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"label": "小",
|
|
57
|
+
"value": "mini"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"label": "大",
|
|
61
|
+
"value": "large"
|
|
62
|
+
}
|
|
63
|
+
],
|
|
64
|
+
"x-category": "基础属性",
|
|
65
|
+
"x-platforms": [
|
|
66
|
+
"MP"
|
|
67
|
+
],
|
|
68
|
+
"x-index": 3
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"events": [
|
|
73
|
+
{
|
|
74
|
+
"title": "获取手机号授权令牌成功",
|
|
75
|
+
"name": "phoneCodeSuccess",
|
|
76
|
+
"remarks": "弹窗中点击了允许按钮后触发的事件",
|
|
77
|
+
"x-platforms": [
|
|
78
|
+
"MP"
|
|
79
|
+
],
|
|
80
|
+
"detail": {
|
|
81
|
+
"code": {
|
|
82
|
+
"type": "string",
|
|
83
|
+
"title": "手机号授权令牌",
|
|
84
|
+
"x-index": 1
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"title": "获取手机号授权令牌失败",
|
|
90
|
+
"remarks": "弹窗中点击了拒绝按钮后触发的事件",
|
|
91
|
+
"name": "phoneCodeFail",
|
|
92
|
+
"x-platforms": [
|
|
93
|
+
"MP"
|
|
94
|
+
]
|
|
95
|
+
}
|
|
96
|
+
],
|
|
97
|
+
"meta": {
|
|
98
|
+
"title": "获取用户手机号授权令牌",
|
|
99
|
+
"description": "获取用户手机号授权令牌组件",
|
|
100
|
+
"icon": "//imgcache.qq.com/qcloud/lowcode/static/ide/left-material-icon/Phone.svg",
|
|
101
|
+
"category": "微信开放能力",
|
|
102
|
+
"categoryOrder": 100,
|
|
103
|
+
"componentOrder": 2,
|
|
104
|
+
"platform": [
|
|
105
|
+
"MP"
|
|
106
|
+
],
|
|
107
|
+
"visible": [],
|
|
108
|
+
"validate": [
|
|
109
|
+
{
|
|
110
|
+
"rule": "checkBusiness",
|
|
111
|
+
"options": {
|
|
112
|
+
"allowFailure": true,
|
|
113
|
+
"title": "小程序组件(获取用户手机号授权令牌)",
|
|
114
|
+
"description": "组件功能依赖企业主体小程序",
|
|
115
|
+
"type": "mp",
|
|
116
|
+
"version": ""
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
]
|
|
120
|
+
}
|
|
121
|
+
}
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://comp-public-1303824488.cos.ap-shanghai.myqcloud.com/schema/lcds_component.json",
|
|
3
|
+
"data": {
|
|
4
|
+
"properties": {
|
|
5
|
+
"text": {
|
|
6
|
+
"title": "按钮标题",
|
|
7
|
+
"default": "小程序分享",
|
|
8
|
+
"remarks": "按钮组件的标题",
|
|
9
|
+
"type": "string",
|
|
10
|
+
"x-category": "基础属性",
|
|
11
|
+
"x-platforms": [
|
|
12
|
+
"MP"
|
|
13
|
+
],
|
|
14
|
+
"x-index": 1
|
|
15
|
+
},
|
|
16
|
+
"type": {
|
|
17
|
+
"title": "按钮风格",
|
|
18
|
+
"type": "string",
|
|
19
|
+
"default": "wechat",
|
|
20
|
+
"remarks": "按钮组件的风格,相对于普通按钮组件,新增“微信”按钮风格",
|
|
21
|
+
"enum": [
|
|
22
|
+
{
|
|
23
|
+
"label": "默认",
|
|
24
|
+
"value": "default"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"label": "微信",
|
|
28
|
+
"value": "wechat"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"label": "主要",
|
|
32
|
+
"value": "primary"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"label": "警告",
|
|
36
|
+
"value": "warn"
|
|
37
|
+
}
|
|
38
|
+
],
|
|
39
|
+
"x-category": "基础属性",
|
|
40
|
+
"x-platforms": [
|
|
41
|
+
"MP"
|
|
42
|
+
],
|
|
43
|
+
"x-index": 2
|
|
44
|
+
},
|
|
45
|
+
"size": {
|
|
46
|
+
"title": "按钮大小",
|
|
47
|
+
"type": "string",
|
|
48
|
+
"default": "default",
|
|
49
|
+
"remarks": "按钮的大小",
|
|
50
|
+
"enum": [
|
|
51
|
+
{
|
|
52
|
+
"label": "中",
|
|
53
|
+
"value": "default"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"label": "小",
|
|
57
|
+
"value": "mini"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"label": "大",
|
|
61
|
+
"value": "large"
|
|
62
|
+
}
|
|
63
|
+
],
|
|
64
|
+
"x-category": "基础属性",
|
|
65
|
+
"x-platforms": [
|
|
66
|
+
"MP"
|
|
67
|
+
],
|
|
68
|
+
"x-index": 3
|
|
69
|
+
},
|
|
70
|
+
"title": {
|
|
71
|
+
"title": "{{text('分享标题', help('分享(转发)卡片的标题'))}}",
|
|
72
|
+
"type": "string",
|
|
73
|
+
"default": "",
|
|
74
|
+
"x-category": "基础属性",
|
|
75
|
+
"description": "",
|
|
76
|
+
"remarks": "分享(转发)卡片的标题",
|
|
77
|
+
"x-component": "textarea",
|
|
78
|
+
"x-platforms": [
|
|
79
|
+
"MP"
|
|
80
|
+
],
|
|
81
|
+
"x-index": 4
|
|
82
|
+
},
|
|
83
|
+
"image": {
|
|
84
|
+
"title": "{{text('分享图片', help('分享(转发)卡片的图片'))}}",
|
|
85
|
+
"type": "string",
|
|
86
|
+
"x-component": "image",
|
|
87
|
+
"default": "",
|
|
88
|
+
"x-platforms": [
|
|
89
|
+
"MP"
|
|
90
|
+
],
|
|
91
|
+
"description": "",
|
|
92
|
+
"remarks": "分享(转发)卡片的图片",
|
|
93
|
+
"x-category": "基础属性",
|
|
94
|
+
"x-index": 5
|
|
95
|
+
},
|
|
96
|
+
"path": {
|
|
97
|
+
"type": "string",
|
|
98
|
+
"title": "{{text('选择页面', help('选择分享(转发)的页面'))}}",
|
|
99
|
+
"default": "",
|
|
100
|
+
"x-index": 6,
|
|
101
|
+
"addHidden": true,
|
|
102
|
+
"x-category": "基础属性",
|
|
103
|
+
"remarks": "选择分享(转发)的页面",
|
|
104
|
+
"x-linkages": [
|
|
105
|
+
{
|
|
106
|
+
"type": "value:state",
|
|
107
|
+
"state": {
|
|
108
|
+
"pageId": "{{$self.value}}"
|
|
109
|
+
},
|
|
110
|
+
"target": "*(params)",
|
|
111
|
+
"condition": "{{$self.value && $self.value.length>0}}"
|
|
112
|
+
}
|
|
113
|
+
],
|
|
114
|
+
"description": "",
|
|
115
|
+
"x-component": "page-list",
|
|
116
|
+
"x-component-props": {
|
|
117
|
+
"hideAddPlatform": [
|
|
118
|
+
"MP"
|
|
119
|
+
]
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
"withParams": {
|
|
123
|
+
"type": "boolean",
|
|
124
|
+
"title": "携带参数",
|
|
125
|
+
"x-category": "基础属性",
|
|
126
|
+
"default": false,
|
|
127
|
+
"remarks": "分享(转发)的页面path是否携带参数",
|
|
128
|
+
"x-index": 7,
|
|
129
|
+
"x-linkages": [
|
|
130
|
+
{
|
|
131
|
+
"type": "value:visible",
|
|
132
|
+
"target": "params",
|
|
133
|
+
"condition": "{{$self.value===true}}"
|
|
134
|
+
}
|
|
135
|
+
]
|
|
136
|
+
},
|
|
137
|
+
"params": {
|
|
138
|
+
"type": "array",
|
|
139
|
+
"title": "参数",
|
|
140
|
+
"x-category": "基础属性",
|
|
141
|
+
"remarks": "分享(转发)的页面的参数,会自动获取到当前选择页面内存在的页面参数并自动根据页面参数进行展开,当用户通过转发的链接进入小程序时,页面便会按照配置的参数进行渲染。如果采用绑定数据的方式,数据格式参考如下:[{key: 'paramKey1', value: 'paramValue1'}, {key: 'paramKey2', value: 'paramValue2'}]",
|
|
142
|
+
"pageId": "",
|
|
143
|
+
"default": [],
|
|
144
|
+
"x-index": 8,
|
|
145
|
+
"x-component": "page-params"
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
"events": [],
|
|
150
|
+
"meta": {
|
|
151
|
+
"title": "小程序分享",
|
|
152
|
+
"description": "支持快捷实现小程序分享功能。",
|
|
153
|
+
"icon": "//imgcache.qq.com/qcloud/lowcode/static/ide/left-material-icon/Share.svg",
|
|
154
|
+
"category": "微信开放能力",
|
|
155
|
+
"categoryOrder": 100,
|
|
156
|
+
"componentOrder": 3,
|
|
157
|
+
"platform": [
|
|
158
|
+
"MP"
|
|
159
|
+
],
|
|
160
|
+
"visible": [
|
|
161
|
+
"APP"
|
|
162
|
+
]
|
|
163
|
+
},
|
|
164
|
+
"configMeta": {
|
|
165
|
+
"docsUrl": "https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/wxOpen/Share"
|
|
166
|
+
}
|
|
167
|
+
}
|