@cloudbase/weda-ui 3.20.1 → 3.20.2
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/dist/configs/components/chart/bar.js +2 -2
- package/dist/configs/components/chart/line.js +2 -2
- package/dist/configs/components/chart/pie.js +2 -2
- package/dist/configs/components/chart/statisticsCard.json +5 -12
- package/dist/configs/components/form/location.json +3 -9
- package/dist/configs/components/form-location.d.ts +2 -2
- package/dist/configs/components/form-location.js +1 -1
- package/dist/configs/components/scrollVeiw.json +43 -79
- package/dist/configs/components/wd-calendar.d.ts +4 -0
- package/dist/configs/components/wd-calendar.js +23 -1
- package/dist/configs/components/wd-cascader.d.ts +7 -12
- package/dist/configs/components/wd-cascader.js +12 -1
- package/dist/configs/components/wd-checkbox.d.ts +4 -1
- package/dist/configs/components/wd-checkbox.js +11 -1
- package/dist/configs/components/wd-location.d.ts +2 -2
- package/dist/configs/components/wd-location.js +1 -1
- package/dist/configs/components/wd-radio.d.ts +4 -1
- package/dist/configs/components/wd-select-multiple.d.ts +4 -1
- package/dist/configs/components/wd-select-multiple.js +11 -1
- package/dist/configs/components/wd-select.d.ts +4 -1
- package/dist/configs/components/wd-table.js +3 -2
- package/dist/configs/components/wd-tag-select.d.ts +4 -1
- package/dist/configs/components/wd-tag-select.js +11 -1
- package/dist/configs/components/wd-top-tab.d.ts +1 -1
- package/dist/configs/components/wd-top-tab.js +2 -1
- package/dist/configs/index.d.ts +102 -60
- package/dist/configs/type-utils/type-form.d.ts +10 -4
- package/dist/configs/type-utils/type-form.js +31 -4
- package/dist/enum/index.js +1 -0
- package/dist/style/index.css +1 -0
- package/dist/style/index.scss +1 -1
- package/dist/style/weda-ui.min.css +2 -2
- package/dist/web/components/form/location/common/propsConfig.d.ts +3 -3
- package/dist/web/components/form/location/common/propsConfig.js +2 -2
- package/dist/web/components/form/location/components/LocationH5/location.h5.js +36 -27
- package/dist/web/components/form/location/components/LocationPC/Header.js +2 -2
- package/dist/web/components/form/location/components/LocationPC/location.PC.js +38 -41
- package/dist/web/components/form-location/index.d.ts +1 -1
- package/dist/web/components/form-location/index.js +3 -3
- package/dist/web/components/wd-calendar/wd-calendar.js +4 -11
- package/dist/web/components/wd-calendar/weeks.d.ts +1 -1
- package/dist/web/components/wd-calendar/weeks.js +2 -2
- package/dist/web/components/wd-form/index.js +12 -7
- package/dist/web/components/wd-location/wd-location.d.ts +1 -1
- package/dist/web/components/wd-location/wd-location.js +2 -2
- package/dist/web/components/wd-select/select/selectUI.js +4 -1
- package/dist/web/components/wd-table/components/ExportFileModalByApi/index.js +3 -2
- package/dist/web/components/wd-table/hooks/useTableData.js +8 -3
- package/package.json +1 -1
|
@@ -66,18 +66,14 @@
|
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
68
|
},
|
|
69
|
-
"required": [
|
|
70
|
-
"Value"
|
|
71
|
-
]
|
|
69
|
+
"required": ["Value"]
|
|
72
70
|
}
|
|
73
71
|
}
|
|
74
72
|
}
|
|
75
73
|
}
|
|
76
74
|
}
|
|
77
75
|
},
|
|
78
|
-
"required": [
|
|
79
|
-
"result"
|
|
80
|
-
]
|
|
76
|
+
"required": ["result"]
|
|
81
77
|
}
|
|
82
78
|
}
|
|
83
79
|
}
|
|
@@ -117,10 +113,7 @@
|
|
|
117
113
|
"x-component-props": {
|
|
118
114
|
"dataSourceNamePropKey": "dataSource",
|
|
119
115
|
"blackListConfig": {
|
|
120
|
-
"type": [
|
|
121
|
-
"object",
|
|
122
|
-
"array"
|
|
123
|
-
]
|
|
116
|
+
"type": ["object", "array"]
|
|
124
117
|
},
|
|
125
118
|
"customRelOptions": {
|
|
126
119
|
"string": [
|
|
@@ -134,11 +127,11 @@
|
|
|
134
127
|
},
|
|
135
128
|
{
|
|
136
129
|
"text": "包含",
|
|
137
|
-
"value": "
|
|
130
|
+
"value": "search"
|
|
138
131
|
},
|
|
139
132
|
{
|
|
140
133
|
"text": "不包含",
|
|
141
|
-
"value": "
|
|
134
|
+
"value": "nsearch"
|
|
142
135
|
}
|
|
143
136
|
],
|
|
144
137
|
"boolean": [
|
|
@@ -72,10 +72,7 @@
|
|
|
72
72
|
}
|
|
73
73
|
},
|
|
74
74
|
"default": {
|
|
75
|
-
"coordinates": [
|
|
76
|
-
39.98410411,
|
|
77
|
-
116.307503
|
|
78
|
-
],
|
|
75
|
+
"coordinates": [39.98410411, 116.307503],
|
|
79
76
|
"type": "Point"
|
|
80
77
|
}
|
|
81
78
|
}
|
|
@@ -83,10 +80,7 @@
|
|
|
83
80
|
"default": {
|
|
84
81
|
"address": "",
|
|
85
82
|
"geopoint": {
|
|
86
|
-
"coordinates": [
|
|
87
|
-
39.98410411,
|
|
88
|
-
116.307503
|
|
89
|
-
],
|
|
83
|
+
"coordinates": [39.98410411, 116.307503],
|
|
90
84
|
"type": "Point"
|
|
91
85
|
}
|
|
92
86
|
}
|
|
@@ -106,7 +100,7 @@
|
|
|
106
100
|
"default": false,
|
|
107
101
|
"title": "显示地图"
|
|
108
102
|
},
|
|
109
|
-
"
|
|
103
|
+
"defaultShowLocation": {
|
|
110
104
|
"type": "boolean",
|
|
111
105
|
"default": true,
|
|
112
106
|
"title": "默认显示当前位置"
|
|
@@ -11,7 +11,7 @@ declare const data: import("@sinclair/typebox").TObject<{
|
|
|
11
11
|
locationRange: import("@sinclair/typebox").TUnsafe<0 | -1 | 100 | 1000 | 500 | 300 | 2000>;
|
|
12
12
|
customRange: import("@sinclair/typebox").TNumber;
|
|
13
13
|
locationType: import("@sinclair/typebox").TUnsafe<2 | 1>;
|
|
14
|
-
|
|
14
|
+
defaultShowLocation: import("@sinclair/typebox").TBoolean;
|
|
15
15
|
required: import("@sinclair/typebox").TBoolean;
|
|
16
16
|
requiredFlag: import("@sinclair/typebox").TBoolean;
|
|
17
17
|
requiredMsg: import("@sinclair/typebox").TString;
|
|
@@ -40,7 +40,7 @@ declare const config: {
|
|
|
40
40
|
locationRange: import("@sinclair/typebox").TUnsafe<0 | -1 | 100 | 1000 | 500 | 300 | 2000>;
|
|
41
41
|
customRange: import("@sinclair/typebox").TNumber;
|
|
42
42
|
locationType: import("@sinclair/typebox").TUnsafe<2 | 1>;
|
|
43
|
-
|
|
43
|
+
defaultShowLocation: import("@sinclair/typebox").TBoolean;
|
|
44
44
|
required: import("@sinclair/typebox").TBoolean;
|
|
45
45
|
requiredFlag: import("@sinclair/typebox").TBoolean;
|
|
46
46
|
requiredMsg: import("@sinclair/typebox").TString;
|
|
@@ -2,17 +2,6 @@
|
|
|
2
2
|
"$schema": "https://comp-public-replace-1303824488-cos.weda.tencent.com/schema/lcds_component.json",
|
|
3
3
|
"data": {
|
|
4
4
|
"properties": {
|
|
5
|
-
"showScrollbar": {
|
|
6
|
-
"title": "滚动条显隐控制",
|
|
7
|
-
"type": "boolean",
|
|
8
|
-
"default": true,
|
|
9
|
-
"x-platforms": [
|
|
10
|
-
"MP"
|
|
11
|
-
],
|
|
12
|
-
"x-category": "基础属性",
|
|
13
|
-
"x-index": 1,
|
|
14
|
-
"description": "控制滚动条是否显示/隐藏"
|
|
15
|
-
},
|
|
16
5
|
"scrollX": {
|
|
17
6
|
"title": "允许横向滚动",
|
|
18
7
|
"type": "boolean",
|
|
@@ -49,9 +38,7 @@
|
|
|
49
38
|
"x-category": "高级属性",
|
|
50
39
|
"x-index": 4,
|
|
51
40
|
"description": "将当前的元素滚动到浏览器窗口的可视区域内",
|
|
52
|
-
"x-platforms": [
|
|
53
|
-
"WEB"
|
|
54
|
-
],
|
|
41
|
+
"x-platforms": ["WEB"],
|
|
55
42
|
"x-helper-text": "小程序暂时不支持此特性"
|
|
56
43
|
},
|
|
57
44
|
"scrollLeft": {
|
|
@@ -82,6 +69,26 @@
|
|
|
82
69
|
"x-index": 8,
|
|
83
70
|
"x-category": "高级属性"
|
|
84
71
|
},
|
|
72
|
+
"showScrollbar": {
|
|
73
|
+
"title": "滚动条显隐控制",
|
|
74
|
+
"type": "boolean",
|
|
75
|
+
"default": true,
|
|
76
|
+
"x-platforms": ["MP"],
|
|
77
|
+
"x-category": "高级属性",
|
|
78
|
+
"x-index": 80,
|
|
79
|
+
"description": "控制滚动条是否显示/隐藏",
|
|
80
|
+
"x-helper-text": "隐藏滚动条需启用 scroll-view 增强特性后生效",
|
|
81
|
+
"x-linkages": [
|
|
82
|
+
{
|
|
83
|
+
"type": "value:state",
|
|
84
|
+
"target": "*(enhanced)",
|
|
85
|
+
"condition": "{{ !$self.value }}",
|
|
86
|
+
"state": {
|
|
87
|
+
"value": true
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
]
|
|
91
|
+
},
|
|
85
92
|
"enhanced": {
|
|
86
93
|
"title": "启用 scroll-view 增强特性",
|
|
87
94
|
"type": "boolean",
|
|
@@ -89,13 +96,11 @@
|
|
|
89
96
|
"x-linkages": [
|
|
90
97
|
{
|
|
91
98
|
"type": "value:visible",
|
|
92
|
-
"target": "*(bounces,
|
|
99
|
+
"target": "*(bounces,pagingEnabled,fastDeceleration)",
|
|
93
100
|
"condition": "{{ $self.value }}"
|
|
94
101
|
}
|
|
95
102
|
],
|
|
96
|
-
"x-platforms": [
|
|
97
|
-
"MP"
|
|
98
|
-
],
|
|
103
|
+
"x-platforms": ["MP"],
|
|
99
104
|
"x-category": "高级属性",
|
|
100
105
|
"x-index": 90,
|
|
101
106
|
"description": "开启scroll-view增强特性 "
|
|
@@ -104,9 +109,7 @@
|
|
|
104
109
|
"title": "iOS 下 scroll-view 边界弹性控制",
|
|
105
110
|
"type": "boolean",
|
|
106
111
|
"default": true,
|
|
107
|
-
"x-platforms": [
|
|
108
|
-
"MP"
|
|
109
|
-
],
|
|
112
|
+
"x-platforms": ["MP"],
|
|
110
113
|
"x-index": 91,
|
|
111
114
|
"x-category": "高级属性"
|
|
112
115
|
},
|
|
@@ -114,9 +117,7 @@
|
|
|
114
117
|
"title": "分页滑动效果",
|
|
115
118
|
"type": "boolean",
|
|
116
119
|
"default": false,
|
|
117
|
-
"x-platforms": [
|
|
118
|
-
"MP"
|
|
119
|
-
],
|
|
120
|
+
"x-platforms": ["MP"],
|
|
120
121
|
"x-index": 93,
|
|
121
122
|
"x-category": "高级属性"
|
|
122
123
|
},
|
|
@@ -124,9 +125,7 @@
|
|
|
124
125
|
"title": "滑动减速速率控制",
|
|
125
126
|
"type": "boolean",
|
|
126
127
|
"default": false,
|
|
127
|
-
"x-platforms": [
|
|
128
|
-
"MP"
|
|
129
|
-
],
|
|
128
|
+
"x-platforms": ["MP"],
|
|
130
129
|
"x-index": 94,
|
|
131
130
|
"x-category": "高级属性"
|
|
132
131
|
},
|
|
@@ -141,9 +140,7 @@
|
|
|
141
140
|
"condition": "{{ $self.value }}"
|
|
142
141
|
}
|
|
143
142
|
],
|
|
144
|
-
"x-platforms": [
|
|
145
|
-
"MP"
|
|
146
|
-
],
|
|
143
|
+
"x-platforms": ["MP"],
|
|
147
144
|
"x-category": "高级属性",
|
|
148
145
|
"x-index": 100,
|
|
149
146
|
"description": "开启后可自定义对下拉刷新进行相关配置"
|
|
@@ -153,9 +150,7 @@
|
|
|
153
150
|
"type": "number",
|
|
154
151
|
"default": 50,
|
|
155
152
|
"x-index": 101,
|
|
156
|
-
"x-platforms": [
|
|
157
|
-
"MP"
|
|
158
|
-
],
|
|
153
|
+
"x-platforms": ["MP"],
|
|
159
154
|
"x-category": "高级属性"
|
|
160
155
|
},
|
|
161
156
|
"refresherDefaultStyle": {
|
|
@@ -177,9 +172,7 @@
|
|
|
177
172
|
"value": "none"
|
|
178
173
|
}
|
|
179
174
|
],
|
|
180
|
-
"x-platforms": [
|
|
181
|
-
"MP"
|
|
182
|
-
],
|
|
175
|
+
"x-platforms": ["MP"],
|
|
183
176
|
"x-index": 102,
|
|
184
177
|
"x-category": "高级属性"
|
|
185
178
|
},
|
|
@@ -188,9 +181,7 @@
|
|
|
188
181
|
"type": "string",
|
|
189
182
|
"x-component": "color",
|
|
190
183
|
"default": "#fff",
|
|
191
|
-
"x-platforms": [
|
|
192
|
-
"MP"
|
|
193
|
-
],
|
|
184
|
+
"x-platforms": ["MP"],
|
|
194
185
|
"x-index": 103,
|
|
195
186
|
"x-category": "高级属性"
|
|
196
187
|
},
|
|
@@ -198,9 +189,7 @@
|
|
|
198
189
|
"title": "设置当前下拉刷新状态",
|
|
199
190
|
"type": "boolean",
|
|
200
191
|
"default": false,
|
|
201
|
-
"x-platforms": [
|
|
202
|
-
"MP"
|
|
203
|
-
],
|
|
192
|
+
"x-platforms": ["MP"],
|
|
204
193
|
"x-index": 104,
|
|
205
194
|
"x-category": "高级属性"
|
|
206
195
|
},
|
|
@@ -208,9 +197,7 @@
|
|
|
208
197
|
"title": "开启 scroll anchoring 特性",
|
|
209
198
|
"type": "boolean",
|
|
210
199
|
"default": false,
|
|
211
|
-
"x-platforms": [
|
|
212
|
-
"MP"
|
|
213
|
-
],
|
|
200
|
+
"x-platforms": ["MP"],
|
|
214
201
|
"x-category": "高级属性",
|
|
215
202
|
"x-index": 110,
|
|
216
203
|
"description": "开启scroll-anchoring特性"
|
|
@@ -219,9 +206,7 @@
|
|
|
219
206
|
"title": "启用 flexbox 布局",
|
|
220
207
|
"type": "boolean",
|
|
221
208
|
"default": false,
|
|
222
|
-
"x-platforms": [
|
|
223
|
-
"MP"
|
|
224
|
-
],
|
|
209
|
+
"x-platforms": ["MP"],
|
|
225
210
|
"x-category": "高级属性",
|
|
226
211
|
"x-index": 120,
|
|
227
212
|
"description": "开启flexbox布局"
|
|
@@ -230,9 +215,7 @@
|
|
|
230
215
|
"title": "iOS点击顶部状态栏、安卓双击标题栏时,滚动条返回顶部,只支持竖向",
|
|
231
216
|
"type": "boolean",
|
|
232
217
|
"default": false,
|
|
233
|
-
"x-platforms": [
|
|
234
|
-
"MP"
|
|
235
|
-
],
|
|
218
|
+
"x-platforms": ["MP"],
|
|
236
219
|
"x-category": "高级属性",
|
|
237
220
|
"x-index": 130,
|
|
238
221
|
"description": "开启后当执行对应操作后滚动条将自动返回顶部"
|
|
@@ -241,9 +224,7 @@
|
|
|
241
224
|
"title": "在设置滚动条位置时使用动画过渡",
|
|
242
225
|
"type": "boolean",
|
|
243
226
|
"default": false,
|
|
244
|
-
"x-platforms": [
|
|
245
|
-
"MP"
|
|
246
|
-
],
|
|
227
|
+
"x-platforms": ["MP"],
|
|
247
228
|
"x-index": 140,
|
|
248
229
|
"x-category": "高级属性",
|
|
249
230
|
"description": "开启滚动条动画"
|
|
@@ -265,51 +246,37 @@
|
|
|
265
246
|
},
|
|
266
247
|
{
|
|
267
248
|
"name": "dragstart",
|
|
268
|
-
"x-platforms": [
|
|
269
|
-
"MP"
|
|
270
|
-
],
|
|
249
|
+
"x-platforms": ["MP"],
|
|
271
250
|
"title": "滑动开始事件(同时开启 enhanced 属性后生效)"
|
|
272
251
|
},
|
|
273
252
|
{
|
|
274
253
|
"name": "dragging",
|
|
275
|
-
"x-platforms": [
|
|
276
|
-
"MP"
|
|
277
|
-
],
|
|
254
|
+
"x-platforms": ["MP"],
|
|
278
255
|
"title": "滑动事件(同时开启 enhanced 属性后生效)"
|
|
279
256
|
},
|
|
280
257
|
{
|
|
281
258
|
"name": "dragend",
|
|
282
|
-
"x-platforms": [
|
|
283
|
-
"MP"
|
|
284
|
-
],
|
|
259
|
+
"x-platforms": ["MP"],
|
|
285
260
|
"title": "滑动结束事件(同时开启 enhanced 属性后生效)"
|
|
286
261
|
},
|
|
287
262
|
{
|
|
288
263
|
"name": "refresherpulling",
|
|
289
|
-
"x-platforms": [
|
|
290
|
-
"MP"
|
|
291
|
-
],
|
|
264
|
+
"x-platforms": ["MP"],
|
|
292
265
|
"title": "自定义下拉刷新控件被下拉"
|
|
293
266
|
},
|
|
294
267
|
{
|
|
295
268
|
"name": "refresherrefresh",
|
|
296
|
-
"x-platforms": [
|
|
297
|
-
"MP"
|
|
298
|
-
],
|
|
269
|
+
"x-platforms": ["MP"],
|
|
299
270
|
"title": "自定义下拉刷新被触发"
|
|
300
271
|
},
|
|
301
272
|
{
|
|
302
273
|
"name": "refresherrestore",
|
|
303
|
-
"x-platforms": [
|
|
304
|
-
"MP"
|
|
305
|
-
],
|
|
274
|
+
"x-platforms": ["MP"],
|
|
306
275
|
"title": "自定义下拉刷新被复位"
|
|
307
276
|
},
|
|
308
277
|
{
|
|
309
278
|
"name": "refresherabort",
|
|
310
|
-
"x-platforms": [
|
|
311
|
-
"MP"
|
|
312
|
-
],
|
|
279
|
+
"x-platforms": ["MP"],
|
|
313
280
|
"title": "自定义下拉刷新被中止"
|
|
314
281
|
}
|
|
315
282
|
],
|
|
@@ -325,10 +292,7 @@
|
|
|
325
292
|
"configMeta": {
|
|
326
293
|
"docsUrl": "https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/grid/ScrollView",
|
|
327
294
|
"shortcut": {
|
|
328
|
-
"props": [
|
|
329
|
-
"scrollX",
|
|
330
|
-
"scrollY"
|
|
331
|
-
],
|
|
295
|
+
"props": ["scrollX", "scrollY"],
|
|
332
296
|
"extra": {
|
|
333
297
|
"container": {
|
|
334
298
|
"x-component": "container",
|
|
@@ -2,6 +2,8 @@ import { Simplify, Static } from '../type-utils';
|
|
|
2
2
|
declare const data: import("@sinclair/typebox").TObject<{
|
|
3
3
|
initMonth: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
4
4
|
value: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
5
|
+
start: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
|
|
6
|
+
end: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
|
|
5
7
|
configData: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
6
8
|
matchDate: import("@sinclair/typebox").TString;
|
|
7
9
|
disabled: import("@sinclair/typebox").TUnsafe<string>;
|
|
@@ -14,6 +16,8 @@ declare const config: {
|
|
|
14
16
|
readonly data: import("@sinclair/typebox").TObject<{
|
|
15
17
|
initMonth: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
16
18
|
value: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
19
|
+
start: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
|
|
20
|
+
end: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
|
|
17
21
|
configData: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
18
22
|
matchDate: import("@sinclair/typebox").TString;
|
|
19
23
|
disabled: import("@sinclair/typebox").TUnsafe<string>;
|
|
@@ -35,6 +35,28 @@ const data = Type.Partial(Type.Object({
|
|
|
35
35
|
placeholder: '请选择日期',
|
|
36
36
|
},
|
|
37
37
|
}),
|
|
38
|
+
start: Type.Any({
|
|
39
|
+
title: '最早可选日期',
|
|
40
|
+
'x-index': 20,
|
|
41
|
+
'x-category': BASIC,
|
|
42
|
+
'x-component': 'date',
|
|
43
|
+
'x-component-props': {
|
|
44
|
+
format: 'YYYY-MM-DD',
|
|
45
|
+
showTime: false,
|
|
46
|
+
placeholder: '请选择时间',
|
|
47
|
+
},
|
|
48
|
+
}),
|
|
49
|
+
end: Type.Any({
|
|
50
|
+
title: '最晚可选日期',
|
|
51
|
+
'x-index': 21,
|
|
52
|
+
'x-category': BASIC,
|
|
53
|
+
'x-component': 'date',
|
|
54
|
+
'x-component-props': {
|
|
55
|
+
format: 'YYYY-MM-DD',
|
|
56
|
+
showTime: false,
|
|
57
|
+
placeholder: '请选择时间',
|
|
58
|
+
},
|
|
59
|
+
}),
|
|
38
60
|
configData: Type.Array(Type.Object({
|
|
39
61
|
matchDate: Type.String({
|
|
40
62
|
title: '对应日期',
|
|
@@ -54,7 +76,7 @@ const data = Type.Partial(Type.Object({
|
|
|
54
76
|
title: '展示配置',
|
|
55
77
|
'x-category': BASIC,
|
|
56
78
|
description: '可设置多个不同日期的特殊显示效果',
|
|
57
|
-
'x-index':
|
|
79
|
+
'x-index': 25,
|
|
58
80
|
'x-runtime-default': [],
|
|
59
81
|
}),
|
|
60
82
|
initVisible: Type.Boolean({
|
|
@@ -134,18 +134,6 @@ declare const config: {
|
|
|
134
134
|
};
|
|
135
135
|
};
|
|
136
136
|
description: string;
|
|
137
|
-
}, {
|
|
138
|
-
name: string;
|
|
139
|
-
label: string;
|
|
140
|
-
params: {
|
|
141
|
-
properties: {
|
|
142
|
-
value: {
|
|
143
|
-
title: string;
|
|
144
|
-
type: string;
|
|
145
|
-
};
|
|
146
|
-
};
|
|
147
|
-
};
|
|
148
|
-
description: string;
|
|
149
137
|
}, {
|
|
150
138
|
name: string;
|
|
151
139
|
label: string;
|
|
@@ -170,6 +158,13 @@ declare const config: {
|
|
|
170
158
|
name: string;
|
|
171
159
|
label: string;
|
|
172
160
|
description: string;
|
|
161
|
+
}, {
|
|
162
|
+
readonly name: "setValue";
|
|
163
|
+
readonly label: "设置值";
|
|
164
|
+
readonly params: import("@sinclair/typebox").TObject<{
|
|
165
|
+
value: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
166
|
+
}>;
|
|
167
|
+
readonly description: "通过 $w.cascader1.setValue(['bj','cy']) 设置组件值";
|
|
173
168
|
}];
|
|
174
169
|
readonly events: readonly [{
|
|
175
170
|
name: string;
|
|
@@ -139,13 +139,24 @@ const config = defineConfig({
|
|
|
139
139
|
properties,
|
|
140
140
|
classes,
|
|
141
141
|
methods: [
|
|
142
|
-
FORM_ITEM_METHODS.setValue,
|
|
142
|
+
// FORM_ITEM_METHODS.setValue,
|
|
143
143
|
FORM_ITEM_METHODS.setVisible,
|
|
144
144
|
FORM_ITEM_METHODS.setDisabled,
|
|
145
145
|
FORM_ITEM_METHODS.clearValue,
|
|
146
146
|
FORM_ITEM_METHODS.setReadOnly,
|
|
147
147
|
FORM_ITEM_METHODS.handleValidate,
|
|
148
148
|
FORM_ITEM_METHODS.clearValidate,
|
|
149
|
+
{
|
|
150
|
+
name: 'setValue',
|
|
151
|
+
label: '设置值',
|
|
152
|
+
params: Type.Object({
|
|
153
|
+
value: Type.Array(Type.String({}), {
|
|
154
|
+
title: '值',
|
|
155
|
+
default: [],
|
|
156
|
+
}),
|
|
157
|
+
}),
|
|
158
|
+
description: "通过 $w.cascader1.setValue(['bj','cy']) 设置组件值",
|
|
159
|
+
},
|
|
149
160
|
],
|
|
150
161
|
events: [
|
|
151
162
|
FORM_ITEM_EVENTS.change,
|
|
@@ -70,7 +70,10 @@ declare const config: {
|
|
|
70
70
|
visible: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
71
71
|
readOnly: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
72
72
|
selectedLabel: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
73
|
-
item: import("@sinclair/typebox").
|
|
73
|
+
item: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
74
|
+
label: import("@sinclair/typebox").TString;
|
|
75
|
+
value: import("@sinclair/typebox").TString;
|
|
76
|
+
}>>;
|
|
74
77
|
}>;
|
|
75
78
|
readonly classes: {
|
|
76
79
|
name: string;
|
|
@@ -277,7 +277,17 @@ const data = Type.Object({
|
|
|
277
277
|
});
|
|
278
278
|
const properties = Type.Composite([
|
|
279
279
|
Type.Pick(data, ['name', 'label', 'value', 'required']),
|
|
280
|
-
Type.Pick(ItemData, ['visible', 'disabled', 'readOnly', 'selectedLabel'
|
|
280
|
+
Type.Pick(ItemData, ['visible', 'disabled', 'readOnly', 'selectedLabel']),
|
|
281
|
+
Type.Object({
|
|
282
|
+
item: Type.Array(Type.Object({
|
|
283
|
+
label: Type.String({ title: 'label' }),
|
|
284
|
+
value: Type.String({ title: 'value' }),
|
|
285
|
+
}), {
|
|
286
|
+
title: '选中项',
|
|
287
|
+
description: '选中项对应的对象',
|
|
288
|
+
'x-platforms': [],
|
|
289
|
+
}),
|
|
290
|
+
}),
|
|
281
291
|
]);
|
|
282
292
|
const CLASSES = getClasses('checkbox');
|
|
283
293
|
const classes = [
|
|
@@ -31,7 +31,7 @@ declare const data: import("@sinclair/typebox").TObject<{
|
|
|
31
31
|
}>;
|
|
32
32
|
}>>;
|
|
33
33
|
locationType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<number>>;
|
|
34
|
-
|
|
34
|
+
defaultShowLocation: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
35
35
|
placeholder: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString & {
|
|
36
36
|
default: string;
|
|
37
37
|
}>;
|
|
@@ -69,7 +69,7 @@ declare const config: {
|
|
|
69
69
|
}>;
|
|
70
70
|
}>>;
|
|
71
71
|
locationType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<number>>;
|
|
72
|
-
|
|
72
|
+
defaultShowLocation: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
73
73
|
placeholder: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString & {
|
|
74
74
|
default: string;
|
|
75
75
|
}>;
|
|
@@ -12,7 +12,7 @@ const data = Type.Partial(Type.Object({
|
|
|
12
12
|
dataSource: FORM_ITEM_DATA._dataSourceInLocation,
|
|
13
13
|
value: FORM_ITEM_DATA._valueInLocation,
|
|
14
14
|
locationType: FORM_ITEM_DATA.locationType,
|
|
15
|
-
|
|
15
|
+
defaultShowLocation: FORM_ITEM_DATA.defaultShowLocation,
|
|
16
16
|
placeholder: Object.assign({}, FORM_ITEM_DATA.placeholder, {
|
|
17
17
|
default: '选择地理位置',
|
|
18
18
|
}),
|
|
@@ -70,7 +70,10 @@ declare const config: {
|
|
|
70
70
|
visible: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
71
71
|
readOnly: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
72
72
|
selectedLabel: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
73
|
-
item: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
73
|
+
item: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
74
|
+
label: import("@sinclair/typebox").TString;
|
|
75
|
+
value: import("@sinclair/typebox").TString;
|
|
76
|
+
}>>;
|
|
74
77
|
}>;
|
|
75
78
|
readonly classes: {
|
|
76
79
|
name: string;
|
|
@@ -163,7 +163,10 @@ declare const config: {
|
|
|
163
163
|
after: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
164
164
|
before: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
165
165
|
selectedLabel: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
166
|
-
item: import("@sinclair/typebox").
|
|
166
|
+
item: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
167
|
+
label: import("@sinclair/typebox").TString;
|
|
168
|
+
value: import("@sinclair/typebox").TString;
|
|
169
|
+
}>>;
|
|
167
170
|
}>;
|
|
168
171
|
readonly classes: {
|
|
169
172
|
name: string;
|
|
@@ -330,7 +330,17 @@ const data = Type.Partial(Type.Object({
|
|
|
330
330
|
}));
|
|
331
331
|
const properties = Type.Composite([
|
|
332
332
|
Type.Pick(data, ['name', 'label', 'value', 'required', 'before', 'after']),
|
|
333
|
-
Type.Pick(ItemData, ['visible', 'disabled', 'readOnly', 'selectedLabel'
|
|
333
|
+
Type.Pick(ItemData, ['visible', 'disabled', 'readOnly', 'selectedLabel']),
|
|
334
|
+
Type.Object({
|
|
335
|
+
item: Type.Array(Type.Object({
|
|
336
|
+
label: Type.String({ title: 'label' }),
|
|
337
|
+
value: Type.String({ title: 'value' }),
|
|
338
|
+
}), {
|
|
339
|
+
title: '选中项',
|
|
340
|
+
description: '选中项对应的对象',
|
|
341
|
+
'x-platforms': [],
|
|
342
|
+
}),
|
|
343
|
+
}),
|
|
334
344
|
]);
|
|
335
345
|
const CLASSES = getClasses('select-multiple', { kind: '选择框' });
|
|
336
346
|
const classes = [
|