@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,152 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://comp-public-1303824488.cos.ap-shanghai.myqcloud.com/schema/lcds_component.json",
|
|
3
|
+
"data": {
|
|
4
|
+
"properties": {
|
|
5
|
+
"dataSource": {
|
|
6
|
+
"type": "object",
|
|
7
|
+
"default": {},
|
|
8
|
+
"title": "数据源属性"
|
|
9
|
+
},
|
|
10
|
+
"label": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"default": "地图定位",
|
|
13
|
+
"title": "标题"
|
|
14
|
+
},
|
|
15
|
+
"locationType": {
|
|
16
|
+
"enum": [
|
|
17
|
+
{
|
|
18
|
+
"label": "无",
|
|
19
|
+
"value": 1
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"label": "用户当前位置",
|
|
23
|
+
"value": 2
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"label": "自定义",
|
|
27
|
+
"value": 3
|
|
28
|
+
}
|
|
29
|
+
],
|
|
30
|
+
"type": "string",
|
|
31
|
+
"title": "默认显示位置",
|
|
32
|
+
"default": 1,
|
|
33
|
+
"x-index": 3
|
|
34
|
+
},
|
|
35
|
+
"customLocation": {
|
|
36
|
+
"type": "object",
|
|
37
|
+
"title": "位置输入",
|
|
38
|
+
"x-index": 4,
|
|
39
|
+
"x-category": "基础属性",
|
|
40
|
+
"properties":{
|
|
41
|
+
"latitude":{
|
|
42
|
+
"title": "纬度",
|
|
43
|
+
"type":"number",
|
|
44
|
+
"default":22.540366
|
|
45
|
+
},
|
|
46
|
+
"longitude":{
|
|
47
|
+
"title": "经度",
|
|
48
|
+
"type":"number",
|
|
49
|
+
"default":113.934559
|
|
50
|
+
},
|
|
51
|
+
"poiname":{
|
|
52
|
+
"title": "详细位置",
|
|
53
|
+
"type":"string",
|
|
54
|
+
"default":"深圳市南山区深南大道10000号腾讯大厦"
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"default": {
|
|
58
|
+
"latitude":22.540366,
|
|
59
|
+
"longitude":113.934559,
|
|
60
|
+
"poiname":"深圳市南山区深南大道10000号腾讯大厦"
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"value": {
|
|
64
|
+
"type": "object",
|
|
65
|
+
"title": "默认值",
|
|
66
|
+
"x-category": "基础属性",
|
|
67
|
+
"x-component": "jsontext",
|
|
68
|
+
"properties":{
|
|
69
|
+
"address": {
|
|
70
|
+
"description":"地点名称",
|
|
71
|
+
"type":"string",
|
|
72
|
+
"default":""
|
|
73
|
+
},
|
|
74
|
+
"geopoint":{
|
|
75
|
+
"description": "经纬度",
|
|
76
|
+
"type": "object",
|
|
77
|
+
"properties": {
|
|
78
|
+
"coordinates": {
|
|
79
|
+
"x-required": true,
|
|
80
|
+
"type": "array",
|
|
81
|
+
"items": {
|
|
82
|
+
"minItems": 2,
|
|
83
|
+
"maxItems": 2,
|
|
84
|
+
"type": "number"
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
"type": {
|
|
88
|
+
"x-required": true,
|
|
89
|
+
"type": "string"
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
"default":{
|
|
93
|
+
"coordinates":[39.98410411,116.307503],
|
|
94
|
+
"type":"Point"
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
"default": {
|
|
99
|
+
"address": "",
|
|
100
|
+
"geopoint": {
|
|
101
|
+
"coordinates": [39.98410411, 116.307503],
|
|
102
|
+
"type": "Point"
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
"labelVisible": {
|
|
107
|
+
"type": "boolean",
|
|
108
|
+
"default": true,
|
|
109
|
+
"title": "显示标题"
|
|
110
|
+
},
|
|
111
|
+
"showLngLat": {
|
|
112
|
+
"type": "boolean",
|
|
113
|
+
"default": false,
|
|
114
|
+
"title": "显示经纬度"
|
|
115
|
+
},
|
|
116
|
+
"showMap": {
|
|
117
|
+
"type": "boolean",
|
|
118
|
+
"default": false,
|
|
119
|
+
"title": "显示地图"
|
|
120
|
+
},
|
|
121
|
+
"defauleShowLocation": {
|
|
122
|
+
"type": "boolean",
|
|
123
|
+
"default": true,
|
|
124
|
+
"title": "默认显示当前位置"
|
|
125
|
+
},
|
|
126
|
+
"drag": {
|
|
127
|
+
"type": "boolean",
|
|
128
|
+
"default": true,
|
|
129
|
+
"title": "允许拖动"
|
|
130
|
+
},
|
|
131
|
+
"zoom": {
|
|
132
|
+
"type": "boolean",
|
|
133
|
+
"default": true,
|
|
134
|
+
"title": "允许缩放"
|
|
135
|
+
},
|
|
136
|
+
"disabled": {
|
|
137
|
+
"type": "boolean",
|
|
138
|
+
"default": false,
|
|
139
|
+
"title": "是否禁用"
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
"meta": {
|
|
144
|
+
"title": "地图定位",
|
|
145
|
+
"description": "地图定位",
|
|
146
|
+
"category": "表单",
|
|
147
|
+
"icon": "//imgcache.qq.com/qcloud/lowcode/static/ide/left-material-icon/FormLocation.svg"
|
|
148
|
+
},
|
|
149
|
+
"events": [
|
|
150
|
+
{ "name": "change", "title": "选择定位坐标改变" }
|
|
151
|
+
]
|
|
152
|
+
}
|
|
@@ -18,23 +18,67 @@
|
|
|
18
18
|
"title": "提交后台所用字段"
|
|
19
19
|
},
|
|
20
20
|
"range": {
|
|
21
|
+
"x-component": "list",
|
|
21
22
|
"type": "array",
|
|
22
23
|
"default": [
|
|
23
|
-
{
|
|
24
|
-
|
|
24
|
+
{
|
|
25
|
+
"label": "单选-选项1",
|
|
26
|
+
"value": "1",
|
|
27
|
+
"checked": false
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"label": "单选-选项2",
|
|
31
|
+
"value": "2",
|
|
32
|
+
"checked": false
|
|
33
|
+
}
|
|
34
|
+
],
|
|
35
|
+
"x-linkages": [
|
|
36
|
+
{
|
|
37
|
+
"type": "value:schema",
|
|
38
|
+
"target": "range",
|
|
39
|
+
"schema": {
|
|
40
|
+
"items": {
|
|
41
|
+
"display": "label",
|
|
42
|
+
"type": "object",
|
|
43
|
+
"properties": {
|
|
44
|
+
"label": {
|
|
45
|
+
"type": "string",
|
|
46
|
+
"title": "选项名称",
|
|
47
|
+
"default": "单选-选项1"
|
|
48
|
+
},
|
|
49
|
+
"value": {
|
|
50
|
+
"type": "string",
|
|
51
|
+
"title": "选项值",
|
|
52
|
+
"default": "1"
|
|
53
|
+
},
|
|
54
|
+
"checked": {
|
|
55
|
+
"type": "boolean",
|
|
56
|
+
"title": "当前是否选中",
|
|
57
|
+
"default": false
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"default": {
|
|
61
|
+
"label": "{{'单选-选项' + ($self.value.length+1)}}",
|
|
62
|
+
"value": "{{$self.value.length+1}}",
|
|
63
|
+
"checked": false
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
25
68
|
],
|
|
26
69
|
"title": "列表项",
|
|
27
70
|
"items": {
|
|
28
71
|
"type": "object",
|
|
72
|
+
"display": "label",
|
|
29
73
|
"properties": {
|
|
30
74
|
"label": {
|
|
31
75
|
"type": "string",
|
|
32
|
-
"title": "
|
|
76
|
+
"title": "选项名称",
|
|
33
77
|
"default": "单选-选项"
|
|
34
78
|
},
|
|
35
79
|
"value": {
|
|
36
80
|
"type": "string",
|
|
37
|
-
"title": "
|
|
81
|
+
"title": "选项值",
|
|
38
82
|
"default": "value"
|
|
39
83
|
},
|
|
40
84
|
"checked": {
|
|
@@ -42,6 +86,11 @@
|
|
|
42
86
|
"title": "当前是否选中",
|
|
43
87
|
"default": false
|
|
44
88
|
}
|
|
89
|
+
},
|
|
90
|
+
"default": {
|
|
91
|
+
"label": "单选-选项",
|
|
92
|
+
"value": "1",
|
|
93
|
+
"checked": false
|
|
45
94
|
}
|
|
46
95
|
}
|
|
47
96
|
},
|
|
@@ -69,6 +118,49 @@
|
|
|
69
118
|
"type": "boolean",
|
|
70
119
|
"default": false,
|
|
71
120
|
"title": "是否显示必填标记"
|
|
121
|
+
},
|
|
122
|
+
"tipBlock": {
|
|
123
|
+
"title": "选项",
|
|
124
|
+
"type": "string",
|
|
125
|
+
"x-component": "selection-tip",
|
|
126
|
+
"default": "",
|
|
127
|
+
"x-props": {
|
|
128
|
+
"data-hidebind": true
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
"enumName": {
|
|
132
|
+
"type": "string",
|
|
133
|
+
"default": "",
|
|
134
|
+
"title": "字段类型",
|
|
135
|
+
"x-linkages": [
|
|
136
|
+
{
|
|
137
|
+
"type": "value:visible",
|
|
138
|
+
"target": "enumName",
|
|
139
|
+
"condition": false
|
|
140
|
+
}
|
|
141
|
+
]
|
|
142
|
+
},
|
|
143
|
+
"format": {
|
|
144
|
+
"type": "string",
|
|
145
|
+
"default": "",
|
|
146
|
+
"title": "字段类型",
|
|
147
|
+
"x-linkages": [
|
|
148
|
+
{
|
|
149
|
+
"type": "value:visible",
|
|
150
|
+
"target": "range",
|
|
151
|
+
"condition": "{{$self.value!='x-enum'}}"
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"type": "value:visible",
|
|
155
|
+
"target": "format",
|
|
156
|
+
"condition": false
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"type": "value:visible",
|
|
160
|
+
"target": "tipBlock",
|
|
161
|
+
"condition": "{{$self.value=='x-enum'}}"
|
|
162
|
+
}
|
|
163
|
+
]
|
|
72
164
|
}
|
|
73
165
|
}
|
|
74
166
|
},
|
|
@@ -26,7 +26,13 @@
|
|
|
26
26
|
"type": "string",
|
|
27
27
|
"default": "selector",
|
|
28
28
|
"title": "类型",
|
|
29
|
-
"enum": [
|
|
29
|
+
"enum": [
|
|
30
|
+
"selector",
|
|
31
|
+
"date",
|
|
32
|
+
"time",
|
|
33
|
+
"region",
|
|
34
|
+
"mutiRegion"
|
|
35
|
+
],
|
|
30
36
|
"x-linkages": [
|
|
31
37
|
{
|
|
32
38
|
"type": "value:visible",
|
|
@@ -45,8 +51,13 @@
|
|
|
45
51
|
},
|
|
46
52
|
{
|
|
47
53
|
"type": "value:visible",
|
|
48
|
-
"target": "*(separator,
|
|
54
|
+
"target": "*(separator,defaultRegion)",
|
|
49
55
|
"condition": "{{ $self.value === 'region' }}"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"type": "value:visible",
|
|
59
|
+
"target": "*(regionType,defaultMutiRegion)",
|
|
60
|
+
"condition": "{{ $self.value === 'mutiRegion'}}"
|
|
50
61
|
}
|
|
51
62
|
]
|
|
52
63
|
},
|
|
@@ -72,7 +83,9 @@
|
|
|
72
83
|
"value": "full"
|
|
73
84
|
}
|
|
74
85
|
],
|
|
75
|
-
"x-platforms": [
|
|
86
|
+
"x-platforms": [
|
|
87
|
+
"PCWEB"
|
|
88
|
+
]
|
|
76
89
|
},
|
|
77
90
|
"startTime": {
|
|
78
91
|
"type": "string",
|
|
@@ -115,40 +128,261 @@
|
|
|
115
128
|
"title": "分隔符",
|
|
116
129
|
"default": ","
|
|
117
130
|
},
|
|
131
|
+
"defaultMutiRegion": {
|
|
132
|
+
"type": "string",
|
|
133
|
+
"title": "默认地区",
|
|
134
|
+
"default": null,
|
|
135
|
+
"description": "省市区之间请用,分隔"
|
|
136
|
+
},
|
|
118
137
|
"defaultRegion": {
|
|
119
138
|
"type": "array",
|
|
120
139
|
"title": "默认地区",
|
|
121
140
|
"items": {
|
|
122
141
|
"type": "string"
|
|
123
142
|
},
|
|
124
|
-
"default": [
|
|
143
|
+
"default": [
|
|
144
|
+
"北京市",
|
|
145
|
+
"北京市",
|
|
146
|
+
"东城区"
|
|
147
|
+
]
|
|
148
|
+
},
|
|
149
|
+
"regionType": {
|
|
150
|
+
"type": "string",
|
|
151
|
+
"title": "地域类型",
|
|
152
|
+
"enum": [
|
|
153
|
+
{
|
|
154
|
+
"label": "省-市-区",
|
|
155
|
+
"value": "levelThree"
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"label": "省-市",
|
|
159
|
+
"value": "levelTwo"
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
"label": "省",
|
|
163
|
+
"value": "levelOne"
|
|
164
|
+
}
|
|
165
|
+
],
|
|
166
|
+
"default": "levelThree"
|
|
167
|
+
},
|
|
168
|
+
"format": {
|
|
169
|
+
"type": "string",
|
|
170
|
+
"default": "",
|
|
171
|
+
"title": "字段类型",
|
|
172
|
+
"x-linkages": [
|
|
173
|
+
{
|
|
174
|
+
"type": "value:visible",
|
|
175
|
+
"target": "range",
|
|
176
|
+
"condition": "{{$self.value!='father-son'&&$self.value!='related'&&$self.value!='x-enum'}}"
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"type": "value:visible",
|
|
180
|
+
"target": "format",
|
|
181
|
+
"condition": false
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"type": "value:visible",
|
|
185
|
+
"target": "tipBlock",
|
|
186
|
+
"condition": "{{$self.value=='father-son'||$self.value=='related'||$self.value=='x-enum'}}"
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
"type": "value:visible",
|
|
190
|
+
"target": "where",
|
|
191
|
+
"condition": "{{$self.value=='father-son'||$self.value=='related'}}"
|
|
192
|
+
}
|
|
193
|
+
]
|
|
194
|
+
},
|
|
195
|
+
"tipBlock": {
|
|
196
|
+
"title": "选项",
|
|
197
|
+
"type": "string",
|
|
198
|
+
"x-component": "selection-tip",
|
|
199
|
+
"x-props": {
|
|
200
|
+
"data-hidebind": true
|
|
201
|
+
},
|
|
202
|
+
"default": ""
|
|
203
|
+
},
|
|
204
|
+
"dataSourceName": {
|
|
205
|
+
"title": "父数据源名称",
|
|
206
|
+
"type": "string",
|
|
207
|
+
"default": "",
|
|
208
|
+
"x-linkages": [
|
|
209
|
+
{
|
|
210
|
+
"type": "value:visible",
|
|
211
|
+
"target": "dataSourceName",
|
|
212
|
+
"condition": false
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
"type": "value:schema",
|
|
216
|
+
"target": "where",
|
|
217
|
+
"schema": {
|
|
218
|
+
"x-component-props": "{{{selectedDataSourceName: $self.value}}}"
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
]
|
|
222
|
+
},
|
|
223
|
+
"viewId": {
|
|
224
|
+
"title": "选项",
|
|
225
|
+
"type": "string",
|
|
226
|
+
"default": "",
|
|
227
|
+
"x-linkages": [
|
|
228
|
+
{
|
|
229
|
+
"type": "value:visible",
|
|
230
|
+
"target": "viewId",
|
|
231
|
+
"condition": false
|
|
232
|
+
}
|
|
233
|
+
]
|
|
234
|
+
},
|
|
235
|
+
"primaryField": {
|
|
236
|
+
"title": "主列名称",
|
|
237
|
+
"type": "string",
|
|
238
|
+
"default": "",
|
|
239
|
+
"x-linkages": [
|
|
240
|
+
{
|
|
241
|
+
"type": "value:visible",
|
|
242
|
+
"target": "primaryField",
|
|
243
|
+
"condition": false
|
|
244
|
+
}
|
|
245
|
+
]
|
|
246
|
+
},
|
|
247
|
+
"enumName": {
|
|
248
|
+
"type": "string",
|
|
249
|
+
"default": "",
|
|
250
|
+
"title": "字段类型",
|
|
251
|
+
"x-linkages": [
|
|
252
|
+
{
|
|
253
|
+
"type": "value:visible",
|
|
254
|
+
"target": "enumName",
|
|
255
|
+
"condition": false
|
|
256
|
+
}
|
|
257
|
+
]
|
|
258
|
+
},
|
|
259
|
+
"where": {
|
|
260
|
+
"x-index": 20,
|
|
261
|
+
"title": "选项筛选",
|
|
262
|
+
"x-category": "基础属性",
|
|
263
|
+
"type": "array",
|
|
264
|
+
"items": {},
|
|
265
|
+
"x-component": "condition-select",
|
|
266
|
+
"x-component-props": {
|
|
267
|
+
"selectedDataSourceName": "",
|
|
268
|
+
"customLogicOptions": [
|
|
269
|
+
{
|
|
270
|
+
"text": "且",
|
|
271
|
+
"value": "and"
|
|
272
|
+
}
|
|
273
|
+
],
|
|
274
|
+
"blackListConfig": {
|
|
275
|
+
"format": [
|
|
276
|
+
"related",
|
|
277
|
+
"father-son",
|
|
278
|
+
"x-file",
|
|
279
|
+
"x-image"
|
|
280
|
+
],
|
|
281
|
+
"type": [
|
|
282
|
+
"object",
|
|
283
|
+
"array"
|
|
284
|
+
]
|
|
285
|
+
},
|
|
286
|
+
"customRelOptions": {
|
|
287
|
+
"number": [
|
|
288
|
+
{
|
|
289
|
+
"value": "equal",
|
|
290
|
+
"text": "等于",
|
|
291
|
+
"type": "equal"
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
"value": "unequal",
|
|
295
|
+
"text": "不等于"
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
"value": "greater",
|
|
299
|
+
"text": "大于",
|
|
300
|
+
"type": "greate"
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
"value": "greater_or_equal",
|
|
304
|
+
"text": "大于等于",
|
|
305
|
+
"type": "greater_or_equal"
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
"value": "less",
|
|
309
|
+
"text": "小于",
|
|
310
|
+
"type": "less"
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
"value": "less_or_equal",
|
|
314
|
+
"text": "小于等于",
|
|
315
|
+
"type": "less_or_equal"
|
|
316
|
+
}
|
|
317
|
+
]
|
|
318
|
+
}
|
|
319
|
+
},
|
|
320
|
+
"x-props": {
|
|
321
|
+
"data-hidebind": true,
|
|
322
|
+
"data-hideBindValue": true,
|
|
323
|
+
"data-withBindMeta": true
|
|
324
|
+
}
|
|
125
325
|
},
|
|
126
326
|
"range": {
|
|
127
327
|
"type": "array",
|
|
128
328
|
"default": [
|
|
129
329
|
{
|
|
130
|
-
"label": "
|
|
131
|
-
"value": "
|
|
330
|
+
"label": "选项1",
|
|
331
|
+
"value": "1"
|
|
132
332
|
},
|
|
133
333
|
{
|
|
134
|
-
"label": "
|
|
135
|
-
"value": "
|
|
334
|
+
"label": "选项2",
|
|
335
|
+
"value": "2"
|
|
336
|
+
}
|
|
337
|
+
],
|
|
338
|
+
"x-component": "list",
|
|
339
|
+
"x-linkages": [
|
|
340
|
+
{
|
|
341
|
+
"type": "value:schema",
|
|
342
|
+
"target": "range",
|
|
343
|
+
"schema": {
|
|
344
|
+
"items": {
|
|
345
|
+
"display": "label",
|
|
346
|
+
"type": "object",
|
|
347
|
+
"properties": {
|
|
348
|
+
"label": {
|
|
349
|
+
"type": "string",
|
|
350
|
+
"title": "选项名称",
|
|
351
|
+
"default": "选项1"
|
|
352
|
+
},
|
|
353
|
+
"value": {
|
|
354
|
+
"type": "string",
|
|
355
|
+
"title": "选项值",
|
|
356
|
+
"default": "1"
|
|
357
|
+
}
|
|
358
|
+
},
|
|
359
|
+
"default": {
|
|
360
|
+
"label": "{{'选项' + ($self.value.length+1)}}",
|
|
361
|
+
"value": "{{$self.value.length+1}}"
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
}
|
|
136
365
|
}
|
|
137
366
|
],
|
|
138
367
|
"title": "列表项",
|
|
139
368
|
"items": {
|
|
140
369
|
"type": "object",
|
|
370
|
+
"display": "label",
|
|
141
371
|
"properties": {
|
|
142
372
|
"label": {
|
|
143
373
|
"type": "string",
|
|
144
|
-
"title": "
|
|
374
|
+
"title": "选项名称",
|
|
145
375
|
"default": "选项"
|
|
146
376
|
},
|
|
147
377
|
"value": {
|
|
148
378
|
"type": "string",
|
|
149
|
-
"title": "
|
|
150
|
-
"default": "
|
|
379
|
+
"title": "选项值",
|
|
380
|
+
"default": "1"
|
|
151
381
|
}
|
|
382
|
+
},
|
|
383
|
+
"default": {
|
|
384
|
+
"label": "选项",
|
|
385
|
+
"value": "1"
|
|
152
386
|
}
|
|
153
387
|
}
|
|
154
388
|
},
|