@cloudbase/weda-ui 3.17.7 → 3.18.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 +2 -0
- package/dist/configs/components/wd-select-multiple.js +4 -2
- package/dist/configs/components/wd-select.d.ts +2 -0
- package/dist/configs/components/wd-select.js +4 -2
- package/dist/configs/components/wd-table.js +1 -1
- package/dist/configs/index.d.ts +4 -0
- package/dist/configs/type-utils/type-form.d.ts +2 -0
- package/dist/configs/type-utils/type-form.js +32 -4
- package/dist/style/index.css +7 -3
- package/dist/style/index.scss +1 -1
- package/dist/style/weda-ui.min.css +3 -3
- package/dist/web/components/wd-input/wd-input.js +2 -2
- package/dist/web/components/wd-select/hooks/useChooseList.js +5 -3
- package/dist/web/components/wd-select/relationSelect/index.js +2 -7
- package/dist/web/components/wd-select/relationSelect/relationSelect.js +6 -4
- package/dist/web/components/wd-select/select/index.js +9 -3
- package/dist/web/components/wd-select/select/selectUI.js +1 -1
- package/dist/web/components/wd-select/style.d.ts +0 -2
- package/dist/web/components/wd-select/style.js +2 -2
- package/dist/web/components/wd-select/wd-select.js +4 -7
- package/dist/web/components/wd-select-multiple/wd-select-multiple.js +4 -4
- package/dist/web/components/wd-table/components/FilterFieldsPanel/Fields.d.ts +3 -3
- package/dist/web/components/wd-table/components/FilterFieldsPanel/Fields.js +51 -50
- package/dist/web/components/wd-table/components/FilterFieldsPanel/FilterFieldItem.d.ts +2 -1
- package/dist/web/components/wd-table/components/FilterFieldsPanel/FilterFieldItem.js +18 -8
- package/dist/web/components/wd-table/components/FilterFieldsPanel/SelectSearch.d.ts +5 -3
- package/dist/web/components/wd-table/components/FilterFieldsPanel/SelectSearch.js +20 -41
- package/dist/web/components/wd-table/components/FilterFieldsPanel/filterFieldsGenerate.d.ts +7 -0
- package/dist/web/components/wd-table/components/FilterFieldsPanel/filterFieldsGenerate.js +44 -14
- package/dist/web/components/wd-table/components/FilterFieldsPanel/index.js +13 -8
- package/dist/web/components/wd-table/utils/index.d.ts +18 -0
- package/dist/web/components/wd-table/utils/index.js +64 -56
- package/dist/web/components/wd-table/wd-table.js +4 -2
- package/package.json +1 -1
- package/dist/web/components/wd-table/hooks/useChooseList.d.ts +0 -16
- package/dist/web/components/wd-table/hooks/useChooseList.js +0 -126
|
@@ -55,6 +55,7 @@ declare const data: import("@sinclair/typebox").TObject<{
|
|
|
55
55
|
value: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString> & {
|
|
56
56
|
'x-index': number;
|
|
57
57
|
}>;
|
|
58
|
+
selectFieldLabel: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<any>>;
|
|
58
59
|
selectFieldType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
|
|
59
60
|
selectFields: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
|
60
61
|
size: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
|
|
@@ -129,6 +130,7 @@ declare const config: {
|
|
|
129
130
|
value: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString> & {
|
|
130
131
|
'x-index': number;
|
|
131
132
|
}>;
|
|
133
|
+
selectFieldLabel: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<any>>;
|
|
132
134
|
selectFieldType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
|
|
133
135
|
selectFields: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
|
134
136
|
size: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
|
|
@@ -216,6 +216,8 @@ const data = Type.Partial(Type.Object({
|
|
|
216
216
|
value: Object.assign({}, FORM_ITEM_DATA._valueInSelectMultiple, {
|
|
217
217
|
'x-index': 18,
|
|
218
218
|
}),
|
|
219
|
+
// 展示字段选择
|
|
220
|
+
selectFieldLabel: FORM_ITEM_DATA.selectFieldLabel,
|
|
219
221
|
selectFieldType: FORM_ITEM_DATA.selectFieldType,
|
|
220
222
|
selectFields: FORM_ITEM_DATA.selectFields,
|
|
221
223
|
size: FORM_ITEM_DATA.size,
|
|
@@ -249,7 +251,7 @@ const data = Type.Partial(Type.Object({
|
|
|
249
251
|
'x-category': X_CATEGORY.COMMON,
|
|
250
252
|
}),
|
|
251
253
|
filterable: Type.Boolean({
|
|
252
|
-
title: '
|
|
254
|
+
title: '禁用前端筛选',
|
|
253
255
|
'x-runtime-default': X_RUNTIME_DEFAULT.filterable,
|
|
254
256
|
'x-index': 44,
|
|
255
257
|
'x-category': X_CATEGORY.COMMON,
|
|
@@ -285,7 +287,7 @@ const data = Type.Partial(Type.Object({
|
|
|
285
287
|
},
|
|
286
288
|
{
|
|
287
289
|
type: 'value:visible',
|
|
288
|
-
target: '*(selectFieldType,tipBlock,enableRelationalSetting,enableRelationalRefresh,
|
|
290
|
+
target: '*(selectFieldLabel,selectFieldType,tipBlock,enableRelationalSetting,enableRelationalRefresh,enableRelationOptionJump,sorter,ignoreCase)',
|
|
289
291
|
condition: `{{${MULTIPLE_FOREIGN_FORMATS()}}}`,
|
|
290
292
|
},
|
|
291
293
|
{
|
|
@@ -51,6 +51,7 @@ declare const data: import("@sinclair/typebox").TObject<{
|
|
|
51
51
|
title: string;
|
|
52
52
|
'x-index': number;
|
|
53
53
|
}>;
|
|
54
|
+
selectFieldLabel: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<any>>;
|
|
54
55
|
selectFieldType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
|
|
55
56
|
selectFields: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
|
56
57
|
size: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
|
|
@@ -126,6 +127,7 @@ declare const config: {
|
|
|
126
127
|
title: string;
|
|
127
128
|
'x-index': number;
|
|
128
129
|
}>;
|
|
130
|
+
selectFieldLabel: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<any>>;
|
|
129
131
|
selectFieldType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
|
|
130
132
|
selectFields: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
|
131
133
|
size: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
|
|
@@ -215,6 +215,8 @@ const data = Type.Partial(Type.Object({
|
|
|
215
215
|
description: '可设置数据排序规则,支持拖拽调整排序优先级,数组下标越小优先级越高。绑定数据示例:[{"orderBy":"updatedAt","orderType":"desc"}],升序传值asc,降序传值desc',
|
|
216
216
|
})),
|
|
217
217
|
value: Object.assign({}, FORM_ITEM_DATA.value, { title: '选中值', 'x-index': 18 }),
|
|
218
|
+
// 展示字段选择
|
|
219
|
+
selectFieldLabel: FORM_ITEM_DATA.selectFieldLabel,
|
|
218
220
|
selectFieldType: FORM_ITEM_DATA.selectFieldType,
|
|
219
221
|
selectFields: FORM_ITEM_DATA.selectFields,
|
|
220
222
|
size: FORM_ITEM_DATA.size,
|
|
@@ -252,7 +254,7 @@ const data = Type.Partial(Type.Object({
|
|
|
252
254
|
// display: false,
|
|
253
255
|
// }),
|
|
254
256
|
filterable: Type.Boolean({
|
|
255
|
-
title: '
|
|
257
|
+
title: '禁用前端筛选',
|
|
256
258
|
'x-runtime-default': X_RUNTIME_DEFAULT.filterable,
|
|
257
259
|
'x-index': 44,
|
|
258
260
|
'x-category': X_CATEGORY.COMMON,
|
|
@@ -276,7 +278,7 @@ const data = Type.Partial(Type.Object({
|
|
|
276
278
|
},
|
|
277
279
|
{
|
|
278
280
|
type: 'value:visible',
|
|
279
|
-
target: '*(selectFieldType,tipBlock,enableRelationalSetting,
|
|
281
|
+
target: '*(selectFieldLabel,selectFieldType,tipBlock,enableRelationalSetting,enableRelationOptionJump,sorter,ignoreCase)',
|
|
280
282
|
condition: `{{${SINGLE_FOREIGN_FORMATS()}}}`,
|
|
281
283
|
},
|
|
282
284
|
{
|
|
@@ -1110,7 +1110,7 @@ const data = Type.Object({
|
|
|
1110
1110
|
'x-component': 'mutilp-data-source-field-select',
|
|
1111
1111
|
'x-component-props': {
|
|
1112
1112
|
isWdTable: true,
|
|
1113
|
-
'x-filter': "
|
|
1113
|
+
'x-filter': "!(this?.type === 'object' && this?.format === '')&&!(this?.type === 'array' && this?.format === '')&&!(this.name === '_departmentList' && this.format === '')&& !['x-markdown','x-location','x-music','x-json','x-video','x-file','x-image','x-rtf','function'].includes(this.format) ",
|
|
1114
1114
|
},
|
|
1115
1115
|
'x-helper-text': '通过开启fx、绑定表达式,可配置默认筛选值、默认筛选方式等功能 [查看示例](https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/database/WdTable#%E8%87%AA%E5%AE%9A%E4%B9%89%E9%85%8D%E7%BD%AE%E7%AD%9B%E9%80%89%E5%99%A8)',
|
|
1116
1116
|
'x-index': 70,
|
package/dist/configs/index.d.ts
CHANGED
|
@@ -13767,6 +13767,7 @@ export declare const components: {
|
|
|
13767
13767
|
title: string;
|
|
13768
13768
|
'x-index': number;
|
|
13769
13769
|
}>;
|
|
13770
|
+
selectFieldLabel: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<any>>;
|
|
13770
13771
|
selectFieldType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
|
|
13771
13772
|
selectFields: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
|
13772
13773
|
size: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
|
|
@@ -14077,6 +14078,7 @@ export declare const components: {
|
|
|
14077
14078
|
value: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString> & {
|
|
14078
14079
|
'x-index': number;
|
|
14079
14080
|
}>;
|
|
14081
|
+
selectFieldLabel: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<any>>;
|
|
14080
14082
|
selectFieldType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
|
|
14081
14083
|
selectFields: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
|
14082
14084
|
size: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
|
|
@@ -33276,6 +33278,7 @@ declare const _default: {
|
|
|
33276
33278
|
title: string;
|
|
33277
33279
|
'x-index': number;
|
|
33278
33280
|
}>;
|
|
33281
|
+
selectFieldLabel: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<any>>;
|
|
33279
33282
|
selectFieldType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
|
|
33280
33283
|
selectFields: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
|
33281
33284
|
size: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
|
|
@@ -33586,6 +33589,7 @@ declare const _default: {
|
|
|
33586
33589
|
value: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString> & {
|
|
33587
33590
|
'x-index': number;
|
|
33588
33591
|
}>;
|
|
33592
|
+
selectFieldLabel: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<any>>;
|
|
33589
33593
|
selectFieldType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
|
|
33590
33594
|
selectFields: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
|
33591
33595
|
size: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
|
|
@@ -125,6 +125,7 @@ export declare const FORM_ITEM_DATA: {
|
|
|
125
125
|
_suffixTypeInSelect: import("@sinclair/typebox").TUnsafe<string>;
|
|
126
126
|
suffixIcon: import("@sinclair/typebox").TUnsafe<string>;
|
|
127
127
|
suffixSrc: import("@sinclair/typebox").TString;
|
|
128
|
+
selectFieldLabel: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<any>>;
|
|
128
129
|
selectFieldType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
|
|
129
130
|
selectFields: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
|
130
131
|
enableRelationalRefresh: import("@sinclair/typebox").TBoolean;
|
|
@@ -545,6 +546,7 @@ export declare const ItemData: import("@sinclair/typebox").TObject<{
|
|
|
545
546
|
_suffixTypeInSelect: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
|
|
546
547
|
suffixIcon: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
|
|
547
548
|
suffixSrc: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
549
|
+
selectFieldLabel: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<any>>;
|
|
548
550
|
selectFieldType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
|
|
549
551
|
selectFields: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
|
550
552
|
enableRelationalRefresh: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
@@ -659,6 +659,7 @@ export const FORM_ITEM_DATA = {
|
|
|
659
659
|
},
|
|
660
660
|
}),
|
|
661
661
|
_valueInDateRange: Type.Unknown({
|
|
662
|
+
title: '选中时间',
|
|
662
663
|
'x-category': X_CATEGORY.COMMON,
|
|
663
664
|
'x-index': 20,
|
|
664
665
|
'x-component': 'daterange',
|
|
@@ -1178,12 +1179,21 @@ export const FORM_ITEM_DATA = {
|
|
|
1178
1179
|
'x-index': 162,
|
|
1179
1180
|
'x-category': X_CATEGORY.INPUT_BOX,
|
|
1180
1181
|
}),
|
|
1182
|
+
selectFieldLabel: Type.Optional(Type.StringEnum({
|
|
1183
|
+
title: '选项名称',
|
|
1184
|
+
type: 'string',
|
|
1185
|
+
enum: [],
|
|
1186
|
+
default: '',
|
|
1187
|
+
description: '默认展示主列字段',
|
|
1188
|
+
'x-index': 21,
|
|
1189
|
+
'x-category': X_CATEGORY.COMMON,
|
|
1190
|
+
})),
|
|
1181
1191
|
selectFieldType: Type.Optional(Type.StringEnum({
|
|
1182
|
-
title: '
|
|
1192
|
+
title: '选项展示内容',
|
|
1183
1193
|
type: 'string',
|
|
1184
1194
|
enum: [
|
|
1185
|
-
{ label: '
|
|
1186
|
-
{ label: '
|
|
1195
|
+
{ label: '选项名称', value: 'primary' },
|
|
1196
|
+
{ label: '选项名称 + 更多辅助字段', value: 'custom' },
|
|
1187
1197
|
],
|
|
1188
1198
|
'x-runtime-default': 'primary',
|
|
1189
1199
|
'x-props': { clearable: true },
|
|
@@ -1200,7 +1210,7 @@ export const FORM_ITEM_DATA = {
|
|
|
1200
1210
|
],
|
|
1201
1211
|
})),
|
|
1202
1212
|
selectFields: Type.Optional(Type.Array(Type.String(), {
|
|
1203
|
-
title: '
|
|
1213
|
+
title: '自定义选择辅助字段',
|
|
1204
1214
|
type: 'array',
|
|
1205
1215
|
'x-props': { clearable: true },
|
|
1206
1216
|
'x-index': 23,
|
|
@@ -1758,6 +1768,16 @@ export const FORM_ITEM_DATA = {
|
|
|
1758
1768
|
title: '主列名称',
|
|
1759
1769
|
'x-category': X_CATEGORY.COMMON,
|
|
1760
1770
|
'x-platforms': [''],
|
|
1771
|
+
'x-linkages': [
|
|
1772
|
+
{
|
|
1773
|
+
type: 'value:state',
|
|
1774
|
+
target: 'selectFieldLabel',
|
|
1775
|
+
condition: '{{ Boolean($value) && !Boolean($form.values.selectFieldLabel)}}',
|
|
1776
|
+
state: {
|
|
1777
|
+
value: '{{$value}}',
|
|
1778
|
+
},
|
|
1779
|
+
},
|
|
1780
|
+
],
|
|
1761
1781
|
}),
|
|
1762
1782
|
dataSourceName: Type.String({
|
|
1763
1783
|
type: 'string',
|
|
@@ -1784,6 +1804,14 @@ export const FORM_ITEM_DATA = {
|
|
|
1784
1804
|
},
|
|
1785
1805
|
target: 'selectFields',
|
|
1786
1806
|
},
|
|
1807
|
+
{
|
|
1808
|
+
type: 'value:schema',
|
|
1809
|
+
target: 'selectFieldLabel',
|
|
1810
|
+
condition: '{{ Boolean($value) }}',
|
|
1811
|
+
schema: {
|
|
1812
|
+
enum: '{{getDataSourceValueOptions($form?.values?.dataSourceName, true, true).filter(i=>i.type==="string")}}',
|
|
1813
|
+
},
|
|
1814
|
+
},
|
|
1787
1815
|
],
|
|
1788
1816
|
'x-category': X_CATEGORY.COMMON,
|
|
1789
1817
|
'x-platforms': [''],
|
package/dist/style/index.css
CHANGED
|
@@ -2472,7 +2472,11 @@ a.weda-uploader-file-view__single {
|
|
|
2472
2472
|
line-height: inherit;
|
|
2473
2473
|
color: var(--wd-color-text-secondary);
|
|
2474
2474
|
}
|
|
2475
|
-
.wd-table-wrap-filter-item__content .
|
|
2475
|
+
.wd-table-wrap-filter-item__content .wd-form-item.size-width-hundred {
|
|
2476
|
+
width: 100%;
|
|
2477
|
+
padding: 0;
|
|
2478
|
+
}
|
|
2479
|
+
.wd-table-wrap-filter-item__content .wedatea2td-form__item.size-width-hundred {
|
|
2476
2480
|
display: block;
|
|
2477
2481
|
width: 100%;
|
|
2478
2482
|
}
|
|
@@ -5739,7 +5743,7 @@ textarea {
|
|
|
5739
5743
|
.wd-custom-backdrop {
|
|
5740
5744
|
position: fixed;
|
|
5741
5745
|
/* 与weui-mask 一致 */
|
|
5742
|
-
z-index:
|
|
5746
|
+
z-index: 1002;
|
|
5743
5747
|
top: 0;
|
|
5744
5748
|
left: 0;
|
|
5745
5749
|
bottom: 0;
|
|
@@ -5856,7 +5860,7 @@ textarea {
|
|
|
5856
5860
|
position: fixed;
|
|
5857
5861
|
bottom: 0;
|
|
5858
5862
|
left: 0;
|
|
5859
|
-
z-index:
|
|
5863
|
+
z-index: 1002;
|
|
5860
5864
|
}
|
|
5861
5865
|
.wd-custom-picker__inner.is-full {
|
|
5862
5866
|
height: 100vh;
|