@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,410 @@
|
|
|
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": "示例标题",
|
|
12
|
+
"x-image": "this.icon",
|
|
13
|
+
"default": {
|
|
14
|
+
"icon": "https://qcloudimg.tencent-cloud.cn/raw/478c35e469057b4d6352ccc14e00ebc5.png",
|
|
15
|
+
"title": "示例标题",
|
|
16
|
+
"des": "这是一段示例描述,这是一段示例描述"
|
|
17
|
+
},
|
|
18
|
+
"display": "title",
|
|
19
|
+
"properties": {
|
|
20
|
+
"icon": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"x-component": "image",
|
|
23
|
+
"title": "图片",
|
|
24
|
+
"default": "https://qcloudimg.tencent-cloud.cn/raw/478c35e469057b4d6352ccc14e00ebc5.png",
|
|
25
|
+
"x-index": 20
|
|
26
|
+
},
|
|
27
|
+
"title": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"title": "标题",
|
|
30
|
+
"default": "示例标题",
|
|
31
|
+
"x-index": 10
|
|
32
|
+
},
|
|
33
|
+
"des": {
|
|
34
|
+
"type": "string",
|
|
35
|
+
"title": "描述",
|
|
36
|
+
"default": "这是一段示例描述,这是一段示例描述",
|
|
37
|
+
"x-index": 15
|
|
38
|
+
},
|
|
39
|
+
"tapStatus": {
|
|
40
|
+
"enum": [
|
|
41
|
+
{
|
|
42
|
+
"value": "tap",
|
|
43
|
+
"label": "无行为",
|
|
44
|
+
"icon": "weda-editor-icon-alert-close"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"value": "inside",
|
|
48
|
+
"label": "打开页面",
|
|
49
|
+
"icon": "weda-editor-icon-docs"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"value": "outer",
|
|
53
|
+
"label": "外部链接",
|
|
54
|
+
"icon": "weda-editor-icon-link",
|
|
55
|
+
"tooltip": [
|
|
56
|
+
{
|
|
57
|
+
"platform": [
|
|
58
|
+
"ALL",
|
|
59
|
+
"MP"
|
|
60
|
+
],
|
|
61
|
+
"text": "小程序平台不支持跳转外部链接"
|
|
62
|
+
}
|
|
63
|
+
],
|
|
64
|
+
"disabled": [
|
|
65
|
+
{
|
|
66
|
+
"platform": [
|
|
67
|
+
"MP"
|
|
68
|
+
]
|
|
69
|
+
}
|
|
70
|
+
]
|
|
71
|
+
}
|
|
72
|
+
],
|
|
73
|
+
"type": "string",
|
|
74
|
+
"title": "点击时",
|
|
75
|
+
"default": "tap",
|
|
76
|
+
"x-index": 40,
|
|
77
|
+
"x-component": "icon-text-radio",
|
|
78
|
+
"x-linkages": [
|
|
79
|
+
{
|
|
80
|
+
"type": "value:visible",
|
|
81
|
+
"target": "*(dataForm.insideUrl)",
|
|
82
|
+
"condition": "{{$self.value=='inside'}}"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"type": "value:visible",
|
|
86
|
+
"target": "*(dataForm.outerUrl)",
|
|
87
|
+
"condition": "{{$self.value=='outer'}}"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"type": "value:visible",
|
|
91
|
+
"target": "*(dataForm.withParams)",
|
|
92
|
+
"condition": "{{$self.value=='inside'}}"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"type": "value:visible",
|
|
96
|
+
"target": "*(dataForm.newPage)",
|
|
97
|
+
"condition": "{{$self.value=='outer'}}"
|
|
98
|
+
}
|
|
99
|
+
]
|
|
100
|
+
},
|
|
101
|
+
"insideUrl": {
|
|
102
|
+
"type": "string",
|
|
103
|
+
"x-component": "page-list",
|
|
104
|
+
"default": "",
|
|
105
|
+
"title": "应用页面",
|
|
106
|
+
"x-category": "基础属性",
|
|
107
|
+
"x-index": 120,
|
|
108
|
+
"x-component-props": {
|
|
109
|
+
"hideAddPlatform": [
|
|
110
|
+
"MP"
|
|
111
|
+
],
|
|
112
|
+
"addHidden": true
|
|
113
|
+
},
|
|
114
|
+
"x-linkages": [
|
|
115
|
+
{
|
|
116
|
+
"type": "value:state",
|
|
117
|
+
"target": "*(dataForm.params)",
|
|
118
|
+
"condition": "{{$self.value && $self.value.length>0}}",
|
|
119
|
+
"state": {
|
|
120
|
+
"pageId": "{{$self.value}}"
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
]
|
|
124
|
+
},
|
|
125
|
+
"outerUrl": {
|
|
126
|
+
"title": "URL地址",
|
|
127
|
+
"default": "",
|
|
128
|
+
"type": "string"
|
|
129
|
+
},
|
|
130
|
+
"newPage": {
|
|
131
|
+
"title": "打开新页面",
|
|
132
|
+
"default": false,
|
|
133
|
+
"type": "boolean"
|
|
134
|
+
},
|
|
135
|
+
"withParams": {
|
|
136
|
+
"title": "携带参数",
|
|
137
|
+
"default": false,
|
|
138
|
+
"type": "boolean",
|
|
139
|
+
"x-linkages": [
|
|
140
|
+
{
|
|
141
|
+
"type": "value:visible",
|
|
142
|
+
"target": "*(dataForm.params)",
|
|
143
|
+
"condition": "{{$self.value==true}}"
|
|
144
|
+
}
|
|
145
|
+
]
|
|
146
|
+
},
|
|
147
|
+
"params": {
|
|
148
|
+
"type": "array",
|
|
149
|
+
"title": "参数",
|
|
150
|
+
"pageId": "",
|
|
151
|
+
"x-component": "page-params",
|
|
152
|
+
"default": []
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
"default": [
|
|
157
|
+
{
|
|
158
|
+
"icon": "https://qcloudimg.tencent-cloud.cn/raw/478c35e469057b4d6352ccc14e00ebc5.png",
|
|
159
|
+
"title": "示例标题",
|
|
160
|
+
"des": "这是一段示例描述,这是一段示例描述",
|
|
161
|
+
"tapStatus": "tap"
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"icon": "https://qcloudimg.tencent-cloud.cn/raw/478c35e469057b4d6352ccc14e00ebc5.png",
|
|
165
|
+
"title": "示例标题",
|
|
166
|
+
"des": "这是一段示例描述,这是一段示例描述",
|
|
167
|
+
"tapStatus": "tap"
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"icon": "https://qcloudimg.tencent-cloud.cn/raw/478c35e469057b4d6352ccc14e00ebc5.png",
|
|
171
|
+
"title": "示例标题",
|
|
172
|
+
"des": "这是一段示例描述,这是一段示例描述",
|
|
173
|
+
"tapStatus": "tap"
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"icon": "https://qcloudimg.tencent-cloud.cn/raw/478c35e469057b4d6352ccc14e00ebc5.png",
|
|
177
|
+
"title": "示例标题",
|
|
178
|
+
"des": "这是一段示例描述,这是一段示例描述",
|
|
179
|
+
"tapStatus": "tap"
|
|
180
|
+
}
|
|
181
|
+
],
|
|
182
|
+
"x-index": 1,
|
|
183
|
+
"x-component": "list"
|
|
184
|
+
},
|
|
185
|
+
"ColMobile": {
|
|
186
|
+
"type": "number",
|
|
187
|
+
"default": 2,
|
|
188
|
+
"title": "移动端列数",
|
|
189
|
+
"x-category": "基础属性",
|
|
190
|
+
"enum": [
|
|
191
|
+
{
|
|
192
|
+
"label": "1",
|
|
193
|
+
"value": 1
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
"label": "2",
|
|
197
|
+
"value": 2
|
|
198
|
+
}
|
|
199
|
+
]
|
|
200
|
+
},
|
|
201
|
+
"ColPC": {
|
|
202
|
+
"type": "number",
|
|
203
|
+
"default": 4,
|
|
204
|
+
"title": "PC端列数",
|
|
205
|
+
"x-category": "基础属性",
|
|
206
|
+
"enum": [
|
|
207
|
+
{
|
|
208
|
+
"label": "3",
|
|
209
|
+
"value": 3
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"label": "4",
|
|
213
|
+
"value": 4
|
|
214
|
+
}
|
|
215
|
+
]
|
|
216
|
+
},
|
|
217
|
+
"textAlign": {
|
|
218
|
+
"title": "对齐",
|
|
219
|
+
"type": "string",
|
|
220
|
+
"default": "left",
|
|
221
|
+
"x-component": "textAlign",
|
|
222
|
+
"x-index": 10,
|
|
223
|
+
"x-category": "高级属性"
|
|
224
|
+
},
|
|
225
|
+
"iconHeightSize": {
|
|
226
|
+
"type": "string",
|
|
227
|
+
"default": "100%",
|
|
228
|
+
"title": "图片高度",
|
|
229
|
+
"x-category": "高级属性",
|
|
230
|
+
"x-index": 20
|
|
231
|
+
},
|
|
232
|
+
"iconWidthSize": {
|
|
233
|
+
"type": "string",
|
|
234
|
+
"default": "100%",
|
|
235
|
+
"title": "图片宽度",
|
|
236
|
+
"description": "默认单位px",
|
|
237
|
+
"x-category": "高级属性",
|
|
238
|
+
"x-index": 25
|
|
239
|
+
},
|
|
240
|
+
"titleVisible": {
|
|
241
|
+
"title": "显示标题",
|
|
242
|
+
"type": "boolean",
|
|
243
|
+
"default": true,
|
|
244
|
+
"x-category": "高级属性",
|
|
245
|
+
"x-index": 30,
|
|
246
|
+
"x-linkages": [
|
|
247
|
+
{
|
|
248
|
+
"type": "value:visible",
|
|
249
|
+
"target": "*(titleColor,titleFontWeight,titleFontSize,titleLineHeight,titleMaxLines)",
|
|
250
|
+
"condition": "{{$self.value}}"
|
|
251
|
+
}
|
|
252
|
+
]
|
|
253
|
+
},
|
|
254
|
+
"titleColor": {
|
|
255
|
+
"title": "标题颜色",
|
|
256
|
+
"type": "string",
|
|
257
|
+
"x-component": "color",
|
|
258
|
+
"x-index": 40,
|
|
259
|
+
"x-category": "高级属性",
|
|
260
|
+
"default": "rgb(0, 0, 0)"
|
|
261
|
+
},
|
|
262
|
+
"titleFontWeight": {
|
|
263
|
+
"type": "string",
|
|
264
|
+
"title": "标题字重",
|
|
265
|
+
"default": "bolder",
|
|
266
|
+
"x-category": "高级属性",
|
|
267
|
+
"x-index": 50,
|
|
268
|
+
"enum": [
|
|
269
|
+
{
|
|
270
|
+
"label": "细",
|
|
271
|
+
"value": "lighter"
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
"label": "正常",
|
|
275
|
+
"value": "normal"
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
"label": "粗",
|
|
279
|
+
"value": "bolder"
|
|
280
|
+
}
|
|
281
|
+
]
|
|
282
|
+
},
|
|
283
|
+
"titleFontSize": {
|
|
284
|
+
"type": "number",
|
|
285
|
+
"title": "标题字号",
|
|
286
|
+
"default": 14,
|
|
287
|
+
"x-category": "高级属性",
|
|
288
|
+
"x-props": {
|
|
289
|
+
"min": 0,
|
|
290
|
+
"max": 100
|
|
291
|
+
},
|
|
292
|
+
"x-index": 60
|
|
293
|
+
},
|
|
294
|
+
"titleLineHeight": {
|
|
295
|
+
"title": "标题行高",
|
|
296
|
+
"type": "string",
|
|
297
|
+
"x-index": 70,
|
|
298
|
+
"x-category": "高级属性",
|
|
299
|
+
"default": "auto"
|
|
300
|
+
},
|
|
301
|
+
"titleMaxLines": {
|
|
302
|
+
"title": "标题行数",
|
|
303
|
+
"type": "number",
|
|
304
|
+
"default": 1,
|
|
305
|
+
"x-index": 80,
|
|
306
|
+
"x-category": "高级属性"
|
|
307
|
+
},
|
|
308
|
+
"desVisible": {
|
|
309
|
+
"title": "显示描述",
|
|
310
|
+
"type": "boolean",
|
|
311
|
+
"default": true,
|
|
312
|
+
"x-category": "高级属性",
|
|
313
|
+
"x-index": 90,
|
|
314
|
+
"x-linkages": [
|
|
315
|
+
{
|
|
316
|
+
"type": "value:visible",
|
|
317
|
+
"target": "*(desColor,desFontWeight,desFontSize,desLineHeight,desMaxLines)",
|
|
318
|
+
"condition": "{{$self.value}}"
|
|
319
|
+
}
|
|
320
|
+
]
|
|
321
|
+
},
|
|
322
|
+
"desColor": {
|
|
323
|
+
"title": "描述颜色",
|
|
324
|
+
"type": "string",
|
|
325
|
+
"x-component": "color",
|
|
326
|
+
"x-index": 100,
|
|
327
|
+
"x-category": "高级属性",
|
|
328
|
+
"default": "rgba(0, 0, 0, 0.4)"
|
|
329
|
+
},
|
|
330
|
+
"desFontWeight": {
|
|
331
|
+
"type": "string",
|
|
332
|
+
"title": "描述字重",
|
|
333
|
+
"default": "normal",
|
|
334
|
+
"x-category": "高级属性",
|
|
335
|
+
"x-index": 110,
|
|
336
|
+
"enum": [
|
|
337
|
+
{
|
|
338
|
+
"label": "细",
|
|
339
|
+
"value": "lighter"
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
"label": "正常",
|
|
343
|
+
"value": "normal"
|
|
344
|
+
},
|
|
345
|
+
{
|
|
346
|
+
"label": "粗",
|
|
347
|
+
"value": "bolder"
|
|
348
|
+
}
|
|
349
|
+
]
|
|
350
|
+
},
|
|
351
|
+
"desFontSize": {
|
|
352
|
+
"type": "number",
|
|
353
|
+
"title": "描述字号",
|
|
354
|
+
"default": 14,
|
|
355
|
+
"x-category": "高级属性",
|
|
356
|
+
"x-props": {
|
|
357
|
+
"min": 0,
|
|
358
|
+
"max": 100
|
|
359
|
+
},
|
|
360
|
+
"x-index": 120
|
|
361
|
+
},
|
|
362
|
+
"desLineHeight": {
|
|
363
|
+
"title": "描述行高",
|
|
364
|
+
"type": "string",
|
|
365
|
+
"x-index": 130,
|
|
366
|
+
"x-category": "高级属性",
|
|
367
|
+
"default": "auto"
|
|
368
|
+
},
|
|
369
|
+
"desMaxLines": {
|
|
370
|
+
"title": "描述行数",
|
|
371
|
+
"type": "number",
|
|
372
|
+
"default": 2,
|
|
373
|
+
"x-index": 140,
|
|
374
|
+
"x-category": "高级属性"
|
|
375
|
+
},
|
|
376
|
+
"buttonVisible": {
|
|
377
|
+
"title": "显示详情按钮",
|
|
378
|
+
"type": "boolean",
|
|
379
|
+
"default": true,
|
|
380
|
+
"x-category": "高级属性",
|
|
381
|
+
"x-index": 150,
|
|
382
|
+
"description": "无行为的按钮将保持隐藏",
|
|
383
|
+
"x-linkages": [
|
|
384
|
+
{
|
|
385
|
+
"type": "value:visible",
|
|
386
|
+
"target": "*(buttonText)",
|
|
387
|
+
"condition": "{{$self.value}}"
|
|
388
|
+
}
|
|
389
|
+
]
|
|
390
|
+
},
|
|
391
|
+
"buttonText": {
|
|
392
|
+
"title": "按钮文案",
|
|
393
|
+
"type": "string",
|
|
394
|
+
"default": "查看详情",
|
|
395
|
+
"x-category": "高级属性",
|
|
396
|
+
"x-index": 160
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
},
|
|
400
|
+
"meta": {
|
|
401
|
+
"title": "图文卡片",
|
|
402
|
+
"description": "以卡片形式展示包含图片、标题、描述信息在内的列表信息。",
|
|
403
|
+
"category": "展示",
|
|
404
|
+
"componentOrder": 501,
|
|
405
|
+
"icon": "//imgcache.qq.com/qcloud/lowcode/static/ide/left-material-icon/GraphicCard.svg"
|
|
406
|
+
},
|
|
407
|
+
"configMeta": {
|
|
408
|
+
"docsUrl": "https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/show/GraphicCard"
|
|
409
|
+
}
|
|
410
|
+
}
|
|
@@ -20,7 +20,9 @@
|
|
|
20
20
|
"showMenuByLongpress": {
|
|
21
21
|
"title": "识别小程序码",
|
|
22
22
|
"type": "boolean",
|
|
23
|
-
"x-platforms": [
|
|
23
|
+
"x-platforms": [
|
|
24
|
+
"MP"
|
|
25
|
+
],
|
|
24
26
|
"x-category": "高级属性",
|
|
25
27
|
"description": "小程序专有属性,长按图片可唤起识别小程序码功能"
|
|
26
28
|
},
|
|
@@ -157,8 +159,11 @@
|
|
|
157
159
|
],
|
|
158
160
|
"meta": {
|
|
159
161
|
"title": "图片",
|
|
160
|
-
"description": "
|
|
162
|
+
"description": "用于在页面进行图片的展示。",
|
|
161
163
|
"category": "多媒体",
|
|
162
164
|
"icon": "//imgcache.qq.com/qcloud/lowcode/static/ide/left-material-icon/Image.svg"
|
|
165
|
+
},
|
|
166
|
+
"configMeta": {
|
|
167
|
+
"docsUrl": "https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/media/Image"
|
|
163
168
|
}
|
|
164
169
|
}
|
|
@@ -15,15 +15,24 @@
|
|
|
15
15
|
"url": {
|
|
16
16
|
"type": "string",
|
|
17
17
|
"x-component": "page-list",
|
|
18
|
-
"default": "https://cloud.tencent.com",
|
|
19
18
|
"title": "跳转页面",
|
|
20
19
|
"description": "通过下拉选择应用页面,可以实现内部页面跳转",
|
|
21
20
|
"x-category": "基础属性",
|
|
22
21
|
"x-index": 120,
|
|
23
22
|
"x-component-props": {
|
|
24
|
-
"hideAddPlatform": [
|
|
23
|
+
"hideAddPlatform": [
|
|
24
|
+
"MP"
|
|
25
|
+
]
|
|
25
26
|
}
|
|
26
27
|
},
|
|
28
|
+
"isOpenInNewWindow": {
|
|
29
|
+
"type": "boolean",
|
|
30
|
+
"title": "是否打开新窗口",
|
|
31
|
+
"x-category": "基础属性",
|
|
32
|
+
"x-index": 130,
|
|
33
|
+
"default": false,
|
|
34
|
+
"description": "仅外部链接生效"
|
|
35
|
+
},
|
|
27
36
|
"params": {
|
|
28
37
|
"type": "array",
|
|
29
38
|
"title": "携带参数",
|
|
@@ -51,10 +60,17 @@
|
|
|
51
60
|
},
|
|
52
61
|
"meta": {
|
|
53
62
|
"title": "链接",
|
|
54
|
-
"description": "",
|
|
63
|
+
"description": "用于实现超链接跳转。",
|
|
55
64
|
"category": "文本",
|
|
56
65
|
"componentOrder": 10,
|
|
57
|
-
"icon": "//imgcache.qq.com/qcloud/lowcode/static/ide/left-material-icon/Link.svg"
|
|
66
|
+
"icon": "//imgcache.qq.com/qcloud/lowcode/static/ide/left-material-icon/Link.svg",
|
|
67
|
+
"platform": [
|
|
68
|
+
"MOBILEWEB",
|
|
69
|
+
"PCWEB"
|
|
70
|
+
]
|
|
71
|
+
},
|
|
72
|
+
"configMeta": {
|
|
73
|
+
"docsUrl": "https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/text/Link"
|
|
58
74
|
},
|
|
59
75
|
"events": [
|
|
60
76
|
{
|