@cloudbase/weda-ui 2.0.9 → 2.0.12
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 +1 -0
- package/package.json +13 -5
- package/src/configs/components/button.json +60 -13
- package/src/configs/components/calendar.json +3 -3
- package/src/configs/components/carousel.json +57 -47
- package/src/configs/components/chart/bar.json +4 -13
- package/src/configs/components/chart/line.json +4 -13
- package/src/configs/components/chart/pie.json +3 -10
- package/src/configs/components/chart/statisticsCard.json +1 -4
- package/src/configs/components/container.json +1 -3
- package/src/configs/components/dataView.json +7 -15
- package/src/configs/components/drawer.json +24 -6
- package/src/configs/components/form/form.json +19 -0
- package/src/configs/components/form/input.json +20 -5
- package/src/configs/components/form/location.json +51 -48
- package/src/configs/components/form/radio.json +1 -3
- package/src/configs/components/form/richText.json +14 -14
- package/src/configs/components/form/select.json +62 -82
- package/src/configs/components/form/textarea.json +6 -1
- package/src/configs/components/form/uploader.json +64 -64
- package/src/configs/components/form/uploaderFile.json +1 -2
- package/src/configs/components/graphicCard.json +43 -44
- package/src/configs/components/image.json +44 -40
- package/src/configs/components/link.json +5 -10
- package/src/configs/components/listView.json +2 -8
- package/src/configs/components/lottery.json +7 -3
- package/src/configs/components/modal.json +26 -21
- package/src/configs/components/navLayout.json +66 -67
- package/src/configs/components/navigationBar.json +4 -1
- package/src/configs/components/richtextview.json +1 -1
- package/src/configs/components/scrollVeiw.json +14 -42
- package/src/configs/components/swiper.json +9 -9
- package/src/configs/components/wedaVideo.json +86 -0
- package/src/configs/components/wxOpenApi/phone.json +7 -21
- package/src/configs/components/wxOpenApi/phoneCode.json +7 -19
- package/src/configs/components/wxOpenApi/share.json +14 -24
- package/src/configs/components/wxOpenApi/userInfo.json +9 -27
- package/src/configs/index.js +2 -0
- package/src/docs/common/format.tsx +4 -1
- package/src/docs/common/tableView.css +3 -3
- package/src/docs/common/tableView.tsx +18 -8
- package/src/docs/compsdocs/form/FormLocation.mdx +1 -1
- package/src/docs/compsdocs/form/FormSelect.mdx +0 -1
- package/src/docs/compsdocs/grid/Card.mdx +0 -1
- package/src/docs/compsdocs/grid/Container.mdx +0 -1
- package/src/docs/compsdocs/grid/GridLayout.mdx +0 -1
- package/src/docs/compsdocs/grid/ScrollView.mdx +2 -2
- package/src/docs/compsdocs/grid/Swiper.mdx +1 -2
- package/src/docs/compsdocs/media/Icon.mdx +1 -1
- package/src/docs/compsdocs/media/Image.mdx +6 -6
- package/src/docs/compsdocs/model/ModelCreate.mdx +24 -0
- package/src/docs/compsdocs/model/ModelDetail.mdx +24 -0
- package/src/docs/compsdocs/model/ModelTable.mdx +133 -1
- package/src/docs/compsdocs/model/ModelUpdate.mdx +24 -1
- package/src/docs/compsdocs/navmenu/Classification.mdx +2 -3
- package/src/docs/compsdocs/navmenu/NavBar.mdx +14 -5
- package/src/docs/compsdocs/navmenu/NavLayout.mdx +0 -1
- package/src/docs/compsdocs/navmenu/TabBar.mdx +3 -3
- package/src/docs/compsdocs/navmenu/TabBarItem.mdx +1 -1
- package/src/docs/compsdocs/senior/Lottery.mdx +3 -6
- package/src/docs/compsdocs/senior/Modal.mdx +2 -3
- package/src/docs/compsdocs/senior/SlotMachine.mdx +2 -5
- package/src/docs/compsdocs/senior/_category_.json +1 -1
- package/src/docs/compsdocs/show/GraphicCard.mdx +0 -1
- package/src/docs/compsdocs/show/Item.mdx +0 -1
- package/src/docs/compsdocs/show/ItemList.mdx +1 -0
- package/src/docs/compsdocs/show/Tabs.mdx +2 -3
- package/src/docs/compsdocs/text/Link.mdx +1 -1
- package/src/docs/compsdocs/text/RichTextView.mdx +1 -2
- package/src/docs/compsdocs/text/Text.mdx +1 -1
- package/src/docs/compsdocs/text/Title.mdx +1 -2
- package/src/docs/compsdocs/wxOpen/Phone.mdx +1 -2
- package/src/docs/compsdocs/wxOpen/Share.mdx +0 -1
- package/src/docs/compsdocs/wxOpen/UserInfo.mdx +1 -2
- package/src/mp/components/button/index.js +1 -1
- package/src/mp/components/button/index.wxml +19 -19
- package/src/mp/components/calendar/index.js +64 -37
- package/src/mp/components/calendar/index.json +1 -1
- package/src/mp/components/calendar/index.wxml +4 -6
- package/src/mp/components/carousel/index.json +1 -1
- package/src/mp/components/carousel/index.wxml +2 -2
- package/src/mp/components/chart/bar/index.js +1 -2
- package/src/mp/components/chart/bar/index.wxml +1 -1
- package/src/mp/components/chart/common/config/bar.js +1 -1
- package/src/mp/components/chart/common/core/eChartBar.js +29 -34
- package/src/mp/components/chart/common/core/eChartBase.js +46 -32
- package/src/mp/components/chart/common/core/eChartLine.js +34 -40
- package/src/mp/components/chart/common/core/eChartPie.js +12 -9
- package/src/mp/components/chart/ec-canvas/ec-canvas.json +1 -1
- package/src/mp/components/chart/ec-canvas/wx-canvas.js +24 -22
- package/src/mp/components/chart/line/index.js +2 -2
- package/src/mp/components/chart/line/index.wxml +1 -1
- package/src/mp/components/chart/pie/index.js +1 -1
- package/src/mp/components/chart/pie/index.wxml +1 -2
- package/src/mp/components/dataView/index.wxml +2 -14
- package/src/mp/components/form/checkbox/index.js +10 -6
- package/src/mp/components/form/checkbox/index.wxml +13 -25
- package/src/mp/components/form/form/index.wxml +3 -3
- package/src/mp/components/form/formcell/index.wxml +9 -9
- package/src/mp/components/form/formcell/index.wxss +6 -1
- package/src/mp/components/form/input/index.js +3 -3
- package/src/mp/components/form/input/index.wxml +24 -31
- package/src/mp/components/form/input/index.wxss +9 -3
- package/src/mp/components/form/location/components/mapChoose/index.json +1 -1
- package/src/mp/components/form/location/components/mapChoose/index.wxml +6 -6
- package/src/mp/components/form/location/index.js +7 -1
- package/src/mp/components/form/location/index.json +1 -1
- package/src/mp/components/form/location/index.wxml +6 -10
- package/src/mp/components/form/radio/index.js +9 -5
- package/src/mp/components/form/radio/index.wxml +12 -24
- package/src/mp/components/form/select/index.js +156 -97
- package/src/mp/components/form/select/index.wxml +11 -39
- package/src/mp/components/form/select/index.wxss +14 -3
- package/src/mp/components/form/select/region/index.js +18 -12
- package/src/mp/components/form/switch/index.wxml +11 -18
- package/src/mp/components/form/textarea/index.wxml +2 -17
- package/src/mp/components/form/textarea/index.wxss +5 -0
- package/src/mp/components/form/tips/index.wxml +1 -3
- package/src/mp/components/form/uploader/index.js +1 -1
- package/src/mp/components/form/uploader/index.wxml +3 -20
- package/src/mp/components/form/uploader/weui-uploader.js +210 -200
- package/src/mp/components/form/uploader/weui-uploader.json +6 -6
- package/src/mp/components/form/uploader/weui-uploader.wxml +38 -38
- package/src/mp/components/form/uploaderFile/index.js +5 -4
- package/src/mp/components/form/uploaderFile/index.wxml +40 -41
- package/src/mp/components/graphicCard/index.js +35 -35
- package/src/mp/components/graphicCard/index.wxml +2 -6
- package/src/mp/components/image/index.wxml +9 -20
- package/src/mp/components/image/index.wxss +3 -1
- package/src/mp/components/listView/index.wxml +5 -7
- package/src/mp/components/lottery/index.wxml +1 -3
- package/src/mp/components/lottery/index.wxss +31 -25
- package/src/mp/components/navLayout/index.js +9 -12
- package/src/mp/components/navLayout/index.wxml +2 -4
- package/src/mp/components/navigationBar/index.json +1 -2
- package/src/mp/components/navigationBar/index.wxml +43 -51
- package/src/mp/components/swiper/index.wxml +1 -9
- package/src/mp/components/tabs/index.js +14 -10
- package/src/mp/components/tabs/index.json +1 -1
- package/src/mp/components/tabs/index.wxml +3 -21
- package/src/mp/components/text/index.wxml +1 -6
- package/src/mp/components/text/index.wxss +1 -1
- package/src/mp/components/wedaVideo/index.js +86 -0
- package/src/mp/components/wedaVideo/index.json +4 -0
- package/src/mp/components/wedaVideo/index.wxml +4 -0
- package/src/mp/components/wedaVideo/index.wxss +20 -0
- package/src/mp/components/wxOpenApi/phone/index.js +1 -9
- package/src/mp/components/wxOpenApi/phone/index.wxml +3 -14
- package/src/mp/components/wxOpenApi/phoneCode/index.json +1 -1
- package/src/mp/components/wxOpenApi/phoneCode/index.wxml +3 -14
- package/src/mp/components/wxOpenApi/share/index.wxml +3 -14
- package/src/mp/components/wxOpenApi/userInfo/index.wxml +3 -13
- package/src/mp/index.json +1 -0
- package/src/mp/style/weda-ui.wxss +20 -7
- package/src/mp/utils/deepEqual.js +37 -37
- package/src/mp/utils/destr.js +41 -40
- package/src/mp/utils/dr_square_point.js +10 -6
- package/src/setupTests.js +13 -13
- package/src/web/actions/showModal/index.tsx +5 -4
- package/src/web/components/button/index.tsx +44 -40
- package/src/web/components/calendar/index.css +81 -34
- package/src/web/components/carousel/index.tsx +1 -1
- package/src/web/components/chart/common/config/bar.js +1 -1
- package/src/web/components/chart/common/core/eChartBar.js +28 -34
- package/src/web/components/chart/common/core/eChartBase.ts +55 -42
- package/src/web/components/chart/common/core/eChartLine.js +34 -40
- package/src/web/components/chart/common/core/eChartPie.js +12 -9
- package/src/web/components/chart/common/core/type.ts +23 -23
- package/src/web/components/chart/common/echart.css +12 -12
- package/src/web/components/chart/common/echarts.ts +3 -5
- package/src/web/components/chart/common/useChart.tsx +34 -16
- package/src/web/components/container/index.tsx +3 -4
- package/src/web/components/drawer/index.tsx +15 -4
- package/src/web/components/form/checkbox/index.tsx +32 -31
- package/src/web/components/form/enumSelect/NormalSelect.tsx +0 -2
- package/src/web/components/form/form/index.css +3 -6
- package/src/web/components/form/form/index.tsx +7 -6
- package/src/web/components/form/formcell/index.css +10 -4
- package/src/web/components/form/formcell/index.tsx +3 -7
- package/src/web/components/form/input/index.css +4 -4
- package/src/web/components/form/input/index.tsx +61 -53
- package/src/web/components/form/location/common/selectModal.jsx +2 -11
- package/src/web/components/form/location/common/useLocationInfo.js +4 -0
- package/src/web/components/form/location/components/LocationH5/index.css +0 -1
- package/src/web/components/form/location/components/LocationH5/location.h5.jsx +11 -1
- package/src/web/components/form/location/components/LocationPC/Header.jsx +0 -13
- package/src/web/components/form/location/components/LocationPC/location.PC.jsx +14 -5
- package/src/web/components/form/radio/index.tsx +32 -26
- package/src/web/components/form/renderDecorator.tsx +23 -26
- package/src/web/components/form/select/h5.tsx +154 -103
- package/src/web/components/form/select/index.css +9 -3
- package/src/web/components/form/select/index.tsx +75 -48
- package/src/web/components/form/select/region/index.ts +101 -80
- package/src/web/components/form/select/year.tsx +2 -0
- package/src/web/components/form/switch/index.tsx +40 -40
- package/src/web/components/form/textarea/index.css +4 -0
- package/src/web/components/form/textarea/index.tsx +27 -26
- package/src/web/components/form/types.d.ts +10 -10
- package/src/web/components/form/uploader/uploader.h5.tsx +26 -20
- package/src/web/components/form/uploaderFile/index.jsx +0 -5
- package/src/web/components/form/uploaderFile/uploadFile.h5.tsx +15 -11
- package/src/web/components/form/uploaderFile/uploadFile.pc.tsx +14 -9
- package/src/web/components/image/image.tsx +2 -2
- package/src/web/components/image/index.css +9 -7
- package/src/web/components/image/index.tsx +29 -12
- package/src/web/components/index.js +1 -0
- package/src/web/components/link/index.tsx +13 -13
- package/src/web/components/lottery/index.css +43 -37
- package/src/web/components/lottery/index.tsx +2 -2
- package/src/web/components/modal/index.tsx +34 -34
- package/src/web/components/navLayout/index.tsx +1 -1
- package/src/web/components/navigationBar/index.tsx +2 -2
- package/src/web/components/picker/datePicker.tsx +3 -3
- package/src/web/components/picker/picker.tsx +3 -3
- package/src/web/components/picker/timePicker.tsx +1 -1
- package/src/web/components/richText/index.jsx +41 -46
- package/src/web/components/richTextView/index.tsx +4 -6
- package/src/web/components/scrollView/index.tsx +2 -2
- package/src/web/components/slot/index.tsx +3 -4
- package/src/web/components/swiper/index.css +1 -1
- package/src/web/components/swiper/index.tsx +33 -15
- package/src/web/components/tabs/index.css +1 -1
- package/src/web/components/tabs/index.tsx +6 -6
- package/src/web/components/tabs/tabs.h5.tsx +17 -12
- package/src/web/components/tabs/tabs.pc.tsx +45 -34
- package/src/web/components/text/index.css +1 -1
- package/src/web/components/text/index.tsx +13 -14
- package/src/web/components/wedaVideo/index.css +42 -0
- package/src/web/components/wedaVideo/index.tsx +198 -0
- package/src/web/utils/constant.ts +2 -1
- package/src/web/utils/isObjectEqual.js +2 -1
- package/src/web/utils/loading-fallback.tsx +2 -2
- package/src/web/utils/lodash.ts +1 -1
- package/src/web/utils/useSetState.ts +6 -2
- package/src/web/weda-ui.css +17 -0
|
@@ -2,6 +2,42 @@
|
|
|
2
2
|
"$schema": "https://comp-public-1303824488.cos.ap-shanghai.myqcloud.com/schema/lcds_component.json",
|
|
3
3
|
"data": {
|
|
4
4
|
"properties": {
|
|
5
|
+
"title": {
|
|
6
|
+
"type": "string",
|
|
7
|
+
"default": "上传图片",
|
|
8
|
+
"title": "标题",
|
|
9
|
+
"x-category": "基础属性",
|
|
10
|
+
"x-index": 1
|
|
11
|
+
},
|
|
12
|
+
"tips": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"default": "上传图片提示",
|
|
15
|
+
"title": "提示",
|
|
16
|
+
"x-category": "基础属性",
|
|
17
|
+
"x-index": 2
|
|
18
|
+
},
|
|
19
|
+
"btnTitle": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"default": "上传图片",
|
|
22
|
+
"title": "按钮名称",
|
|
23
|
+
"x-category": "基础属性",
|
|
24
|
+
"x-index": 3,
|
|
25
|
+
"x-platforms": ["PCWEB"]
|
|
26
|
+
},
|
|
27
|
+
"maxUploadCount": {
|
|
28
|
+
"type": "number",
|
|
29
|
+
"default": 9,
|
|
30
|
+
"title": "最大上传数",
|
|
31
|
+
"x-category": "基础属性",
|
|
32
|
+
"x-index": 4
|
|
33
|
+
},
|
|
34
|
+
"maxSize": {
|
|
35
|
+
"type": "number",
|
|
36
|
+
"default": 10,
|
|
37
|
+
"title": "单张大小(M)",
|
|
38
|
+
"x-category": "基础属性",
|
|
39
|
+
"x-index": 5
|
|
40
|
+
},
|
|
5
41
|
"acceptTypes": {
|
|
6
42
|
"type": "array",
|
|
7
43
|
"title": "图片类型",
|
|
@@ -39,6 +75,34 @@
|
|
|
39
75
|
]
|
|
40
76
|
}
|
|
41
77
|
},
|
|
78
|
+
"required": {
|
|
79
|
+
"type": "boolean",
|
|
80
|
+
"title": "是否必填",
|
|
81
|
+
"default": false,
|
|
82
|
+
"x-index": 190,
|
|
83
|
+
"x-category": "高级属性",
|
|
84
|
+
"x-linkages": [
|
|
85
|
+
{
|
|
86
|
+
"type": "value:visible",
|
|
87
|
+
"target": "*(requiredFlag,requiredMsg)",
|
|
88
|
+
"condition": "{{$self.value}}"
|
|
89
|
+
}
|
|
90
|
+
]
|
|
91
|
+
},
|
|
92
|
+
"requiredMsg": {
|
|
93
|
+
"type": "string",
|
|
94
|
+
"title": "校验错误提示",
|
|
95
|
+
"default": "该项为必填项",
|
|
96
|
+
"x-index": 191,
|
|
97
|
+
"x-category": "高级属性"
|
|
98
|
+
},
|
|
99
|
+
"requiredFlag": {
|
|
100
|
+
"type": "boolean",
|
|
101
|
+
"title": "显示必填标记",
|
|
102
|
+
"default": false,
|
|
103
|
+
"x-index": 192,
|
|
104
|
+
"x-category": "高级属性"
|
|
105
|
+
},
|
|
42
106
|
"layout": {
|
|
43
107
|
"title": "布局方式",
|
|
44
108
|
"type": "string",
|
|
@@ -61,42 +125,6 @@
|
|
|
61
125
|
"title": "是否禁用",
|
|
62
126
|
"x-category": "基础属性"
|
|
63
127
|
},
|
|
64
|
-
"maxSize": {
|
|
65
|
-
"type": "number",
|
|
66
|
-
"default": 10,
|
|
67
|
-
"title": "单张大小(M)",
|
|
68
|
-
"x-category": "基础属性",
|
|
69
|
-
"x-index": 5
|
|
70
|
-
},
|
|
71
|
-
"maxUploadCount": {
|
|
72
|
-
"type": "number",
|
|
73
|
-
"default": 9,
|
|
74
|
-
"title": "最大上传数",
|
|
75
|
-
"x-category": "基础属性",
|
|
76
|
-
"x-index": 4
|
|
77
|
-
},
|
|
78
|
-
"btnTitle": {
|
|
79
|
-
"type": "string",
|
|
80
|
-
"default": "上传图片",
|
|
81
|
-
"title": "按钮名称",
|
|
82
|
-
"x-category": "基础属性",
|
|
83
|
-
"x-index": 3,
|
|
84
|
-
"x-platforms": ["PCWEB"]
|
|
85
|
-
},
|
|
86
|
-
"tips": {
|
|
87
|
-
"type": "string",
|
|
88
|
-
"default": "上传图片提示",
|
|
89
|
-
"title": "提示",
|
|
90
|
-
"x-category": "基础属性",
|
|
91
|
-
"x-index": 2
|
|
92
|
-
},
|
|
93
|
-
"title": {
|
|
94
|
-
"type": "string",
|
|
95
|
-
"default": "上传图片",
|
|
96
|
-
"title": "标题",
|
|
97
|
-
"x-category": "基础属性",
|
|
98
|
-
"x-index": 1
|
|
99
|
-
},
|
|
100
128
|
"labelVisible": {
|
|
101
129
|
"type": "boolean",
|
|
102
130
|
"default": true,
|
|
@@ -108,34 +136,6 @@
|
|
|
108
136
|
"title": "是否返回单张图片",
|
|
109
137
|
"x-category": "基础属性"
|
|
110
138
|
},
|
|
111
|
-
"required": {
|
|
112
|
-
"type": "boolean",
|
|
113
|
-
"title": "是否必填",
|
|
114
|
-
"default": false,
|
|
115
|
-
"x-index": 190,
|
|
116
|
-
"x-category": "高级属性",
|
|
117
|
-
"x-linkages": [
|
|
118
|
-
{
|
|
119
|
-
"type": "value:visible",
|
|
120
|
-
"target": "*(requiredFlag,requiredMsg)",
|
|
121
|
-
"condition": "{{$self.value}}"
|
|
122
|
-
}
|
|
123
|
-
]
|
|
124
|
-
},
|
|
125
|
-
"requiredMsg": {
|
|
126
|
-
"type": "string",
|
|
127
|
-
"title": "校验错误提示",
|
|
128
|
-
"default": "该项为必填项",
|
|
129
|
-
"x-index": 191,
|
|
130
|
-
"x-category": "高级属性"
|
|
131
|
-
},
|
|
132
|
-
"requiredFlag": {
|
|
133
|
-
"type": "boolean",
|
|
134
|
-
"title": "显示必填标记",
|
|
135
|
-
"default": false,
|
|
136
|
-
"x-index": 192,
|
|
137
|
-
"x-category": "高级属性"
|
|
138
|
-
},
|
|
139
139
|
"defaultValue": {
|
|
140
140
|
"x-category": "基础属性",
|
|
141
141
|
"title": "初始默认值",
|
|
@@ -23,7 +23,6 @@
|
|
|
23
23
|
"x-category": "基础属性",
|
|
24
24
|
"x-index": 30
|
|
25
25
|
},
|
|
26
|
-
|
|
27
26
|
"maxUploadCount": {
|
|
28
27
|
"type": "number",
|
|
29
28
|
"default": 9,
|
|
@@ -154,6 +153,6 @@
|
|
|
154
153
|
"title": "上传文件",
|
|
155
154
|
"description": "上传文件组件",
|
|
156
155
|
"category": "表单",
|
|
157
|
-
"icon":"//imgcache.qq.com/qcloud/lowcode/static/ide/left-material-icon/UploadFile.svg"
|
|
156
|
+
"icon": "//imgcache.qq.com/qcloud/lowcode/static/ide/left-material-icon/UploadFile.svg"
|
|
158
157
|
}
|
|
159
158
|
}
|
|
@@ -20,6 +20,12 @@
|
|
|
20
20
|
"icon": {
|
|
21
21
|
"type": "string",
|
|
22
22
|
"x-component": "image",
|
|
23
|
+
"x-rules": [
|
|
24
|
+
{
|
|
25
|
+
"message": "请输入合法的图片地址",
|
|
26
|
+
"pattern": "^(((https?)://)|/resources/)[^\\s]+$"
|
|
27
|
+
}
|
|
28
|
+
],
|
|
23
29
|
"title": "图片",
|
|
24
30
|
"default": "https://qcloudimg.tencent-cloud.cn/raw/478c35e469057b4d6352ccc14e00ebc5.png",
|
|
25
31
|
"x-index": 20
|
|
@@ -54,18 +60,13 @@
|
|
|
54
60
|
"icon": "weda-editor-icon-link",
|
|
55
61
|
"tooltip": [
|
|
56
62
|
{
|
|
57
|
-
"platform": [
|
|
58
|
-
"ALL",
|
|
59
|
-
"MP"
|
|
60
|
-
],
|
|
63
|
+
"platform": ["ALL", "MP"],
|
|
61
64
|
"text": "小程序平台不支持跳转外部链接"
|
|
62
65
|
}
|
|
63
66
|
],
|
|
64
67
|
"disabled": [
|
|
65
68
|
{
|
|
66
|
-
"platform": [
|
|
67
|
-
"MP"
|
|
68
|
-
]
|
|
69
|
+
"platform": ["MP"]
|
|
69
70
|
}
|
|
70
71
|
]
|
|
71
72
|
}
|
|
@@ -106,9 +107,7 @@
|
|
|
106
107
|
"x-category": "基础属性",
|
|
107
108
|
"x-index": 120,
|
|
108
109
|
"x-component-props": {
|
|
109
|
-
"hideAddPlatform": [
|
|
110
|
-
"MP"
|
|
111
|
-
],
|
|
110
|
+
"hideAddPlatform": ["MP"],
|
|
112
111
|
"addHidden": true
|
|
113
112
|
},
|
|
114
113
|
"x-linkages": [
|
|
@@ -183,40 +182,6 @@
|
|
|
183
182
|
"x-component": "list",
|
|
184
183
|
"remarks": "配置图文卡片的详细内容"
|
|
185
184
|
},
|
|
186
|
-
"ColMobile": {
|
|
187
|
-
"type": "number",
|
|
188
|
-
"default": 2,
|
|
189
|
-
"title": "移动端列数",
|
|
190
|
-
"x-category": "基础属性",
|
|
191
|
-
"remarks": "移动端每行卡片列数",
|
|
192
|
-
"enum": [
|
|
193
|
-
{
|
|
194
|
-
"label": "1",
|
|
195
|
-
"value": 1
|
|
196
|
-
},
|
|
197
|
-
{
|
|
198
|
-
"label": "2",
|
|
199
|
-
"value": 2
|
|
200
|
-
}
|
|
201
|
-
]
|
|
202
|
-
},
|
|
203
|
-
"ColPC": {
|
|
204
|
-
"type": "number",
|
|
205
|
-
"default": 4,
|
|
206
|
-
"title": "PC端列数",
|
|
207
|
-
"x-category": "基础属性",
|
|
208
|
-
"remarks": "PC端每行卡片列数",
|
|
209
|
-
"enum": [
|
|
210
|
-
{
|
|
211
|
-
"label": "3",
|
|
212
|
-
"value": 3
|
|
213
|
-
},
|
|
214
|
-
{
|
|
215
|
-
"label": "4",
|
|
216
|
-
"value": 4
|
|
217
|
-
}
|
|
218
|
-
]
|
|
219
|
-
},
|
|
220
185
|
"textAlign": {
|
|
221
186
|
"title": "对齐",
|
|
222
187
|
"type": "string",
|
|
@@ -398,6 +363,40 @@
|
|
|
398
363
|
"default": "查看详情",
|
|
399
364
|
"x-category": "高级属性",
|
|
400
365
|
"x-index": 160
|
|
366
|
+
},
|
|
367
|
+
"ColMobile": {
|
|
368
|
+
"type": "number",
|
|
369
|
+
"default": 2,
|
|
370
|
+
"title": "移动端列数",
|
|
371
|
+
"x-category": "基础属性",
|
|
372
|
+
"remarks": "移动端每行卡片列数",
|
|
373
|
+
"enum": [
|
|
374
|
+
{
|
|
375
|
+
"label": "1",
|
|
376
|
+
"value": 1
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
"label": "2",
|
|
380
|
+
"value": 2
|
|
381
|
+
}
|
|
382
|
+
]
|
|
383
|
+
},
|
|
384
|
+
"ColPC": {
|
|
385
|
+
"type": "number",
|
|
386
|
+
"default": 4,
|
|
387
|
+
"title": "PC端列数",
|
|
388
|
+
"x-category": "基础属性",
|
|
389
|
+
"remarks": "PC端每行卡片列数",
|
|
390
|
+
"enum": [
|
|
391
|
+
{
|
|
392
|
+
"label": "3",
|
|
393
|
+
"value": 3
|
|
394
|
+
},
|
|
395
|
+
{
|
|
396
|
+
"label": "4",
|
|
397
|
+
"value": 4
|
|
398
|
+
}
|
|
399
|
+
]
|
|
401
400
|
}
|
|
402
401
|
}
|
|
403
402
|
},
|
|
@@ -6,28 +6,38 @@
|
|
|
6
6
|
"title": "图片地址",
|
|
7
7
|
"type": "string",
|
|
8
8
|
"x-component": "image",
|
|
9
|
+
"x-rules": [
|
|
10
|
+
{
|
|
11
|
+
"message": "请输入合法的图片地址",
|
|
12
|
+
"pattern": "^(((https?)://)|/resources/)[^\\s]+$"
|
|
13
|
+
}
|
|
14
|
+
],
|
|
9
15
|
"default": "https://main.qcloudimg.com/raw/c85c9a875e9754545ee19f20438b2caa.svg",
|
|
10
16
|
"x-category": "基础属性",
|
|
11
17
|
"x-index": 1,
|
|
12
|
-
"remarks":"更改需要展示的图片"
|
|
18
|
+
"remarks": "更改需要展示的图片"
|
|
13
19
|
},
|
|
14
|
-
"
|
|
15
|
-
"title": "
|
|
20
|
+
"fit": {
|
|
21
|
+
"title": "布局模式",
|
|
16
22
|
"type": "string",
|
|
17
|
-
"default": "
|
|
18
|
-
"
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
"default": "cover",
|
|
24
|
+
"enum": [
|
|
25
|
+
{
|
|
26
|
+
"value": "cover",
|
|
27
|
+
"label": "铺满"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"value": "contain",
|
|
31
|
+
"label": "适合"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"value": "fill",
|
|
35
|
+
"label": "拉伸"
|
|
36
|
+
}
|
|
27
37
|
],
|
|
28
|
-
"x-category": "
|
|
29
|
-
"
|
|
30
|
-
"remarks":"
|
|
38
|
+
"x-category": "基础属性",
|
|
39
|
+
"x-index": 2,
|
|
40
|
+
"remarks": "更改图片的布局模式"
|
|
31
41
|
},
|
|
32
42
|
"imgPreview": {
|
|
33
43
|
"title": "点击预览大图",
|
|
@@ -42,7 +52,7 @@
|
|
|
42
52
|
"condition": "{{ $self.value }}"
|
|
43
53
|
}
|
|
44
54
|
],
|
|
45
|
-
"remarks":"开启后,点击图片后图片会展示为大图"
|
|
55
|
+
"remarks": "开启后,点击图片后图片会展示为大图"
|
|
46
56
|
},
|
|
47
57
|
"maskClosable": {
|
|
48
58
|
"title": "再次点击关闭预览",
|
|
@@ -51,35 +61,29 @@
|
|
|
51
61
|
"default": true,
|
|
52
62
|
"x-category": "基础属性"
|
|
53
63
|
},
|
|
64
|
+
"alt": {
|
|
65
|
+
"title": "替代文字",
|
|
66
|
+
"type": "string",
|
|
67
|
+
"default": "[图片]",
|
|
68
|
+
"x-category": "高级属性",
|
|
69
|
+
"description": "用于图片加载失败 或 屏幕阅读器替代显示",
|
|
70
|
+
"remarks": "当图片加载失败时,会展示此处配置的文本内容"
|
|
71
|
+
},
|
|
72
|
+
"showMenuByLongpress": {
|
|
73
|
+
"title": "识别小程序码",
|
|
74
|
+
"type": "boolean",
|
|
75
|
+
"x-platforms": ["MP"],
|
|
76
|
+
"x-category": "高级属性",
|
|
77
|
+
"description": "小程序专有属性,长按图片可唤起识别小程序码功能",
|
|
78
|
+
"remarks": "只有小程序端构建时生效,长按图片可唤起识别小程序码功能"
|
|
79
|
+
},
|
|
54
80
|
"lazyLoad": {
|
|
55
81
|
"title": "懒加载",
|
|
56
82
|
"type": "boolean",
|
|
57
83
|
"default": false,
|
|
58
84
|
"x-category": "高级属性",
|
|
59
85
|
"description": "图片按需加载,若图片没有被展示,则不会加载",
|
|
60
|
-
"remarks":"图片按需加载,若图片没有被展示,则不会加载"
|
|
61
|
-
},
|
|
62
|
-
"fit": {
|
|
63
|
-
"title": "布局模式",
|
|
64
|
-
"type": "string",
|
|
65
|
-
"default": "cover",
|
|
66
|
-
"enum": [
|
|
67
|
-
{
|
|
68
|
-
"value": "cover",
|
|
69
|
-
"label": "铺满"
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
"value": "contain",
|
|
73
|
-
"label": "适合"
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
"value": "fill",
|
|
77
|
-
"label": "拉伸"
|
|
78
|
-
}
|
|
79
|
-
],
|
|
80
|
-
"x-category": "基础属性",
|
|
81
|
-
"x-index": 2,
|
|
82
|
-
"remarks":"更改图片的布局模式"
|
|
86
|
+
"remarks": "图片按需加载,若图片没有被展示,则不会加载"
|
|
83
87
|
},
|
|
84
88
|
"mode": {
|
|
85
89
|
"display": false,
|
|
@@ -2,9 +2,6 @@
|
|
|
2
2
|
"$schema": "https://comp-public-1303824488.cos.ap-shanghai.myqcloud.com/schema/lcds_component.json",
|
|
3
3
|
"data": {
|
|
4
4
|
"properties": {
|
|
5
|
-
"contentSlot": {
|
|
6
|
-
"type": "slot"
|
|
7
|
-
},
|
|
8
5
|
"content": {
|
|
9
6
|
"type": "string",
|
|
10
7
|
"default": "这是一个链接",
|
|
@@ -21,9 +18,7 @@
|
|
|
21
18
|
"x-category": "基础属性",
|
|
22
19
|
"x-index": 120,
|
|
23
20
|
"x-component-props": {
|
|
24
|
-
"hideAddPlatform": [
|
|
25
|
-
"MP"
|
|
26
|
-
]
|
|
21
|
+
"hideAddPlatform": ["MP"]
|
|
27
22
|
},
|
|
28
23
|
"remarks": "选择点击链接后跳转的页面,小程序端构建时仅支持选择跳转应用页面"
|
|
29
24
|
},
|
|
@@ -58,6 +53,9 @@
|
|
|
58
53
|
}
|
|
59
54
|
},
|
|
60
55
|
"remarks": "填写跳转页面时携带的参数,用于页面传参"
|
|
56
|
+
},
|
|
57
|
+
"contentSlot": {
|
|
58
|
+
"type": "slot"
|
|
61
59
|
}
|
|
62
60
|
}
|
|
63
61
|
},
|
|
@@ -67,10 +65,7 @@
|
|
|
67
65
|
"category": "文本",
|
|
68
66
|
"componentOrder": 10,
|
|
69
67
|
"icon": "//imgcache.qq.com/qcloud/lowcode/static/ide/left-material-icon/Link.svg",
|
|
70
|
-
"platform": [
|
|
71
|
-
"MOBILEWEB",
|
|
72
|
-
"PCWEB"
|
|
73
|
-
]
|
|
68
|
+
"platform": ["MOBILEWEB", "PCWEB"]
|
|
74
69
|
},
|
|
75
70
|
"configMeta": {
|
|
76
71
|
"docsUrl": "https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/text/Link"
|
|
@@ -101,14 +101,8 @@
|
|
|
101
101
|
}
|
|
102
102
|
],
|
|
103
103
|
"blackListConfig": {
|
|
104
|
-
"format": [
|
|
105
|
-
|
|
106
|
-
"x-image"
|
|
107
|
-
],
|
|
108
|
-
"type": [
|
|
109
|
-
"object",
|
|
110
|
-
"array"
|
|
111
|
-
]
|
|
104
|
+
"format": ["x-file", "x-image"],
|
|
105
|
+
"type": ["object", "array"]
|
|
112
106
|
},
|
|
113
107
|
"customRelOptions": {
|
|
114
108
|
"number": [
|
|
@@ -21,6 +21,12 @@
|
|
|
21
21
|
},
|
|
22
22
|
"image": {
|
|
23
23
|
"type": "image",
|
|
24
|
+
"x-rules": [
|
|
25
|
+
{
|
|
26
|
+
"message": "请输入合法的图片地址",
|
|
27
|
+
"pattern": "^(((https?)://)|/resources/)[^\\s]+$"
|
|
28
|
+
}
|
|
29
|
+
],
|
|
24
30
|
"title": "奖品图片",
|
|
25
31
|
"default": ""
|
|
26
32
|
}
|
|
@@ -146,8 +152,6 @@
|
|
|
146
152
|
"category": "高级",
|
|
147
153
|
"componentOrder": 101,
|
|
148
154
|
"icon": "//imgcache.qq.com/qcloud/lowcode/static/ide/left-material-icon/NavLayout.svg",
|
|
149
|
-
"visible": [
|
|
150
|
-
"APP"
|
|
151
|
-
]
|
|
155
|
+
"visible": ["APP"]
|
|
152
156
|
}
|
|
153
157
|
}
|
|
@@ -14,6 +14,24 @@
|
|
|
14
14
|
"default": true,
|
|
15
15
|
"x-index": 20
|
|
16
16
|
},
|
|
17
|
+
"isDefaultButton": {
|
|
18
|
+
"type": "boolean",
|
|
19
|
+
"title": "显示默认按钮",
|
|
20
|
+
"default": true,
|
|
21
|
+
"x-index": 30
|
|
22
|
+
},
|
|
23
|
+
"customContent": {
|
|
24
|
+
"type": "string",
|
|
25
|
+
"title": "customContent",
|
|
26
|
+
"isReactNode": true,
|
|
27
|
+
"x-index": 40
|
|
28
|
+
},
|
|
29
|
+
"customButton": {
|
|
30
|
+
"type": "string",
|
|
31
|
+
"title": "customButton",
|
|
32
|
+
"isReactNode": true,
|
|
33
|
+
"x-index": 50
|
|
34
|
+
},
|
|
17
35
|
"size": {
|
|
18
36
|
"type": "string",
|
|
19
37
|
"x-component": "select",
|
|
@@ -41,33 +59,20 @@
|
|
|
41
59
|
"value": "auto",
|
|
42
60
|
"label": "自动"
|
|
43
61
|
}
|
|
44
|
-
|
|
45
62
|
]
|
|
46
63
|
}
|
|
47
|
-
},
|
|
48
|
-
"isDefaultButton": {
|
|
49
|
-
"type": "boolean",
|
|
50
|
-
"title": "显示默认按钮",
|
|
51
|
-
"default": true,
|
|
52
|
-
"x-index": 30
|
|
53
|
-
},
|
|
54
|
-
"customContent": {
|
|
55
|
-
"type": "string",
|
|
56
|
-
"title": "customContent",
|
|
57
|
-
"isReactNode": true,
|
|
58
|
-
"x-index": 40
|
|
59
|
-
},
|
|
60
|
-
"customButton": {
|
|
61
|
-
"type": "string",
|
|
62
|
-
"title": "customButton",
|
|
63
|
-
"isReactNode": true,
|
|
64
|
-
"x-index": 50
|
|
65
64
|
}
|
|
66
65
|
}
|
|
67
66
|
},
|
|
68
67
|
"events": [
|
|
69
|
-
{
|
|
70
|
-
|
|
68
|
+
{
|
|
69
|
+
"title": "窗口关闭",
|
|
70
|
+
"name": "close"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"title": "默认按钮点击",
|
|
74
|
+
"name": "confirm"
|
|
75
|
+
}
|
|
71
76
|
],
|
|
72
77
|
"meta": {
|
|
73
78
|
"title": "弹窗",
|