@cloudbase/weda-ui 3.1.0 → 3.1.1
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/CHANGELOG.md +7 -0
- package/dist/configs/actions/showModal.json +48 -0
- package/dist/configs/actions/showToast.json +41 -0
- package/dist/configs/components/auth.json +16 -0
- package/dist/configs/components/button.json +239 -0
- package/dist/configs/components/calendar.json +81 -0
- package/dist/configs/components/carousel.json +292 -0
- package/dist/configs/components/chart/bar.json +721 -0
- package/dist/configs/components/chart/line.json +674 -0
- package/dist/configs/components/chart/pie.json +494 -0
- package/dist/configs/components/chart/statisticsCard.json +376 -0
- package/dist/configs/components/container.json +50 -0
- package/dist/configs/components/dataView.json +239 -0
- package/dist/configs/components/drawer.json +115 -0
- package/dist/configs/components/form/checkbox.json +178 -0
- package/dist/configs/components/form/form.json +45 -0
- package/dist/configs/components/form/input.json +154 -0
- package/dist/configs/components/form/location.json +248 -0
- package/dist/configs/components/form/radio.json +203 -0
- package/dist/configs/components/form/richText.json +125 -0
- package/dist/configs/components/form/select.json +430 -0
- package/dist/configs/components/form/switch.json +58 -0
- package/dist/configs/components/form/textarea.json +116 -0
- package/dist/configs/components/form/tips.json +34 -0
- package/dist/configs/components/form/uploader.json +171 -0
- package/dist/configs/components/form/uploaderFile.json +158 -0
- package/dist/configs/components/graphicCard.json +413 -0
- package/dist/configs/components/image.json +187 -0
- package/dist/configs/components/link.json +79 -0
- package/dist/configs/components/listView.json +370 -0
- package/dist/configs/components/lottery.json +163 -0
- package/dist/configs/components/modal.json +72 -0
- package/dist/configs/components/navLayout.json +368 -0
- package/dist/configs/components/navigationBar.json +62 -0
- package/dist/configs/components/richtextview.json +26 -0
- package/dist/configs/components/scrollVeiw.json +253 -0
- package/dist/configs/components/slot.json +17 -0
- package/dist/configs/components/swiper.json +90 -0
- package/dist/configs/components/tabs.json +121 -0
- package/dist/configs/components/text.json +95 -0
- package/dist/configs/components/wedaVideo.json +89 -0
- package/dist/configs/components/wxOpenApi/phone.json +127 -0
- package/dist/configs/components/wxOpenApi/phoneCode.json +109 -0
- package/dist/configs/components/wxOpenApi/share.json +157 -0
- package/dist/configs/components/wxOpenApi/userInfo.json +156 -0
- package/dist/configs/index.d.ts +97 -0
- package/dist/configs/index.js +105 -0
- package/dist/docs/common/format.d.ts +13 -0
- package/dist/docs/common/format.js +103 -0
- package/dist/docs/common/tableView.d.ts +30 -0
- package/dist/docs/common/tableView.js +159 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +3 -0
- package/dist/setupTests.d.ts +1 -0
- package/dist/setupTests.js +14 -0
- package/dist/web/actions/index.d.ts +2 -0
- package/dist/web/actions/index.js +2 -0
- package/dist/web/actions/showModal/index.d.ts +3 -0
- package/dist/web/actions/showModal/index.js +66 -0
- package/dist/web/actions/showToast/index.d.ts +1 -0
- package/dist/web/actions/showToast/index.js +3 -0
- package/dist/web/components/auth/index.d.ts +10 -0
- package/dist/web/components/auth/index.js +37 -0
- package/dist/web/components/button/index.css +27 -0
- package/dist/web/components/button/index.d.ts +32 -0
- package/dist/web/components/button/index.js +48 -0
- package/dist/web/components/calendar/index.css +416 -0
- package/dist/web/components/calendar/index.d.ts +19 -0
- package/dist/web/components/calendar/index.js +181 -0
- package/dist/web/components/calendar/util.d.ts +13 -0
- package/dist/web/components/calendar/util.js +74 -0
- package/dist/web/components/carousel/index.css +119 -0
- package/dist/web/components/carousel/index.d.ts +41 -0
- package/dist/web/components/carousel/index.js +240 -0
- package/dist/web/components/chart/bar/index.d.ts +41 -0
- package/dist/web/components/chart/bar/index.js +56 -0
- package/dist/web/components/chart/common/config/bar.d.ts +48 -0
- package/dist/web/components/chart/common/config/bar.js +49 -0
- package/dist/web/components/chart/common/config/global.d.ts +13 -0
- package/dist/web/components/chart/common/config/global.js +16 -0
- package/dist/web/components/chart/common/config/line.d.ts +46 -0
- package/dist/web/components/chart/common/config/line.js +49 -0
- package/dist/web/components/chart/common/config/pie.d.ts +29 -0
- package/dist/web/components/chart/common/config/pie.js +36 -0
- package/dist/web/components/chart/common/core/eChartBar.d.ts +32 -0
- package/dist/web/components/chart/common/core/eChartBar.js +196 -0
- package/dist/web/components/chart/common/core/eChartBase.d.ts +128 -0
- package/dist/web/components/chart/common/core/eChartBase.js +346 -0
- package/dist/web/components/chart/common/core/eChartLine.d.ts +28 -0
- package/dist/web/components/chart/common/core/eChartLine.js +168 -0
- package/dist/web/components/chart/common/core/eChartPie.d.ts +28 -0
- package/dist/web/components/chart/common/core/eChartPie.js +132 -0
- package/dist/web/components/chart/common/core/type.d.ts +35 -0
- package/dist/web/components/chart/common/core/type.js +9 -0
- package/dist/web/components/chart/common/echarts.d.ts +2 -0
- package/dist/web/components/chart/common/echarts.js +24 -0
- package/dist/web/components/chart/common/useChart.d.ts +8 -0
- package/dist/web/components/chart/common/useChart.js +60 -0
- package/dist/web/components/chart/line/index.d.ts +39 -0
- package/dist/web/components/chart/line/index.js +53 -0
- package/dist/web/components/chart/pie/index.d.ts +27 -0
- package/dist/web/components/chart/pie/index.js +40 -0
- package/dist/web/components/chart/statisticsCard/index.css +63 -0
- package/dist/web/components/chart/statisticsCard/index.d.ts +85 -0
- package/dist/web/components/chart/statisticsCard/index.js +203 -0
- package/dist/web/components/chart/statisticsCard/interface.d.ts +13 -0
- package/dist/web/components/chart/statisticsCard/interface.js +1 -0
- package/dist/web/components/container/index.d.ts +6 -0
- package/dist/web/components/container/index.js +6 -0
- package/dist/web/components/dataView/index.d.ts +6 -0
- package/dist/web/components/dataView/index.js +8 -0
- package/dist/web/components/dataView/interface.d.ts +5 -0
- package/dist/web/components/dataView/interface.js +1 -0
- package/dist/web/components/drawer/index.d.ts +13 -0
- package/dist/web/components/drawer/index.js +12 -0
- package/dist/web/components/form/checkbox/index.d.ts +13 -0
- package/dist/web/components/form/checkbox/index.js +167 -0
- package/dist/web/components/form/enumSelect/MultipleSelect.d.ts +78 -0
- package/dist/web/components/form/enumSelect/MultipleSelect.js +52 -0
- package/dist/web/components/form/enumSelect/NormalSelect.d.ts +83 -0
- package/dist/web/components/form/enumSelect/NormalSelect.js +52 -0
- package/dist/web/components/form/enumSelect/SelectContainer.d.ts +16 -0
- package/dist/web/components/form/enumSelect/SelectContainer.js +30 -0
- package/dist/web/components/form/enumSelect/index.d.ts +82 -0
- package/dist/web/components/form/enumSelect/index.js +6 -0
- package/dist/web/components/form/enumSelect/props/defaultProps.d.ts +34 -0
- package/dist/web/components/form/enumSelect/props/defaultProps.js +40 -0
- package/dist/web/components/form/enumSelect/props/propsTypes.d.ts +39 -0
- package/dist/web/components/form/enumSelect/props/propsTypes.js +47 -0
- package/dist/web/components/form/form/index.css +9 -0
- package/dist/web/components/form/form/index.d.ts +13 -0
- package/dist/web/components/form/form/index.js +31 -0
- package/dist/web/components/form/formcell/index.css +85 -0
- package/dist/web/components/form/formcell/index.d.ts +8 -0
- package/dist/web/components/form/formcell/index.js +40 -0
- package/dist/web/components/form/input/index.css +40 -0
- package/dist/web/components/form/input/index.d.ts +14 -0
- package/dist/web/components/form/input/index.js +86 -0
- package/dist/web/components/form/location/common/mapChoose.css +477 -0
- package/dist/web/components/form/location/common/mapChoose.d.ts +15 -0
- package/dist/web/components/form/location/common/mapChoose.js +431 -0
- package/dist/web/components/form/location/common/mapView.d.ts +19 -0
- package/dist/web/components/form/location/common/mapView.js +170 -0
- package/dist/web/components/form/location/common/propsConfig.d.ts +62 -0
- package/dist/web/components/form/location/common/propsConfig.js +52 -0
- package/dist/web/components/form/location/common/selectModal.css +45 -0
- package/dist/web/components/form/location/common/selectModal.d.ts +21 -0
- package/dist/web/components/form/location/common/selectModal.js +44 -0
- package/dist/web/components/form/location/common/useLocationInfo.d.ts +34 -0
- package/dist/web/components/form/location/common/useLocationInfo.js +88 -0
- package/dist/web/components/form/location/components/LocationH5/index.css +100 -0
- package/dist/web/components/form/location/components/LocationH5/location.h5.d.ts +8 -0
- package/dist/web/components/form/location/components/LocationH5/location.h5.js +347 -0
- package/dist/web/components/form/location/components/LocationPC/Header.d.ts +12 -0
- package/dist/web/components/form/location/components/LocationPC/Header.js +43 -0
- package/dist/web/components/form/location/components/LocationPC/index.css +40 -0
- package/dist/web/components/form/location/components/LocationPC/location.PC.d.ts +8 -0
- package/dist/web/components/form/location/components/LocationPC/location.PC.js +259 -0
- package/dist/web/components/form/location/constants.d.ts +2 -0
- package/dist/web/components/form/location/constants.js +3 -0
- package/dist/web/components/form/location/index.css +13 -0
- package/dist/web/components/form/location/index.d.ts +1 -0
- package/dist/web/components/form/location/index.js +17 -0
- package/dist/web/components/form/radio/index.css +12 -0
- package/dist/web/components/form/radio/index.d.ts +11 -0
- package/dist/web/components/form/radio/index.js +115 -0
- package/dist/web/components/form/renderDecorator.d.ts +6 -0
- package/dist/web/components/form/renderDecorator.js +20 -0
- package/dist/web/components/form/select/h5.d.ts +16 -0
- package/dist/web/components/form/select/h5.js +502 -0
- package/dist/web/components/form/select/index.css +27 -0
- package/dist/web/components/form/select/index.d.ts +65 -0
- package/dist/web/components/form/select/index.js +299 -0
- package/dist/web/components/form/select/region/index.d.ts +6 -0
- package/dist/web/components/form/select/region/index.js +147 -0
- package/dist/web/components/form/select/time.d.ts +9 -0
- package/dist/web/components/form/select/time.js +146 -0
- package/dist/web/components/form/select/year.d.ts +7 -0
- package/dist/web/components/form/select/year.js +72 -0
- package/dist/web/components/form/switch/index.d.ts +6 -0
- package/dist/web/components/form/switch/index.js +57 -0
- package/dist/web/components/form/textarea/index.css +11 -0
- package/dist/web/components/form/textarea/index.d.ts +12 -0
- package/dist/web/components/form/textarea/index.js +66 -0
- package/dist/web/components/form/tips/index.css +4 -0
- package/dist/web/components/form/tips/index.d.ts +8 -0
- package/dist/web/components/form/tips/index.js +17 -0
- package/dist/web/components/form/uploader/index.css +118 -0
- package/dist/web/components/form/uploader/index.d.ts +3 -0
- package/dist/web/components/form/uploader/index.js +42 -0
- package/dist/web/components/form/uploader/uploader.h5.d.ts +19 -0
- package/dist/web/components/form/uploader/uploader.h5.js +201 -0
- package/dist/web/components/form/uploader/uploader.pc.d.ts +29 -0
- package/dist/web/components/form/uploader/uploader.pc.js +182 -0
- package/dist/web/components/form/uploaderFile/index.css +422 -0
- package/dist/web/components/form/uploaderFile/index.d.ts +4 -0
- package/dist/web/components/form/uploaderFile/index.js +19 -0
- package/dist/web/components/form/uploaderFile/uploadFile.h5.d.ts +23 -0
- package/dist/web/components/form/uploaderFile/uploadFile.h5.js +315 -0
- package/dist/web/components/form/uploaderFile/uploadFile.pc.d.ts +24 -0
- package/dist/web/components/form/uploaderFile/uploadFile.pc.js +290 -0
- package/dist/web/components/graphicCard/index.css +159 -0
- package/dist/web/components/graphicCard/index.d.ts +31 -0
- package/dist/web/components/graphicCard/index.js +166 -0
- package/dist/web/components/image/image.d.ts +9 -0
- package/dist/web/components/image/image.js +119 -0
- package/dist/web/components/image/index.css +54 -0
- package/dist/web/components/image/index.d.ts +13 -0
- package/dist/web/components/image/index.js +91 -0
- package/dist/web/components/index.d.ts +47 -0
- package/dist/web/components/index.js +94 -0
- package/dist/web/components/link/index.css +8 -0
- package/dist/web/components/link/index.d.ts +24 -0
- package/dist/web/components/link/index.js +71 -0
- package/dist/web/components/listView/index.css +143 -0
- package/dist/web/components/listView/index.d.ts +7 -0
- package/dist/web/components/listView/index.js +262 -0
- package/dist/web/components/listView/interface.d.ts +122 -0
- package/dist/web/components/listView/interface.js +1 -0
- package/dist/web/components/lottery/index.css +359 -0
- package/dist/web/components/lottery/index.d.ts +22 -0
- package/dist/web/components/lottery/index.js +390 -0
- package/dist/web/components/lottery/lotteryUtil.d.ts +23 -0
- package/dist/web/components/lottery/lotteryUtil.js +180 -0
- package/dist/web/components/modal/h5.css +53 -0
- package/dist/web/components/modal/index.d.ts +17 -0
- package/dist/web/components/modal/index.js +11 -0
- package/dist/web/components/modal/modal.h5.d.ts +4 -0
- package/dist/web/components/modal/modal.h5.js +46 -0
- package/dist/web/components/modal/modal.pc.d.ts +3 -0
- package/dist/web/components/modal/modal.pc.js +31 -0
- package/dist/web/components/navLayout/index.css +332 -0
- package/dist/web/components/navLayout/index.d.ts +46 -0
- package/dist/web/components/navLayout/index.js +116 -0
- package/dist/web/components/navigationBar/common.d.ts +15 -0
- package/dist/web/components/navigationBar/common.js +127 -0
- package/dist/web/components/navigationBar/h5Menu.d.ts +14 -0
- package/dist/web/components/navigationBar/h5Menu.js +72 -0
- package/dist/web/components/navigationBar/horizontalMenu.d.ts +12 -0
- package/dist/web/components/navigationBar/horizontalMenu.js +99 -0
- package/dist/web/components/navigationBar/index.css +762 -0
- package/dist/web/components/navigationBar/index.d.ts +13 -0
- package/dist/web/components/navigationBar/index.js +157 -0
- package/dist/web/components/navigationBar/verticalMenu.d.ts +13 -0
- package/dist/web/components/navigationBar/verticalMenu.js +38 -0
- package/dist/web/components/phone/index.d.ts +18 -0
- package/dist/web/components/phone/index.js +4 -0
- package/dist/web/components/phoneCode/index.d.ts +18 -0
- package/dist/web/components/phoneCode/index.js +4 -0
- package/dist/web/components/picker/datePicker.d.ts +10 -0
- package/dist/web/components/picker/datePicker.js +31 -0
- package/dist/web/components/picker/picker.d.ts +6 -0
- package/dist/web/components/picker/picker.js +45 -0
- package/dist/web/components/picker/timePicker.d.ts +7 -0
- package/dist/web/components/picker/timePicker.js +42 -0
- package/dist/web/components/richText/const.d.ts +1 -0
- package/dist/web/components/richText/const.js +2 -0
- package/dist/web/components/richText/index.css +93 -0
- package/dist/web/components/richText/index.d.ts +51 -0
- package/dist/web/components/richText/index.js +295 -0
- package/dist/web/components/richTextView/index.css +63 -0
- package/dist/web/components/richTextView/index.d.ts +7 -0
- package/dist/web/components/richTextView/index.js +44 -0
- package/dist/web/components/scrollView/index.d.ts +27 -0
- package/dist/web/components/scrollView/index.js +95 -0
- package/dist/web/components/share/index.d.ts +34 -0
- package/dist/web/components/share/index.js +4 -0
- package/dist/web/components/slot/index.d.ts +6 -0
- package/dist/web/components/slot/index.js +9 -0
- package/dist/web/components/swiper/index.css +106 -0
- package/dist/web/components/swiper/index.d.ts +24 -0
- package/dist/web/components/swiper/index.js +149 -0
- package/dist/web/components/tabs/index.css +64 -0
- package/dist/web/components/tabs/index.d.ts +13 -0
- package/dist/web/components/tabs/index.js +15 -0
- package/dist/web/components/tabs/tabs.h5.d.ts +4 -0
- package/dist/web/components/tabs/tabs.h5.js +42 -0
- package/dist/web/components/tabs/tabs.pc.d.ts +3 -0
- package/dist/web/components/tabs/tabs.pc.js +40 -0
- package/dist/web/components/text/index.css +26 -0
- package/dist/web/components/text/index.d.ts +14 -0
- package/dist/web/components/text/index.js +17 -0
- package/dist/web/components/uploaderFileView/index.css +11 -0
- package/dist/web/components/uploaderFileView/index.d.ts +10 -0
- package/dist/web/components/uploaderFileView/index.js +61 -0
- package/dist/web/components/uploaderView/index.css +31 -0
- package/dist/web/components/uploaderView/index.d.ts +17 -0
- package/dist/web/components/uploaderView/index.js +48 -0
- package/dist/web/components/userInfo/index.d.ts +26 -0
- package/dist/web/components/userInfo/index.js +4 -0
- package/dist/web/components/wedaVideo/index.css +42 -0
- package/dist/web/components/wedaVideo/index.d.ts +17 -0
- package/dist/web/components/wedaVideo/index.js +159 -0
- package/dist/web/index.d.ts +8 -0
- package/dist/web/index.js +4 -0
- package/dist/web/utils/classnames.d.ts +2 -0
- package/dist/web/utils/classnames.js +37 -0
- package/dist/web/utils/constant.d.ts +23 -0
- package/dist/web/utils/constant.js +24 -0
- package/dist/web/utils/debounce.d.ts +2 -0
- package/dist/web/utils/debounce.js +92 -0
- package/dist/web/utils/events.d.ts +1 -0
- package/dist/web/utils/events.js +2 -0
- package/dist/web/utils/getLocalCounter.d.ts +1 -0
- package/dist/web/utils/getLocalCounter.js +4 -0
- package/dist/web/utils/isObjectEqual.d.ts +2 -0
- package/dist/web/utils/isObjectEqual.js +12 -0
- package/dist/web/utils/loading-fallback.d.ts +2 -0
- package/dist/web/utils/loading-fallback.js +2 -0
- package/dist/web/utils/lodash.d.ts +1 -0
- package/dist/web/utils/lodash.js +2 -0
- package/dist/web/utils/platform.d.ts +18 -0
- package/dist/web/utils/platform.js +191 -0
- package/dist/web/utils/tcb.d.ts +23 -0
- package/dist/web/utils/tcb.js +82 -0
- package/dist/web/utils/tmap.d.ts +3 -0
- package/dist/web/utils/tmap.js +21 -0
- package/dist/web/utils/useSetState.d.ts +1 -0
- package/dist/web/utils/useSetState.js +8 -0
- package/dist/web/utils/useSyncValue.d.ts +4 -0
- package/dist/web/utils/useSyncValue.js +15 -0
- package/dist/web/utils/weui.d.ts +1 -0
- package/dist/web/utils/weui.js +2 -0
- package/dist/web/weda-ui.css +90 -0
- package/package.json +12 -11
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://comp-public-1303824488.cos.ap-shanghai.myqcloud.com/schema/lcds_component.json",
|
|
3
|
+
"data": {
|
|
4
|
+
"properties": {
|
|
5
|
+
"scrollY": {
|
|
6
|
+
"title": "允许纵向滚动",
|
|
7
|
+
"type": "boolean",
|
|
8
|
+
"default": true,
|
|
9
|
+
"x-linkages": [
|
|
10
|
+
{
|
|
11
|
+
"type": "value:visible",
|
|
12
|
+
"target": "*(scrollTop)",
|
|
13
|
+
"condition": "{{ $self.value }}"
|
|
14
|
+
}
|
|
15
|
+
],
|
|
16
|
+
"x-category": "基础属性",
|
|
17
|
+
"remarks": "开启后,将开启纵向滚动条,组件支持上下滚动"
|
|
18
|
+
},
|
|
19
|
+
"scrollX": {
|
|
20
|
+
"title": "允许横向滚动",
|
|
21
|
+
"type": "boolean",
|
|
22
|
+
"default": false,
|
|
23
|
+
"x-linkages": [
|
|
24
|
+
{
|
|
25
|
+
"type": "value:visible",
|
|
26
|
+
"target": "*(scrollLeft)",
|
|
27
|
+
"condition": "{{ $self.value }}"
|
|
28
|
+
}
|
|
29
|
+
],
|
|
30
|
+
"x-category": "基础属性",
|
|
31
|
+
"remarks": "开启后,将开启横向滚动条,组件支持左右滚动"
|
|
32
|
+
},
|
|
33
|
+
"upperThreshold": {
|
|
34
|
+
"title": "距顶部/左边多远时,触发scrolltoupper事件",
|
|
35
|
+
"type": "number",
|
|
36
|
+
"default": 50,
|
|
37
|
+
"x-category": "高级属性"
|
|
38
|
+
},
|
|
39
|
+
"lowerThreshold": {
|
|
40
|
+
"title": "距底部/右边多远时,触发scrolltolower事件",
|
|
41
|
+
"type": "number",
|
|
42
|
+
"default": 50,
|
|
43
|
+
"x-category": "高级属性"
|
|
44
|
+
},
|
|
45
|
+
"scrollTop": {
|
|
46
|
+
"title": "竖向滚动条位置",
|
|
47
|
+
"type": "number",
|
|
48
|
+
"x-category": "高级属性",
|
|
49
|
+
"remarks": "输入默认值,竖向滚动条将默认移动到该位置"
|
|
50
|
+
},
|
|
51
|
+
"scrollLeft": {
|
|
52
|
+
"title": "横向滚动条位置",
|
|
53
|
+
"type": "number",
|
|
54
|
+
"x-category": "高级属性",
|
|
55
|
+
"remarks": "输入默认值,横向滚动条将默认移动到该位置"
|
|
56
|
+
},
|
|
57
|
+
"scrollIntoView": {
|
|
58
|
+
"title": "滚到的元素ID",
|
|
59
|
+
"type": "string",
|
|
60
|
+
"x-category": "高级属性",
|
|
61
|
+
"remarks": "将当前的元素滚动到浏览器窗口的可视区域内"
|
|
62
|
+
},
|
|
63
|
+
"scrollWithAnimation": {
|
|
64
|
+
"title": "在设置滚动条位置时使用动画过渡",
|
|
65
|
+
"type": "boolean",
|
|
66
|
+
"default": false,
|
|
67
|
+
"x-platforms": ["MP"],
|
|
68
|
+
"x-category": "高级属性",
|
|
69
|
+
"remarks": "开启滚动条动画"
|
|
70
|
+
},
|
|
71
|
+
"enableBackToTop": {
|
|
72
|
+
"title": "iOS点击顶部状态栏、安卓双击标题栏时,滚动条返回顶部,只支持竖向",
|
|
73
|
+
"type": "boolean",
|
|
74
|
+
"default": false,
|
|
75
|
+
"x-platforms": ["MP"],
|
|
76
|
+
"x-category": "高级属性",
|
|
77
|
+
"remarks": "开启后当执行对应操作后滚动条将自动返回顶部"
|
|
78
|
+
},
|
|
79
|
+
"enableFlex": {
|
|
80
|
+
"title": "启用 flexbox 布局",
|
|
81
|
+
"type": "boolean",
|
|
82
|
+
"default": false,
|
|
83
|
+
"x-platforms": ["MP"],
|
|
84
|
+
"x-category": "高级属性",
|
|
85
|
+
"remarks": "开启flexbox布局"
|
|
86
|
+
},
|
|
87
|
+
"scrollAnchoring": {
|
|
88
|
+
"title": "开启 scroll anchoring 特性",
|
|
89
|
+
"type": "boolean",
|
|
90
|
+
"default": false,
|
|
91
|
+
"x-platforms": ["MP"],
|
|
92
|
+
"x-category": "高级属性",
|
|
93
|
+
"remarks": "开启scroll-anchoring特性"
|
|
94
|
+
},
|
|
95
|
+
"refresherEnabled": {
|
|
96
|
+
"title": "开启自定义下拉刷新",
|
|
97
|
+
"type": "boolean",
|
|
98
|
+
"default": false,
|
|
99
|
+
"x-linkages": [
|
|
100
|
+
{
|
|
101
|
+
"type": "value:visible",
|
|
102
|
+
"target": "*(refresherThreshold,refresherDefaultStyle,refresherBackground,refresherTriggered)",
|
|
103
|
+
"condition": "{{ $self.value }}"
|
|
104
|
+
}
|
|
105
|
+
],
|
|
106
|
+
"x-platforms": ["MP"],
|
|
107
|
+
"x-category": "高级属性",
|
|
108
|
+
"remarks": "开启后可自定义对下拉刷新进行相关配置"
|
|
109
|
+
},
|
|
110
|
+
"refresherThreshold": {
|
|
111
|
+
"title": "设置自定义下拉刷新阈值",
|
|
112
|
+
"type": "number",
|
|
113
|
+
"default": 50,
|
|
114
|
+
"x-platforms": ["MP"],
|
|
115
|
+
"x-category": "高级属性"
|
|
116
|
+
},
|
|
117
|
+
"refresherDefaultStyle": {
|
|
118
|
+
"title": "设置自定义下拉刷新默认样式",
|
|
119
|
+
"type": "string",
|
|
120
|
+
"default": "block",
|
|
121
|
+
"x-component": "radio",
|
|
122
|
+
"enum": [
|
|
123
|
+
{
|
|
124
|
+
"label": "black",
|
|
125
|
+
"value": "black"
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"label": "white",
|
|
129
|
+
"value": "white"
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"label": "none",
|
|
133
|
+
"value": "none"
|
|
134
|
+
}
|
|
135
|
+
],
|
|
136
|
+
"x-platforms": ["MP"],
|
|
137
|
+
"x-category": "高级属性"
|
|
138
|
+
},
|
|
139
|
+
"refresherBackground": {
|
|
140
|
+
"title": "设置自定义下拉刷新区域背景颜色",
|
|
141
|
+
"type": "color",
|
|
142
|
+
"default": "#fff",
|
|
143
|
+
"x-platforms": ["MP"],
|
|
144
|
+
"x-category": "高级属性"
|
|
145
|
+
},
|
|
146
|
+
"refresherTriggered": {
|
|
147
|
+
"title": "设置当前下拉刷新状态",
|
|
148
|
+
"type": "boolean",
|
|
149
|
+
"default": false,
|
|
150
|
+
"x-platforms": ["MP"],
|
|
151
|
+
"x-category": "高级属性"
|
|
152
|
+
},
|
|
153
|
+
"enhanced": {
|
|
154
|
+
"title": "启用 scroll-view 增强特性",
|
|
155
|
+
"type": "boolean",
|
|
156
|
+
"default": false,
|
|
157
|
+
"x-linkages": [
|
|
158
|
+
{
|
|
159
|
+
"type": "value:visible",
|
|
160
|
+
"target": "*(bounces,showScrollbar,pagingEnabled,fastDeceleration)",
|
|
161
|
+
"condition": "{{ $self.value }}"
|
|
162
|
+
}
|
|
163
|
+
],
|
|
164
|
+
"x-platforms": ["MP"],
|
|
165
|
+
"x-category": "高级属性",
|
|
166
|
+
"remarks": "开启scroll-view增强特性 "
|
|
167
|
+
},
|
|
168
|
+
"bounces": {
|
|
169
|
+
"title": "iOS 下 scroll-view 边界弹性控制",
|
|
170
|
+
"type": "boolean",
|
|
171
|
+
"default": true,
|
|
172
|
+
"x-platforms": ["MP"],
|
|
173
|
+
"x-category": "高级属性"
|
|
174
|
+
},
|
|
175
|
+
"showScrollbar": {
|
|
176
|
+
"title": "滚动条显隐控制",
|
|
177
|
+
"type": "boolean",
|
|
178
|
+
"default": true,
|
|
179
|
+
"x-platforms": ["MP"],
|
|
180
|
+
"x-category": "基础属性",
|
|
181
|
+
"remarks": "控制滚动条是否显示/隐藏"
|
|
182
|
+
},
|
|
183
|
+
"pagingEnabled": {
|
|
184
|
+
"title": "分页滑动效果",
|
|
185
|
+
"type": "boolean",
|
|
186
|
+
"default": false,
|
|
187
|
+
"x-platforms": ["MP"],
|
|
188
|
+
"x-category": "高级属性"
|
|
189
|
+
},
|
|
190
|
+
"fastDeceleration": {
|
|
191
|
+
"title": "滑动减速速率控制",
|
|
192
|
+
"type": "boolean",
|
|
193
|
+
"default": false,
|
|
194
|
+
"x-platforms": ["MP"],
|
|
195
|
+
"x-category": "高级属性"
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
},
|
|
199
|
+
"events": [
|
|
200
|
+
{
|
|
201
|
+
"name": "scroll",
|
|
202
|
+
"title": "滚动时触发"
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
"name": "scrolltolower",
|
|
206
|
+
"title": "滚动到底部/右边时触发"
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
"name": "scrolltoupper",
|
|
210
|
+
"title": "滚动到顶部/左边时触发"
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
"name": "dragstart",
|
|
214
|
+
"title": "滑动开始事件(同时开启 enhanced 属性后生效)"
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"name": "dragging",
|
|
218
|
+
"title": "滑动事件(同时开启 enhanced 属性后生效)"
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"name": "dragend",
|
|
222
|
+
"title": "滑动结束事件(同时开启 enhanced 属性后生效)"
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
"name": "refresherpulling",
|
|
226
|
+
"title": "自定义下拉刷新控件被下拉"
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
"name": "refresherrefresh",
|
|
230
|
+
"title": "自定义下拉刷新被触发"
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"name": "refresherrestore",
|
|
234
|
+
"title": "自定义下拉刷新被复位"
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
"name": "refresherabort",
|
|
238
|
+
"title": "自定义下拉刷新被中止"
|
|
239
|
+
}
|
|
240
|
+
],
|
|
241
|
+
"meta": {
|
|
242
|
+
"title": "滚动容器",
|
|
243
|
+
"description": "当组件元素内容长度大于滚动容器时,滚动容器会出滚动条用来对页面内容进行滑动展示。",
|
|
244
|
+
"category": "布局容器",
|
|
245
|
+
"componentOrder": 80,
|
|
246
|
+
"icon": "//imgcache.qq.com/qcloud/lowcode/static/ide/left-material-icon/ScrollView.svg"
|
|
247
|
+
},
|
|
248
|
+
"configMeta": {
|
|
249
|
+
"docsUrl": "https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/grid/ScrollView"
|
|
250
|
+
},
|
|
251
|
+
"isContainer": true,
|
|
252
|
+
"mpOrigin": "scroll-view"
|
|
253
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://comp-public-1303824488.cos.ap-shanghai.myqcloud.com/schema/lcds_component.json",
|
|
3
|
+
"data": {
|
|
4
|
+
"properties": {
|
|
5
|
+
"name": {
|
|
6
|
+
"title": "插槽名称",
|
|
7
|
+
"type": "string",
|
|
8
|
+
"description": "类似小程序Slot的name属性"
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
"meta": {
|
|
13
|
+
"title": "插槽",
|
|
14
|
+
"description": "插槽视图容器",
|
|
15
|
+
"category": "布局容器"
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://comp-public-1303824488.cos.ap-shanghai.myqcloud.com/schema/lcds_component.json",
|
|
3
|
+
"data": {
|
|
4
|
+
"properties": {
|
|
5
|
+
"autoplay": {
|
|
6
|
+
"title": "自动切换",
|
|
7
|
+
"default": true,
|
|
8
|
+
"type": "boolean",
|
|
9
|
+
"x-category": "基础属性",
|
|
10
|
+
"remarks": "开启后,轮播图将会自动根据配置的时间间隔进行自动滚动,关闭后则轮播图仅支持通过点击锚点的方式进行切换"
|
|
11
|
+
},
|
|
12
|
+
"indicatorDots": {
|
|
13
|
+
"title": "导航锚点",
|
|
14
|
+
"default": true,
|
|
15
|
+
"type": "boolean",
|
|
16
|
+
"x-category": "高级属性",
|
|
17
|
+
"remarks": "开启/关闭轮播图锚点"
|
|
18
|
+
},
|
|
19
|
+
"current": {
|
|
20
|
+
"title": "当前所在滑块的 index",
|
|
21
|
+
"default": 0,
|
|
22
|
+
"type": "number",
|
|
23
|
+
"x-category": "高级属性",
|
|
24
|
+
"remarks": "更改轮播图的默认展示位置,0为默认展示第一张轮播图,以此类推"
|
|
25
|
+
},
|
|
26
|
+
"interval": {
|
|
27
|
+
"title": "自动切换时间间隔",
|
|
28
|
+
"default": 5000,
|
|
29
|
+
"type": "number",
|
|
30
|
+
"x-category": "基础属性",
|
|
31
|
+
"remarks": "配置轮播图滚动的时间间隔,时间单位为ms"
|
|
32
|
+
},
|
|
33
|
+
"duration": {
|
|
34
|
+
"title": "滑动动画时长",
|
|
35
|
+
"default": 500,
|
|
36
|
+
"type": "number",
|
|
37
|
+
"x-category": "高级属性",
|
|
38
|
+
"remarks": "更改轮播图切换时的滑动动画时长"
|
|
39
|
+
},
|
|
40
|
+
"circular": {
|
|
41
|
+
"title": "衔接滑动",
|
|
42
|
+
"default": true,
|
|
43
|
+
"type": "boolean",
|
|
44
|
+
"x-category": "高级属性",
|
|
45
|
+
"remarks": "更改轮播图切换时动画的滑动方式"
|
|
46
|
+
},
|
|
47
|
+
"vertical": {
|
|
48
|
+
"title": "纵向轮播",
|
|
49
|
+
"default": false,
|
|
50
|
+
"type": "boolean",
|
|
51
|
+
"x-category": "基础属性",
|
|
52
|
+
"remarks": "开启后,轮播的滚动方式将会由横向滚动变更为纵向滚动"
|
|
53
|
+
},
|
|
54
|
+
"indicatorColor": {
|
|
55
|
+
"title": "锚点颜色",
|
|
56
|
+
"type": "string",
|
|
57
|
+
"x-component": "color",
|
|
58
|
+
"default": "rgba(200, 200, 200, 0.9)",
|
|
59
|
+
"x-category": "高级属性",
|
|
60
|
+
"remarks": "更改锚点普通状态下的颜色"
|
|
61
|
+
},
|
|
62
|
+
"indicatorActiveColor": {
|
|
63
|
+
"title": "锚点激活色",
|
|
64
|
+
"type": "string",
|
|
65
|
+
"x-component": "color",
|
|
66
|
+
"default": "rgba(0, 0, 0, 0.9)",
|
|
67
|
+
"x-category": "高级属性",
|
|
68
|
+
"remarks": "更改锚点选中时的颜色"
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"events": [
|
|
73
|
+
{
|
|
74
|
+
"name": "change",
|
|
75
|
+
"title": "切换"
|
|
76
|
+
}
|
|
77
|
+
],
|
|
78
|
+
"meta": {
|
|
79
|
+
"title": "轮播容器",
|
|
80
|
+
"description": "用于快速在页面搭建轮播图展示效果,并支持轮播图的跳转、播放配置。",
|
|
81
|
+
"category": "布局容器",
|
|
82
|
+
"componentOrder": 80,
|
|
83
|
+
"icon": "//imgcache.qq.com/qcloud/lowcode/static/ide/left-material-icon/Swiper.svg"
|
|
84
|
+
},
|
|
85
|
+
"configMeta": {
|
|
86
|
+
"docsUrl": "https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/show/Swiper"
|
|
87
|
+
},
|
|
88
|
+
"isContainer": true,
|
|
89
|
+
"mpOrigin": "swiper"
|
|
90
|
+
}
|
|
@@ -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
|
+
"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
|
+
},
|
|
26
|
+
"tabs": {
|
|
27
|
+
"title": "选项卡标签",
|
|
28
|
+
"x-props": {
|
|
29
|
+
"data-hidebind": true,
|
|
30
|
+
"data-withBindMeta": true
|
|
31
|
+
},
|
|
32
|
+
"x-component-props": {
|
|
33
|
+
"origin-component": "list"
|
|
34
|
+
},
|
|
35
|
+
"x-index": 20,
|
|
36
|
+
"type": "array",
|
|
37
|
+
"maxLength": 20,
|
|
38
|
+
"default": [
|
|
39
|
+
{
|
|
40
|
+
"title": "选项一",
|
|
41
|
+
"value": "选项一"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"title": "选项二",
|
|
45
|
+
"value": "选项二"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"title": "选项三",
|
|
49
|
+
"value": "选项三"
|
|
50
|
+
}
|
|
51
|
+
],
|
|
52
|
+
"items": {
|
|
53
|
+
"type": "object",
|
|
54
|
+
"default": {
|
|
55
|
+
"title": "标签名称",
|
|
56
|
+
"value": "标签值"
|
|
57
|
+
},
|
|
58
|
+
"properties": {
|
|
59
|
+
"title": {
|
|
60
|
+
"title": "标签名称",
|
|
61
|
+
"type": "string",
|
|
62
|
+
"default": "标题"
|
|
63
|
+
},
|
|
64
|
+
"value": {
|
|
65
|
+
"type": "string",
|
|
66
|
+
"title": "标签值",
|
|
67
|
+
"default": "标签值"
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
"x-linkages": [
|
|
72
|
+
{
|
|
73
|
+
"target": "selectedIndex",
|
|
74
|
+
"type": "value:schema",
|
|
75
|
+
"schema": {
|
|
76
|
+
"x-component-props": {
|
|
77
|
+
"options": "{{ $value.map((title, index) => ({label: '选项' + (index + 1), value: index}) ) }}"
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
],
|
|
82
|
+
"x-component": "list-bind-switch",
|
|
83
|
+
"remarks": "更改选项卡标签的标题"
|
|
84
|
+
},
|
|
85
|
+
"selectedIndex": {
|
|
86
|
+
"title": "选中标签",
|
|
87
|
+
"type": "number",
|
|
88
|
+
"default": 0,
|
|
89
|
+
"x-index": 30,
|
|
90
|
+
"x-category": "基础属性",
|
|
91
|
+
"x-component": "select",
|
|
92
|
+
"remarks": "更改默认选中的选项卡标签"
|
|
93
|
+
},
|
|
94
|
+
"panel": {
|
|
95
|
+
"title": "面板1",
|
|
96
|
+
"x-index": 40,
|
|
97
|
+
"type": "slot",
|
|
98
|
+
"x-auto-num": {
|
|
99
|
+
"from": 1,
|
|
100
|
+
"to": "{{ $form.values.isMultipleSlot ? $form.values.tabs.length : 1 }}"
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
"events": [
|
|
106
|
+
{
|
|
107
|
+
"name": "change",
|
|
108
|
+
"title": "选项卡切换"
|
|
109
|
+
}
|
|
110
|
+
],
|
|
111
|
+
"meta": {
|
|
112
|
+
"name": "Tabs",
|
|
113
|
+
"title": "选项卡",
|
|
114
|
+
"description": "用于实现常见的选项卡切换效果。",
|
|
115
|
+
"category": "展示",
|
|
116
|
+
"icon": "//imgcache.qq.com/qcloud/lowcode/static/ide/left-material-icon/TabsContainer.svg"
|
|
117
|
+
},
|
|
118
|
+
"configMeta": {
|
|
119
|
+
"docsUrl": "https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/show/Tabs"
|
|
120
|
+
}
|
|
121
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
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
|
+
"type": "string",
|
|
8
|
+
"x-component": "textarea",
|
|
9
|
+
"default": "文本内容",
|
|
10
|
+
"x-category": "基础属性",
|
|
11
|
+
"x-index": 1,
|
|
12
|
+
"remarks": "更改显示的文本内容"
|
|
13
|
+
},
|
|
14
|
+
"level": {
|
|
15
|
+
"enum": [
|
|
16
|
+
{
|
|
17
|
+
"label": "正文",
|
|
18
|
+
"value": "0"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"label": "标题 H1",
|
|
22
|
+
"value": "1"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"label": "标题 H2",
|
|
26
|
+
"value": "2"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"label": "标题 H3",
|
|
30
|
+
"value": "3"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"label": "标题 H4",
|
|
34
|
+
"value": "4"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"label": "标题 H5",
|
|
38
|
+
"value": "5"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"label": "标题 H6",
|
|
42
|
+
"value": "6"
|
|
43
|
+
}
|
|
44
|
+
],
|
|
45
|
+
"type": "string",
|
|
46
|
+
"title": "文本格式",
|
|
47
|
+
"default": "0",
|
|
48
|
+
"x-index": 2,
|
|
49
|
+
"description": "标题级别,H1 - H6",
|
|
50
|
+
"remarks": "更改文本的展示级别"
|
|
51
|
+
},
|
|
52
|
+
"maxLines": {
|
|
53
|
+
"title": "最大行数",
|
|
54
|
+
"type": "number",
|
|
55
|
+
"description": "应用发布为小程序时,该属性不生效",
|
|
56
|
+
"default": 2,
|
|
57
|
+
"x-index": 5,
|
|
58
|
+
"x-category": "高级属性",
|
|
59
|
+
"remarks": "更改文本支持展示的最大行数,若最大行数无法承载当前文本内容,则会将超出内容用省略号来替代"
|
|
60
|
+
},
|
|
61
|
+
"space": {
|
|
62
|
+
"title": "连续空格",
|
|
63
|
+
"type": "boolean",
|
|
64
|
+
"description": "是否显示连续空格",
|
|
65
|
+
"default": false,
|
|
66
|
+
"x-category": "高级属性",
|
|
67
|
+
"remarks": "开启后文本组件将支持识别多个空格字符,关闭后文本组件仅支持识别单个空格字符(多空格字符会自动转换成单个空格字符)"
|
|
68
|
+
},
|
|
69
|
+
"userSelect": {
|
|
70
|
+
"title": "是否可选中",
|
|
71
|
+
"type": "boolean",
|
|
72
|
+
"description": "是否可选中文本",
|
|
73
|
+
"default": true,
|
|
74
|
+
"x-category": "高级属性",
|
|
75
|
+
"remarks": "关闭后文本将不支持进行选中,无法进行复制等常见文本操作"
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
"events": [
|
|
80
|
+
{
|
|
81
|
+
"name": "tap",
|
|
82
|
+
"title": "点击"
|
|
83
|
+
}
|
|
84
|
+
],
|
|
85
|
+
"meta": {
|
|
86
|
+
"title": "文本",
|
|
87
|
+
"description": "用于展示页面中的文本内容。",
|
|
88
|
+
"category": "文本",
|
|
89
|
+
"componentOrder": 100,
|
|
90
|
+
"icon": "//imgcache.qq.com/qcloud/lowcode/static/ide/left-material-icon/Text.svg"
|
|
91
|
+
},
|
|
92
|
+
"configMeta": {
|
|
93
|
+
"docsUrl": "https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/text/Text"
|
|
94
|
+
}
|
|
95
|
+
}
|
|
@@ -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
|
+
}
|