@cloudbase/weda-ui 3.15.7 → 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/components/wd-table.d.ts +5 -0
- package/dist/configs/components/wd-table.js +11 -0
- package/dist/configs/index.d.ts +54 -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 +2 -2
- 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',
|
|
@@ -287,6 +287,11 @@ declare const config: {
|
|
|
287
287
|
readonly selector: ".wd-table";
|
|
288
288
|
readonly description: "表格主体样式";
|
|
289
289
|
readonly code: "\n :scope .wd-table {\n border: 2px solid gray;\n border-radius: 10px;\n }\n ";
|
|
290
|
+
}, {
|
|
291
|
+
readonly name: "表格筛选面板根元素";
|
|
292
|
+
readonly selector: ".wd-table";
|
|
293
|
+
readonly description: "表格筛选面板根元素";
|
|
294
|
+
readonly code: "\n .wd-table-wrap-filter__body {\n border: 2px solid gray;\n border-radius: 10px;\n }\n ";
|
|
290
295
|
}];
|
|
291
296
|
readonly methods: readonly [{
|
|
292
297
|
readonly name: "import";
|
|
@@ -1643,6 +1643,17 @@ const config = defineConfig({
|
|
|
1643
1643
|
}
|
|
1644
1644
|
`,
|
|
1645
1645
|
},
|
|
1646
|
+
{
|
|
1647
|
+
name: '表格筛选面板根元素',
|
|
1648
|
+
selector: '.wd-table',
|
|
1649
|
+
description: '表格筛选面板根元素',
|
|
1650
|
+
code: `
|
|
1651
|
+
.wd-table-wrap-filter__body {
|
|
1652
|
+
border: 2px solid gray;
|
|
1653
|
+
border-radius: 10px;
|
|
1654
|
+
}
|
|
1655
|
+
`,
|
|
1656
|
+
},
|
|
1646
1657
|
],
|
|
1647
1658
|
// 组件方法
|
|
1648
1659
|
methods: [
|
package/dist/configs/index.d.ts
CHANGED
|
@@ -11646,6 +11646,11 @@ export declare const components: {
|
|
|
11646
11646
|
readonly selector: ".wd-table";
|
|
11647
11647
|
readonly description: "表格主体样式";
|
|
11648
11648
|
readonly code: "\n :scope .wd-table {\n border: 2px solid gray;\n border-radius: 10px;\n }\n ";
|
|
11649
|
+
}, {
|
|
11650
|
+
readonly name: "表格筛选面板根元素";
|
|
11651
|
+
readonly selector: ".wd-table";
|
|
11652
|
+
readonly description: "表格筛选面板根元素";
|
|
11653
|
+
readonly code: "\n .wd-table-wrap-filter__body {\n border: 2px solid gray;\n border-radius: 10px;\n }\n ";
|
|
11649
11654
|
}];
|
|
11650
11655
|
readonly methods: readonly [{
|
|
11651
11656
|
readonly name: "import";
|
|
@@ -13646,7 +13651,6 @@ export declare const components: {
|
|
|
13646
13651
|
required: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
13647
13652
|
requiredMsg: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
13648
13653
|
requiredFlag: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
13649
|
-
staticSearchable: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
13650
13654
|
extra: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
13651
13655
|
after: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
13652
13656
|
before: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
@@ -13699,10 +13703,9 @@ export declare const components: {
|
|
|
13699
13703
|
default: string;
|
|
13700
13704
|
'x-index': number;
|
|
13701
13705
|
}>;
|
|
13706
|
+
searchable: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
13702
13707
|
searchPlaceholder: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
13703
|
-
|
|
13704
|
-
'x-index': number;
|
|
13705
|
-
}>;
|
|
13708
|
+
filterable: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
13706
13709
|
enableRelationalSetting: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
13707
13710
|
enableRelationalRefresh: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
13708
13711
|
enableAddRelationButton: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
@@ -13813,12 +13816,21 @@ export declare const components: {
|
|
|
13813
13816
|
readonly detail: import("@sinclair/typebox").TObject<{
|
|
13814
13817
|
value: import("@sinclair/typebox").TString;
|
|
13815
13818
|
}>;
|
|
13819
|
+
}, {
|
|
13820
|
+
readonly name: "focus";
|
|
13821
|
+
readonly title: "聚焦";
|
|
13822
|
+
}, {
|
|
13823
|
+
readonly name: "blur";
|
|
13824
|
+
readonly title: "失焦";
|
|
13825
|
+
readonly 'x-platforms': readonly ["MOBILEWEB", "PCWEB"];
|
|
13816
13826
|
}, {
|
|
13817
13827
|
readonly name: "onSettingButtonClick";
|
|
13818
13828
|
readonly title: "点击设置按钮";
|
|
13829
|
+
readonly 'x-platforms': readonly ["MOBILEWEB", "PCWEB"];
|
|
13819
13830
|
}, {
|
|
13820
13831
|
readonly name: "onAddRelationButtonClick";
|
|
13821
13832
|
readonly title: "点击新建按钮";
|
|
13833
|
+
readonly 'x-platforms': readonly ["MOBILEWEB", "PCWEB"];
|
|
13822
13834
|
}, {
|
|
13823
13835
|
readonly name: "onRelationTagClick";
|
|
13824
13836
|
readonly title: "点击标签";
|
|
@@ -13946,7 +13958,6 @@ export declare const components: {
|
|
|
13946
13958
|
required: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
13947
13959
|
requiredMsg: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
13948
13960
|
requiredFlag: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
13949
|
-
staticSearchable: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
13950
13961
|
extra: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
13951
13962
|
after: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
13952
13963
|
before: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
@@ -13998,10 +14009,9 @@ export declare const components: {
|
|
|
13998
14009
|
default: string;
|
|
13999
14010
|
'x-index': number;
|
|
14000
14011
|
}>;
|
|
14012
|
+
searchable: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
14001
14013
|
searchPlaceholder: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
14002
|
-
|
|
14003
|
-
'x-index': number;
|
|
14004
|
-
}>;
|
|
14014
|
+
filterable: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
14005
14015
|
enableRelationalSetting: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
14006
14016
|
enableRelationalRefresh: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
14007
14017
|
enableRelationOptionJump: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
@@ -14116,12 +14126,21 @@ export declare const components: {
|
|
|
14116
14126
|
readonly detail: import("@sinclair/typebox").TObject<{
|
|
14117
14127
|
value: import("@sinclair/typebox").TString;
|
|
14118
14128
|
}>;
|
|
14129
|
+
}, {
|
|
14130
|
+
readonly name: "focus";
|
|
14131
|
+
readonly title: "聚焦";
|
|
14132
|
+
}, {
|
|
14133
|
+
readonly name: "blur";
|
|
14134
|
+
readonly title: "失焦";
|
|
14135
|
+
readonly 'x-platforms': readonly ["MOBILEWEB", "PCWEB"];
|
|
14119
14136
|
}, {
|
|
14120
14137
|
readonly name: "onSettingButtonClick";
|
|
14121
14138
|
readonly title: "点击设置按钮";
|
|
14139
|
+
readonly 'x-platforms': readonly ["MOBILEWEB", "PCWEB"];
|
|
14122
14140
|
}, {
|
|
14123
14141
|
readonly name: "onAddRelationButtonClick";
|
|
14124
14142
|
readonly title: "点击新建按钮";
|
|
14143
|
+
readonly 'x-platforms': readonly ["MOBILEWEB", "PCWEB"];
|
|
14125
14144
|
}, {
|
|
14126
14145
|
readonly name: "onRelationTagClick";
|
|
14127
14146
|
readonly title: "点击标签";
|
|
@@ -30822,6 +30841,11 @@ declare const _default: {
|
|
|
30822
30841
|
readonly selector: ".wd-table";
|
|
30823
30842
|
readonly description: "表格主体样式";
|
|
30824
30843
|
readonly code: "\n :scope .wd-table {\n border: 2px solid gray;\n border-radius: 10px;\n }\n ";
|
|
30844
|
+
}, {
|
|
30845
|
+
readonly name: "表格筛选面板根元素";
|
|
30846
|
+
readonly selector: ".wd-table";
|
|
30847
|
+
readonly description: "表格筛选面板根元素";
|
|
30848
|
+
readonly code: "\n .wd-table-wrap-filter__body {\n border: 2px solid gray;\n border-radius: 10px;\n }\n ";
|
|
30825
30849
|
}];
|
|
30826
30850
|
readonly methods: readonly [{
|
|
30827
30851
|
readonly name: "import";
|
|
@@ -32822,7 +32846,6 @@ declare const _default: {
|
|
|
32822
32846
|
required: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
32823
32847
|
requiredMsg: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
32824
32848
|
requiredFlag: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
32825
|
-
staticSearchable: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
32826
32849
|
extra: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
32827
32850
|
after: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
32828
32851
|
before: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
@@ -32875,10 +32898,9 @@ declare const _default: {
|
|
|
32875
32898
|
default: string;
|
|
32876
32899
|
'x-index': number;
|
|
32877
32900
|
}>;
|
|
32901
|
+
searchable: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
32878
32902
|
searchPlaceholder: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
32879
|
-
|
|
32880
|
-
'x-index': number;
|
|
32881
|
-
}>;
|
|
32903
|
+
filterable: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
32882
32904
|
enableRelationalSetting: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
32883
32905
|
enableRelationalRefresh: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
32884
32906
|
enableAddRelationButton: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
@@ -32989,12 +33011,21 @@ declare const _default: {
|
|
|
32989
33011
|
readonly detail: import("@sinclair/typebox").TObject<{
|
|
32990
33012
|
value: import("@sinclair/typebox").TString;
|
|
32991
33013
|
}>;
|
|
33014
|
+
}, {
|
|
33015
|
+
readonly name: "focus";
|
|
33016
|
+
readonly title: "聚焦";
|
|
33017
|
+
}, {
|
|
33018
|
+
readonly name: "blur";
|
|
33019
|
+
readonly title: "失焦";
|
|
33020
|
+
readonly 'x-platforms': readonly ["MOBILEWEB", "PCWEB"];
|
|
32992
33021
|
}, {
|
|
32993
33022
|
readonly name: "onSettingButtonClick";
|
|
32994
33023
|
readonly title: "点击设置按钮";
|
|
33024
|
+
readonly 'x-platforms': readonly ["MOBILEWEB", "PCWEB"];
|
|
32995
33025
|
}, {
|
|
32996
33026
|
readonly name: "onAddRelationButtonClick";
|
|
32997
33027
|
readonly title: "点击新建按钮";
|
|
33028
|
+
readonly 'x-platforms': readonly ["MOBILEWEB", "PCWEB"];
|
|
32998
33029
|
}, {
|
|
32999
33030
|
readonly name: "onRelationTagClick";
|
|
33000
33031
|
readonly title: "点击标签";
|
|
@@ -33122,7 +33153,6 @@ declare const _default: {
|
|
|
33122
33153
|
required: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
33123
33154
|
requiredMsg: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
33124
33155
|
requiredFlag: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
33125
|
-
staticSearchable: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
33126
33156
|
extra: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
33127
33157
|
after: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
33128
33158
|
before: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
@@ -33174,10 +33204,9 @@ declare const _default: {
|
|
|
33174
33204
|
default: string;
|
|
33175
33205
|
'x-index': number;
|
|
33176
33206
|
}>;
|
|
33207
|
+
searchable: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
33177
33208
|
searchPlaceholder: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
33178
|
-
|
|
33179
|
-
'x-index': number;
|
|
33180
|
-
}>;
|
|
33209
|
+
filterable: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
33181
33210
|
enableRelationalSetting: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
33182
33211
|
enableRelationalRefresh: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
33183
33212
|
enableRelationOptionJump: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
@@ -33292,12 +33321,21 @@ declare const _default: {
|
|
|
33292
33321
|
readonly detail: import("@sinclair/typebox").TObject<{
|
|
33293
33322
|
value: import("@sinclair/typebox").TString;
|
|
33294
33323
|
}>;
|
|
33324
|
+
}, {
|
|
33325
|
+
readonly name: "focus";
|
|
33326
|
+
readonly title: "聚焦";
|
|
33327
|
+
}, {
|
|
33328
|
+
readonly name: "blur";
|
|
33329
|
+
readonly title: "失焦";
|
|
33330
|
+
readonly 'x-platforms': readonly ["MOBILEWEB", "PCWEB"];
|
|
33295
33331
|
}, {
|
|
33296
33332
|
readonly name: "onSettingButtonClick";
|
|
33297
33333
|
readonly title: "点击设置按钮";
|
|
33334
|
+
readonly 'x-platforms': readonly ["MOBILEWEB", "PCWEB"];
|
|
33298
33335
|
}, {
|
|
33299
33336
|
readonly name: "onAddRelationButtonClick";
|
|
33300
33337
|
readonly title: "点击新建按钮";
|
|
33338
|
+
readonly 'x-platforms': readonly ["MOBILEWEB", "PCWEB"];
|
|
33301
33339
|
}, {
|
|
33302
33340
|
readonly name: "onRelationTagClick";
|
|
33303
33341
|
readonly title: "点击标签";
|