@cloudbase/weda-ui 2.0.11 → 2.0.27
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 +39 -35
- 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 +14 -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 +44 -45
- 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 +68 -68
- 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 +89 -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/mp/components/calendar/index.js +4 -1
- package/src/mp/components/calendar/index.json +3 -2
- package/src/mp/components/calendar/index.wxml +6 -28
- package/src/mp/components/calendar/index.wxss +17 -16
- package/src/mp/components/carousel/index.json +1 -1
- package/src/mp/components/carousel/index.wxml +3 -30
- package/src/mp/components/chart/bar/index.wxml +1 -6
- package/src/mp/components/chart/ec-canvas/ec-canvas.json +1 -1
- package/src/mp/components/chart/ec-canvas/ec-canvas.wxml +2 -19
- package/src/mp/components/chart/line/index.wxml +1 -6
- package/src/mp/components/chart/pie/index.wxml +1 -6
- package/src/mp/components/chart/statisticsCard/index.wxml +1 -5
- package/src/mp/components/chart/statisticsCard/index.wxss +7 -10
- package/src/mp/components/dataView/index.wxml +1 -13
- package/src/mp/components/form/checkbox/index.js +5 -1
- package/src/mp/components/form/checkbox/index.wxml +3 -18
- package/src/mp/components/form/formcell/index.wxss +5 -0
- package/src/mp/components/form/input/index.js +1 -1
- package/src/mp/components/form/input/index.wxml +3 -16
- package/src/mp/components/form/input/index.wxss +7 -1
- package/src/mp/components/form/location/components/mapChoose/index.json +1 -1
- package/src/mp/components/form/location/components/mapChoose/index.wxml +11 -58
- 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 +7 -43
- package/src/mp/components/form/radio/index.js +5 -1
- package/src/mp/components/form/radio/index.wxml +2 -14
- package/src/mp/components/form/select/index.js +2 -2
- package/src/mp/components/form/select/index.wxml +3 -33
- package/src/mp/components/form/select/index.wxss +9 -0
- package/src/mp/components/form/switch/index.wxml +2 -13
- package/src/mp/components/form/textarea/index.js +6 -0
- package/src/mp/components/form/textarea/index.wxml +4 -23
- package/src/mp/components/form/textarea/index.wxss +5 -0
- package/src/mp/components/form/uploader/index.wxml +2 -20
- package/src/mp/components/form/uploader/weui-uploader.json +6 -6
- package/src/mp/components/form/uploader/weui-uploader.wxml +10 -53
- package/src/mp/components/form/uploaderFile/index.wxml +14 -71
- package/src/mp/components/graphicCard/index.js +9 -11
- package/src/mp/components/graphicCard/index.wxml +6 -34
- package/src/mp/components/graphicCard/index.wxss +6 -6
- package/src/mp/components/image/index.wxml +3 -21
- package/src/mp/components/listView/index.wxml +8 -33
- package/src/mp/components/listView/index.wxss +2 -2
- package/src/mp/components/lottery/index.wxml +7 -31
- package/src/mp/components/navLayout/index.js +9 -12
- package/src/mp/components/navLayout/index.wxml +6 -30
- package/src/mp/components/navLayout/index.wxss +10 -10
- package/src/mp/components/navigationBar/index.json +1 -2
- package/src/mp/components/navigationBar/index.wxml +29 -146
- package/src/mp/components/navigationBar/index.wxss +10 -10
- package/src/mp/components/richText/index.wxml +1 -1
- package/src/mp/components/richText/index.wxss +7 -5
- package/src/mp/components/swiper/index.wxml +1 -14
- package/src/mp/components/tabs/index.json +1 -1
- package/src/mp/components/tabs/index.wxml +3 -22
- package/src/mp/components/tabs/index.wxss +1 -2
- package/src/mp/components/text/index.wxml +1 -7
- 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 +1 -11
- package/src/mp/components/wxOpenApi/phoneCode/index.json +1 -1
- package/src/mp/components/wxOpenApi/phoneCode/index.wxml +1 -11
- package/src/mp/components/wxOpenApi/share/index.wxml +1 -11
- package/src/mp/components/wxOpenApi/userInfo/index.wxml +1 -10
- package/src/mp/index.json +1 -0
- package/src/mp/style/weda-ui.wxss +16 -6
- package/src/web/actions/showModal/index.tsx +5 -4
- package/src/web/components/calendar/index.css +99 -65
- package/src/web/components/chart/common/core/eChartBase.ts +55 -42
- 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/chart/statisticsCard/index.css +9 -8
- 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 +2 -1
- package/src/web/components/form/formcell/index.css +6 -17
- package/src/web/components/form/formcell/index.tsx +2 -6
- package/src/web/components/form/input/index.css +8 -4
- package/src/web/components/form/input/index.tsx +61 -53
- package/src/web/components/form/location/common/mapChoose.css +13 -11
- 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 +19 -20
- 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 +2 -2
- package/src/web/components/form/select/index.css +9 -0
- package/src/web/components/form/select/index.tsx +76 -49
- 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 +38 -25
- package/src/web/components/form/types.d.ts +10 -10
- package/src/web/components/form/uploader/index.css +10 -0
- package/src/web/components/form/uploader/uploader.h5.tsx +3 -6
- package/src/web/components/form/uploader/uploader.pc.tsx +3 -6
- package/src/web/components/form/uploaderFile/index.css +24 -23
- package/src/web/components/form/uploaderFile/index.jsx +0 -5
- package/src/web/components/form/uploaderFile/uploadFile.h5.tsx +24 -15
- package/src/web/components/form/uploaderFile/uploadFile.pc.tsx +21 -13
- package/src/web/components/graphicCard/index.css +6 -6
- 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 +28 -11
- package/src/web/components/index.js +1 -0
- package/src/web/components/link/index.tsx +12 -12
- package/src/web/components/listView/index.css +8 -8
- package/src/web/components/lottery/index.css +43 -37
- package/src/web/components/lottery/index.tsx +3 -3
- package/src/web/components/modal/index.tsx +34 -34
- package/src/web/components/navLayout/index.css +25 -25
- package/src/web/components/navigationBar/index.css +26 -26
- package/src/web/components/picker/datePicker.tsx +3 -3
- package/src/web/components/picker/picker.tsx +3 -3
- package/src/web/components/richText/index.jsx +41 -46
- package/src/web/components/richTextView/index.css +7 -3
- 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 +2 -3
- 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/wedaVideo/index.css +42 -0
- package/src/web/components/wedaVideo/index.tsx +208 -0
- package/src/web/utils/constant.ts +2 -1
- package/src/web/utils/loading-fallback.tsx +2 -2
- package/src/web/utils/lodash.ts +1 -1
- package/src/web/utils/platform.js +13 -0
- package/src/web/utils/useSetState.ts +6 -2
- package/src/web/weda-ui.css +23 -8
- package/src/docs/common/format.tsx +0 -112
- package/src/docs/common/tableView.css +0 -164
- package/src/docs/common/tableView.tsx +0 -273
- package/src/docs/compsdocs/chart/Bar.mdx +0 -159
- package/src/docs/compsdocs/chart/Line.mdx +0 -100
- package/src/docs/compsdocs/chart/Pie.mdx +0 -83
- package/src/docs/compsdocs/chart/_category_.json +0 -1
- package/src/docs/compsdocs/chart/statisticsCard.mdx +0 -51
- package/src/docs/compsdocs/database/DataView.mdx +0 -33
- package/src/docs/compsdocs/database/ListView.mdx +0 -33
- package/src/docs/compsdocs/database/_category_.json +0 -1
- package/src/docs/compsdocs/form/Form.mdx +0 -35
- package/src/docs/compsdocs/form/FormCheckbox.mdx +0 -35
- package/src/docs/compsdocs/form/FormDate.mdx +0 -30
- package/src/docs/compsdocs/form/FormEmail.mdx +0 -30
- package/src/docs/compsdocs/form/FormImageUploader.mdx +0 -31
- package/src/docs/compsdocs/form/FormInput.mdx +0 -30
- package/src/docs/compsdocs/form/FormLocation.mdx +0 -64
- package/src/docs/compsdocs/form/FormPhone.mdx +0 -30
- package/src/docs/compsdocs/form/FormRadio.mdx +0 -35
- package/src/docs/compsdocs/form/FormRegion.mdx +0 -30
- package/src/docs/compsdocs/form/FormSelect.mdx +0 -36
- package/src/docs/compsdocs/form/FormSwitch.mdx +0 -30
- package/src/docs/compsdocs/form/FormTextarea.mdx +0 -30
- package/src/docs/compsdocs/form/FormTime.mdx +0 -30
- package/src/docs/compsdocs/form/FormUploadFile.mdx +0 -30
- package/src/docs/compsdocs/form/FormUrl.mdx +0 -30
- package/src/docs/compsdocs/form/_category_.json +0 -1
- package/src/docs/compsdocs/grid/Card.mdx +0 -32
- package/src/docs/compsdocs/grid/Container.mdx +0 -42
- package/src/docs/compsdocs/grid/Footer.mdx +0 -31
- package/src/docs/compsdocs/grid/GridLayout.mdx +0 -32
- package/src/docs/compsdocs/grid/Header.mdx +0 -31
- package/src/docs/compsdocs/grid/Layout.mdx +0 -25
- package/src/docs/compsdocs/grid/List.mdx +0 -31
- package/src/docs/compsdocs/grid/ScrollView.mdx +0 -37
- package/src/docs/compsdocs/grid/Swiper.mdx +0 -58
- package/src/docs/compsdocs/grid/_category_.json +0 -1
- package/src/docs/compsdocs/media/Icon.mdx +0 -31
- package/src/docs/compsdocs/media/Image.mdx +0 -55
- package/src/docs/compsdocs/media/_category_.json +0 -1
- package/src/docs/compsdocs/model/ModelCreate.mdx +0 -20
- package/src/docs/compsdocs/model/ModelDetail.mdx +0 -20
- package/src/docs/compsdocs/model/ModelTable.mdx +0 -24
- package/src/docs/compsdocs/model/ModelUpdate.mdx +0 -21
- package/src/docs/compsdocs/model/PageLayout.mdx +0 -21
- package/src/docs/compsdocs/model/_category_.json +0 -1
- package/src/docs/compsdocs/navmenu/Classification.mdx +0 -38
- package/src/docs/compsdocs/navmenu/NavBar.mdx +0 -43
- package/src/docs/compsdocs/navmenu/NavLayout.mdx +0 -30
- package/src/docs/compsdocs/navmenu/TabBar.mdx +0 -43
- package/src/docs/compsdocs/navmenu/TabBarItem.mdx +0 -29
- package/src/docs/compsdocs/navmenu/_category_.json +0 -1
- package/src/docs/compsdocs/senior/Lottery.mdx +0 -48
- package/src/docs/compsdocs/senior/Modal.mdx +0 -58
- package/src/docs/compsdocs/senior/SlotMachine.mdx +0 -52
- package/src/docs/compsdocs/senior/_category_.json +0 -1
- package/src/docs/compsdocs/show/Calendar.mdx +0 -29
- package/src/docs/compsdocs/show/Divider.mdx +0 -31
- package/src/docs/compsdocs/show/GraphicCard.mdx +0 -30
- package/src/docs/compsdocs/show/Item.mdx +0 -32
- package/src/docs/compsdocs/show/ItemList.mdx +0 -47
- package/src/docs/compsdocs/show/Media.mdx +0 -25
- package/src/docs/compsdocs/show/StatusTip.mdx +0 -25
- package/src/docs/compsdocs/show/Swiper.mdx +0 -33
- package/src/docs/compsdocs/show/Tabs.mdx +0 -38
- package/src/docs/compsdocs/show/_category_.json +0 -1
- package/src/docs/compsdocs/show/button.mdx +0 -25
- package/src/docs/compsdocs/text/Link.mdx +0 -43
- package/src/docs/compsdocs/text/RichTextView.mdx +0 -36
- package/src/docs/compsdocs/text/Text.mdx +0 -31
- package/src/docs/compsdocs/text/Title.mdx +0 -32
- package/src/docs/compsdocs/text/_category_.json +0 -1
- package/src/docs/compsdocs/wxOpen/Phone.mdx +0 -60
- package/src/docs/compsdocs/wxOpen/Share.mdx +0 -46
- package/src/docs/compsdocs/wxOpen/UserInfo.mdx +0 -60
- package/src/docs/compsdocs/wxOpen/_category_.json +0 -4
|
@@ -73,6 +73,12 @@
|
|
|
73
73
|
},
|
|
74
74
|
"iconSrc": {
|
|
75
75
|
"type": "image",
|
|
76
|
+
"x-rules": [
|
|
77
|
+
{
|
|
78
|
+
"message": "请输入合法的图片地址",
|
|
79
|
+
"pattern": "^(((https?)://)|/resources/)[^\\s]+$"
|
|
80
|
+
}
|
|
81
|
+
],
|
|
76
82
|
"title": "",
|
|
77
83
|
"default": "",
|
|
78
84
|
"x-index": 35
|
|
@@ -102,18 +108,13 @@
|
|
|
102
108
|
"icon": "weda-editor-icon-link",
|
|
103
109
|
"tooltip": [
|
|
104
110
|
{
|
|
105
|
-
"platform": [
|
|
106
|
-
"ALL",
|
|
107
|
-
"MP"
|
|
108
|
-
],
|
|
111
|
+
"platform": ["ALL", "MP"],
|
|
109
112
|
"text": "小程序平台不支持跳转外部链接"
|
|
110
113
|
}
|
|
111
114
|
],
|
|
112
115
|
"disabled": [
|
|
113
116
|
{
|
|
114
|
-
"platform": [
|
|
115
|
-
"MP"
|
|
116
|
-
]
|
|
117
|
+
"platform": ["MP"]
|
|
117
118
|
}
|
|
118
119
|
]
|
|
119
120
|
}
|
|
@@ -154,9 +155,7 @@
|
|
|
154
155
|
"x-category": "基础属性",
|
|
155
156
|
"x-index": 120,
|
|
156
157
|
"x-component-props": {
|
|
157
|
-
"hideAddPlatform": [
|
|
158
|
-
"MP"
|
|
159
|
-
],
|
|
158
|
+
"hideAddPlatform": ["MP"],
|
|
160
159
|
"addHidden": true
|
|
161
160
|
},
|
|
162
161
|
"x-linkages": [
|
|
@@ -228,7 +227,65 @@
|
|
|
228
227
|
}
|
|
229
228
|
],
|
|
230
229
|
"x-index": 1,
|
|
231
|
-
"x-component": "list"
|
|
230
|
+
"x-component": "list",
|
|
231
|
+
"remarks": "配置宫格导航的详细内容。属性变量可hover到属性标题进行查看。补充属性说明:点击时(tapsSatus):无行为(tap)/打开页面(inside)/外部链接(outer);参数(params):[{key:***,value:***}]"
|
|
232
|
+
},
|
|
233
|
+
"fontWeight": {
|
|
234
|
+
"type": "string",
|
|
235
|
+
"title": "字重",
|
|
236
|
+
"default": "normal",
|
|
237
|
+
"x-category": "高级属性",
|
|
238
|
+
"x-index": 40,
|
|
239
|
+
"enum": [
|
|
240
|
+
{
|
|
241
|
+
"label": "细",
|
|
242
|
+
"value": "lighter"
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
"label": "正常",
|
|
246
|
+
"value": "normal"
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
"label": "粗",
|
|
250
|
+
"value": "bolder"
|
|
251
|
+
}
|
|
252
|
+
],
|
|
253
|
+
"remarks": "标题字重"
|
|
254
|
+
},
|
|
255
|
+
"fontSize": {
|
|
256
|
+
"type": "number",
|
|
257
|
+
"title": "字号",
|
|
258
|
+
"default": 14,
|
|
259
|
+
"x-category": "高级属性",
|
|
260
|
+
"x-props": {
|
|
261
|
+
"min": 0,
|
|
262
|
+
"max": 100
|
|
263
|
+
},
|
|
264
|
+
"x-index": 45,
|
|
265
|
+
"remarks": "标题字号"
|
|
266
|
+
},
|
|
267
|
+
"textColor": {
|
|
268
|
+
"title": "标题颜色",
|
|
269
|
+
"type": "string",
|
|
270
|
+
"x-component": "color",
|
|
271
|
+
"x-index": 50,
|
|
272
|
+
"x-category": "高级属性",
|
|
273
|
+
"default": "rgb(0, 0, 0)"
|
|
274
|
+
},
|
|
275
|
+
"lineHeight": {
|
|
276
|
+
"title": "行高",
|
|
277
|
+
"type": "string",
|
|
278
|
+
"x-index": 56,
|
|
279
|
+
"x-category": "高级属性",
|
|
280
|
+
"default": "auto",
|
|
281
|
+
"remarks": "标题行高"
|
|
282
|
+
},
|
|
283
|
+
"maxLines": {
|
|
284
|
+
"title": "标题行数",
|
|
285
|
+
"type": "number",
|
|
286
|
+
"default": 1,
|
|
287
|
+
"x-index": 60,
|
|
288
|
+
"x-category": "高级属性"
|
|
232
289
|
},
|
|
233
290
|
"mobileCol": {
|
|
234
291
|
"type": "number",
|
|
@@ -295,63 +352,6 @@
|
|
|
295
352
|
"value": "big"
|
|
296
353
|
}
|
|
297
354
|
]
|
|
298
|
-
},
|
|
299
|
-
"textColor": {
|
|
300
|
-
"title": "标题颜色",
|
|
301
|
-
"type": "string",
|
|
302
|
-
"x-component": "color",
|
|
303
|
-
"x-index": 50,
|
|
304
|
-
"x-category": "高级属性",
|
|
305
|
-
"default": "rgb(0, 0, 0)"
|
|
306
|
-
},
|
|
307
|
-
"fontWeight": {
|
|
308
|
-
"type": "string",
|
|
309
|
-
"title": "字重",
|
|
310
|
-
"default": "normal",
|
|
311
|
-
"x-category": "高级属性",
|
|
312
|
-
"x-index": 40,
|
|
313
|
-
"enum": [
|
|
314
|
-
{
|
|
315
|
-
"label": "细",
|
|
316
|
-
"value": "lighter"
|
|
317
|
-
},
|
|
318
|
-
{
|
|
319
|
-
"label": "正常",
|
|
320
|
-
"value": "normal"
|
|
321
|
-
},
|
|
322
|
-
{
|
|
323
|
-
"label": "粗",
|
|
324
|
-
"value": "bolder"
|
|
325
|
-
}
|
|
326
|
-
],
|
|
327
|
-
"remarks": "标题字重"
|
|
328
|
-
},
|
|
329
|
-
"fontSize": {
|
|
330
|
-
"type": "number",
|
|
331
|
-
"title": "字号",
|
|
332
|
-
"default": 14,
|
|
333
|
-
"x-category": "高级属性",
|
|
334
|
-
"x-props": {
|
|
335
|
-
"min": 0,
|
|
336
|
-
"max": 100
|
|
337
|
-
},
|
|
338
|
-
"x-index": 45,
|
|
339
|
-
"remarks": "标题字号"
|
|
340
|
-
},
|
|
341
|
-
"lineHeight": {
|
|
342
|
-
"title": "行高",
|
|
343
|
-
"type": "string",
|
|
344
|
-
"x-index": 56,
|
|
345
|
-
"x-category": "高级属性",
|
|
346
|
-
"default": "auto",
|
|
347
|
-
"remarks": "标题行高"
|
|
348
|
-
},
|
|
349
|
-
"maxLines": {
|
|
350
|
-
"title": "标题行数",
|
|
351
|
-
"type": "number",
|
|
352
|
-
"default": 1,
|
|
353
|
-
"x-index": 60,
|
|
354
|
-
"x-category": "高级属性"
|
|
355
355
|
}
|
|
356
356
|
}
|
|
357
357
|
},
|
|
@@ -64,9 +64,7 @@
|
|
|
64
64
|
"title": "在设置滚动条位置时使用动画过渡",
|
|
65
65
|
"type": "boolean",
|
|
66
66
|
"default": false,
|
|
67
|
-
"x-platforms": [
|
|
68
|
-
"MP"
|
|
69
|
-
],
|
|
67
|
+
"x-platforms": ["MP"],
|
|
70
68
|
"x-category": "高级属性",
|
|
71
69
|
"remarks": "开启滚动条动画"
|
|
72
70
|
},
|
|
@@ -74,9 +72,7 @@
|
|
|
74
72
|
"title": "iOS点击顶部状态栏、安卓双击标题栏时,滚动条返回顶部,只支持竖向",
|
|
75
73
|
"type": "boolean",
|
|
76
74
|
"default": false,
|
|
77
|
-
"x-platforms": [
|
|
78
|
-
"MP"
|
|
79
|
-
],
|
|
75
|
+
"x-platforms": ["MP"],
|
|
80
76
|
"x-category": "高级属性",
|
|
81
77
|
"remarks": "开启后当执行对应操作后滚动条将自动返回顶部"
|
|
82
78
|
},
|
|
@@ -84,9 +80,7 @@
|
|
|
84
80
|
"title": "启用 flexbox 布局",
|
|
85
81
|
"type": "boolean",
|
|
86
82
|
"default": false,
|
|
87
|
-
"x-platforms": [
|
|
88
|
-
"MP"
|
|
89
|
-
],
|
|
83
|
+
"x-platforms": ["MP"],
|
|
90
84
|
"x-category": "高级属性",
|
|
91
85
|
"remarks": "开启flexbox布局"
|
|
92
86
|
},
|
|
@@ -94,9 +88,7 @@
|
|
|
94
88
|
"title": "开启 scroll anchoring 特性",
|
|
95
89
|
"type": "boolean",
|
|
96
90
|
"default": false,
|
|
97
|
-
"x-platforms": [
|
|
98
|
-
"MP"
|
|
99
|
-
],
|
|
91
|
+
"x-platforms": ["MP"],
|
|
100
92
|
"x-category": "高级属性",
|
|
101
93
|
"remarks": "开启scroll-anchoring特性"
|
|
102
94
|
},
|
|
@@ -111,9 +103,7 @@
|
|
|
111
103
|
"condition": "{{ $self.value }}"
|
|
112
104
|
}
|
|
113
105
|
],
|
|
114
|
-
"x-platforms": [
|
|
115
|
-
"MP"
|
|
116
|
-
],
|
|
106
|
+
"x-platforms": ["MP"],
|
|
117
107
|
"x-category": "高级属性",
|
|
118
108
|
"remarks": "开启后可自定义对下拉刷新进行相关配置"
|
|
119
109
|
},
|
|
@@ -121,9 +111,7 @@
|
|
|
121
111
|
"title": "设置自定义下拉刷新阈值",
|
|
122
112
|
"type": "number",
|
|
123
113
|
"default": 50,
|
|
124
|
-
"x-platforms": [
|
|
125
|
-
"MP"
|
|
126
|
-
],
|
|
114
|
+
"x-platforms": ["MP"],
|
|
127
115
|
"x-category": "高级属性"
|
|
128
116
|
},
|
|
129
117
|
"refresherDefaultStyle": {
|
|
@@ -145,27 +133,21 @@
|
|
|
145
133
|
"value": "none"
|
|
146
134
|
}
|
|
147
135
|
],
|
|
148
|
-
"x-platforms": [
|
|
149
|
-
"MP"
|
|
150
|
-
],
|
|
136
|
+
"x-platforms": ["MP"],
|
|
151
137
|
"x-category": "高级属性"
|
|
152
138
|
},
|
|
153
139
|
"refresherBackground": {
|
|
154
140
|
"title": "设置自定义下拉刷新区域背景颜色",
|
|
155
141
|
"type": "color",
|
|
156
142
|
"default": "#fff",
|
|
157
|
-
"x-platforms": [
|
|
158
|
-
"MP"
|
|
159
|
-
],
|
|
143
|
+
"x-platforms": ["MP"],
|
|
160
144
|
"x-category": "高级属性"
|
|
161
145
|
},
|
|
162
146
|
"refresherTriggered": {
|
|
163
147
|
"title": "设置当前下拉刷新状态",
|
|
164
148
|
"type": "boolean",
|
|
165
149
|
"default": false,
|
|
166
|
-
"x-platforms": [
|
|
167
|
-
"MP"
|
|
168
|
-
],
|
|
150
|
+
"x-platforms": ["MP"],
|
|
169
151
|
"x-category": "高级属性"
|
|
170
152
|
},
|
|
171
153
|
"enhanced": {
|
|
@@ -179,9 +161,7 @@
|
|
|
179
161
|
"condition": "{{ $self.value }}"
|
|
180
162
|
}
|
|
181
163
|
],
|
|
182
|
-
"x-platforms": [
|
|
183
|
-
"MP"
|
|
184
|
-
],
|
|
164
|
+
"x-platforms": ["MP"],
|
|
185
165
|
"x-category": "高级属性",
|
|
186
166
|
"remarks": "开启scroll-view增强特性 "
|
|
187
167
|
},
|
|
@@ -189,18 +169,14 @@
|
|
|
189
169
|
"title": "iOS 下 scroll-view 边界弹性控制",
|
|
190
170
|
"type": "boolean",
|
|
191
171
|
"default": true,
|
|
192
|
-
"x-platforms": [
|
|
193
|
-
"MP"
|
|
194
|
-
],
|
|
172
|
+
"x-platforms": ["MP"],
|
|
195
173
|
"x-category": "高级属性"
|
|
196
174
|
},
|
|
197
175
|
"showScrollbar": {
|
|
198
176
|
"title": "滚动条显隐控制",
|
|
199
177
|
"type": "boolean",
|
|
200
178
|
"default": true,
|
|
201
|
-
"x-platforms": [
|
|
202
|
-
"MP"
|
|
203
|
-
],
|
|
179
|
+
"x-platforms": ["MP"],
|
|
204
180
|
"x-category": "基础属性",
|
|
205
181
|
"remarks": "控制滚动条是否显示/隐藏"
|
|
206
182
|
},
|
|
@@ -208,18 +184,14 @@
|
|
|
208
184
|
"title": "分页滑动效果",
|
|
209
185
|
"type": "boolean",
|
|
210
186
|
"default": false,
|
|
211
|
-
"x-platforms": [
|
|
212
|
-
"MP"
|
|
213
|
-
],
|
|
187
|
+
"x-platforms": ["MP"],
|
|
214
188
|
"x-category": "高级属性"
|
|
215
189
|
},
|
|
216
190
|
"fastDeceleration": {
|
|
217
191
|
"title": "滑动减速速率控制",
|
|
218
192
|
"type": "boolean",
|
|
219
193
|
"default": false,
|
|
220
|
-
"x-platforms": [
|
|
221
|
-
"MP"
|
|
222
|
-
],
|
|
194
|
+
"x-platforms": ["MP"],
|
|
223
195
|
"x-category": "高级属性"
|
|
224
196
|
}
|
|
225
197
|
}
|
|
@@ -7,49 +7,49 @@
|
|
|
7
7
|
"default": true,
|
|
8
8
|
"type": "boolean",
|
|
9
9
|
"x-category": "基础属性",
|
|
10
|
-
"remarks":"开启后,轮播图将会自动根据配置的时间间隔进行自动滚动,关闭后则轮播图仅支持通过点击锚点的方式进行切换"
|
|
10
|
+
"remarks": "开启后,轮播图将会自动根据配置的时间间隔进行自动滚动,关闭后则轮播图仅支持通过点击锚点的方式进行切换"
|
|
11
11
|
},
|
|
12
12
|
"indicatorDots": {
|
|
13
13
|
"title": "导航锚点",
|
|
14
14
|
"default": true,
|
|
15
15
|
"type": "boolean",
|
|
16
16
|
"x-category": "高级属性",
|
|
17
|
-
"remarks":"开启/关闭轮播图锚点"
|
|
17
|
+
"remarks": "开启/关闭轮播图锚点"
|
|
18
18
|
},
|
|
19
19
|
"current": {
|
|
20
20
|
"title": "当前所在滑块的 index",
|
|
21
21
|
"default": 0,
|
|
22
22
|
"type": "number",
|
|
23
23
|
"x-category": "高级属性",
|
|
24
|
-
"remarks":"更改轮播图的默认展示位置,0为默认展示第一张轮播图,以此类推"
|
|
24
|
+
"remarks": "更改轮播图的默认展示位置,0为默认展示第一张轮播图,以此类推"
|
|
25
25
|
},
|
|
26
26
|
"interval": {
|
|
27
27
|
"title": "自动切换时间间隔",
|
|
28
28
|
"default": 5000,
|
|
29
29
|
"type": "number",
|
|
30
30
|
"x-category": "基础属性",
|
|
31
|
-
"remarks":"配置轮播图滚动的时间间隔,时间单位为ms"
|
|
31
|
+
"remarks": "配置轮播图滚动的时间间隔,时间单位为ms"
|
|
32
32
|
},
|
|
33
33
|
"duration": {
|
|
34
34
|
"title": "滑动动画时长",
|
|
35
35
|
"default": 500,
|
|
36
36
|
"type": "number",
|
|
37
37
|
"x-category": "高级属性",
|
|
38
|
-
"remarks":"更改轮播图切换时的滑动动画时长"
|
|
38
|
+
"remarks": "更改轮播图切换时的滑动动画时长"
|
|
39
39
|
},
|
|
40
40
|
"circular": {
|
|
41
41
|
"title": "衔接滑动",
|
|
42
42
|
"default": true,
|
|
43
43
|
"type": "boolean",
|
|
44
44
|
"x-category": "高级属性",
|
|
45
|
-
"remarks":"更改轮播图切换时动画的滑动方式"
|
|
45
|
+
"remarks": "更改轮播图切换时动画的滑动方式"
|
|
46
46
|
},
|
|
47
47
|
"vertical": {
|
|
48
48
|
"title": "纵向轮播",
|
|
49
49
|
"default": false,
|
|
50
50
|
"type": "boolean",
|
|
51
51
|
"x-category": "基础属性",
|
|
52
|
-
"remarks":"开启后,轮播的滚动方式将会由横向滚动变更为纵向滚动"
|
|
52
|
+
"remarks": "开启后,轮播的滚动方式将会由横向滚动变更为纵向滚动"
|
|
53
53
|
},
|
|
54
54
|
"indicatorColor": {
|
|
55
55
|
"title": "锚点颜色",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"x-component": "color",
|
|
58
58
|
"default": "rgba(200, 200, 200, 0.9)",
|
|
59
59
|
"x-category": "高级属性",
|
|
60
|
-
"remarks":"更改锚点普通状态下的颜色"
|
|
60
|
+
"remarks": "更改锚点普通状态下的颜色"
|
|
61
61
|
},
|
|
62
62
|
"indicatorActiveColor": {
|
|
63
63
|
"title": "锚点激活色",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"x-component": "color",
|
|
66
66
|
"default": "rgba(0, 0, 0, 0.9)",
|
|
67
67
|
"x-category": "高级属性",
|
|
68
|
-
"remarks":"更改锚点选中时的颜色"
|
|
68
|
+
"remarks": "更改锚点选中时的颜色"
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
71
|
},
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://comp-public-1303824488.cos.ap-shanghai.myqcloud.com/schema/lcds_component.json",
|
|
3
|
+
"data": {
|
|
4
|
+
"properties": {
|
|
5
|
+
"videoDataSource": {
|
|
6
|
+
"title": "视频资源",
|
|
7
|
+
"default": "https://qcloudimg.tencent-cloud.cn/raw/472043e1e13e1cc06e4afc46407e8c4d.mp4",
|
|
8
|
+
"type": "string",
|
|
9
|
+
"x-category": "基础属性",
|
|
10
|
+
"x-index": 10,
|
|
11
|
+
"x-rules": [
|
|
12
|
+
{
|
|
13
|
+
"message": "请输入合法的视频资源",
|
|
14
|
+
"pattern": "^(((https?)://)|/resources/)[^\\s]+$"
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"remarks": "能够播放的视频资源地址,支持云文件id"
|
|
18
|
+
},
|
|
19
|
+
"posterImage": {
|
|
20
|
+
"title": "封面图片",
|
|
21
|
+
"default": "",
|
|
22
|
+
"type": "string",
|
|
23
|
+
"x-component": "image",
|
|
24
|
+
"x-category": "基础属性",
|
|
25
|
+
"x-index": 20,
|
|
26
|
+
"x-rules": [
|
|
27
|
+
{
|
|
28
|
+
"message": "请输入合法的图片地址",
|
|
29
|
+
"pattern": "^(((https?)://)|/resources/)[^\\s]+$"
|
|
30
|
+
}
|
|
31
|
+
]
|
|
32
|
+
},
|
|
33
|
+
"autoPlay": {
|
|
34
|
+
"title": "自动播放",
|
|
35
|
+
"default": false,
|
|
36
|
+
"type": "boolean",
|
|
37
|
+
"x-category": "基础属性",
|
|
38
|
+
"x-index": 30,
|
|
39
|
+
"remarks": "部分浏览器会阻止默认自动播放行为"
|
|
40
|
+
},
|
|
41
|
+
"loopPlay": {
|
|
42
|
+
"title": "循环播放",
|
|
43
|
+
"default": false,
|
|
44
|
+
"type": "boolean",
|
|
45
|
+
"x-category": "基础属性",
|
|
46
|
+
"x-index": 40
|
|
47
|
+
},
|
|
48
|
+
"mutePlay": {
|
|
49
|
+
"title": "静音播放",
|
|
50
|
+
"default": false,
|
|
51
|
+
"type": "boolean",
|
|
52
|
+
"x-category": "基础属性",
|
|
53
|
+
"x-index": 50
|
|
54
|
+
},
|
|
55
|
+
"controlBarStatus": {
|
|
56
|
+
"title": "播放控件",
|
|
57
|
+
"default": true,
|
|
58
|
+
"type": "boolean",
|
|
59
|
+
"x-category": "基础属性",
|
|
60
|
+
"x-index": 60,
|
|
61
|
+
"remarks": "控制视频播放、暂停、静音、全屏等功能,关闭后相当于只能观看视频不能交互"
|
|
62
|
+
},
|
|
63
|
+
"startTime": {
|
|
64
|
+
"title": "初始播放时间(秒)",
|
|
65
|
+
"default": 0,
|
|
66
|
+
"type": "number",
|
|
67
|
+
"x-category": "高级属性",
|
|
68
|
+
"x-index": 70,
|
|
69
|
+
"remarks": "小于0不生效,超出视频时长取值为视频最大时长"
|
|
70
|
+
},
|
|
71
|
+
"endTime": {
|
|
72
|
+
"title": "指定视频时长(秒)",
|
|
73
|
+
"default": 0,
|
|
74
|
+
"type": "number",
|
|
75
|
+
"x-category": "高级属性",
|
|
76
|
+
"x-index": 80,
|
|
77
|
+
"remarks": "小于0不生效;超出视频时长取值为视频最大时长;h5端不会改变进度条显示长度,小程序端会改变"
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
"meta": {
|
|
82
|
+
"name": "wedaVideo",
|
|
83
|
+
"title": "视频播放",
|
|
84
|
+
"description": "用于视频播放",
|
|
85
|
+
"icon": "https://qcloudimg.tencent-cloud.cn/raw/c622c16cc4841ef7e99cfe3c05c76f2f.svg",
|
|
86
|
+
"category": "多媒体",
|
|
87
|
+
"visible": ["APP"]
|
|
88
|
+
}
|
|
89
|
+
}
|
|
@@ -8,9 +8,7 @@
|
|
|
8
8
|
"remarks": "按钮组件的标题",
|
|
9
9
|
"type": "string",
|
|
10
10
|
"x-category": "基础属性",
|
|
11
|
-
"x-platforms": [
|
|
12
|
-
"MP"
|
|
13
|
-
],
|
|
11
|
+
"x-platforms": ["MP"],
|
|
14
12
|
"x-index": 1
|
|
15
13
|
},
|
|
16
14
|
"type": {
|
|
@@ -37,9 +35,7 @@
|
|
|
37
35
|
}
|
|
38
36
|
],
|
|
39
37
|
"x-category": "基础属性",
|
|
40
|
-
"x-platforms": [
|
|
41
|
-
"MP"
|
|
42
|
-
],
|
|
38
|
+
"x-platforms": ["MP"],
|
|
43
39
|
"x-index": 2
|
|
44
40
|
},
|
|
45
41
|
"size": {
|
|
@@ -62,9 +58,7 @@
|
|
|
62
58
|
}
|
|
63
59
|
],
|
|
64
60
|
"x-category": "基础属性",
|
|
65
|
-
"x-platforms": [
|
|
66
|
-
"MP"
|
|
67
|
-
],
|
|
61
|
+
"x-platforms": ["MP"],
|
|
68
62
|
"x-index": 3
|
|
69
63
|
}
|
|
70
64
|
}
|
|
@@ -74,9 +68,7 @@
|
|
|
74
68
|
"title": "手机号授权成功",
|
|
75
69
|
"name": "phonesuccess",
|
|
76
70
|
"remarks": "弹窗中点击了允许按钮后触发的事件",
|
|
77
|
-
"x-platforms": [
|
|
78
|
-
"MP"
|
|
79
|
-
],
|
|
71
|
+
"x-platforms": ["MP"],
|
|
80
72
|
"detail": {
|
|
81
73
|
"phoneNumber": {
|
|
82
74
|
"type": "string",
|
|
@@ -104,9 +96,7 @@
|
|
|
104
96
|
"title": "手机号授权失败",
|
|
105
97
|
"remarks": "弹窗中点击了拒绝按钮后触发的事件",
|
|
106
98
|
"name": "phonefail",
|
|
107
|
-
"x-platforms": [
|
|
108
|
-
"MP"
|
|
109
|
-
]
|
|
99
|
+
"x-platforms": ["MP"]
|
|
110
100
|
}
|
|
111
101
|
],
|
|
112
102
|
"meta": {
|
|
@@ -116,12 +106,8 @@
|
|
|
116
106
|
"category": "微信开放能力",
|
|
117
107
|
"categoryOrder": 100,
|
|
118
108
|
"componentOrder": 2,
|
|
119
|
-
"platform": [
|
|
120
|
-
|
|
121
|
-
],
|
|
122
|
-
"visible": [
|
|
123
|
-
"APP"
|
|
124
|
-
],
|
|
109
|
+
"platform": ["MP"],
|
|
110
|
+
"visible": ["APP"],
|
|
125
111
|
"validate": [
|
|
126
112
|
{
|
|
127
113
|
"rule": "checkBusiness",
|
|
@@ -8,9 +8,7 @@
|
|
|
8
8
|
"remarks": "按钮组件的标题",
|
|
9
9
|
"type": "string",
|
|
10
10
|
"x-category": "基础属性",
|
|
11
|
-
"x-platforms": [
|
|
12
|
-
"MP"
|
|
13
|
-
],
|
|
11
|
+
"x-platforms": ["MP"],
|
|
14
12
|
"x-index": 1
|
|
15
13
|
},
|
|
16
14
|
"type": {
|
|
@@ -37,9 +35,7 @@
|
|
|
37
35
|
}
|
|
38
36
|
],
|
|
39
37
|
"x-category": "基础属性",
|
|
40
|
-
"x-platforms": [
|
|
41
|
-
"MP"
|
|
42
|
-
],
|
|
38
|
+
"x-platforms": ["MP"],
|
|
43
39
|
"x-index": 2
|
|
44
40
|
},
|
|
45
41
|
"size": {
|
|
@@ -62,9 +58,7 @@
|
|
|
62
58
|
}
|
|
63
59
|
],
|
|
64
60
|
"x-category": "基础属性",
|
|
65
|
-
"x-platforms": [
|
|
66
|
-
"MP"
|
|
67
|
-
],
|
|
61
|
+
"x-platforms": ["MP"],
|
|
68
62
|
"x-index": 3
|
|
69
63
|
}
|
|
70
64
|
}
|
|
@@ -74,9 +68,7 @@
|
|
|
74
68
|
"title": "获取手机号授权令牌成功",
|
|
75
69
|
"name": "phoneCodeSuccess",
|
|
76
70
|
"remarks": "弹窗中点击了允许按钮后触发的事件",
|
|
77
|
-
"x-platforms": [
|
|
78
|
-
"MP"
|
|
79
|
-
],
|
|
71
|
+
"x-platforms": ["MP"],
|
|
80
72
|
"detail": {
|
|
81
73
|
"code": {
|
|
82
74
|
"type": "string",
|
|
@@ -89,9 +81,7 @@
|
|
|
89
81
|
"title": "获取手机号授权令牌失败",
|
|
90
82
|
"remarks": "弹窗中点击了拒绝按钮后触发的事件",
|
|
91
83
|
"name": "phoneCodeFail",
|
|
92
|
-
"x-platforms": [
|
|
93
|
-
"MP"
|
|
94
|
-
]
|
|
84
|
+
"x-platforms": ["MP"]
|
|
95
85
|
}
|
|
96
86
|
],
|
|
97
87
|
"meta": {
|
|
@@ -101,9 +91,7 @@
|
|
|
101
91
|
"category": "微信开放能力",
|
|
102
92
|
"categoryOrder": 100,
|
|
103
93
|
"componentOrder": 2,
|
|
104
|
-
"platform": [
|
|
105
|
-
"MP"
|
|
106
|
-
],
|
|
94
|
+
"platform": ["MP"],
|
|
107
95
|
"visible": [],
|
|
108
96
|
"validate": [
|
|
109
97
|
{
|
|
@@ -118,4 +106,4 @@
|
|
|
118
106
|
}
|
|
119
107
|
]
|
|
120
108
|
}
|
|
121
|
-
}
|
|
109
|
+
}
|