@cloudbase/weda-ui 0.2.15 → 1.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +41 -169
- package/package.json +28 -15
- package/src/configs/components/calendar.json +78 -0
- package/src/configs/components/carousel.json +273 -0
- package/src/configs/components/chart/bar.json +724 -0
- package/src/configs/components/chart/line.json +679 -0
- package/src/configs/components/chart/pie.json +497 -0
- package/src/configs/components/chart/statisticsCard.json +379 -0
- package/src/configs/components/container.json +7 -2
- package/src/configs/components/dataView.json +154 -0
- package/src/configs/components/form/checkbox.json +97 -5
- package/src/configs/components/form/location.json +152 -0
- package/src/configs/components/form/radio.json +96 -4
- package/src/configs/components/form/select.json +245 -11
- package/src/configs/components/form/uploaderFile.json +2 -1
- package/src/configs/components/graphicCard.json +410 -0
- package/src/configs/components/image.json +7 -2
- package/src/configs/components/link.json +20 -4
- package/src/configs/components/listView.json +277 -0
- package/src/configs/components/modal.json +37 -5
- package/src/configs/components/navLayout.json +362 -0
- package/src/configs/components/navigationBar.json +59 -0
- package/src/configs/components/richtextview.json +4 -1
- package/src/configs/components/scrollVeiw.json +74 -22
- package/src/configs/components/swiper.json +6 -3
- package/src/configs/components/tabs.json +51 -8
- package/src/configs/components/text.json +33 -25
- package/src/configs/components/wxOpenApi/phone.json +141 -0
- package/src/configs/components/wxOpenApi/phoneCode.json +121 -0
- package/src/configs/components/wxOpenApi/share.json +167 -0
- package/src/configs/components/wxOpenApi/userInfo.json +174 -0
- package/src/configs/index.js +34 -0
- package/src/mp/components/button/index.js +12 -13
- package/src/mp/components/button/index.wxml +1 -1
- package/src/mp/components/calendar/arrowright--line.svg +11 -0
- package/src/mp/components/calendar/index.js +238 -0
- package/src/mp/components/calendar/index.json +4 -0
- package/src/mp/components/calendar/index.wxml +37 -0
- package/src/mp/components/calendar/index.wxss +178 -0
- package/src/mp/components/carousel/index.js +88 -0
- package/src/mp/components/carousel/index.json +7 -0
- package/src/mp/components/carousel/index.wxml +6 -0
- package/src/mp/components/chart/bar/index.js +258 -0
- package/src/mp/components/chart/bar/index.json +6 -0
- package/src/mp/components/chart/bar/index.wxml +3 -0
- package/src/mp/components/chart/bar/index.wxss +9 -0
- package/src/mp/components/chart/common/config/bar.js +50 -0
- package/src/mp/components/chart/common/config/global.js +16 -0
- package/src/mp/components/chart/common/config/line.js +48 -0
- package/src/mp/components/chart/common/config/pie.js +36 -0
- package/src/mp/components/chart/common/core/eChartBar.js +263 -0
- package/src/mp/components/chart/common/core/eChartBase.js +375 -0
- package/src/mp/components/chart/common/core/eChartLine.js +229 -0
- package/src/mp/components/chart/common/core/eChartPie.js +166 -0
- package/src/mp/components/chart/common/lib/echarts.min.js +18 -0
- package/src/mp/components/chart/ec-canvas/ec-canvas.js +277 -0
- package/src/mp/components/chart/ec-canvas/ec-canvas.json +4 -0
- package/src/mp/components/chart/ec-canvas/ec-canvas.wxml +4 -0
- package/src/mp/components/chart/ec-canvas/ec-canvas.wxss +4 -0
- package/src/mp/components/chart/ec-canvas/wx-canvas.js +107 -0
- package/src/mp/components/chart/line/index.js +247 -0
- package/src/mp/components/chart/line/index.json +6 -0
- package/src/mp/components/chart/line/index.wxml +3 -0
- package/src/mp/components/chart/line/index.wxss +9 -0
- package/src/mp/components/chart/pie/index.js +182 -0
- package/src/mp/components/chart/pie/index.json +6 -0
- package/src/mp/components/chart/pie/index.wxml +4 -0
- package/src/mp/components/chart/pie/index.wxss +9 -0
- package/src/mp/components/chart/statisticsCard/index.js +253 -0
- package/src/mp/components/chart/statisticsCard/index.json +4 -0
- package/src/mp/components/chart/statisticsCard/index.wxml +9 -0
- package/src/mp/components/chart/statisticsCard/index.wxss +45 -0
- package/src/mp/components/dataView/index.js +34 -0
- package/src/mp/components/dataView/index.json +7 -0
- package/src/mp/components/dataView/index.wxml +15 -0
- package/src/mp/components/dataView/index.wxss +0 -0
- package/src/mp/components/form/checkbox/index.js +41 -2
- package/src/mp/components/form/checkbox/index.wxml +1 -1
- package/src/mp/components/form/input/index.js +1 -1
- package/src/mp/components/form/location/components/mapChoose/index.js +201 -0
- package/src/mp/components/form/location/components/mapChoose/index.json +4 -0
- package/src/mp/components/form/location/components/mapChoose/index.wxml +42 -0
- package/src/mp/components/form/location/components/mapChoose/index.wxss +188 -0
- package/src/mp/components/form/location/index.js +382 -0
- package/src/mp/components/form/location/index.json +6 -0
- package/src/mp/components/form/location/index.wxml +25 -0
- package/src/mp/components/form/location/index.wxss +91 -0
- package/src/mp/components/form/radio/index.js +38 -0
- package/src/mp/components/form/select/index.js +360 -40
- package/src/mp/components/form/select/index.wxml +21 -6
- package/src/mp/components/form/select/region/index.js +98 -0
- package/src/mp/components/form/textarea/index.wxml +6 -5
- package/src/mp/components/form/uploader/index.js +84 -48
- package/src/mp/components/form/uploader/index.wxml +15 -3
- package/src/mp/components/form/uploaderFile/index.js +106 -27
- package/src/mp/components/graphicCard/chevron-right.svg +3 -0
- package/src/mp/components/graphicCard/index.js +203 -0
- package/src/mp/components/graphicCard/index.json +4 -0
- package/src/mp/components/graphicCard/index.wxml +29 -0
- package/src/mp/components/graphicCard/index.wxss +157 -0
- package/src/mp/components/image/index.js +0 -1
- package/src/mp/components/listView/arrow-right-line.svg +3 -0
- package/src/mp/components/listView/index.js +285 -0
- package/src/mp/components/listView/index.json +4 -0
- package/src/mp/components/listView/index.wxml +40 -0
- package/src/mp/components/listView/index.wxss +155 -0
- package/src/mp/components/listView/more-line.svg +3 -0
- package/src/mp/components/navLayout/index.js +123 -0
- package/src/mp/components/navLayout/index.json +7 -0
- package/src/mp/components/navLayout/index.wxml +25 -0
- package/src/mp/components/navLayout/index.wxss +1193 -0
- package/src/mp/components/navigationBar/index.js +193 -0
- package/src/mp/components/navigationBar/index.json +6 -0
- package/src/mp/components/navigationBar/index.wxml +88 -0
- package/src/mp/components/navigationBar/index.wxss +1257 -0
- package/src/mp/components/swiper/index.wxml +2 -0
- package/src/mp/components/tabs/index.js +7 -2
- package/src/mp/components/tabs/index.wxml +2 -1
- package/src/mp/components/text/index.js +0 -25
- package/src/mp/components/text/index.wxml +3 -3
- package/src/mp/components/wxOpenApi/phone/index.js +117 -0
- package/src/mp/components/wxOpenApi/phone/index.json +4 -0
- package/src/mp/components/wxOpenApi/phone/index.wxml +15 -0
- package/src/mp/components/wxOpenApi/phone/index.wxss +22 -0
- package/src/mp/components/wxOpenApi/phoneCode/index.js +89 -0
- package/src/mp/components/wxOpenApi/phoneCode/index.json +4 -0
- package/src/mp/components/wxOpenApi/phoneCode/index.wxml +15 -0
- package/src/mp/components/wxOpenApi/phoneCode/index.wxss +22 -0
- package/src/mp/components/wxOpenApi/share/index.js +117 -0
- package/src/mp/components/wxOpenApi/share/index.json +4 -0
- package/src/mp/components/wxOpenApi/share/index.wxml +15 -0
- package/src/mp/components/wxOpenApi/share/index.wxss +22 -0
- package/src/mp/components/wxOpenApi/userInfo/index.js +88 -0
- package/src/mp/components/wxOpenApi/userInfo/index.json +4 -0
- package/src/mp/components/wxOpenApi/userInfo/index.wxml +14 -0
- package/src/mp/components/wxOpenApi/userInfo/index.wxss +22 -0
- package/src/mp/index.json +18 -2
- package/src/mp/style/weda-ui.wxss +2 -0
- package/src/mp/utils/debounce.js +133 -0
- package/src/mp/utils/destr.js +48 -0
- package/src/mp/utils/dr_square_point.js +25 -0
- package/src/mp/utils/platform.js +25 -0
- package/src/mp/utils/qqmap-wx-jssdk1.2/qqmap-wx-jssdk.js +1336 -0
- package/src/mp/utils/spark-md5.js +776 -0
- package/src/mp/utils/tcb.js +62 -0
- package/src/setupTests.js +2 -1
- package/src/web/components/button/index.css +8 -1
- package/src/web/components/button/index.tsx +3 -2
- package/src/web/components/calendar/index.css +382 -0
- package/src/web/components/calendar/index.jsx +312 -0
- package/src/web/components/calendar/util.js +90 -0
- package/src/web/components/carousel/index.css +119 -0
- package/src/web/components/carousel/index.tsx +417 -0
- package/src/web/components/chart/bar/index.tsx +140 -0
- package/src/web/components/chart/common/config/bar.js +49 -0
- package/src/web/components/chart/common/config/global.js +16 -0
- package/src/web/components/chart/common/config/line.js +50 -0
- package/src/web/components/chart/common/config/pie.js +37 -0
- package/src/web/components/chart/common/core/eChartBar.js +265 -0
- package/src/web/components/chart/common/core/eChartBase.ts +383 -0
- package/src/web/components/chart/common/core/eChartLine.js +231 -0
- package/src/web/components/chart/common/core/eChartPie.js +170 -0
- package/src/web/components/chart/common/core/type.ts +34 -0
- package/src/web/components/chart/common/echart.css +106 -0
- package/src/web/components/chart/common/echarts.ts +33 -0
- package/src/web/components/chart/common/useChart.tsx +69 -0
- package/src/web/components/chart/line/index.tsx +136 -0
- package/src/web/components/chart/pie/index.tsx +99 -0
- package/src/web/components/chart/statisticsCard/index.css +62 -0
- package/src/web/components/chart/statisticsCard/index.tsx +307 -0
- package/src/web/components/chart/statisticsCard/interface.ts +14 -0
- package/src/web/components/dataView/index.tsx +20 -0
- package/src/web/components/dataView/interface.ts +6 -0
- package/src/web/components/form/checkbox/index.tsx +55 -23
- package/src/web/components/form/location/common/mapChoose.css +178 -0
- package/src/web/components/form/location/common/mapChoose.jsx +343 -0
- package/src/web/components/form/location/common/mapView.jsx +190 -0
- package/src/web/components/form/location/common/propsConfig.js +54 -0
- package/src/web/components/form/location/common/selectModal.css +44 -0
- package/src/web/components/form/location/common/selectModal.jsx +82 -0
- package/src/web/components/form/location/common/useLocationInfo.js +100 -0
- package/src/web/components/form/location/components/LocationH5/index.css +243 -0
- package/src/web/components/form/location/components/LocationH5/location.h5.jsx +403 -0
- package/src/web/components/form/location/components/LocationPC/Header.jsx +109 -0
- package/src/web/components/form/location/components/LocationPC/index.css +44 -0
- package/src/web/components/form/location/components/LocationPC/location.PC.jsx +323 -0
- package/src/web/components/form/location/constants.js +4 -0
- package/src/web/components/form/location/index.css +0 -0
- package/src/web/components/form/location/index.jsx +25 -0
- package/src/web/components/form/radio/index.tsx +84 -53
- package/src/web/components/form/select/h5.tsx +389 -71
- package/src/web/components/form/select/index.css +10 -0
- package/src/web/components/form/select/index.tsx +404 -144
- package/src/web/components/form/select/region/index.ts +122 -31
- package/src/web/components/form/select/time.jsx +90 -0
- package/src/web/components/form/select/year.tsx +170 -0
- package/src/web/components/form/uploader/uploader.h5.tsx +19 -4
- package/src/web/components/form/uploader/uploader.pc.tsx +8 -7
- package/src/web/components/form/uploaderFile/uploadFile.h5.tsx +132 -113
- package/src/web/components/form/uploaderFile/uploadFile.pc.tsx +16 -11
- package/src/web/components/graphicCard/index.css +159 -0
- package/src/web/components/graphicCard/index.tsx +310 -0
- package/src/web/components/image/image.tsx +1 -2
- package/src/web/components/image/index.tsx +1 -1
- package/src/web/components/index.js +24 -2
- package/src/web/components/link/index.tsx +6 -3
- package/src/web/components/listView/arrow-right-line.svg +3 -0
- package/src/web/components/listView/index.css +143 -0
- package/src/web/components/listView/index.tsx +359 -0
- package/src/web/components/listView/interface.ts +98 -0
- package/src/web/components/modal/index.tsx +3 -1
- package/src/web/components/navLayout/index.css +332 -0
- package/src/web/components/navLayout/index.tsx +247 -0
- package/src/web/components/navigationBar/chevron-right--double.svg +3 -0
- package/src/web/components/navigationBar/common.tsx +198 -0
- package/src/web/components/navigationBar/h5Menu.tsx +179 -0
- package/src/web/components/navigationBar/horizontalMenu.tsx +200 -0
- package/src/web/components/navigationBar/index.css +762 -0
- package/src/web/components/navigationBar/index.tsx +231 -0
- package/src/web/components/navigationBar/type.d.ts +111 -0
- package/src/web/components/navigationBar/verticalMenu.tsx +81 -0
- package/src/web/components/phone/index.css +0 -0
- package/src/web/components/phone/index.tsx +22 -0
- package/src/web/components/phoneCode/index.css +0 -0
- package/src/web/components/phoneCode/index.tsx +22 -0
- package/src/web/components/richTextView/index.tsx +3 -5
- package/src/web/components/share/index.css +0 -0
- package/src/web/components/share/index.tsx +38 -0
- package/src/web/components/tabs/index.tsx +4 -2
- package/src/web/components/tabs/tabs.h5.tsx +50 -37
- package/src/web/components/tabs/tabs.pc.tsx +23 -10
- package/src/web/components/text/index.tsx +6 -14
- package/src/web/components/uploaderFileView/index.css +9 -9
- package/src/web/components/uploaderFileView/index.jsx +32 -23
- package/src/web/components/userInfo/index.css +0 -0
- package/src/web/components/userInfo/index.tsx +30 -0
- package/src/web/types.d.ts +15 -14
- package/src/web/utils/debounce.js +98 -0
- package/src/web/utils/platform.js +40 -0
- package/src/web/utils/tcb.js +49 -0
- package/src/web/utils/tmap.js +4 -0
- package/src/web/weda-ui.css +2 -0
- package/CHANGELOG.md +0 -240
- package/src/.DS_Store +0 -0
- package/src/configs/.DS_Store +0 -0
- package/src/mp/.gitignore +0 -10
- package/src/web/.DS_Store +0 -0
- package/src/web/components/form/select/region/cities.ts +0 -2410
- package/src/web/components/form/select/region/provinces.ts +0 -240
- package/src/web/components/form/select/region/regions.ts +0 -20645
|
@@ -0,0 +1,362 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://comp-public-1303824488.cos.ap-shanghai.myqcloud.com/schema/lcds_component.json",
|
|
3
|
+
"data": {
|
|
4
|
+
"properties": {
|
|
5
|
+
"navOption": {
|
|
6
|
+
"type": "array",
|
|
7
|
+
"title": "导航设置",
|
|
8
|
+
"icon": "icon",
|
|
9
|
+
"items": {
|
|
10
|
+
"type": "object",
|
|
11
|
+
"title": "tabs",
|
|
12
|
+
"x-icon": "this.icon !== '自定义图片' ? this.icon : null",
|
|
13
|
+
"x-image": "this.icon === '自定义图片' ? this.iconSrc : null",
|
|
14
|
+
"default": {
|
|
15
|
+
"icon": "自定义图片",
|
|
16
|
+
"title": "导航标题",
|
|
17
|
+
"iconSrc": "https://qcloudimg.tencent-cloud.cn/raw/fe54a986a821473655ba20afe30a543a.png"
|
|
18
|
+
},
|
|
19
|
+
"display": "title",
|
|
20
|
+
"properties": {
|
|
21
|
+
"icon": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"x-component": "icon2",
|
|
24
|
+
"x-component-props": {
|
|
25
|
+
"footer": {
|
|
26
|
+
"value": "自定义图片",
|
|
27
|
+
"label": "自定义图片"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"x-linkages": [
|
|
31
|
+
{
|
|
32
|
+
"type": "value:visible",
|
|
33
|
+
"target": "*(dataForm.iconSrc)",
|
|
34
|
+
"condition": "{{$self.value=='自定义图片'}}"
|
|
35
|
+
}
|
|
36
|
+
],
|
|
37
|
+
"title": "icon",
|
|
38
|
+
"default": "td:image",
|
|
39
|
+
"enum": [
|
|
40
|
+
"nointernet",
|
|
41
|
+
"success",
|
|
42
|
+
"warning",
|
|
43
|
+
"pending",
|
|
44
|
+
"refresh",
|
|
45
|
+
"folder",
|
|
46
|
+
"arrowup",
|
|
47
|
+
"arrowdown",
|
|
48
|
+
"arrowleft",
|
|
49
|
+
"arrowright",
|
|
50
|
+
"chevronup",
|
|
51
|
+
"chevrondown",
|
|
52
|
+
"chevronleft",
|
|
53
|
+
"chevronright",
|
|
54
|
+
"delete",
|
|
55
|
+
"edit",
|
|
56
|
+
"search",
|
|
57
|
+
"check",
|
|
58
|
+
"close",
|
|
59
|
+
"add",
|
|
60
|
+
"download",
|
|
61
|
+
"success-fill",
|
|
62
|
+
"close-fill",
|
|
63
|
+
"info-fill",
|
|
64
|
+
"pending-fill",
|
|
65
|
+
"warning-fill",
|
|
66
|
+
"more",
|
|
67
|
+
"star",
|
|
68
|
+
"star-fill",
|
|
69
|
+
"location",
|
|
70
|
+
"question"
|
|
71
|
+
],
|
|
72
|
+
"x-index": 30
|
|
73
|
+
},
|
|
74
|
+
"iconSrc": {
|
|
75
|
+
"type": "image",
|
|
76
|
+
"title": "",
|
|
77
|
+
"default": "",
|
|
78
|
+
"x-index": 35
|
|
79
|
+
},
|
|
80
|
+
"title": {
|
|
81
|
+
"type": "string",
|
|
82
|
+
"title": "标题",
|
|
83
|
+
"default": "导航标题",
|
|
84
|
+
"x-index": 10
|
|
85
|
+
},
|
|
86
|
+
"tapStatus": {
|
|
87
|
+
"enum": [
|
|
88
|
+
{
|
|
89
|
+
"value": "tap",
|
|
90
|
+
"label": "无行为",
|
|
91
|
+
"icon": "weda-editor-icon-alert-close"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"value": "inside",
|
|
95
|
+
"label": "打开页面",
|
|
96
|
+
"icon": "weda-editor-icon-docs"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"value": "outer",
|
|
100
|
+
"label": "外部链接",
|
|
101
|
+
"icon": "weda-editor-icon-link",
|
|
102
|
+
"tooltip": [
|
|
103
|
+
{
|
|
104
|
+
"platform": [
|
|
105
|
+
"ALL",
|
|
106
|
+
"MP"
|
|
107
|
+
],
|
|
108
|
+
"text": "小程序平台不支持跳转外部链接"
|
|
109
|
+
}
|
|
110
|
+
],
|
|
111
|
+
"disabled": [
|
|
112
|
+
{
|
|
113
|
+
"platform": [
|
|
114
|
+
"MP"
|
|
115
|
+
]
|
|
116
|
+
}
|
|
117
|
+
]
|
|
118
|
+
}
|
|
119
|
+
],
|
|
120
|
+
"type": "string",
|
|
121
|
+
"title": "点击时",
|
|
122
|
+
"default": "tap",
|
|
123
|
+
"x-index": 40,
|
|
124
|
+
"x-component": "icon-text-radio",
|
|
125
|
+
"x-linkages": [
|
|
126
|
+
{
|
|
127
|
+
"type": "value:visible",
|
|
128
|
+
"target": "*(dataForm.insideUrl)",
|
|
129
|
+
"condition": "{{$self.value=='inside'}}"
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"type": "value:visible",
|
|
133
|
+
"target": "*(dataForm.outerUrl)",
|
|
134
|
+
"condition": "{{$self.value=='outer'}}"
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"type": "value:visible",
|
|
138
|
+
"target": "*(dataForm.withParams)",
|
|
139
|
+
"condition": "{{$self.value=='inside'}}"
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"type": "value:visible",
|
|
143
|
+
"target": "*(dataForm.newPage)",
|
|
144
|
+
"condition": "{{$self.value=='outer'}}"
|
|
145
|
+
}
|
|
146
|
+
]
|
|
147
|
+
},
|
|
148
|
+
"insideUrl": {
|
|
149
|
+
"type": "string",
|
|
150
|
+
"x-component": "page-list",
|
|
151
|
+
"default": "",
|
|
152
|
+
"title": "应用页面",
|
|
153
|
+
"x-category": "基础属性",
|
|
154
|
+
"x-index": 120,
|
|
155
|
+
"x-component-props": {
|
|
156
|
+
"hideAddPlatform": [
|
|
157
|
+
"MP"
|
|
158
|
+
],
|
|
159
|
+
"addHidden": true
|
|
160
|
+
},
|
|
161
|
+
"x-linkages": [
|
|
162
|
+
{
|
|
163
|
+
"type": "value:state",
|
|
164
|
+
"target": "*(dataForm.params)",
|
|
165
|
+
"condition": "{{$self.value && $self.value.length>0}}",
|
|
166
|
+
"state": {
|
|
167
|
+
"pageId": "{{$self.value}}"
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
]
|
|
171
|
+
},
|
|
172
|
+
"outerUrl": {
|
|
173
|
+
"title": "URL地址",
|
|
174
|
+
"default": "",
|
|
175
|
+
"type": "string"
|
|
176
|
+
},
|
|
177
|
+
"newPage": {
|
|
178
|
+
"title": "打开新页面",
|
|
179
|
+
"default": false,
|
|
180
|
+
"type": "boolean"
|
|
181
|
+
},
|
|
182
|
+
"withParams": {
|
|
183
|
+
"title": "携带参数",
|
|
184
|
+
"default": false,
|
|
185
|
+
"type": "boolean",
|
|
186
|
+
"x-linkages": [
|
|
187
|
+
{
|
|
188
|
+
"type": "value:visible",
|
|
189
|
+
"target": "*(dataForm.params)",
|
|
190
|
+
"condition": "{{$self.value==true}}"
|
|
191
|
+
}
|
|
192
|
+
]
|
|
193
|
+
},
|
|
194
|
+
"params": {
|
|
195
|
+
"type": "array",
|
|
196
|
+
"title": "参数",
|
|
197
|
+
"pageId": "",
|
|
198
|
+
"x-component": "page-params",
|
|
199
|
+
"default": []
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
},
|
|
203
|
+
"default": [
|
|
204
|
+
{
|
|
205
|
+
"icon": "自定义图片",
|
|
206
|
+
"iconSrc": "https://qcloudimg.tencent-cloud.cn/raw/82b92ea0caf05f372f3432bd44764f0a.png",
|
|
207
|
+
"title": "导航标题",
|
|
208
|
+
"tapStatus": "tap"
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
"icon": "自定义图片",
|
|
212
|
+
"iconSrc": "https://qcloudimg.tencent-cloud.cn/raw/fe54a986a821473655ba20afe30a543a.png",
|
|
213
|
+
"title": "导航标题",
|
|
214
|
+
"tapStatus": "tap"
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"icon": "自定义图片",
|
|
218
|
+
"iconSrc": "https://qcloudimg.tencent-cloud.cn/raw/12a888a3abe20890894ccf6e73a9eb06.png",
|
|
219
|
+
"title": "导航标题",
|
|
220
|
+
"tapStatus": "tap"
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
"icon": "自定义图片",
|
|
224
|
+
"iconSrc": "https://qcloudimg.tencent-cloud.cn/raw/8330f8833919254e6b779fb543a53e39.png",
|
|
225
|
+
"title": "导航标题",
|
|
226
|
+
"tapStatus": "tap"
|
|
227
|
+
}
|
|
228
|
+
],
|
|
229
|
+
"x-index": 1,
|
|
230
|
+
"x-component": "list"
|
|
231
|
+
},
|
|
232
|
+
"mobileCol": {
|
|
233
|
+
"type": "number",
|
|
234
|
+
"default": 4,
|
|
235
|
+
"title": "移动端列数",
|
|
236
|
+
"x-category": "基础属性",
|
|
237
|
+
"enum": [
|
|
238
|
+
{
|
|
239
|
+
"label": "3",
|
|
240
|
+
"value": 3
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
"label": "4",
|
|
244
|
+
"value": 4
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
"label": "5",
|
|
248
|
+
"value": 5
|
|
249
|
+
}
|
|
250
|
+
]
|
|
251
|
+
},
|
|
252
|
+
"pcCol": {
|
|
253
|
+
"type": "number",
|
|
254
|
+
"default": 4,
|
|
255
|
+
"title": "PC端列数",
|
|
256
|
+
"x-category": "基础属性",
|
|
257
|
+
"enum": [
|
|
258
|
+
{
|
|
259
|
+
"label": "3",
|
|
260
|
+
"value": 3
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
"label": "4",
|
|
264
|
+
"value": 4
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
"label": "5",
|
|
268
|
+
"value": 5
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
"label": "6",
|
|
272
|
+
"value": 6
|
|
273
|
+
}
|
|
274
|
+
]
|
|
275
|
+
},
|
|
276
|
+
"iconSize": {
|
|
277
|
+
"type": "string",
|
|
278
|
+
"default": "medium",
|
|
279
|
+
"title": "icon尺寸",
|
|
280
|
+
"x-category": "基础属性",
|
|
281
|
+
"enum": [
|
|
282
|
+
{
|
|
283
|
+
"label": "小",
|
|
284
|
+
"value": "small"
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
"label": "中",
|
|
288
|
+
"value": "medium"
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
"label": "大",
|
|
292
|
+
"value": "big"
|
|
293
|
+
}
|
|
294
|
+
]
|
|
295
|
+
},
|
|
296
|
+
"textColor": {
|
|
297
|
+
"title": "标题颜色",
|
|
298
|
+
"type": "string",
|
|
299
|
+
"x-component": "color",
|
|
300
|
+
"x-index": 50,
|
|
301
|
+
"x-category": "高级属性",
|
|
302
|
+
"default": "rgb(0, 0, 0)"
|
|
303
|
+
},
|
|
304
|
+
"fontWeight": {
|
|
305
|
+
"type": "string",
|
|
306
|
+
"title": "字重",
|
|
307
|
+
"default": "normal",
|
|
308
|
+
"x-category": "高级属性",
|
|
309
|
+
"x-index": 40,
|
|
310
|
+
"enum": [
|
|
311
|
+
{
|
|
312
|
+
"label": "细",
|
|
313
|
+
"value": "lighter"
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
"label": "正常",
|
|
317
|
+
"value": "normal"
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
"label": "粗",
|
|
321
|
+
"value": "bolder"
|
|
322
|
+
}
|
|
323
|
+
]
|
|
324
|
+
},
|
|
325
|
+
"fontSize": {
|
|
326
|
+
"type": "number",
|
|
327
|
+
"title": "字号",
|
|
328
|
+
"default": 14,
|
|
329
|
+
"x-category": "高级属性",
|
|
330
|
+
"x-props": {
|
|
331
|
+
"min": 0,
|
|
332
|
+
"max": 100
|
|
333
|
+
},
|
|
334
|
+
"x-index": 45
|
|
335
|
+
},
|
|
336
|
+
"lineHeight": {
|
|
337
|
+
"title": "行高",
|
|
338
|
+
"type": "string",
|
|
339
|
+
"x-index": 56,
|
|
340
|
+
"x-category": "高级属性",
|
|
341
|
+
"default": "auto"
|
|
342
|
+
},
|
|
343
|
+
"maxLines": {
|
|
344
|
+
"title": "标题行数",
|
|
345
|
+
"type": "number",
|
|
346
|
+
"default": 1,
|
|
347
|
+
"x-index": 60,
|
|
348
|
+
"x-category": "高级属性"
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
},
|
|
352
|
+
"meta": {
|
|
353
|
+
"title": "宫格导航",
|
|
354
|
+
"description": "用于宫格布局样式下的导航项目展示。",
|
|
355
|
+
"category": "导航菜单",
|
|
356
|
+
"componentOrder": 100,
|
|
357
|
+
"icon": "//imgcache.qq.com/qcloud/lowcode/static/ide/left-material-icon/NavLayout.svg"
|
|
358
|
+
},
|
|
359
|
+
"configMeta": {
|
|
360
|
+
"docsUrl": "https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/navmenu/NavLayout"
|
|
361
|
+
}
|
|
362
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://comp-public-1303824488.cos.ap-shanghai.myqcloud.com/schema/lcds_component.json",
|
|
3
|
+
"data": {
|
|
4
|
+
"properties": {
|
|
5
|
+
"navigationbar": {
|
|
6
|
+
"title": "导航",
|
|
7
|
+
"type": "object",
|
|
8
|
+
"x-component": "navigationbar",
|
|
9
|
+
"x-props": {
|
|
10
|
+
"data-hidebind": true,
|
|
11
|
+
"itemClassName": "navigation-menu-form-item"
|
|
12
|
+
},
|
|
13
|
+
"properties": {
|
|
14
|
+
"menuData": {
|
|
15
|
+
"title": "",
|
|
16
|
+
"type": "array",
|
|
17
|
+
"items": { "type": "object", "properties": {} }
|
|
18
|
+
},
|
|
19
|
+
"navigationStyle": {
|
|
20
|
+
"title": "",
|
|
21
|
+
"type": "object",
|
|
22
|
+
"properties": {}
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"default": {
|
|
26
|
+
"menuData": [],
|
|
27
|
+
"navigationStyle": {
|
|
28
|
+
"isHorizontal": false,
|
|
29
|
+
"showMenuIcon": true,
|
|
30
|
+
"fixedTop": true,
|
|
31
|
+
"menuFontSize": 16,
|
|
32
|
+
"menuBackgroundColor": "#fff",
|
|
33
|
+
"menuColor": "#000",
|
|
34
|
+
"menuHoverColor": "#f3f3f3",
|
|
35
|
+
"showTitle": true,
|
|
36
|
+
"title": "标题",
|
|
37
|
+
"showLogo": true,
|
|
38
|
+
"logoUrl": "https://imgcache.qq.com/qcloud/tcloud_dtc/static/static_source_business/43d3b2b7-445c-4858-8eb0-50ac5d5cc08e.svg ",
|
|
39
|
+
"titleFontSize": 18,
|
|
40
|
+
"titleColor": "#000",
|
|
41
|
+
"logoWidth": 32,
|
|
42
|
+
"logoHeight": 32
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"contentSlot": {
|
|
47
|
+
"type": "slot"
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"meta": {
|
|
52
|
+
"title": "菜单导航",
|
|
53
|
+
"description": "菜单导航",
|
|
54
|
+
"category": "导航菜单",
|
|
55
|
+
"componentOrder": 100,
|
|
56
|
+
"icon": "//qcloudimg.tencent-cloud.cn/raw/ceb22869566dbc9fd6cc0d090b324171.svg",
|
|
57
|
+
"visible": "(APP & !MODEL_APP) | COMPONENT"
|
|
58
|
+
}
|
|
59
|
+
}
|
|
@@ -14,9 +14,12 @@
|
|
|
14
14
|
},
|
|
15
15
|
"meta": {
|
|
16
16
|
"title": "富文本展示",
|
|
17
|
-
"description": "
|
|
17
|
+
"description": "用于对富文本类型的数据进行转换与展示。",
|
|
18
18
|
"category": "文本",
|
|
19
19
|
"componentOrder": 0,
|
|
20
20
|
"icon": "//imgcache.qq.com/qcloud/lowcode/static/ide/left-material-icon/RichTextView.svg"
|
|
21
|
+
},
|
|
22
|
+
"configMeta": {
|
|
23
|
+
"docsUrl": "https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/text/RichTextView"
|
|
21
24
|
}
|
|
22
25
|
}
|
|
@@ -59,28 +59,36 @@
|
|
|
59
59
|
"title": "在设置滚动条位置时使用动画过渡",
|
|
60
60
|
"type": "boolean",
|
|
61
61
|
"default": false,
|
|
62
|
-
"x-platforms": [
|
|
62
|
+
"x-platforms": [
|
|
63
|
+
"MP"
|
|
64
|
+
],
|
|
63
65
|
"x-category": "高级属性"
|
|
64
66
|
},
|
|
65
67
|
"enableBackToTop": {
|
|
66
68
|
"title": "iOS点击顶部状态栏、安卓双击标题栏时,滚动条返回顶部,只支持竖向",
|
|
67
69
|
"type": "boolean",
|
|
68
70
|
"default": false,
|
|
69
|
-
"x-platforms": [
|
|
71
|
+
"x-platforms": [
|
|
72
|
+
"MP"
|
|
73
|
+
],
|
|
70
74
|
"x-category": "高级属性"
|
|
71
75
|
},
|
|
72
76
|
"enableFlex": {
|
|
73
77
|
"title": "启用 flexbox 布局",
|
|
74
78
|
"type": "boolean",
|
|
75
79
|
"default": false,
|
|
76
|
-
"x-platforms": [
|
|
80
|
+
"x-platforms": [
|
|
81
|
+
"MP"
|
|
82
|
+
],
|
|
77
83
|
"x-category": "高级属性"
|
|
78
84
|
},
|
|
79
85
|
"scrollAnchoring": {
|
|
80
86
|
"title": "开启 scroll anchoring 特性",
|
|
81
87
|
"type": "boolean",
|
|
82
88
|
"default": false,
|
|
83
|
-
"x-platforms": [
|
|
89
|
+
"x-platforms": [
|
|
90
|
+
"MP"
|
|
91
|
+
],
|
|
84
92
|
"x-category": "高级属性"
|
|
85
93
|
},
|
|
86
94
|
"refresherEnabled": {
|
|
@@ -94,14 +102,18 @@
|
|
|
94
102
|
"condition": "{{ $self.value }}"
|
|
95
103
|
}
|
|
96
104
|
],
|
|
97
|
-
"x-platforms": [
|
|
105
|
+
"x-platforms": [
|
|
106
|
+
"MP"
|
|
107
|
+
],
|
|
98
108
|
"x-category": "高级属性"
|
|
99
109
|
},
|
|
100
110
|
"refresherThreshold": {
|
|
101
111
|
"title": "设置自定义下拉刷新阈值",
|
|
102
112
|
"type": "number",
|
|
103
113
|
"default": 50,
|
|
104
|
-
"x-platforms": [
|
|
114
|
+
"x-platforms": [
|
|
115
|
+
"MP"
|
|
116
|
+
],
|
|
105
117
|
"x-category": "高级属性"
|
|
106
118
|
},
|
|
107
119
|
"refresherDefaultStyle": {
|
|
@@ -123,21 +135,27 @@
|
|
|
123
135
|
"value": "none"
|
|
124
136
|
}
|
|
125
137
|
],
|
|
126
|
-
"x-platforms": [
|
|
138
|
+
"x-platforms": [
|
|
139
|
+
"MP"
|
|
140
|
+
],
|
|
127
141
|
"x-category": "高级属性"
|
|
128
142
|
},
|
|
129
143
|
"refresherBackground": {
|
|
130
144
|
"title": "设置自定义下拉刷新区域背景颜色",
|
|
131
145
|
"type": "color",
|
|
132
146
|
"default": "#fff",
|
|
133
|
-
"x-platforms": [
|
|
147
|
+
"x-platforms": [
|
|
148
|
+
"MP"
|
|
149
|
+
],
|
|
134
150
|
"x-category": "高级属性"
|
|
135
151
|
},
|
|
136
152
|
"refresherTriggered": {
|
|
137
153
|
"title": "设置当前下拉刷新状态",
|
|
138
154
|
"type": "boolean",
|
|
139
155
|
"default": false,
|
|
140
|
-
"x-platforms": [
|
|
156
|
+
"x-platforms": [
|
|
157
|
+
"MP"
|
|
158
|
+
],
|
|
141
159
|
"x-category": "高级属性"
|
|
142
160
|
},
|
|
143
161
|
"enhanced": {
|
|
@@ -151,43 +169,62 @@
|
|
|
151
169
|
"condition": "{{ $self.value }}"
|
|
152
170
|
}
|
|
153
171
|
],
|
|
154
|
-
"x-platforms": [
|
|
172
|
+
"x-platforms": [
|
|
173
|
+
"MP"
|
|
174
|
+
],
|
|
155
175
|
"x-category": "高级属性"
|
|
156
176
|
},
|
|
157
177
|
"bounces": {
|
|
158
178
|
"title": "iOS 下 scroll-view 边界弹性控制",
|
|
159
179
|
"type": "boolean",
|
|
160
180
|
"default": true,
|
|
161
|
-
"x-platforms": [
|
|
181
|
+
"x-platforms": [
|
|
182
|
+
"MP"
|
|
183
|
+
],
|
|
162
184
|
"x-category": "高级属性"
|
|
163
185
|
},
|
|
164
186
|
"showScrollbar": {
|
|
165
187
|
"title": "滚动条显隐控制",
|
|
166
188
|
"type": "boolean",
|
|
167
189
|
"default": true,
|
|
168
|
-
"x-platforms": [
|
|
190
|
+
"x-platforms": [
|
|
191
|
+
"MP"
|
|
192
|
+
],
|
|
169
193
|
"x-category": "基础属性"
|
|
170
194
|
},
|
|
171
195
|
"pagingEnabled": {
|
|
172
196
|
"title": "分页滑动效果",
|
|
173
197
|
"type": "boolean",
|
|
174
198
|
"default": false,
|
|
175
|
-
"x-platforms": [
|
|
199
|
+
"x-platforms": [
|
|
200
|
+
"MP"
|
|
201
|
+
],
|
|
176
202
|
"x-category": "高级属性"
|
|
177
203
|
},
|
|
178
204
|
"fastDeceleration": {
|
|
179
205
|
"title": "滑动减速速率控制",
|
|
180
206
|
"type": "boolean",
|
|
181
207
|
"default": false,
|
|
182
|
-
"x-platforms": [
|
|
208
|
+
"x-platforms": [
|
|
209
|
+
"MP"
|
|
210
|
+
],
|
|
183
211
|
"x-category": "高级属性"
|
|
184
212
|
}
|
|
185
213
|
}
|
|
186
214
|
},
|
|
187
215
|
"events": [
|
|
188
|
-
{
|
|
189
|
-
|
|
190
|
-
|
|
216
|
+
{
|
|
217
|
+
"name": "scroll",
|
|
218
|
+
"title": "滚动时触发"
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"name": "scrolltolower",
|
|
222
|
+
"title": "滚动到底部/右边时触发"
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
"name": "scrolltoupper",
|
|
226
|
+
"title": "滚动到顶部/左边时触发"
|
|
227
|
+
},
|
|
191
228
|
{
|
|
192
229
|
"name": "dragstart",
|
|
193
230
|
"title": "滑动开始事件(同时开启 enhanced 属性后生效)"
|
|
@@ -200,18 +237,33 @@
|
|
|
200
237
|
"name": "dragend",
|
|
201
238
|
"title": "滑动结束事件(同时开启 enhanced 属性后生效)"
|
|
202
239
|
},
|
|
203
|
-
{
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
240
|
+
{
|
|
241
|
+
"name": "refresherpulling",
|
|
242
|
+
"title": "自定义下拉刷新控件被下拉"
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
"name": "refresherrefresh",
|
|
246
|
+
"title": "自定义下拉刷新被触发"
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
"name": "refresherrestore",
|
|
250
|
+
"title": "自定义下拉刷新被复位"
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
"name": "refresherabort",
|
|
254
|
+
"title": "自定义下拉刷新被中止"
|
|
255
|
+
}
|
|
207
256
|
],
|
|
208
257
|
"meta": {
|
|
209
258
|
"title": "滚动容器",
|
|
210
|
-
"description": "
|
|
259
|
+
"description": "当组件元素内容长度大于滚动容器时,滚动容器会出滚动条用来对页面内容进行滑动展示。",
|
|
211
260
|
"category": "布局容器",
|
|
212
261
|
"componentOrder": 80,
|
|
213
262
|
"icon": "//imgcache.qq.com/qcloud/lowcode/static/ide/left-material-icon/ScrollView.svg"
|
|
214
263
|
},
|
|
264
|
+
"configMeta": {
|
|
265
|
+
"docsUrl": "https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/grid/ScrollView"
|
|
266
|
+
},
|
|
215
267
|
"isContainer": true,
|
|
216
268
|
"mpOrigin": "scroll-view"
|
|
217
269
|
}
|
|
@@ -67,12 +67,15 @@
|
|
|
67
67
|
}
|
|
68
68
|
],
|
|
69
69
|
"meta": {
|
|
70
|
-
"title": "
|
|
71
|
-
"description": "
|
|
72
|
-
"category": "
|
|
70
|
+
"title": "轮播容器",
|
|
71
|
+
"description": "用于快速在页面搭建轮播图展示效果,并支持轮播图的跳转、播放配置。",
|
|
72
|
+
"category": "布局容器",
|
|
73
73
|
"componentOrder": 80,
|
|
74
74
|
"icon": "//imgcache.qq.com/qcloud/lowcode/static/ide/left-material-icon/Swiper.svg"
|
|
75
75
|
},
|
|
76
|
+
"configMeta": {
|
|
77
|
+
"docsUrl": "https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/show/Swiper"
|
|
78
|
+
},
|
|
76
79
|
"isContainer": true,
|
|
77
80
|
"mpOrigin": "swiper"
|
|
78
81
|
}
|