@cloudbase/weda-ui 3.19.0 → 3.19.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/scrollVeiw.json +43 -79
- 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-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 +92 -54
- package/dist/configs/type-utils/type-form.d.ts +8 -2
- package/dist/configs/type-utils/type-form.js +4 -1
- package/dist/style/weda-ui.min.css +1 -1
- package/dist/web/components/form-input-hooks/index.js +11 -13
- 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": [
|
|
@@ -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",
|
|
@@ -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 = [
|
|
@@ -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 = [
|
|
@@ -164,7 +164,10 @@ declare const config: {
|
|
|
164
164
|
visible: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
165
165
|
readOnly: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
166
166
|
selectedLabel: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
167
|
-
item: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
167
|
+
item: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
168
|
+
label: import("@sinclair/typebox").TString;
|
|
169
|
+
value: import("@sinclair/typebox").TString;
|
|
170
|
+
}>>;
|
|
168
171
|
}>;
|
|
169
172
|
readonly classes: {
|
|
170
173
|
name: string;
|
|
@@ -488,12 +488,12 @@ const data = Type.Object({
|
|
|
488
488
|
{
|
|
489
489
|
type: 'value:visible',
|
|
490
490
|
target: 'dataForm.isSort',
|
|
491
|
-
condition: '{{ Boolean($self.value) && !Boolean($form.values.dataForm.isRelated) && Boolean($form.values.dataForm.format!=="one-many") && Boolean($form.values.dataForm.format!=="many-many") && Boolean($form.values.dataForm.format!=="one-one") && Boolean($form.values.dataForm.format!=="many-one") }}',
|
|
491
|
+
condition: '{{ Boolean($self.value) && !Boolean($form.values.dataForm.isRelated) && Boolean($form.values.dataForm.format!=="one-many") && Boolean($form.values.dataForm.format!=="many-many") && Boolean($form.values.dataForm.format!=="one-one") && Boolean($form.values.dataForm.format!=="many-one") && Boolean($form.values.dataForm.format!=="one-one-r") }}',
|
|
492
492
|
},
|
|
493
493
|
{
|
|
494
494
|
type: 'value:visible',
|
|
495
495
|
target: 'dataForm.isExport',
|
|
496
|
-
condition: '{{ Boolean($self.value) && Boolean($form.values.dataForm.format!=="one-many") && Boolean($form.values.dataForm.format!=="many-many") && Boolean($form.values.dataForm.format!=="one-one") && Boolean($form.values.dataForm.format!=="
|
|
496
|
+
condition: '{{ Boolean($self.value) && Boolean($form.values.dataForm.format!=="one-many") && Boolean($form.values.dataForm.format!=="many-many") && Boolean($form.values.dataForm.format!=="many-one") && Boolean($form.values.dataForm.format!=="one-one") && Boolean($form.values.dataForm.format!=="one-one-r") }}',
|
|
497
497
|
},
|
|
498
498
|
],
|
|
499
499
|
}),
|
|
@@ -1267,6 +1267,7 @@ const data = Type.Object({
|
|
|
1267
1267
|
default: true,
|
|
1268
1268
|
'x-group': '表格列',
|
|
1269
1269
|
description: '开启后,可拖拽按钮等组件,放入大纲树的操作列节点或表格的操作列区域',
|
|
1270
|
+
'x-helper-text': 'h5端操作列区域以弹窗形式展示,[详情参考配置](https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/database/WdTable#%E7%A7%BB%E5%8A%A8%E7%AB%AF%E9%85%8D%E7%BD%AE%E6%93%8D%E4%BD%9C%E5%88%97)',
|
|
1270
1271
|
'x-linkages': [
|
|
1271
1272
|
{
|
|
1272
1273
|
type: 'value:visible',
|
|
@@ -89,7 +89,10 @@ declare const config: {
|
|
|
89
89
|
value: import("@sinclair/typebox").TString;
|
|
90
90
|
}>>>;
|
|
91
91
|
selectedLabel: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
92
|
-
item: import("@sinclair/typebox").
|
|
92
|
+
item: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
93
|
+
label: import("@sinclair/typebox").TString;
|
|
94
|
+
value: import("@sinclair/typebox").TString;
|
|
95
|
+
}>>;
|
|
93
96
|
}>;
|
|
94
97
|
readonly classes: {
|
|
95
98
|
name: string;
|
|
@@ -34,7 +34,17 @@ const data = Type.Partial(Type.Object({
|
|
|
34
34
|
}));
|
|
35
35
|
const properties = Type.Composite([
|
|
36
36
|
Type.Pick(data, ['name', 'value', 'label', 'required', 'range']),
|
|
37
|
-
Type.Pick(ItemData, ['visible', 'disabled', 'readOnly', 'selectedLabel'
|
|
37
|
+
Type.Pick(ItemData, ['visible', 'disabled', 'readOnly', 'selectedLabel']),
|
|
38
|
+
Type.Object({
|
|
39
|
+
item: Type.Array(Type.Object({
|
|
40
|
+
label: Type.String({ title: 'label' }),
|
|
41
|
+
value: Type.String({ title: 'value' }),
|
|
42
|
+
}), {
|
|
43
|
+
title: '选中项',
|
|
44
|
+
description: '选中项对应的对象',
|
|
45
|
+
'x-platforms': [],
|
|
46
|
+
}),
|
|
47
|
+
}),
|
|
38
48
|
]);
|
|
39
49
|
const CLASSES = getClasses('tag-select');
|
|
40
50
|
const classes = [
|
|
@@ -99,7 +99,7 @@ declare const config: {
|
|
|
99
99
|
readonly name: "内容区域";
|
|
100
100
|
readonly selector: ".wd-top-tab-root .wd-tabs__body";
|
|
101
101
|
readonly description: "可以为顶部选项卡内容区域编写样式,例如:设置顶部选项卡内容区域高度撑满页面";
|
|
102
|
-
readonly code: ".wd-top-tab-root .wd-tabs__body {\n
|
|
102
|
+
readonly code: "\n /* 设置顶部选项卡内容区域高度撑满页面 */\n /* 注意:此处需要设置为计算高度 【视口高度-选项卡头部标签区域高度】*/\n .wd-top-tab-root .wd-tabs__body {\n height: calc(100vh - 48px);\n overflow: auto;\n }\n ";
|
|
103
103
|
}, {
|
|
104
104
|
readonly name: "选项卡超长自动滑动遮罩";
|
|
105
105
|
readonly selector: ".wd-tabs-h5-root .wd-tabs__header-item-mask";
|
|
@@ -426,9 +426,10 @@ const config = defineConfig({
|
|
|
426
426
|
name: '内容区域',
|
|
427
427
|
selector: '.wd-top-tab-root .wd-tabs__body',
|
|
428
428
|
description: '可以为顶部选项卡内容区域编写样式,例如:设置顶部选项卡内容区域高度撑满页面',
|
|
429
|
-
code:
|
|
429
|
+
code: `
|
|
430
430
|
/* 设置顶部选项卡内容区域高度撑满页面 */
|
|
431
431
|
/* 注意:此处需要设置为计算高度 【视口高度-选项卡头部标签区域高度】*/
|
|
432
|
+
.wd-top-tab-root .wd-tabs__body {
|
|
432
433
|
height: calc(100vh - 48px);
|
|
433
434
|
overflow: auto;
|
|
434
435
|
}
|
package/dist/configs/index.d.ts
CHANGED
|
@@ -956,18 +956,6 @@ export declare const components: {
|
|
|
956
956
|
};
|
|
957
957
|
};
|
|
958
958
|
description: string;
|
|
959
|
-
}, {
|
|
960
|
-
name: string;
|
|
961
|
-
label: string;
|
|
962
|
-
params: {
|
|
963
|
-
properties: {
|
|
964
|
-
value: {
|
|
965
|
-
title: string;
|
|
966
|
-
type: string;
|
|
967
|
-
};
|
|
968
|
-
};
|
|
969
|
-
};
|
|
970
|
-
description: string;
|
|
971
959
|
}, {
|
|
972
960
|
name: string;
|
|
973
961
|
label: string;
|
|
@@ -992,6 +980,13 @@ export declare const components: {
|
|
|
992
980
|
name: string;
|
|
993
981
|
label: string;
|
|
994
982
|
description: string;
|
|
983
|
+
}, {
|
|
984
|
+
readonly name: "setValue";
|
|
985
|
+
readonly label: "设置值";
|
|
986
|
+
readonly params: import("@sinclair/typebox").TObject<{
|
|
987
|
+
value: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
988
|
+
}>;
|
|
989
|
+
readonly description: "通过 $w.cascader1.setValue(['bj','cy']) 设置组件值";
|
|
995
990
|
}];
|
|
996
991
|
readonly events: readonly [{
|
|
997
992
|
name: string;
|
|
@@ -6225,15 +6220,6 @@ export declare const components: {
|
|
|
6225
6220
|
$schema: string;
|
|
6226
6221
|
data: {
|
|
6227
6222
|
properties: {
|
|
6228
|
-
showScrollbar: {
|
|
6229
|
-
title: string;
|
|
6230
|
-
type: string;
|
|
6231
|
-
default: boolean;
|
|
6232
|
-
"x-platforms": string[];
|
|
6233
|
-
"x-category": string;
|
|
6234
|
-
"x-index": number;
|
|
6235
|
-
description: string;
|
|
6236
|
-
};
|
|
6237
6223
|
scrollX: {
|
|
6238
6224
|
title: string;
|
|
6239
6225
|
type: string;
|
|
@@ -6297,6 +6283,24 @@ export declare const components: {
|
|
|
6297
6283
|
"x-index": number;
|
|
6298
6284
|
"x-category": string;
|
|
6299
6285
|
};
|
|
6286
|
+
showScrollbar: {
|
|
6287
|
+
title: string;
|
|
6288
|
+
type: string;
|
|
6289
|
+
default: boolean;
|
|
6290
|
+
"x-platforms": string[];
|
|
6291
|
+
"x-category": string;
|
|
6292
|
+
"x-index": number;
|
|
6293
|
+
description: string;
|
|
6294
|
+
"x-helper-text": string;
|
|
6295
|
+
"x-linkages": {
|
|
6296
|
+
type: string;
|
|
6297
|
+
target: string;
|
|
6298
|
+
condition: string;
|
|
6299
|
+
state: {
|
|
6300
|
+
value: boolean;
|
|
6301
|
+
};
|
|
6302
|
+
}[];
|
|
6303
|
+
};
|
|
6300
6304
|
enhanced: {
|
|
6301
6305
|
title: string;
|
|
6302
6306
|
type: string;
|
|
@@ -12756,7 +12760,7 @@ export declare const components: {
|
|
|
12756
12760
|
readonly name: "内容区域";
|
|
12757
12761
|
readonly selector: ".wd-top-tab-root .wd-tabs__body";
|
|
12758
12762
|
readonly description: "可以为顶部选项卡内容区域编写样式,例如:设置顶部选项卡内容区域高度撑满页面";
|
|
12759
|
-
readonly code: ".wd-top-tab-root .wd-tabs__body {\n
|
|
12763
|
+
readonly code: "\n /* 设置顶部选项卡内容区域高度撑满页面 */\n /* 注意:此处需要设置为计算高度 【视口高度-选项卡头部标签区域高度】*/\n .wd-top-tab-root .wd-tabs__body {\n height: calc(100vh - 48px);\n overflow: auto;\n }\n ";
|
|
12760
12764
|
}, {
|
|
12761
12765
|
readonly name: "选项卡超长自动滑动遮罩";
|
|
12762
12766
|
readonly selector: ".wd-tabs-h5-root .wd-tabs__header-item-mask";
|
|
@@ -13834,7 +13838,10 @@ export declare const components: {
|
|
|
13834
13838
|
visible: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
13835
13839
|
readOnly: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
13836
13840
|
selectedLabel: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
13837
|
-
item: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
13841
|
+
item: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
13842
|
+
label: import("@sinclair/typebox").TString;
|
|
13843
|
+
value: import("@sinclair/typebox").TString;
|
|
13844
|
+
}>>;
|
|
13838
13845
|
}>;
|
|
13839
13846
|
readonly classes: {
|
|
13840
13847
|
name: string;
|
|
@@ -14141,7 +14148,10 @@ export declare const components: {
|
|
|
14141
14148
|
after: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
14142
14149
|
before: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
14143
14150
|
selectedLabel: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
14144
|
-
item: import("@sinclair/typebox").
|
|
14151
|
+
item: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
14152
|
+
label: import("@sinclair/typebox").TString;
|
|
14153
|
+
value: import("@sinclair/typebox").TString;
|
|
14154
|
+
}>>;
|
|
14145
14155
|
}>;
|
|
14146
14156
|
readonly classes: {
|
|
14147
14157
|
name: string;
|
|
@@ -17045,7 +17055,10 @@ export declare const components: {
|
|
|
17045
17055
|
visible: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
17046
17056
|
readOnly: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
17047
17057
|
selectedLabel: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
17048
|
-
item: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
17058
|
+
item: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
17059
|
+
label: import("@sinclair/typebox").TString;
|
|
17060
|
+
value: import("@sinclair/typebox").TString;
|
|
17061
|
+
}>>;
|
|
17049
17062
|
}>;
|
|
17050
17063
|
readonly classes: {
|
|
17051
17064
|
name: string;
|
|
@@ -17255,7 +17268,10 @@ export declare const components: {
|
|
|
17255
17268
|
visible: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
17256
17269
|
readOnly: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
17257
17270
|
selectedLabel: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
17258
|
-
item: import("@sinclair/typebox").
|
|
17271
|
+
item: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
17272
|
+
label: import("@sinclair/typebox").TString;
|
|
17273
|
+
value: import("@sinclair/typebox").TString;
|
|
17274
|
+
}>>;
|
|
17259
17275
|
}>;
|
|
17260
17276
|
readonly classes: {
|
|
17261
17277
|
name: string;
|
|
@@ -17731,7 +17747,10 @@ export declare const components: {
|
|
|
17731
17747
|
value: import("@sinclair/typebox").TString;
|
|
17732
17748
|
}>>>;
|
|
17733
17749
|
selectedLabel: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
17734
|
-
item: import("@sinclair/typebox").
|
|
17750
|
+
item: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
17751
|
+
label: import("@sinclair/typebox").TString;
|
|
17752
|
+
value: import("@sinclair/typebox").TString;
|
|
17753
|
+
}>>;
|
|
17735
17754
|
}>;
|
|
17736
17755
|
readonly classes: {
|
|
17737
17756
|
name: string;
|
|
@@ -20497,18 +20516,6 @@ declare const _default: {
|
|
|
20497
20516
|
};
|
|
20498
20517
|
};
|
|
20499
20518
|
description: string;
|
|
20500
|
-
}, {
|
|
20501
|
-
name: string;
|
|
20502
|
-
label: string;
|
|
20503
|
-
params: {
|
|
20504
|
-
properties: {
|
|
20505
|
-
value: {
|
|
20506
|
-
title: string;
|
|
20507
|
-
type: string;
|
|
20508
|
-
};
|
|
20509
|
-
};
|
|
20510
|
-
};
|
|
20511
|
-
description: string;
|
|
20512
20519
|
}, {
|
|
20513
20520
|
name: string;
|
|
20514
20521
|
label: string;
|
|
@@ -20533,6 +20540,13 @@ declare const _default: {
|
|
|
20533
20540
|
name: string;
|
|
20534
20541
|
label: string;
|
|
20535
20542
|
description: string;
|
|
20543
|
+
}, {
|
|
20544
|
+
readonly name: "setValue";
|
|
20545
|
+
readonly label: "设置值";
|
|
20546
|
+
readonly params: import("@sinclair/typebox").TObject<{
|
|
20547
|
+
value: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
20548
|
+
}>;
|
|
20549
|
+
readonly description: "通过 $w.cascader1.setValue(['bj','cy']) 设置组件值";
|
|
20536
20550
|
}];
|
|
20537
20551
|
readonly events: readonly [{
|
|
20538
20552
|
name: string;
|
|
@@ -25766,15 +25780,6 @@ declare const _default: {
|
|
|
25766
25780
|
$schema: string;
|
|
25767
25781
|
data: {
|
|
25768
25782
|
properties: {
|
|
25769
|
-
showScrollbar: {
|
|
25770
|
-
title: string;
|
|
25771
|
-
type: string;
|
|
25772
|
-
default: boolean;
|
|
25773
|
-
"x-platforms": string[];
|
|
25774
|
-
"x-category": string;
|
|
25775
|
-
"x-index": number;
|
|
25776
|
-
description: string;
|
|
25777
|
-
};
|
|
25778
25783
|
scrollX: {
|
|
25779
25784
|
title: string;
|
|
25780
25785
|
type: string;
|
|
@@ -25838,6 +25843,24 @@ declare const _default: {
|
|
|
25838
25843
|
"x-index": number;
|
|
25839
25844
|
"x-category": string;
|
|
25840
25845
|
};
|
|
25846
|
+
showScrollbar: {
|
|
25847
|
+
title: string;
|
|
25848
|
+
type: string;
|
|
25849
|
+
default: boolean;
|
|
25850
|
+
"x-platforms": string[];
|
|
25851
|
+
"x-category": string;
|
|
25852
|
+
"x-index": number;
|
|
25853
|
+
description: string;
|
|
25854
|
+
"x-helper-text": string;
|
|
25855
|
+
"x-linkages": {
|
|
25856
|
+
type: string;
|
|
25857
|
+
target: string;
|
|
25858
|
+
condition: string;
|
|
25859
|
+
state: {
|
|
25860
|
+
value: boolean;
|
|
25861
|
+
};
|
|
25862
|
+
}[];
|
|
25863
|
+
};
|
|
25841
25864
|
enhanced: {
|
|
25842
25865
|
title: string;
|
|
25843
25866
|
type: string;
|
|
@@ -32297,7 +32320,7 @@ declare const _default: {
|
|
|
32297
32320
|
readonly name: "内容区域";
|
|
32298
32321
|
readonly selector: ".wd-top-tab-root .wd-tabs__body";
|
|
32299
32322
|
readonly description: "可以为顶部选项卡内容区域编写样式,例如:设置顶部选项卡内容区域高度撑满页面";
|
|
32300
|
-
readonly code: ".wd-top-tab-root .wd-tabs__body {\n
|
|
32323
|
+
readonly code: "\n /* 设置顶部选项卡内容区域高度撑满页面 */\n /* 注意:此处需要设置为计算高度 【视口高度-选项卡头部标签区域高度】*/\n .wd-top-tab-root .wd-tabs__body {\n height: calc(100vh - 48px);\n overflow: auto;\n }\n ";
|
|
32301
32324
|
}, {
|
|
32302
32325
|
readonly name: "选项卡超长自动滑动遮罩";
|
|
32303
32326
|
readonly selector: ".wd-tabs-h5-root .wd-tabs__header-item-mask";
|
|
@@ -33375,7 +33398,10 @@ declare const _default: {
|
|
|
33375
33398
|
visible: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
33376
33399
|
readOnly: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
33377
33400
|
selectedLabel: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
33378
|
-
item: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
33401
|
+
item: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
33402
|
+
label: import("@sinclair/typebox").TString;
|
|
33403
|
+
value: import("@sinclair/typebox").TString;
|
|
33404
|
+
}>>;
|
|
33379
33405
|
}>;
|
|
33380
33406
|
readonly classes: {
|
|
33381
33407
|
name: string;
|
|
@@ -33682,7 +33708,10 @@ declare const _default: {
|
|
|
33682
33708
|
after: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
33683
33709
|
before: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
33684
33710
|
selectedLabel: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
33685
|
-
item: import("@sinclair/typebox").
|
|
33711
|
+
item: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
33712
|
+
label: import("@sinclair/typebox").TString;
|
|
33713
|
+
value: import("@sinclair/typebox").TString;
|
|
33714
|
+
}>>;
|
|
33686
33715
|
}>;
|
|
33687
33716
|
readonly classes: {
|
|
33688
33717
|
name: string;
|
|
@@ -36586,7 +36615,10 @@ declare const _default: {
|
|
|
36586
36615
|
visible: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
36587
36616
|
readOnly: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
36588
36617
|
selectedLabel: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
36589
|
-
item: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
36618
|
+
item: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
36619
|
+
label: import("@sinclair/typebox").TString;
|
|
36620
|
+
value: import("@sinclair/typebox").TString;
|
|
36621
|
+
}>>;
|
|
36590
36622
|
}>;
|
|
36591
36623
|
readonly classes: {
|
|
36592
36624
|
name: string;
|
|
@@ -36796,7 +36828,10 @@ declare const _default: {
|
|
|
36796
36828
|
visible: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
36797
36829
|
readOnly: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
36798
36830
|
selectedLabel: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
36799
|
-
item: import("@sinclair/typebox").
|
|
36831
|
+
item: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
36832
|
+
label: import("@sinclair/typebox").TString;
|
|
36833
|
+
value: import("@sinclair/typebox").TString;
|
|
36834
|
+
}>>;
|
|
36800
36835
|
}>;
|
|
36801
36836
|
readonly classes: {
|
|
36802
36837
|
name: string;
|
|
@@ -37272,7 +37307,10 @@ declare const _default: {
|
|
|
37272
37307
|
value: import("@sinclair/typebox").TString;
|
|
37273
37308
|
}>>>;
|
|
37274
37309
|
selectedLabel: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
37275
|
-
item: import("@sinclair/typebox").
|
|
37310
|
+
item: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
37311
|
+
label: import("@sinclair/typebox").TString;
|
|
37312
|
+
value: import("@sinclair/typebox").TString;
|
|
37313
|
+
}>>;
|
|
37276
37314
|
}>;
|
|
37277
37315
|
readonly classes: {
|
|
37278
37316
|
name: string;
|
|
@@ -184,7 +184,10 @@ export declare const FORM_ITEM_DATA: {
|
|
|
184
184
|
value: import("@sinclair/typebox").TString;
|
|
185
185
|
}>>;
|
|
186
186
|
selectedLabel: import("@sinclair/typebox").TString;
|
|
187
|
-
item: import("@sinclair/typebox").TObject<{
|
|
187
|
+
item: import("@sinclair/typebox").TObject<{
|
|
188
|
+
label: import("@sinclair/typebox").TString;
|
|
189
|
+
value: import("@sinclair/typebox").TString;
|
|
190
|
+
}>;
|
|
188
191
|
isTableView: import("@sinclair/typebox").TBoolean;
|
|
189
192
|
_formatInSelect: import("@sinclair/typebox").TUnsafe<string>;
|
|
190
193
|
viewId: import("@sinclair/typebox").TString;
|
|
@@ -603,7 +606,10 @@ export declare const ItemData: import("@sinclair/typebox").TObject<{
|
|
|
603
606
|
value: import("@sinclair/typebox").TString;
|
|
604
607
|
}>>>;
|
|
605
608
|
selectedLabel: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
606
|
-
item: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
609
|
+
item: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
610
|
+
label: import("@sinclair/typebox").TString;
|
|
611
|
+
value: import("@sinclair/typebox").TString;
|
|
612
|
+
}>>;
|
|
607
613
|
isTableView: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
608
614
|
_formatInSelect: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
|
|
609
615
|
viewId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
@@ -1704,7 +1704,10 @@ export const FORM_ITEM_DATA = {
|
|
|
1704
1704
|
description: '选中项对应的文本名称',
|
|
1705
1705
|
'x-platforms': [],
|
|
1706
1706
|
}),
|
|
1707
|
-
item: Type.Object({
|
|
1707
|
+
item: Type.Object({
|
|
1708
|
+
label: Type.String({ title: 'label' }),
|
|
1709
|
+
value: Type.String({ title: 'value' }),
|
|
1710
|
+
}, {
|
|
1708
1711
|
title: '选中项',
|
|
1709
1712
|
description: '选中项对应的对象',
|
|
1710
1713
|
'x-platforms': [],
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
@cloudbase/weda-ui v3.19.
|
|
2
|
+
@cloudbase/weda-ui v3.19.2
|
|
3
3
|
*/
|
|
4
4
|
@charset "UTF-8";@media (min-width:1024px){.weda-ui .weui-cells{font-size:1em}.weui .weui-cell_active:active{background-color:unset!important}}@font-face{font-family:lcap-icon;font-weight:400;font-style:normal;src:url(data:application/font-woff2;charset=utf-8;base64,d09GMgABAAAAAAkMAA0AAAAAFZgAAAi1AAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP0ZGVE0cGh4GYACCXhEICpxYlmoLTgABNgIkA1gEIAWDMweDBRtzEVGUTVKf7GdCpjLGY/HIYGvbDpn6q7Qdj3xvUaZJUNFads3M7geYVSSiCgsZJYFkhEfn2DjU9//jpn8D1QTqVBQqSrtAVZAq1bwkpTOo0Hbz2tnYfkP3ZzAxpv6ZiSFf3OHh8/b+/oqzxIt4QmFX5ImmIe0SWAOEOJL2n9ZSO5PcCwErnTjzLxOYud0Az24IS8AOXSWgBtyL2lbFtkKxMAhSoPNdlrMFakJqTjuamX+3E3teqiTm6/UpPkH213oLGNahKuAtpQ0wbERrXcnzO1bBpK388B4D6I5fCT9kh69EbSy65RKsi/26+7qKtJv2oREq98FIbnbJO3TaMjBjPcwtqFDG9qp0XxcX/7ndSrUHxotP16TcVrHOGHgIM0PwK6JIMvN/BgpiRTDc/CFwhO+x7ZDYI/ON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hkcF5ziw45OB87l85aUMFg0NLu2/zrqV/BH9vE5gRJkaL8IilGuqC03JjHIZdlQAzgqTSpcqAx7mVejwNSGWWs4aGlmhqdGjnCFPBYAqTFrMVhmw/tErzDrt1E1nqkx9Os0wHbxR48t8+rYA9icsgyFzkc5s8Ne9hwCEXWH8WM82YAhjUzGZLCR46/+MZFkk2djoLT1IzKCbi3WV1hnUrcvSm+MZtRSpiYWanQU+67DN62G7tnPGP8h5DgBGvMgjgCILl0eQyJQoo5wKKqmimhpqqSOQIIIJQUQoYYQTQSRRRBNDLHGIkRBPAonZMHXOzF6Z99D0PpIk80xVIUlCBjmykYNc5CEfBShEJaqggBIqjzpSRkIGObKRg1zkIR8FKEQlqqCAEiqPulNOAgAA) format('woff2')}.wd-form--vertical-left .wedatea2td-form .weda-formcells__pc.horizontal,.wd-form--vertical-right .wedatea2td-form .weda-formcells__pc.horizontal,.wedatea2td-form--vertical .wd-form--horizontal-left .wd-form-item-wrap,.wedatea2td-form--vertical .wd-form--horizontal-right .wd-form-item-wrap,.wedatea2td-form--vertical .wd-form-item.wd-form-item--horizontal-left .wd-form-item-wrap,.wedatea2td-form--vertical .wd-form-item.wd-form-item--horizontal-right .wd-form-item-wrap,.wedatea2td-form--vertical .wedatea2td-form .weda-formcells__pc.horizontal{flex-direction:column}.g-swiper-item>div>*{max-width:100%;max-height:100%;object-fit:cover;max-width:100%;object-fit:cover;max-width:100%;max-height:100%;object-fit:cover;width:100%;height:auto;max-width:100%;object-fit:cover}.form-detail-wrap .form-detail-content-wrap .form-detail-group-header-container{display:flex;align-items:center;justify-content:space-between}.weda-graphic-card .weda-graphic-card__col .weda-graphic-card__title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.weda-graphic-card .weda-graphic-card__col .weda-graphic-card__desc{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.weda-menu .wedatea2td-menu--light .wedatea2td-menu__list li.is-selected>.wedatea2td-menu__item:hover,.wedatea2td-drawer .wedatea2td-menu--light .wedatea2td-menu__list li .wedatea2td-menu__item:hover{background-color:var(--weda-navigation-menu-hover-color)}.weda-menu-mobile .weda-menu__wrapper{display:flex;align-items:center;justify-content:space-between;box-shadow:0 2px 2px rgba(0,0,0,.05)}.weda-menu .wedatea2td-menu__text .menu-text,.weda-menu__drawer .wedatea2td-menu__text .menu-text{display:flex;justify-content:center;align-items:center}@media (max-width:1024px){.g-swiper .g-swiper__turn-next,.g-swiper .g-swiper__turn-pre{display:none}.modal-table-delete .wedatea2td-dialog__inner,.model-relation-selector-modal .wedatea2td-dialog__inner,.wedatea2td-dialog__inner{min-width:0;width:90%;margin:10px 0}.wedatea2td-form.model-form{width:100%}}.markdown-body .octicon{fill:currentColor}.markdown-body pre{word-wrap:normal}.wd-form-item.wd-pc-rich-text-root .ExEditor-basic,.wd-form-item.wd-pc-rich-text-root .exeditor-toolbar{background-color:inherit}.wd-add-relation-button-wrap{display:flex;align-items:center;color:var(--wd-color-brand,#0052d9);white-space:pre-wrap}.weda-import-csv-file-modal .file-json-map-wrap{display:flex;flex-direction:column;box-sizing:border-box}.weda-import-csv-file-modal .import-file-result-wrap .error-container{display:flex;flex-direction:column}.weda-import-csv-file-modal .import-file-result-wrap .error-content{flex:1}.wd-table-wrap-filter .wedatea2td-input:focus,.wd-table-wrap-filter .wedatea2td-input:hover,.wd-table-wrap-filter .wedatea2td-textarea-group:focus,.wd-table-wrap-filter .wedatea2td-textarea-group:hover,.wd-table-wrap-filter .wedatea2td-textarea:focus,.wd-table-wrap-filter .wedatea2td-textarea:hover,.wedatea2td-overlay .wedatea2td-checkbox:focus,.wedatea2td-overlay .wedatea2td-checkbox:hover,.wedatea2td-overlay input[type=checkbox]:focus,.wedatea2td-overlay input[type=checkbox]:hover{border-color:var(--wd-color-brand,#0052d9)}.weda-ui_mapChoose_search_input_clear{display:flex;justify-content:center}.form-select-map .wedatea2td-dialog__inner{box-shadow:none;min-width:100vw!important}.weda-ui-custom-calendar-op__end,.weda-ui-custom-calendar-op__start{display:flex;align-items:center}.weui-tag span{word-wrap:break-word;word-break:break-word}.weda-ui-user-select-container-list__start .depart-tree .wedatea2td-tree__node.is-selected>.wedatea2td-tree__node-content,.weda-ui-user-select-container-list__start .depart-tree .wedatea2td-tree__node.is-selected>.wedatea2td-tree__node-content .wedatea2td-tree__label,.weda-ui-user-select-container-list__start .wedatea2td-tree.wedatea2td-tree--checkbox-separate .wedatea2td-tree__node.is-selected>.wedatea2td-tree__node-content .wedatea2td-tree__label .wedatea2td-tree__label-title{background-color:var(--wd-color-brand-light,#d4e3fc)}.weda-select-user-dept-breadcrumb{display:flex;align-items:center}.form-location-con_disabled{opacity:.4}body{font-size:var(--wd-font-base)}@font-face{font-family:wd-lcap-icon;font-weight:400;font-style:normal;src:url(data:application/font-woff2;charset=utf-8;base64,d09GMgABAAAAAAkMAA0AAAAAFZgAAAi1AAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP0ZGVE0cGh4GYACCXhEICpxYlmoLTgABNgIkA1gEIAWDMweDBRtzEVGUTVKf7GdCpjLGY/HIYGvbDpn6q7Qdj3xvUaZJUNFads3M7geYVSSiCgsZJYFkhEfn2DjU9//jpn8D1QTqVBQqSrtAVZAq1bwkpTOo0Hbz2tnYfkP3ZzAxpv6ZiSFf3OHh8/b+/oqzxIt4QmFX5ImmIe0SWAOEOJL2n9ZSO5PcCwErnTjzLxOYud0Az24IS8AOXSWgBtyL2lbFtkKxMAhSoPNdlrMFakJqTjuamX+3E3teqiTm6/UpPkH213oLGNahKuAtpQ0wbERrXcnzO1bBpK388B4D6I5fCT9kh69EbSy65RKsi/26+7qKtJv2oREq98FIbnbJO3TaMjBjPcwtqFDG9qp0XxcX/7ndSrUHxotP16TcVrHOGHgIM0PwK6JIMvN/BgpiRTDc/CFwhO+x7ZDYI/ONMoO4NDIX3PYHqpDAWg0a1byp4P4j3ft6fX2jqrvbO6bLU5gtI53w8U4ueG4vS7h0Ze7t9hJUld5xMnwpJp2X5O8KxChB4KG0I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BYAqTFrMVhmw/tErzDrt1E1nqkx9Os0wHbxR48t8+rYA9icsgyFzkc5s8Ne9hwCEXWH8WM82YAhjUzGZLCR46/+MZFkk2djoLT1IzKCbi3WV1hnUrcvSm+MZtRSpiYWanQU+67DN62G7tnPGP8h5DgBGvMgjgCILl0eQyJQoo5wKKqmimhpqqSOQIIIJQUQoYYQTQSRRRBNDLHGIkRBPAonZMHXOzF6Z99D0PpIk80xVIUlCBjmykYNc5CEfBShEJaqggBIqjzpSRkIGObKRg1zkIR8FKEQlqqCAEiqPulNOAgAA) format("woff2")}.t-icon{speak:none;text-transform:none;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.wd-space-align-items--flex-start{align-items:flex-start;align-items:center;align-items:flex-end}.wd-space-justify-content--flex-start{justify-content:flex-start;justify-content:center;justify-content:flex-end}.wd-btn{--wd-btn-sm-padding:0.0625rem calc(var(--wd-space-base) * 2);--wd-btn-md-padding:0.25rem calc(var(--wd-space-base) * 4);--wd-btn-lg-padding:0.4375rem calc(var(--wd-space-base) * 6);--wd-btn-margin-top:0;--wd-btn-margin-top:0;--wd-btn-font-size-sm:var(--wd-font-size-2);--wd-btn-line-height-sm:1.5;--wd-btn-min-height-sm:24px;--wd-btn-font-size-md:var(--wd-font-size-3);--wd-btn-line-height-md:1.5;--wd-btn-min-height-md:32px;--wd-btn-font-size-lg:var(--wd-font-size-4);--wd-btn-line-height-lg:1.5;--wd-btn-min-height-lg:40px;--wd-btn-icon-space-sm:var(--wd-space-base);--wd-btn-icon-space-md:calc(var(--wd-space-base) * 2);--wd-btn-icon-space-lg:calc(var(--wd-space-base) * 3);--wd-btn-icon-size-sm:calc(var(--wd-btn-font-size-sm) + 0.125rem);--wd-btn-icon-size-md:calc(var(--wd-btn-font-size-md) + 0.125rem);--wd-btn-icon-size-lg:calc(var(--wd-btn-font-size-lg) + 0.25rem);--wd-btn-border-radius:var(--wd-border-radius);--wd-btn-color-text:var(--wd-color-text-default);--wd-btn-color-text-inverse:var(--wd-color-text-inverse);--wd-btn-color-text-hover:var(--wd-color-text-default);--wd-btn-color-text-active:var(--wd-color-text-default);--wd-btn-color-text-focus:var(--wd-color-text-default);--wd-btn-color-text-disabled:var(--wd-color-text-disabled);--wd-btn-color-brand:var(--wd-color-brand);--wd-btn-color-brand-hover:var(--wd-color-brand-hover);--wd-btn-color-brand-active:var(--wd-color-brand-active);--wd-btn-color-brand-focus:var(--wd-color-brand-focus);--wd-btn-color-brand-disabled:var(--wd-color-brand-disabled);--wd-btn-color-warning:var(--wd-color-warning);--wd-btn-color-warning-hover:var(--wd-color-warning-hover);--wd-btn-color-warning-active:var(--wd-color-warning-active);--wd-btn-color-warning-focus:var(--wd-color-warning-focus);--wd-btn-color-warning-disabled:var(--wd-color-warning-disabled);--wd-btn-color-error:var(--wd-color-error);--wd-btn-color-error-hover:var(--wd-color-error-hover);--wd-btn-color-error-active:var(--wd-color-error-active);--wd-btn-color-error-focus:var(--wd-color-error-focus);--wd-btn-color-error-disabled:var(--wd-color-error-disabled);--wd-btn-color-gray:var(
|
|
5
5
|
--wd-color-gray-1
|
|
@@ -6,10 +6,10 @@ import { debug } from '../../utils/console';
|
|
|
6
6
|
import { useSyncValue } from '../../utils/hooks/useSyncValue';
|
|
7
7
|
import isObjectEqual from '../../utils/isObjectEqual';
|
|
8
8
|
import { isNil } from '../../utils/lodash';
|
|
9
|
-
import { getParentForm, useFormDetailContext, useFormObjContext
|
|
9
|
+
import { getParentForm, useFormDetailContext, useFormObjContext } from '../../utils/widget-api';
|
|
10
10
|
import { validType } from './validator';
|
|
11
11
|
import { emptyArray, noop } from '../../utils/constant';
|
|
12
|
-
import { useDeepCompareEffect, useRerender, useUnmountEffect
|
|
12
|
+
import { useDeepCompareEffect, useRerender, useUnmountEffect } from '@react-hookz/web';
|
|
13
13
|
import { useStatus, convertMethodParam } from '../../utils/hooks/useFormLegacy';
|
|
14
14
|
import { X_RUNTIME_DEFAULT } from '../../../configs/type-utils/x-runtime-default';
|
|
15
15
|
import { useFormType } from '../wd-form/contexts/form-type-context';
|
|
@@ -89,12 +89,17 @@ export function useFormInputTrait(inputParams) {
|
|
|
89
89
|
var _a, _b;
|
|
90
90
|
const removeFormItem = (_b = (_a = $widget
|
|
91
91
|
.closest((w) => { var _a, _b; return ((_b = (_a = w.getConfig) === null || _a === void 0 ? void 0 : _a.call(w)) === null || _b === void 0 ? void 0 : _b.componentType) === 'form'; })) === null || _a === void 0 ? void 0 : _a.addFormItem) === null || _b === void 0 ? void 0 : _b.call(_a, name, $widget);
|
|
92
|
-
|
|
92
|
+
let removeFormObjItem;
|
|
93
|
+
if ((formObjContext === null || formObjContext === void 0 ? void 0 : formObjContext.addFormItem) && typeof (formObjContext === null || formObjContext === void 0 ? void 0 : formObjContext.addFormItem) === 'function') {
|
|
94
|
+
removeFormObjItem = formObjContext === null || formObjContext === void 0 ? void 0 : formObjContext.addFormItem(name, $widget);
|
|
95
|
+
}
|
|
93
96
|
logger.debug('addFormItem', name);
|
|
94
97
|
return () => {
|
|
95
98
|
logger.debug('removeFormItem', name);
|
|
96
99
|
removeFormItem === null || removeFormItem === void 0 ? void 0 : removeFormItem();
|
|
97
|
-
removeFormObjItem
|
|
100
|
+
if (removeFormObjItem && typeof removeFormObjItem === 'function') {
|
|
101
|
+
removeFormObjItem === null || removeFormObjItem === void 0 ? void 0 : removeFormObjItem();
|
|
102
|
+
}
|
|
98
103
|
};
|
|
99
104
|
}, [$widget, name, form, formObjContext]);
|
|
100
105
|
const clearValidate = useCallback(() => {
|
|
@@ -189,8 +194,7 @@ export function useFormInputTrait(inputParams) {
|
|
|
189
194
|
let reg;
|
|
190
195
|
if (typeof item.pattern === 'string') {
|
|
191
196
|
const m = item.pattern.match(/(\/?)(.+)\1([a-z]*)/i);
|
|
192
|
-
if (m[3] &&
|
|
193
|
-
!/^(?!.*?(.).*?\1)[gmixXsuUAJ]+$/.test(m[3])) {
|
|
197
|
+
if (m[3] && !/^(?!.*?(.).*?\1)[gmixXsuUAJ]+$/.test(m[3])) {
|
|
194
198
|
reg = RegExp(item.pattern);
|
|
195
199
|
}
|
|
196
200
|
else {
|
|
@@ -323,13 +327,7 @@ export function useFormInputTrait(inputParams) {
|
|
|
323
327
|
else if (fieldPermission === 'n') {
|
|
324
328
|
setVisible(false);
|
|
325
329
|
}
|
|
326
|
-
}, [
|
|
327
|
-
disabled,
|
|
328
|
-
fieldPermission,
|
|
329
|
-
fieldPermissionError,
|
|
330
|
-
fieldPermissionLoading,
|
|
331
|
-
setDisabled,
|
|
332
|
-
]);
|
|
330
|
+
}, [disabled, fieldPermission, fieldPermissionError, fieldPermissionLoading, setDisabled]);
|
|
333
331
|
useUnmountEffect(() => {
|
|
334
332
|
var _a;
|
|
335
333
|
(_a = form === null || form === void 0 ? void 0 : form.updateFormContext) === null || _a === void 0 ? void 0 : _a.call(form, name, undefined);
|
|
@@ -18,7 +18,8 @@ export const ExportFileModal = ({ fields, columns, isExportFileModalByApiVisible
|
|
|
18
18
|
(field === null || field === void 0 ? void 0 : field.format) !== 'many-many' &&
|
|
19
19
|
(field === null || field === void 0 ? void 0 : field.format) !== 'many-one' &&
|
|
20
20
|
(field === null || field === void 0 ? void 0 : field.format) !== 'one-many' &&
|
|
21
|
-
(field === null || field === void 0 ? void 0 : field.format) !== 'one-one'
|
|
21
|
+
(field === null || field === void 0 ? void 0 : field.format) !== 'one-one' &&
|
|
22
|
+
(field === null || field === void 0 ? void 0 : field.format) !== 'one-one-r') {
|
|
22
23
|
supportFields.push(field);
|
|
23
24
|
}
|
|
24
25
|
});
|
|
@@ -36,7 +37,7 @@ export const ExportFileModal = ({ fields, columns, isExportFileModalByApiVisible
|
|
|
36
37
|
.filter((el) => {
|
|
37
38
|
const field = fields.find((i) => (i === null || i === void 0 ? void 0 : i.name) === (el === null || el === void 0 ? void 0 : el.key) && el.isRelated);
|
|
38
39
|
const format = field === null || field === void 0 ? void 0 : field.format;
|
|
39
|
-
return el.isRelated && el.isExport && format !== 'many-many' && format !== 'one-many';
|
|
40
|
+
return el.isRelated && el.isExport && format !== 'many-many' && format !== 'one-many' && format !== 'one-one-r';
|
|
40
41
|
})
|
|
41
42
|
.map((item) => {
|
|
42
43
|
return {
|
|
@@ -19,12 +19,15 @@ export const useTableData = ({ dataSourceAPI, connectorMethod, query, events, is
|
|
|
19
19
|
const fetchVersion = (fetchRef.current.version = getUuid());
|
|
20
20
|
let data = { records: [], total: 0 };
|
|
21
21
|
setTableLoading(true);
|
|
22
|
+
let canCallQuerySuccess = true;
|
|
22
23
|
try {
|
|
23
24
|
if (isModel) {
|
|
24
25
|
if (supportManyRelated) {
|
|
25
26
|
// select为空对象时报错,避免传空对象给数组
|
|
26
27
|
const select = (query === null || query === void 0 ? void 0 : query.select) || {};
|
|
28
|
+
canCallQuerySuccess = false;
|
|
27
29
|
if (Object.keys(select).length !== 0) {
|
|
30
|
+
canCallQuerySuccess = true;
|
|
28
31
|
data = await dataSourceAPI.getRecordListV2(query, { swr });
|
|
29
32
|
data.records = data.records || [];
|
|
30
33
|
}
|
|
@@ -50,9 +53,11 @@ export const useTableData = ({ dataSourceAPI, connectorMethod, query, events, is
|
|
|
50
53
|
else {
|
|
51
54
|
setTableData(records);
|
|
52
55
|
}
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
+
if (canCallQuerySuccess) {
|
|
57
|
+
events === null || events === void 0 ? void 0 : events.querySuccess({
|
|
58
|
+
data: Object.assign({}, data, query),
|
|
59
|
+
});
|
|
60
|
+
}
|
|
56
61
|
(records === null || records === void 0 ? void 0 : records.length) === 0 &&
|
|
57
62
|
(events === null || events === void 0 ? void 0 : events.queryEmpty({
|
|
58
63
|
data: Object.assign({}, data, query),
|