@cloudbase/weda-ui 3.15.8 → 3.16.0
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/wd-select-multiple.d.ts +13 -8
- package/dist/configs/components/wd-select-multiple.js +43 -10
- package/dist/configs/components/wd-select.d.ts +13 -8
- package/dist/configs/components/wd-select.js +85 -8
- package/dist/configs/index.d.ts +44 -16
- package/dist/configs/type-utils/x-runtime-default.d.ts +1 -0
- package/dist/configs/type-utils/x-runtime-default.js +1 -0
- package/dist/style/weda-ui.min.css +1 -1
- package/dist/web/components/form/uploaderFile/uploadFile.h5.js +3 -5
- package/dist/web/components/form/uploaderFile/uploadFile.pc.js +3 -5
- package/dist/web/components/wd-select/relationSelect/relationSelect.js +2 -2
- package/dist/web/components/wd-select/select/index.js +3 -2
- package/dist/web/components/wd-select/select/selectUI.js +3 -3
- package/dist/web/components/wd-select/wd-select.d.ts +2 -0
- package/dist/web/components/wd-select/wd-select.js +9 -3
- package/dist/web/components/wd-select-multiple/wd-select-multiple.d.ts +2 -0
- package/dist/web/components/wd-select-multiple/wd-select-multiple.js +9 -3
- package/package.json +2 -2
|
@@ -11,7 +11,6 @@ declare const data: import("@sinclair/typebox").TObject<{
|
|
|
11
11
|
required: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
12
12
|
requiredMsg: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
13
13
|
requiredFlag: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
14
|
-
staticSearchable: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
15
14
|
extra: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
16
15
|
after: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
17
16
|
before: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
@@ -63,10 +62,9 @@ declare const data: import("@sinclair/typebox").TObject<{
|
|
|
63
62
|
default: string;
|
|
64
63
|
'x-index': number;
|
|
65
64
|
}>;
|
|
65
|
+
searchable: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
66
66
|
searchPlaceholder: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
67
|
-
|
|
68
|
-
'x-index': number;
|
|
69
|
-
}>;
|
|
67
|
+
filterable: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
70
68
|
enableRelationalSetting: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
71
69
|
enableRelationalRefresh: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
72
70
|
enableRelationOptionJump: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
@@ -87,7 +85,6 @@ declare const config: {
|
|
|
87
85
|
required: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
88
86
|
requiredMsg: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
89
87
|
requiredFlag: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
90
|
-
staticSearchable: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
91
88
|
extra: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
92
89
|
after: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
93
90
|
before: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
@@ -139,10 +136,9 @@ declare const config: {
|
|
|
139
136
|
default: string;
|
|
140
137
|
'x-index': number;
|
|
141
138
|
}>;
|
|
139
|
+
searchable: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
142
140
|
searchPlaceholder: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
143
|
-
|
|
144
|
-
'x-index': number;
|
|
145
|
-
}>;
|
|
141
|
+
filterable: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
146
142
|
enableRelationalSetting: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
147
143
|
enableRelationalRefresh: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
148
144
|
enableRelationOptionJump: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
@@ -257,12 +253,21 @@ declare const config: {
|
|
|
257
253
|
readonly detail: import("@sinclair/typebox").TObject<{
|
|
258
254
|
value: import("@sinclair/typebox").TString;
|
|
259
255
|
}>;
|
|
256
|
+
}, {
|
|
257
|
+
readonly name: "focus";
|
|
258
|
+
readonly title: "聚焦";
|
|
259
|
+
}, {
|
|
260
|
+
readonly name: "blur";
|
|
261
|
+
readonly title: "失焦";
|
|
262
|
+
readonly 'x-platforms': readonly ["MOBILEWEB", "PCWEB"];
|
|
260
263
|
}, {
|
|
261
264
|
readonly name: "onSettingButtonClick";
|
|
262
265
|
readonly title: "点击设置按钮";
|
|
266
|
+
readonly 'x-platforms': readonly ["MOBILEWEB", "PCWEB"];
|
|
263
267
|
}, {
|
|
264
268
|
readonly name: "onAddRelationButtonClick";
|
|
265
269
|
readonly title: "点击新建按钮";
|
|
270
|
+
readonly 'x-platforms': readonly ["MOBILEWEB", "PCWEB"];
|
|
266
271
|
}, {
|
|
267
272
|
readonly name: "onRelationTagClick";
|
|
268
273
|
readonly title: "点击标签";
|
|
@@ -2,7 +2,7 @@ import { defineConfig, Type, Tuple } from '../type-utils';
|
|
|
2
2
|
import { FORM_ITEM_DATA, FORM_ITEM_METHODS, FORM_ITEM_META, ItemData, pickWithXCategory, X_CATEGORY, getFormItemDataTitle, } from '../type-utils/type-form';
|
|
3
3
|
import { getClasses } from '../type-utils/classes';
|
|
4
4
|
import { templateInitNameWithId } from './common/init-name-with-id';
|
|
5
|
-
import { MULTIPLE_FOREIGN_FORMATS } from '../type-utils/x-runtime-default';
|
|
5
|
+
import { MULTIPLE_FOREIGN_FORMATS, X_RUNTIME_DEFAULT } from '../type-utils/x-runtime-default';
|
|
6
6
|
const SELECT = pickWithXCategory(FORM_ITEM_DATA, [
|
|
7
7
|
'clearable',
|
|
8
8
|
'before',
|
|
@@ -223,17 +223,41 @@ const data = Type.Partial(Type.Object({
|
|
|
223
223
|
default: '请选择',
|
|
224
224
|
'x-index': 41,
|
|
225
225
|
}),
|
|
226
|
+
searchable: Type.Boolean({
|
|
227
|
+
title: '支持搜索',
|
|
228
|
+
'x-runtime-default': X_RUNTIME_DEFAULT.searchable,
|
|
229
|
+
'x-index': 42,
|
|
230
|
+
'x-category': X_CATEGORY.COMMON,
|
|
231
|
+
'x-linkages': [
|
|
232
|
+
{
|
|
233
|
+
type: 'value:visible',
|
|
234
|
+
target: '*(searchPlaceholder)',
|
|
235
|
+
condition: '{{$self.value}}',
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
type: 'value:visible',
|
|
239
|
+
target: '*(filterable)',
|
|
240
|
+
condition: `{{$self.value&&!$form.values.format}}`,
|
|
241
|
+
},
|
|
242
|
+
],
|
|
243
|
+
}),
|
|
226
244
|
searchPlaceholder: Type.String({
|
|
227
245
|
title: '搜索框占位文字',
|
|
228
246
|
type: 'string',
|
|
229
247
|
default: '搜索选项',
|
|
230
|
-
'x-index':
|
|
248
|
+
'x-index': 43,
|
|
231
249
|
'x-category': X_CATEGORY.COMMON,
|
|
232
|
-
'x-helper-text': 'PC/H5端生效',
|
|
233
250
|
}),
|
|
234
|
-
|
|
235
|
-
'
|
|
251
|
+
filterable: Type.Boolean({
|
|
252
|
+
title: '支持远程搜索',
|
|
253
|
+
'x-runtime-default': X_RUNTIME_DEFAULT.filterable,
|
|
254
|
+
'x-index': 44,
|
|
255
|
+
'x-category': X_CATEGORY.COMMON,
|
|
256
|
+
description: '默认根据搜索框输入值进行筛选,开启后屏蔽前端筛选',
|
|
236
257
|
}),
|
|
258
|
+
// ignoreCase: Object.assign({}, FORM_ITEM_DATA.ignoreCase, {
|
|
259
|
+
// 'x-index': 43,
|
|
260
|
+
// }),
|
|
237
261
|
enableRelationalSetting: FORM_ITEM_DATA.enableRelationalSetting,
|
|
238
262
|
enableRelationalRefresh: FORM_ITEM_DATA.enableRelationalRefresh,
|
|
239
263
|
enableRelationOptionJump: FORM_ITEM_DATA.enableRelationOptionJump,
|
|
@@ -256,7 +280,7 @@ const data = Type.Partial(Type.Object({
|
|
|
256
280
|
'x-linkages': [
|
|
257
281
|
{
|
|
258
282
|
type: 'value:visible',
|
|
259
|
-
target: '*(range)',
|
|
283
|
+
target: '*(range,filterable)',
|
|
260
284
|
condition: `{{!${MULTIPLE_FOREIGN_FORMATS('$self.value', true)}}}`,
|
|
261
285
|
},
|
|
262
286
|
{
|
|
@@ -279,16 +303,14 @@ const data = Type.Partial(Type.Object({
|
|
|
279
303
|
condition: `{{!$form.values.supportManyRelated&&${MULTIPLE_FOREIGN_FORMATS()}}}`,
|
|
280
304
|
state: {
|
|
281
305
|
display: true,
|
|
282
|
-
value: false,
|
|
283
306
|
},
|
|
284
307
|
otherwise: {
|
|
285
308
|
display: false,
|
|
286
|
-
value: true,
|
|
287
309
|
},
|
|
288
310
|
},
|
|
289
311
|
],
|
|
290
312
|
'x-category': X_CATEGORY.COMMON,
|
|
291
|
-
'x-index':
|
|
313
|
+
'x-index': 50,
|
|
292
314
|
display: false,
|
|
293
315
|
'x-platforms': [''],
|
|
294
316
|
}),
|
|
@@ -302,7 +324,7 @@ const data = Type.Partial(Type.Object({
|
|
|
302
324
|
requiredMsg: FORM_ITEM_DATA.requiredMsg,
|
|
303
325
|
requiredFlag: FORM_ITEM_DATA.requiredFlag,
|
|
304
326
|
// 已废弃属性
|
|
305
|
-
staticSearchable: FORM_ITEM_DATA.staticSearchable,
|
|
327
|
+
// staticSearchable: FORM_ITEM_DATA.staticSearchable,
|
|
306
328
|
}));
|
|
307
329
|
const properties = Type.Composite([
|
|
308
330
|
Type.Pick(data, ['name', 'label', 'value', 'required', 'before', 'after']),
|
|
@@ -375,13 +397,24 @@ const config = defineConfig({
|
|
|
375
397
|
}),
|
|
376
398
|
}),
|
|
377
399
|
},
|
|
400
|
+
{
|
|
401
|
+
name: 'focus',
|
|
402
|
+
title: '聚焦',
|
|
403
|
+
},
|
|
404
|
+
{
|
|
405
|
+
name: 'blur',
|
|
406
|
+
title: '失焦',
|
|
407
|
+
'x-platforms': ['MOBILEWEB', 'PCWEB'],
|
|
408
|
+
},
|
|
378
409
|
{
|
|
379
410
|
name: 'onSettingButtonClick',
|
|
380
411
|
title: '点击设置按钮',
|
|
412
|
+
'x-platforms': ['MOBILEWEB', 'PCWEB'],
|
|
381
413
|
},
|
|
382
414
|
{
|
|
383
415
|
name: 'onAddRelationButtonClick',
|
|
384
416
|
title: '点击新建按钮',
|
|
417
|
+
'x-platforms': ['MOBILEWEB', 'PCWEB'],
|
|
385
418
|
},
|
|
386
419
|
{
|
|
387
420
|
name: 'onRelationTagClick',
|
|
@@ -6,7 +6,6 @@ declare const data: import("@sinclair/typebox").TObject<{
|
|
|
6
6
|
required: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
7
7
|
requiredMsg: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
8
8
|
requiredFlag: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
9
|
-
staticSearchable: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
10
9
|
extra: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
11
10
|
after: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
12
11
|
before: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
@@ -59,10 +58,9 @@ declare const data: import("@sinclair/typebox").TObject<{
|
|
|
59
58
|
default: string;
|
|
60
59
|
'x-index': number;
|
|
61
60
|
}>;
|
|
61
|
+
searchable: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
62
62
|
searchPlaceholder: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
63
|
-
|
|
64
|
-
'x-index': number;
|
|
65
|
-
}>;
|
|
63
|
+
filterable: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
66
64
|
enableRelationalSetting: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
67
65
|
enableRelationalRefresh: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
68
66
|
enableAddRelationButton: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
@@ -83,7 +81,6 @@ declare const config: {
|
|
|
83
81
|
required: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
84
82
|
requiredMsg: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
85
83
|
requiredFlag: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
86
|
-
staticSearchable: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
87
84
|
extra: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
88
85
|
after: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
89
86
|
before: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
@@ -136,10 +133,9 @@ declare const config: {
|
|
|
136
133
|
default: string;
|
|
137
134
|
'x-index': number;
|
|
138
135
|
}>;
|
|
136
|
+
searchable: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
139
137
|
searchPlaceholder: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
140
|
-
|
|
141
|
-
'x-index': number;
|
|
142
|
-
}>;
|
|
138
|
+
filterable: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
143
139
|
enableRelationalSetting: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
144
140
|
enableRelationalRefresh: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
145
141
|
enableAddRelationButton: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
@@ -250,12 +246,21 @@ declare const config: {
|
|
|
250
246
|
readonly detail: import("@sinclair/typebox").TObject<{
|
|
251
247
|
value: import("@sinclair/typebox").TString;
|
|
252
248
|
}>;
|
|
249
|
+
}, {
|
|
250
|
+
readonly name: "focus";
|
|
251
|
+
readonly title: "聚焦";
|
|
252
|
+
}, {
|
|
253
|
+
readonly name: "blur";
|
|
254
|
+
readonly title: "失焦";
|
|
255
|
+
readonly 'x-platforms': readonly ["MOBILEWEB", "PCWEB"];
|
|
253
256
|
}, {
|
|
254
257
|
readonly name: "onSettingButtonClick";
|
|
255
258
|
readonly title: "点击设置按钮";
|
|
259
|
+
readonly 'x-platforms': readonly ["MOBILEWEB", "PCWEB"];
|
|
256
260
|
}, {
|
|
257
261
|
readonly name: "onAddRelationButtonClick";
|
|
258
262
|
readonly title: "点击新建按钮";
|
|
263
|
+
readonly 'x-platforms': readonly ["MOBILEWEB", "PCWEB"];
|
|
259
264
|
}, {
|
|
260
265
|
readonly name: "onRelationTagClick";
|
|
261
266
|
readonly title: "点击标签";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { defineConfig, Type } from '../type-utils';
|
|
2
|
-
import {
|
|
1
|
+
import { defineConfig, Type, Tuple } from '../type-utils';
|
|
2
|
+
import { WD_SELECT_FORMAT } from '../../enum/index';
|
|
3
|
+
import { SINGLE_FOREIGN_FORMATS, X_RUNTIME_DEFAULT } from '../type-utils/x-runtime-default';
|
|
3
4
|
import { FORM_ITEM_DATA, FORM_ITEM_METHODS, FORM_ITEM_META, ItemData, pickWithXCategory, X_CATEGORY, getFormItemDataTitle, } from '../type-utils/type-form';
|
|
4
5
|
import { getClasses } from '../type-utils/classes';
|
|
5
6
|
import { templateInitNameWithId } from './common/init-name-with-id';
|
|
@@ -221,16 +222,41 @@ const data = Type.Partial(Type.Object({
|
|
|
221
222
|
default: '请选择',
|
|
222
223
|
'x-index': 41,
|
|
223
224
|
}),
|
|
225
|
+
searchable: Type.Boolean({
|
|
226
|
+
title: '支持搜索',
|
|
227
|
+
'x-runtime-default': X_RUNTIME_DEFAULT.searchable,
|
|
228
|
+
'x-index': 42,
|
|
229
|
+
'x-category': X_CATEGORY.COMMON,
|
|
230
|
+
'x-linkages': [
|
|
231
|
+
{
|
|
232
|
+
type: 'value:visible',
|
|
233
|
+
target: '*(searchPlaceholder)',
|
|
234
|
+
condition: '{{$self.value}}',
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
type: 'value:visible',
|
|
238
|
+
target: '*(filterable)',
|
|
239
|
+
condition: `{{$self.value&&!$form.values.format}}`,
|
|
240
|
+
},
|
|
241
|
+
],
|
|
242
|
+
}),
|
|
224
243
|
searchPlaceholder: Type.String({
|
|
225
244
|
title: '搜索框占位文字',
|
|
226
245
|
type: 'string',
|
|
227
246
|
default: '搜索选项',
|
|
228
|
-
'x-index':
|
|
247
|
+
'x-index': 43,
|
|
229
248
|
'x-category': X_CATEGORY.COMMON,
|
|
230
|
-
'x-helper-text': 'PC/H5端生效',
|
|
231
249
|
}),
|
|
232
|
-
ignoreCase: Object.assign({}, FORM_ITEM_DATA.ignoreCase, {
|
|
233
|
-
|
|
250
|
+
// ignoreCase: Object.assign({}, FORM_ITEM_DATA.ignoreCase, {
|
|
251
|
+
// 'x-index': 44,
|
|
252
|
+
// display: false,
|
|
253
|
+
// }),
|
|
254
|
+
filterable: Type.Boolean({
|
|
255
|
+
title: '支持远程搜索',
|
|
256
|
+
'x-runtime-default': X_RUNTIME_DEFAULT.filterable,
|
|
257
|
+
'x-index': 44,
|
|
258
|
+
'x-category': X_CATEGORY.COMMON,
|
|
259
|
+
description: '默认根据搜索框输入值进行筛选,开启后屏蔽前端筛选',
|
|
234
260
|
}),
|
|
235
261
|
enableRelationalSetting: FORM_ITEM_DATA.enableRelationalSetting,
|
|
236
262
|
enableRelationalRefresh: FORM_ITEM_DATA.enableRelationalRefresh,
|
|
@@ -238,7 +264,47 @@ const data = Type.Partial(Type.Object({
|
|
|
238
264
|
addRelationButtonText: FORM_ITEM_DATA.addRelationButtonText,
|
|
239
265
|
enableRelationOptionJump: FORM_ITEM_DATA.enableRelationOptionJump,
|
|
240
266
|
enableRelationTag: FORM_ITEM_DATA.enableRelationTag,
|
|
241
|
-
format:
|
|
267
|
+
format: Type.StringEnum({
|
|
268
|
+
type: 'string',
|
|
269
|
+
title: '字段类型',
|
|
270
|
+
enum: Tuple(WD_SELECT_FORMAT),
|
|
271
|
+
'x-linkages': [
|
|
272
|
+
{
|
|
273
|
+
type: 'value:visible',
|
|
274
|
+
target: '*(range,filterable)',
|
|
275
|
+
condition: `{{!${SINGLE_FOREIGN_FORMATS('$self.value', true)}}}`,
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
type: 'value:visible',
|
|
279
|
+
target: '*(selectFieldType,tipBlock,enableRelationalSetting,enableAddRelationButton,enableRelationOptionJump,sorter,ignoreCase)',
|
|
280
|
+
condition: `{{${SINGLE_FOREIGN_FORMATS()}}}`,
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
type: 'value:visible',
|
|
284
|
+
target: '*(enableRelationTag,enableRelationalRefresh)',
|
|
285
|
+
condition: `{{${SINGLE_FOREIGN_FORMATS('$self.value', true)}}}`,
|
|
286
|
+
},
|
|
287
|
+
// where: 升级v2协议前的筛选器
|
|
288
|
+
// queryCondition: 升级v2协议后的筛选器
|
|
289
|
+
// supportManyRelated 用来辅助用户主动升级筛选器
|
|
290
|
+
// 默认未主动选择升级筛选器时,展示升级开关,点击升级后不再展示,一次性操作
|
|
291
|
+
{
|
|
292
|
+
type: 'value:state',
|
|
293
|
+
target: 'supportManyRelated',
|
|
294
|
+
condition: `{{!$form.values.supportManyRelated&&${SINGLE_FOREIGN_FORMATS()}}}`,
|
|
295
|
+
state: {
|
|
296
|
+
display: true,
|
|
297
|
+
},
|
|
298
|
+
otherwise: {
|
|
299
|
+
display: false,
|
|
300
|
+
},
|
|
301
|
+
},
|
|
302
|
+
],
|
|
303
|
+
display: false,
|
|
304
|
+
'x-platforms': [''],
|
|
305
|
+
'x-category': X_CATEGORY.COMMON,
|
|
306
|
+
'x-index': 50,
|
|
307
|
+
}),
|
|
242
308
|
viewId: FORM_ITEM_DATA.viewId,
|
|
243
309
|
enumName: FORM_ITEM_DATA.enumName,
|
|
244
310
|
primaryField: FORM_ITEM_DATA.primaryField,
|
|
@@ -254,7 +320,7 @@ const data = Type.Partial(Type.Object({
|
|
|
254
320
|
requiredMsg: FORM_ITEM_DATA.requiredMsg,
|
|
255
321
|
requiredFlag: FORM_ITEM_DATA.requiredFlag,
|
|
256
322
|
// 废弃属性
|
|
257
|
-
staticSearchable: FORM_ITEM_DATA.staticSearchable,
|
|
323
|
+
// staticSearchable: FORM_ITEM_DATA.staticSearchable,
|
|
258
324
|
}));
|
|
259
325
|
const properties = Type.Composite([
|
|
260
326
|
Type.Pick(data, ['name', 'value', 'label', 'required']),
|
|
@@ -320,13 +386,24 @@ const config = defineConfig({
|
|
|
320
386
|
}),
|
|
321
387
|
}),
|
|
322
388
|
},
|
|
389
|
+
{
|
|
390
|
+
name: 'focus',
|
|
391
|
+
title: '聚焦',
|
|
392
|
+
},
|
|
393
|
+
{
|
|
394
|
+
name: 'blur',
|
|
395
|
+
title: '失焦',
|
|
396
|
+
'x-platforms': ['MOBILEWEB', 'PCWEB'],
|
|
397
|
+
},
|
|
323
398
|
{
|
|
324
399
|
name: 'onSettingButtonClick',
|
|
325
400
|
title: '点击设置按钮',
|
|
401
|
+
'x-platforms': ['MOBILEWEB', 'PCWEB'],
|
|
326
402
|
},
|
|
327
403
|
{
|
|
328
404
|
name: 'onAddRelationButtonClick',
|
|
329
405
|
title: '点击新建按钮',
|
|
406
|
+
'x-platforms': ['MOBILEWEB', 'PCWEB'],
|
|
330
407
|
},
|
|
331
408
|
{
|
|
332
409
|
name: 'onRelationTagClick',
|
package/dist/configs/index.d.ts
CHANGED
|
@@ -13651,7 +13651,6 @@ export declare const components: {
|
|
|
13651
13651
|
required: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
13652
13652
|
requiredMsg: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
13653
13653
|
requiredFlag: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
13654
|
-
staticSearchable: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
13655
13654
|
extra: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
13656
13655
|
after: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
13657
13656
|
before: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
@@ -13704,10 +13703,9 @@ export declare const components: {
|
|
|
13704
13703
|
default: string;
|
|
13705
13704
|
'x-index': number;
|
|
13706
13705
|
}>;
|
|
13706
|
+
searchable: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
13707
13707
|
searchPlaceholder: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
13708
|
-
|
|
13709
|
-
'x-index': number;
|
|
13710
|
-
}>;
|
|
13708
|
+
filterable: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
13711
13709
|
enableRelationalSetting: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
13712
13710
|
enableRelationalRefresh: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
13713
13711
|
enableAddRelationButton: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
@@ -13818,12 +13816,21 @@ export declare const components: {
|
|
|
13818
13816
|
readonly detail: import("@sinclair/typebox").TObject<{
|
|
13819
13817
|
value: import("@sinclair/typebox").TString;
|
|
13820
13818
|
}>;
|
|
13819
|
+
}, {
|
|
13820
|
+
readonly name: "focus";
|
|
13821
|
+
readonly title: "聚焦";
|
|
13822
|
+
}, {
|
|
13823
|
+
readonly name: "blur";
|
|
13824
|
+
readonly title: "失焦";
|
|
13825
|
+
readonly 'x-platforms': readonly ["MOBILEWEB", "PCWEB"];
|
|
13821
13826
|
}, {
|
|
13822
13827
|
readonly name: "onSettingButtonClick";
|
|
13823
13828
|
readonly title: "点击设置按钮";
|
|
13829
|
+
readonly 'x-platforms': readonly ["MOBILEWEB", "PCWEB"];
|
|
13824
13830
|
}, {
|
|
13825
13831
|
readonly name: "onAddRelationButtonClick";
|
|
13826
13832
|
readonly title: "点击新建按钮";
|
|
13833
|
+
readonly 'x-platforms': readonly ["MOBILEWEB", "PCWEB"];
|
|
13827
13834
|
}, {
|
|
13828
13835
|
readonly name: "onRelationTagClick";
|
|
13829
13836
|
readonly title: "点击标签";
|
|
@@ -13951,7 +13958,6 @@ export declare const components: {
|
|
|
13951
13958
|
required: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
13952
13959
|
requiredMsg: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
13953
13960
|
requiredFlag: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
13954
|
-
staticSearchable: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
13955
13961
|
extra: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
13956
13962
|
after: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
13957
13963
|
before: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
@@ -14003,10 +14009,9 @@ export declare const components: {
|
|
|
14003
14009
|
default: string;
|
|
14004
14010
|
'x-index': number;
|
|
14005
14011
|
}>;
|
|
14012
|
+
searchable: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
14006
14013
|
searchPlaceholder: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
14007
|
-
|
|
14008
|
-
'x-index': number;
|
|
14009
|
-
}>;
|
|
14014
|
+
filterable: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
14010
14015
|
enableRelationalSetting: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
14011
14016
|
enableRelationalRefresh: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
14012
14017
|
enableRelationOptionJump: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
@@ -14121,12 +14126,21 @@ export declare const components: {
|
|
|
14121
14126
|
readonly detail: import("@sinclair/typebox").TObject<{
|
|
14122
14127
|
value: import("@sinclair/typebox").TString;
|
|
14123
14128
|
}>;
|
|
14129
|
+
}, {
|
|
14130
|
+
readonly name: "focus";
|
|
14131
|
+
readonly title: "聚焦";
|
|
14132
|
+
}, {
|
|
14133
|
+
readonly name: "blur";
|
|
14134
|
+
readonly title: "失焦";
|
|
14135
|
+
readonly 'x-platforms': readonly ["MOBILEWEB", "PCWEB"];
|
|
14124
14136
|
}, {
|
|
14125
14137
|
readonly name: "onSettingButtonClick";
|
|
14126
14138
|
readonly title: "点击设置按钮";
|
|
14139
|
+
readonly 'x-platforms': readonly ["MOBILEWEB", "PCWEB"];
|
|
14127
14140
|
}, {
|
|
14128
14141
|
readonly name: "onAddRelationButtonClick";
|
|
14129
14142
|
readonly title: "点击新建按钮";
|
|
14143
|
+
readonly 'x-platforms': readonly ["MOBILEWEB", "PCWEB"];
|
|
14130
14144
|
}, {
|
|
14131
14145
|
readonly name: "onRelationTagClick";
|
|
14132
14146
|
readonly title: "点击标签";
|
|
@@ -32832,7 +32846,6 @@ declare const _default: {
|
|
|
32832
32846
|
required: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
32833
32847
|
requiredMsg: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
32834
32848
|
requiredFlag: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
32835
|
-
staticSearchable: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
32836
32849
|
extra: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
32837
32850
|
after: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
32838
32851
|
before: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
@@ -32885,10 +32898,9 @@ declare const _default: {
|
|
|
32885
32898
|
default: string;
|
|
32886
32899
|
'x-index': number;
|
|
32887
32900
|
}>;
|
|
32901
|
+
searchable: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
32888
32902
|
searchPlaceholder: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
32889
|
-
|
|
32890
|
-
'x-index': number;
|
|
32891
|
-
}>;
|
|
32903
|
+
filterable: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
32892
32904
|
enableRelationalSetting: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
32893
32905
|
enableRelationalRefresh: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
32894
32906
|
enableAddRelationButton: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
@@ -32999,12 +33011,21 @@ declare const _default: {
|
|
|
32999
33011
|
readonly detail: import("@sinclair/typebox").TObject<{
|
|
33000
33012
|
value: import("@sinclair/typebox").TString;
|
|
33001
33013
|
}>;
|
|
33014
|
+
}, {
|
|
33015
|
+
readonly name: "focus";
|
|
33016
|
+
readonly title: "聚焦";
|
|
33017
|
+
}, {
|
|
33018
|
+
readonly name: "blur";
|
|
33019
|
+
readonly title: "失焦";
|
|
33020
|
+
readonly 'x-platforms': readonly ["MOBILEWEB", "PCWEB"];
|
|
33002
33021
|
}, {
|
|
33003
33022
|
readonly name: "onSettingButtonClick";
|
|
33004
33023
|
readonly title: "点击设置按钮";
|
|
33024
|
+
readonly 'x-platforms': readonly ["MOBILEWEB", "PCWEB"];
|
|
33005
33025
|
}, {
|
|
33006
33026
|
readonly name: "onAddRelationButtonClick";
|
|
33007
33027
|
readonly title: "点击新建按钮";
|
|
33028
|
+
readonly 'x-platforms': readonly ["MOBILEWEB", "PCWEB"];
|
|
33008
33029
|
}, {
|
|
33009
33030
|
readonly name: "onRelationTagClick";
|
|
33010
33031
|
readonly title: "点击标签";
|
|
@@ -33132,7 +33153,6 @@ declare const _default: {
|
|
|
33132
33153
|
required: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
33133
33154
|
requiredMsg: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
33134
33155
|
requiredFlag: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
33135
|
-
staticSearchable: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
33136
33156
|
extra: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
33137
33157
|
after: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
33138
33158
|
before: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
@@ -33184,10 +33204,9 @@ declare const _default: {
|
|
|
33184
33204
|
default: string;
|
|
33185
33205
|
'x-index': number;
|
|
33186
33206
|
}>;
|
|
33207
|
+
searchable: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
33187
33208
|
searchPlaceholder: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
33188
|
-
|
|
33189
|
-
'x-index': number;
|
|
33190
|
-
}>;
|
|
33209
|
+
filterable: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
33191
33210
|
enableRelationalSetting: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
33192
33211
|
enableRelationalRefresh: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
33193
33212
|
enableRelationOptionJump: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
@@ -33302,12 +33321,21 @@ declare const _default: {
|
|
|
33302
33321
|
readonly detail: import("@sinclair/typebox").TObject<{
|
|
33303
33322
|
value: import("@sinclair/typebox").TString;
|
|
33304
33323
|
}>;
|
|
33324
|
+
}, {
|
|
33325
|
+
readonly name: "focus";
|
|
33326
|
+
readonly title: "聚焦";
|
|
33327
|
+
}, {
|
|
33328
|
+
readonly name: "blur";
|
|
33329
|
+
readonly title: "失焦";
|
|
33330
|
+
readonly 'x-platforms': readonly ["MOBILEWEB", "PCWEB"];
|
|
33305
33331
|
}, {
|
|
33306
33332
|
readonly name: "onSettingButtonClick";
|
|
33307
33333
|
readonly title: "点击设置按钮";
|
|
33334
|
+
readonly 'x-platforms': readonly ["MOBILEWEB", "PCWEB"];
|
|
33308
33335
|
}, {
|
|
33309
33336
|
readonly name: "onAddRelationButtonClick";
|
|
33310
33337
|
readonly title: "点击新建按钮";
|
|
33338
|
+
readonly 'x-platforms': readonly ["MOBILEWEB", "PCWEB"];
|
|
33311
33339
|
}, {
|
|
33312
33340
|
readonly name: "onRelationTagClick";
|
|
33313
33341
|
readonly title: "点击标签";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
@cloudbase/weda-ui v3.
|
|
2
|
+
@cloudbase/weda-ui v3.16.0
|
|
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,d09GMgABAAAAAAkMAA0AAAAAFZgAAAi1AAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP0ZG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j1kgGBsQXUbdLGhpU1/ckK4uVaMRS43e0s5XdMDDAv+fsxfFK5eMn+flK1c8/L15MHlG+YTYTKW4025bWp7UUQH2n1j/y9Tt6J+5mykLynYv6i9HZvqC/QNV2kZ7HXO/X7/bDf9+T1/Rpe/YolYsWYXO1XS/CmOv6KUuBnUoITNTDEhJNqb1rYTOf1sRhF1D0EvKOkYiRSHnElw9UGd7bkVIq17pUYpqZfGAtizVSDozNPORXtY3YTig+HhCnpergJhqZl1ZlhDTKQz8O+lKEtWVWLTXTaNPBSmt1Z6faC6hmaq+/j+gGT66PrtpKxquCKzUqTFI36xjltiipsN34AAhYK30U0Si9PDd4Qrlx5gXZbykCAdhWAj3p+F8DA+WBim/aNhq9g86DAocD+KIj0VJtIEzs137fvNcn+Zf8+xChp637Q/Eo/0gLUBkjiCckExRp4iSCSMhV8TToMmywXB/GhkcF5ziw45OB87l85aUMFg0NLu2/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/HIYGvbDpn6q7Qdj3xvUaZJUNFads3M7geY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+5mykLynYv6i9HZvqC/QNV2kZ7HXO/X7/bDf9+T1/Rpe/YolYsWYXO1XS/CmOv6KUuBnUoITNTDEhJNqb1rYTOf1sRhF1D0EvKOkYiRSHnElw9UGd7bkVIq17pUYpqZfGAtizVSDozNPORXtY3YTig+HhCnpergJhqZl1ZlhDTKQz8O+lKEtWVWLTXTaNPBSmt1Z6faC6hmaq+/j+gGT66PrtpKxquCKzUqTFI36xjltiipsN34AAhYK30U0Si9PDd4Qrlx5gXZbykCAdhWAj3p+F8DA+WBim/aNhq9g86DAocD+KIj0VJtIEzs137fvNcn+Zf8+xChp637Q/Eo/0gLUBkjiCckExRp4iSCSMhV8TToMmywXB/GhkcF5ziw45OB87l85aUMFg0NLu2/zrqV/BH9vE5gRJkaL8IilGuqC03JjHIZdlQAzgqTSpcqAx7mVejwNSGWWs4aGlmhqdGjnCFPBYAqTFrMVhmw/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
|
|
@@ -69,7 +69,7 @@ events = emptyObject, defaultValue, uploadPath = 'weda-uploader', single = true,
|
|
|
69
69
|
}
|
|
70
70
|
}, [defaultValue]);
|
|
71
71
|
React.useEffect(() => {
|
|
72
|
-
var _a
|
|
72
|
+
var _a;
|
|
73
73
|
if (isObjectEqual(fileRef.current, fileIDList))
|
|
74
74
|
return;
|
|
75
75
|
// 外部 onChange 事件
|
|
@@ -79,10 +79,6 @@ events = emptyObject, defaultValue, uploadPath = 'weda-uploader', single = true,
|
|
|
79
79
|
if (changeTypeRef.current) {
|
|
80
80
|
(_a = events === null || events === void 0 ? void 0 : events.change) === null || _a === void 0 ? void 0 : _a.call(events, { value });
|
|
81
81
|
}
|
|
82
|
-
if (changeTypeRef.current === 'add') {
|
|
83
|
-
const files = pureFileIDList.map((d) => { var _a; return (_a = fileSizeObj[d]) === null || _a === void 0 ? void 0 : _a.file; });
|
|
84
|
-
(_b = events === null || events === void 0 ? void 0 : events.success) === null || _b === void 0 ? void 0 : _b.call(events, { value: pureFileIDList, file: files });
|
|
85
|
-
}
|
|
86
82
|
fileRef.current = fileIDList;
|
|
87
83
|
}, [fileIDList]);
|
|
88
84
|
// 外层组件类
|
|
@@ -99,11 +95,13 @@ events = emptyObject, defaultValue, uploadPath = 'weda-uploader', single = true,
|
|
|
99
95
|
}, [acceptTypes]);
|
|
100
96
|
// 上传后文件列表 fileIDList 改变事件,'add'|'delete'
|
|
101
97
|
const handleChange = ({ fileID, uuid, type, size, file }) => {
|
|
98
|
+
var _a;
|
|
102
99
|
if (fileID) {
|
|
103
100
|
changeTypeRef.current = type;
|
|
104
101
|
if (type === 'add') {
|
|
105
102
|
setFileSizeObj((obj) => ({ ...obj, [fileID]: { size, file } }));
|
|
106
103
|
setfileIDList((fileIDList) => [...fileIDList, fileID]);
|
|
104
|
+
(_a = events === null || events === void 0 ? void 0 : events.success) === null || _a === void 0 ? void 0 : _a.call(events, { value: fileID, file });
|
|
107
105
|
}
|
|
108
106
|
else {
|
|
109
107
|
setfileIDList((fileIDList) => fileIDList.filter((f) => f !== fileID));
|
|
@@ -71,7 +71,7 @@ acceptTypes = emptyArray, downloadVisible = true, deleteVisible = true, uploadPa
|
|
|
71
71
|
}
|
|
72
72
|
}, [defaultValue]);
|
|
73
73
|
React.useEffect(() => {
|
|
74
|
-
var _a
|
|
74
|
+
var _a;
|
|
75
75
|
if (isObjectEqual(fileRef.current, fileIDList))
|
|
76
76
|
return;
|
|
77
77
|
// 外部 onChange 事件
|
|
@@ -81,10 +81,6 @@ acceptTypes = emptyArray, downloadVisible = true, deleteVisible = true, uploadPa
|
|
|
81
81
|
if (changeTypeRef.current) {
|
|
82
82
|
(_a = events === null || events === void 0 ? void 0 : events.change) === null || _a === void 0 ? void 0 : _a.call(events, { value });
|
|
83
83
|
}
|
|
84
|
-
if (changeTypeRef.current === 'add') {
|
|
85
|
-
const files = pureFileIDList.map((d) => { var _a; return (_a = fileSizeObj[d]) === null || _a === void 0 ? void 0 : _a.file; });
|
|
86
|
-
(_b = events === null || events === void 0 ? void 0 : events.success) === null || _b === void 0 ? void 0 : _b.call(events, { value: pureFileIDList, file: files });
|
|
87
|
-
}
|
|
88
84
|
fileRef.current = fileIDList;
|
|
89
85
|
}, [fileIDList]);
|
|
90
86
|
// 外层组件类
|
|
@@ -168,11 +164,13 @@ acceptTypes = emptyArray, downloadVisible = true, deleteVisible = true, uploadPa
|
|
|
168
164
|
};
|
|
169
165
|
// 上传后文件列表 fileIDList 改变事件,'add'|'delete'
|
|
170
166
|
const handleChange = ({ fileID, uuid, type, size, file }) => {
|
|
167
|
+
var _a;
|
|
171
168
|
if (fileID) {
|
|
172
169
|
changeTypeRef.current = type;
|
|
173
170
|
if (type === 'add') {
|
|
174
171
|
setFileSizeObj((obj) => ({ ...obj, [fileID]: { size, file } }));
|
|
175
172
|
setfileIDList((list) => [...list, fileID]);
|
|
173
|
+
(_a = events === null || events === void 0 ? void 0 : events.success) === null || _a === void 0 ? void 0 : _a.call(events, { value: fileID, file });
|
|
176
174
|
}
|
|
177
175
|
else {
|
|
178
176
|
setfileIDList((list) => list.filter((d) => d !== fileID));
|
|
@@ -52,7 +52,7 @@ const defaultSize = 50;
|
|
|
52
52
|
const defaultPage = 1;
|
|
53
53
|
export function RelationSelect(props) {
|
|
54
54
|
var _a, _b;
|
|
55
|
-
const { placeholder, size, disabled, onChange, value, onSearch, addRelationButton, childRef, dataSourceName, selectFields, selectFieldType, primaryField, setRefreshStatus, mode, onRelationOptionJump, enableRelationOptionJump, listWidth = 700, ignoreCase = true, where, queryCondition, supportManyRelated, sorter, } = props;
|
|
55
|
+
const { placeholder, size, disabled, onChange, value, onSearch, addRelationButton, childRef, dataSourceName, selectFields, selectFieldType, primaryField, setRefreshStatus, mode, onRelationOptionJump, enableRelationOptionJump, listWidth = 700, ignoreCase = true, where, queryCondition, supportManyRelated, sorter, searchable, } = props;
|
|
56
56
|
const selectFieldsLength = selectFieldType === 'custom' ? selectFields === null || selectFields === void 0 ? void 0 : selectFields.length : 0;
|
|
57
57
|
// 设置下拉列表与下拉按钮同宽
|
|
58
58
|
// 以传入为准,未传入,在自定义展示字段少于2个时设置为 true,否则设置为false,宽度设置为700,
|
|
@@ -151,7 +151,7 @@ export function RelationSelect(props) {
|
|
|
151
151
|
searchOptionListWithWhere(filter);
|
|
152
152
|
onSearch(keyword);
|
|
153
153
|
};
|
|
154
|
-
return (_jsx(Select, { ...props, overlayClassName: isRelationSelectOption ? 'wd-relation-select-overlay' : '', searchable:
|
|
154
|
+
return (_jsx(Select, { ...props, overlayClassName: isRelationSelectOption ? 'wd-relation-select-overlay' : '', searchable: searchable, listWidth: listWidth, listHeight: _listHeight, matchButtonWidth: _matchButtonWidth, placeholder: placeholder, appearance: 'button', filter: () => true, size: size, disabled: disabled, autoClearSearchValue: true, options: customOptions, value: value, onChange: onChange, onSearch: searchHandle, bottomTips: isLoading ? _jsx(LoadingTip, {}) : undefined, onScrollBottom: () => {
|
|
155
155
|
if (!isLoading && customOptions.length < total) {
|
|
156
156
|
setQuery((query) => ({
|
|
157
157
|
...query,
|
|
@@ -3,6 +3,7 @@ import { ConfigProvider } from 'tea-component';
|
|
|
3
3
|
import { CustomSelect } from '../relationSelect/index';
|
|
4
4
|
import { SelectUI as Select } from './selectUI';
|
|
5
5
|
export function SelectCom(props) {
|
|
6
|
-
const { isRelation } = props;
|
|
7
|
-
|
|
6
|
+
const { isRelation, filterable = false } = props;
|
|
7
|
+
const filter = filterable ? () => true : undefined;
|
|
8
|
+
return (_jsx(ConfigProvider, { classPrefix: "wedatea2td", children: isRelation ? _jsx(CustomSelect, { ...props }) : _jsx(Select, { ...props, filter: filter }) }));
|
|
8
9
|
}
|
|
@@ -29,7 +29,7 @@ const getSelectedItem = (options = [], value) => {
|
|
|
29
29
|
return options === null || options === void 0 ? void 0 : options.filter((i) => selectedVal.find((j) => j === i.value) !== undefined);
|
|
30
30
|
};
|
|
31
31
|
function SelectH5(props) {
|
|
32
|
-
const { placeholder, name, disabled, footer, options = [], value, onChange, overlayClassName, searchable, bottomTips, onSearch, onOpen, onScrollBottom, mode, readValue, popupContainer, searchPlaceholder, } = props;
|
|
32
|
+
const { placeholder, name, disabled, footer, options = [], value, onChange, overlayClassName, searchable, bottomTips, onSearch, onOpen, onScrollBottom, mode, readValue, popupContainer, searchPlaceholder, filterable, onBlur, onFocus, } = props;
|
|
33
33
|
const isMultiple = mode === 'multiple';
|
|
34
34
|
const customPickerCls = classNames('weda-ui-custom-picker__cloumns', {
|
|
35
35
|
'weda-ui-custom-picker__cloumns--select-multiple': isMultiple,
|
|
@@ -49,7 +49,7 @@ function SelectH5(props) {
|
|
|
49
49
|
return options.filter((i) => String(i === null || i === void 0 ? void 0 : i.label).toLowerCase().includes(searchValue.toLowerCase()));
|
|
50
50
|
};
|
|
51
51
|
// 前端查询
|
|
52
|
-
const customOptions = isSearch && searchValue ? getOptionList() : options;
|
|
52
|
+
const customOptions = isSearch && searchValue && !filterable ? getOptionList() : options;
|
|
53
53
|
const handleZhStart = () => {
|
|
54
54
|
// 判断是否输入中文,则停止搜索
|
|
55
55
|
setIsSearch(false);
|
|
@@ -124,7 +124,7 @@ function SelectH5(props) {
|
|
|
124
124
|
setCurrentSelected(dealSelectedItem(item));
|
|
125
125
|
}
|
|
126
126
|
};
|
|
127
|
-
return (_jsxs(_Fragment, { children: [_jsx("input", { "data-testid": "form-item-select", className: inputCls, type: "text", name: name, placeholder: placeholder, autoComplete: "off", disabled: disabled, readOnly: true, value: readValue || '', onClick: handleClick }), _jsxs(Modal, { visible: visible, onClose: () => {
|
|
127
|
+
return (_jsxs(_Fragment, { children: [_jsx("input", { "data-testid": "form-item-select", className: inputCls, type: "text", name: name, placeholder: placeholder, autoComplete: "off", disabled: disabled, readOnly: true, value: readValue || '', onClick: handleClick, onFocus: onFocus, onBlur: onBlur }), _jsxs(Modal, { visible: visible, onClose: () => {
|
|
128
128
|
if (inputFocus) {
|
|
129
129
|
// 聚焦在搜索框
|
|
130
130
|
setInputFocus(false);
|
|
@@ -20,7 +20,7 @@ import { SelectProvider } from './contexts/selectContext';
|
|
|
20
20
|
*/
|
|
21
21
|
export const WdSelect = forwardRef(function WsSelect(props, ref) {
|
|
22
22
|
const { classRoot = 'select', clearable = X_RUNTIME_DEFAULT.clearable, placeholder, range, format, tipBlock = X_RUNTIME_DEFAULT.tipBlock, where = X_RUNTIME_DEFAULT.where, enumName, primaryField, viewId, dataSourceName, events = emptyObject, ignoreCase = X_RUNTIME_DEFAULT.ignoreCase, staticSearchable = X_RUNTIME_DEFAULT.staticSearchable, enableRelationalSetting = X_RUNTIME_DEFAULT.enableRelationalSetting, enableRelationalRefresh = X_RUNTIME_DEFAULT.enableRelationalRefresh, addRelationButtonText = X_RUNTIME_DEFAULT.addRelationButtonText, enableAddRelationButton = X_RUNTIME_DEFAULT.enableAddRelationButton, enableRelationOptionJump = X_RUNTIME_DEFAULT.enableRelationOptionJump, popupContainer, selectFields: customFields = [], // 自定义展示字段
|
|
23
|
-
selectFieldType = 'primary', searchPlaceholder, } = props;
|
|
23
|
+
selectFieldType = 'primary', searchPlaceholder, searchable = X_RUNTIME_DEFAULT.searchable, filterable = X_RUNTIME_DEFAULT.filterable, } = props;
|
|
24
24
|
const childRef = useRef(null);
|
|
25
25
|
const [options, setOptions] = useSyncValue(range, isObjectEqual);
|
|
26
26
|
const [innerHandle, setInnerHandle] = useState({});
|
|
@@ -54,6 +54,12 @@ export const WdSelect = forwardRef(function WsSelect(props, ref) {
|
|
|
54
54
|
disabled,
|
|
55
55
|
value,
|
|
56
56
|
});
|
|
57
|
+
const onFocus = (e) => {
|
|
58
|
+
events.focus(null, { originEvent: e });
|
|
59
|
+
};
|
|
60
|
+
const onBlur = (e) => {
|
|
61
|
+
events.blur(null, { originEvent: e });
|
|
62
|
+
};
|
|
57
63
|
const isRelation = isFormatWithRelation(format);
|
|
58
64
|
const LabelAdornment = isRelation && (_jsx(RelationalSetting, { size: props.size, refresh: () => {
|
|
59
65
|
var _a;
|
|
@@ -105,11 +111,11 @@ export const WdSelect = forwardRef(function WsSelect(props, ref) {
|
|
|
105
111
|
}, [debouncedTriggerSearchEvent]);
|
|
106
112
|
if (!visible)
|
|
107
113
|
return null;
|
|
108
|
-
return (_jsx(SelectProvider, { options: options, setOptions: setOptions, children: _jsx(WdFormItem, { ...formItemProps, children: _jsxs(_Fragment, { children: [_jsx(WdInputGroup, { ...inputGroupProps, children: _jsx(WdInputWrap, { ...inputWrapProps, children: _jsx(Select, { ...props, style: undefined, className: undefined, onRelationTagClick: (item) => {
|
|
114
|
+
return (_jsx(SelectProvider, { options: options, setOptions: setOptions, children: _jsx(WdFormItem, { ...formItemProps, children: _jsxs(_Fragment, { children: [_jsx(WdInputGroup, { ...inputGroupProps, children: _jsx(WdInputWrap, { ...inputWrapProps, children: _jsx(Select, { ...props, onBlur: onBlur, onFocus: onFocus, filterable: filterable, style: undefined, className: undefined, onRelationTagClick: (item) => {
|
|
109
115
|
var _a;
|
|
110
116
|
(_a = delayEvents === null || delayEvents === void 0 ? void 0 : delayEvents.onRelationTagClick) === null || _a === void 0 ? void 0 : _a.call(delayEvents, item);
|
|
111
117
|
}, enableRelationOptionJump: enableRelationOptionJump, onRelationOptionJump: (item) => {
|
|
112
118
|
var _a;
|
|
113
119
|
(_a = delayEvents === null || delayEvents === void 0 ? void 0 : delayEvents.onRelationOptionJump) === null || _a === void 0 ? void 0 : _a.call(delayEvents, item);
|
|
114
|
-
}, selectFieldType: selectFieldType, selectFields: customFields, isRelation: isRelation, addRelationButtonText: addRelationButtonText, enableAddRelationButton: enableAddRelationButton, childRef: childRef, events: delayEvents, labelVisible: false, value: value, enumName: enumName, format: format, placeholder: placeholder, primaryField: primaryField, options: options, size: "full", tipBlock: tipBlock, viewId: viewId, where: where, dataSourceName: dataSourceName, readOnly: readOnly, disabled: disabled, mode: "selector", decorator: null, ignoreCase: ignoreCase, staticSearchable: staticSearchable, onChange: handleChange, onSearch: onSearchValueInput, popupContainer: popupContainer, searchable:
|
|
120
|
+
}, selectFieldType: selectFieldType, selectFields: customFields, isRelation: isRelation, addRelationButtonText: addRelationButtonText, enableAddRelationButton: enableAddRelationButton, childRef: childRef, events: delayEvents, labelVisible: false, value: value, enumName: enumName, format: format, placeholder: placeholder, primaryField: primaryField, options: options, size: "full", tipBlock: tipBlock, viewId: viewId, where: where, dataSourceName: dataSourceName, readOnly: readOnly, disabled: disabled, mode: "selector", decorator: null, ignoreCase: ignoreCase, staticSearchable: staticSearchable, onChange: handleChange, onSearch: onSearchValueInput, popupContainer: popupContainer, searchable: searchable, searchPlaceholder: searchPlaceholder }) }) }), layout === 'horizontal' && LabelAdornment] }) }) }));
|
|
115
121
|
});
|
|
@@ -21,7 +21,7 @@ import { SelectProvider } from '../wd-select/contexts/selectContext';
|
|
|
21
21
|
*/
|
|
22
22
|
export const WdSelectMultiple = forwardRef(function WdSelectMultiple(props, ref) {
|
|
23
23
|
const { classRoot = 'select-multiple', clearable = X_RUNTIME_DEFAULT.clearable, placeholder, range, enumName, format, primaryField, tipBlock = X_RUNTIME_DEFAULT.tipBlock, viewId, dataSourceName, events = emptyObject, ignoreCase = X_RUNTIME_DEFAULT.ignoreCase, staticSearchable = X_RUNTIME_DEFAULT.staticSearchable, where = X_RUNTIME_DEFAULT.where, enableRelationalSetting = X_RUNTIME_DEFAULT.enableRelationalSetting, enableRelationalRefresh = X_RUNTIME_DEFAULT.enableRelationalRefresh, addRelationButtonText = X_RUNTIME_DEFAULT.addRelationButtonText, enableAddRelationButton = X_RUNTIME_DEFAULT.enableAddRelationButton, enableRelationOptionJump = X_RUNTIME_DEFAULT.enableRelationOptionJump, popupContainer, selectFields: customFields = [], // 自定义展示字段
|
|
24
|
-
selectFieldType = 'primary', searchPlaceholder, } = props;
|
|
24
|
+
selectFieldType = 'primary', searchPlaceholder, searchable = X_RUNTIME_DEFAULT.searchable, filterable = X_RUNTIME_DEFAULT.filterable, } = props;
|
|
25
25
|
const childRef = useRef(null);
|
|
26
26
|
const [options, setOptions] = useSyncValue(range, isObjectEqual);
|
|
27
27
|
const [innerHandle, setInnerHandle] = useState({});
|
|
@@ -56,6 +56,12 @@ export const WdSelectMultiple = forwardRef(function WdSelectMultiple(props, ref)
|
|
|
56
56
|
onChange === null || onChange === void 0 ? void 0 : onChange(v);
|
|
57
57
|
(_a = delayEvents === null || delayEvents === void 0 ? void 0 : delayEvents.change) === null || _a === void 0 ? void 0 : _a.call(delayEvents, { value: v, context });
|
|
58
58
|
};
|
|
59
|
+
const onFocus = (e) => {
|
|
60
|
+
events.focus(null, { originEvent: e });
|
|
61
|
+
};
|
|
62
|
+
const onBlur = (e) => {
|
|
63
|
+
events.blur(null, { originEvent: e });
|
|
64
|
+
};
|
|
59
65
|
const isRelation = isFormatWithRelation(format);
|
|
60
66
|
const LabelAdornment = isRelation && (_jsx(RelationalSetting, { size: props.size, refresh: () => {
|
|
61
67
|
var _a;
|
|
@@ -101,11 +107,11 @@ export const WdSelectMultiple = forwardRef(function WdSelectMultiple(props, ref)
|
|
|
101
107
|
}, [debouncedTriggerSearchEvent]);
|
|
102
108
|
if (!visible)
|
|
103
109
|
return null;
|
|
104
|
-
return (_jsx(SelectProvider, { options: options, setOptions: setOptions, children: _jsx(WdFormItem, { ...formItemProps, children: _jsxs(_Fragment, { children: [_jsx(WdInputGroup, { ...inputGroupProps, children: _jsx(WdInputWrap, { ...inputWrapProps, children: _jsx(SelectMultiple, { ...props, style: undefined, className: undefined, onRelationTagClick: (item) => {
|
|
110
|
+
return (_jsx(SelectProvider, { options: options, setOptions: setOptions, children: _jsx(WdFormItem, { ...formItemProps, children: _jsxs(_Fragment, { children: [_jsx(WdInputGroup, { ...inputGroupProps, children: _jsx(WdInputWrap, { ...inputWrapProps, children: _jsx(SelectMultiple, { ...props, onBlur: onBlur, onFocus: onFocus, filterable: filterable, style: undefined, className: undefined, onRelationTagClick: (item) => {
|
|
105
111
|
var _a;
|
|
106
112
|
(_a = delayEvents === null || delayEvents === void 0 ? void 0 : delayEvents.onRelationTagClick) === null || _a === void 0 ? void 0 : _a.call(delayEvents, item);
|
|
107
113
|
}, enableRelationOptionJump: enableRelationOptionJump, onRelationOptionJump: (item) => {
|
|
108
114
|
var _a;
|
|
109
115
|
(_a = delayEvents === null || delayEvents === void 0 ? void 0 : delayEvents.onRelationOptionJump) === null || _a === void 0 ? void 0 : _a.call(delayEvents, item);
|
|
110
|
-
}, selectFieldType: selectFieldType, selectFields: customFields, isRelation: isRelation, addRelationButtonText: addRelationButtonText, enableAddRelationButton: enableAddRelationButton, childRef: childRef, events: delayEvents, labelVisible: false, value: value, enumName: enumName, format: format, placeholder: placeholder, primaryField: primaryField, options: options, size: "full", tipBlock: tipBlock, viewId: viewId, dataSourceName: dataSourceName, readOnly: readOnly, disabled: disabled, mode: "multiple", decorator: null, ignoreCase: ignoreCase, staticSearchable: staticSearchable, where: where, onChange: handleChange, onSearch: onSearchValueInput, popupContainer: popupContainer, searchable:
|
|
116
|
+
}, selectFieldType: selectFieldType, selectFields: customFields, isRelation: isRelation, addRelationButtonText: addRelationButtonText, enableAddRelationButton: enableAddRelationButton, childRef: childRef, events: delayEvents, labelVisible: false, value: value, enumName: enumName, format: format, placeholder: placeholder, primaryField: primaryField, options: options, size: "full", tipBlock: tipBlock, viewId: viewId, dataSourceName: dataSourceName, readOnly: readOnly, disabled: disabled, mode: "multiple", decorator: null, ignoreCase: ignoreCase, staticSearchable: staticSearchable, where: where, onChange: handleChange, onSearch: onSearchValueInput, popupContainer: popupContainer, searchable: searchable, searchPlaceholder: searchPlaceholder }) }) }), layout === 'horizontal' && LabelAdornment] }) }) }));
|
|
111
117
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudbase/weda-ui",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.16.0",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"module": "./dist/index",
|
|
6
6
|
"miniprogram": "mpdist",
|
|
@@ -147,7 +147,7 @@
|
|
|
147
147
|
"@babel/preset-env": "^7.22.15",
|
|
148
148
|
"@babel/preset-react": "^7.22.15",
|
|
149
149
|
"@babel/preset-typescript": "^7.22.15",
|
|
150
|
-
"@cloudbase/cals": "^1.2.
|
|
150
|
+
"@cloudbase/cals": "^1.2.13",
|
|
151
151
|
"@cloudbase/lowcode-cli": "^0.22.1",
|
|
152
152
|
"@cloudbase/weda-cloud-sdk": "^1.0.97",
|
|
153
153
|
"@commitlint/cli": "^16.0.2",
|