@cloudbase/weda-ui 0.2.16 → 1.0.24
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 +23 -11
- package/src/configs/components/calendar.json +4 -1
- 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 +61 -13
- package/src/configs/components/container.json +7 -2
- package/src/configs/components/dataView.json +21 -6
- package/src/configs/components/form/checkbox.json +97 -5
- package/src/configs/components/form/radio.json +96 -4
- package/src/configs/components/form/select.json +245 -11
- package/src/configs/components/graphicCard.json +84 -73
- package/src/configs/components/image.json +7 -2
- package/src/configs/components/link.json +19 -3
- package/src/configs/components/listView.json +65 -18
- package/src/configs/components/lottery.json +151 -0
- package/src/configs/components/modal.json +37 -5
- package/src/configs/components/navLayout.json +87 -75
- 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 +4 -1
- 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 +20 -0
- package/src/index.js +2 -0
- package/src/mp/components/button/index.wxml +1 -2
- 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 +33 -6
- 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/form/index.wxml +1 -2
- package/src/mp/components/form/input/index.js +1 -1
- package/src/mp/components/form/location/index.js +43 -2
- package/src/mp/components/form/radio/index.js +38 -0
- package/src/mp/components/form/select/index.js +348 -40
- package/src/mp/components/form/select/index.wxml +21 -6
- package/src/mp/components/form/select/region/index.js +101 -0
- package/src/mp/components/form/textarea/index.wxml +6 -5
- package/src/mp/components/form/uploader/index.js +76 -44
- package/src/mp/components/form/uploader/index.wxml +15 -3
- package/src/mp/components/form/uploaderFile/index.js +61 -29
- package/src/mp/components/graphicCard/index.js +26 -28
- package/src/mp/components/listView/index.js +52 -64
- package/src/mp/components/listView/index.wxml +2 -2
- package/src/mp/components/listView/index.wxss +5 -0
- package/src/mp/components/lottery/index.js +270 -0
- package/src/mp/components/lottery/index.json +4 -0
- package/src/mp/components/lottery/index.wxml +43 -0
- package/src/mp/components/lottery/index.wxss +317 -0
- package/src/mp/components/navLayout/index.js +3 -3
- 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/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 +10 -1
- package/src/mp/style/weda-ui.wxss +2 -0
- package/src/mp/utils/constant.js +15 -0
- package/src/mp/utils/destr.js +48 -0
- package/src/mp/utils/lodash.js +2 -0
- package/src/mp/utils/platform.js +25 -0
- package/src/mp/utils/tcb.js +44 -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/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.tsx +29 -8
- package/src/web/components/form/checkbox/index.tsx +61 -23
- package/src/web/components/form/formcell/index.tsx +10 -5
- package/src/web/components/form/location/components/LocationH5/location.h5.jsx +3 -3
- package/src/web/components/form/location/components/LocationPC/location.PC.jsx +2 -2
- package/src/web/components/form/radio/index.tsx +90 -53
- package/src/web/components/form/select/h5.tsx +371 -72
- package/src/web/components/form/select/index.css +10 -0
- package/src/web/components/form/select/index.tsx +392 -145
- 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/tips/index.css +4 -0
- package/src/web/components/form/tips/index.tsx +4 -3
- package/src/web/components/form/uploader/uploader.h5.tsx +28 -19
- package/src/web/components/form/uploader/uploader.pc.tsx +17 -20
- package/src/web/components/form/uploaderFile/uploadFile.h5.tsx +48 -44
- package/src/web/components/form/uploaderFile/uploadFile.pc.tsx +28 -26
- package/src/web/components/graphicCard/index.css +1 -5
- package/src/web/components/graphicCard/index.tsx +4 -3
- package/src/web/components/image/image.tsx +1 -1
- package/src/web/components/image/index.tsx +1 -1
- package/src/web/components/index.js +13 -2
- package/src/web/components/link/index.tsx +6 -3
- package/src/web/components/listView/index.css +4 -0
- package/src/web/components/listView/index.tsx +10 -18
- package/src/web/components/lottery/index.css +327 -0
- package/src/web/components/lottery/index.tsx +567 -0
- package/src/web/components/lottery/lotteryUtil.ts +130 -0
- package/src/web/components/modal/index.tsx +3 -1
- 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 +2 -0
- package/src/web/components/tabs/tabs.h5.tsx +43 -33
- package/src/web/components/tabs/tabs.pc.tsx +23 -10
- package/src/web/components/text/index.tsx +6 -14
- package/src/web/components/userInfo/index.css +0 -0
- package/src/web/components/userInfo/index.tsx +30 -0
- package/src/web/utils/{constant.js → constant.ts} +17 -2
- package/src/web/utils/lodash.ts +2 -0
- package/src/web/utils/platform.js +10 -1
- package/src/web/utils/tcb.js +20 -6
- 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
|
@@ -13,30 +13,79 @@
|
|
|
13
13
|
"title": "显示标题"
|
|
14
14
|
},
|
|
15
15
|
"range": {
|
|
16
|
+
"x-component": "list",
|
|
16
17
|
"type": "array",
|
|
17
18
|
"default": [
|
|
18
|
-
{
|
|
19
|
-
|
|
19
|
+
{
|
|
20
|
+
"label": "多选-选项1",
|
|
21
|
+
"value": "1",
|
|
22
|
+
"checked": false
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"label": "多选-选项2",
|
|
26
|
+
"value": "2",
|
|
27
|
+
"checked": false
|
|
28
|
+
}
|
|
20
29
|
],
|
|
21
30
|
"title": "列表项",
|
|
31
|
+
"x-linkages": [
|
|
32
|
+
{
|
|
33
|
+
"type": "value:schema",
|
|
34
|
+
"target": "range",
|
|
35
|
+
"schema": {
|
|
36
|
+
"items": {
|
|
37
|
+
"type": "object",
|
|
38
|
+
"display": "label",
|
|
39
|
+
"properties": {
|
|
40
|
+
"label": {
|
|
41
|
+
"type": "string",
|
|
42
|
+
"title": "选项名称",
|
|
43
|
+
"default": "多选-选项1"
|
|
44
|
+
},
|
|
45
|
+
"value": {
|
|
46
|
+
"type": "string",
|
|
47
|
+
"title": "选项值",
|
|
48
|
+
"default": "1"
|
|
49
|
+
},
|
|
50
|
+
"checked": {
|
|
51
|
+
"type": "boolean",
|
|
52
|
+
"title": "当前是否选中",
|
|
53
|
+
"default": false
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"default": {
|
|
57
|
+
"label": "{{'多选-选项' + ($self.value.length+1)}}",
|
|
58
|
+
"value": "{{$self.value.length+1}}",
|
|
59
|
+
"checked": false
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
],
|
|
22
65
|
"items": {
|
|
23
66
|
"type": "object",
|
|
67
|
+
"display": "label",
|
|
24
68
|
"properties": {
|
|
25
69
|
"label": {
|
|
26
70
|
"type": "string",
|
|
27
|
-
"title": "
|
|
71
|
+
"title": "选项名称",
|
|
28
72
|
"default": "多选-选项"
|
|
29
73
|
},
|
|
30
74
|
"value": {
|
|
31
75
|
"type": "string",
|
|
32
|
-
"title": "
|
|
33
|
-
"default": "
|
|
76
|
+
"title": "选项值",
|
|
77
|
+
"default": "1"
|
|
34
78
|
},
|
|
35
79
|
"checked": {
|
|
36
80
|
"type": "boolean",
|
|
37
81
|
"title": "当前是否选中",
|
|
38
82
|
"default": false
|
|
39
83
|
}
|
|
84
|
+
},
|
|
85
|
+
"default": {
|
|
86
|
+
"label": "选项",
|
|
87
|
+
"value": "1",
|
|
88
|
+
"checked": false
|
|
40
89
|
}
|
|
41
90
|
}
|
|
42
91
|
},
|
|
@@ -64,6 +113,49 @@
|
|
|
64
113
|
"type": "boolean",
|
|
65
114
|
"default": false,
|
|
66
115
|
"title": "是否显示必填标记"
|
|
116
|
+
},
|
|
117
|
+
"tipBlock": {
|
|
118
|
+
"title": "选项",
|
|
119
|
+
"type": "string",
|
|
120
|
+
"x-component": "selection-tip",
|
|
121
|
+
"default": "",
|
|
122
|
+
"x-props": {
|
|
123
|
+
"data-hidebind": true
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
"enumName": {
|
|
127
|
+
"type": "string",
|
|
128
|
+
"default": "",
|
|
129
|
+
"title": "字段类型",
|
|
130
|
+
"x-linkages": [
|
|
131
|
+
{
|
|
132
|
+
"type": "value:visible",
|
|
133
|
+
"target": "enumName",
|
|
134
|
+
"condition": false
|
|
135
|
+
}
|
|
136
|
+
]
|
|
137
|
+
},
|
|
138
|
+
"format": {
|
|
139
|
+
"type": "string",
|
|
140
|
+
"default": "",
|
|
141
|
+
"title": "字段类型",
|
|
142
|
+
"x-linkages": [
|
|
143
|
+
{
|
|
144
|
+
"type": "value:visible",
|
|
145
|
+
"target": "range",
|
|
146
|
+
"condition": "{{$self.value!='x-enum'}}"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"type": "value:visible",
|
|
150
|
+
"target": "format",
|
|
151
|
+
"condition": false
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"type": "value:visible",
|
|
155
|
+
"target": "tipBlock",
|
|
156
|
+
"condition": "{{$self.value=='x-enum'}}"
|
|
157
|
+
}
|
|
158
|
+
]
|
|
67
159
|
}
|
|
68
160
|
}
|
|
69
161
|
},
|
|
@@ -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
|
},
|