@cloudbase/weda-ui 3.12.2 → 3.12.4

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.
@@ -855,7 +855,7 @@ const data = Type.Object({
855
855
  },
856
856
  {
857
857
  type: 'value:state',
858
- target: '*(queryCondition,datasource,selectFieldType)',
858
+ target: '*(queryCondition,datasource,selectFieldType,isSupportMultipleSort)',
859
859
  condition: "{{$self.value ==='data-model'}}",
860
860
  state: {
861
861
  display: true,
@@ -865,26 +865,14 @@ const data = Type.Object({
865
865
  },
866
866
  },
867
867
  {
868
- type: 'value:state',
868
+ type: 'value:visible',
869
869
  target: '*(sorter)',
870
870
  condition: "{{$self.value ==='data-model'&&$form.values.isSupportMultipleSort}}",
871
- state: {
872
- display: true,
873
- },
874
- otherwise: {
875
- display: false,
876
- },
877
871
  },
878
872
  {
879
- type: 'value:state',
873
+ type: 'value:visible',
880
874
  target: '*(orderBy,orderType)',
881
875
  condition: "{{$self.value ==='data-model'&&!$form.values.isSupportMultipleSort}}",
882
- state: {
883
- display: true,
884
- },
885
- otherwise: {
886
- display: false,
887
- },
888
876
  },
889
877
  {
890
878
  type: 'value:state',
@@ -1029,7 +1017,7 @@ const data = Type.Object({
1029
1017
  condition: '{{!!$value && !!$value.name && !!$form.values.orderBy && getDataSourceValueOptions($value.name).every(o => o.value !== $form.values.orderBy)}}',
1030
1018
  target: 'orderBy',
1031
1019
  state: {
1032
- value: '',
1020
+ value: 'updatedAt',
1033
1021
  },
1034
1022
  },
1035
1023
  {
@@ -1300,20 +1288,14 @@ const data = Type.Object({
1300
1288
  },
1301
1289
  'x-linkages': [
1302
1290
  {
1303
- type: 'value:state',
1291
+ type: 'value:visible',
1304
1292
  target: '*(sorter)',
1305
- condition: '{{$self.value&&$form.values?.datasource?.name}}',
1306
- state: {
1307
- display: true,
1308
- },
1293
+ condition: '{{$self.value&&$form.values?.dataSourceType==="data-model"}}',
1309
1294
  },
1310
1295
  {
1311
- type: 'value:state',
1296
+ type: 'value:visible',
1312
1297
  target: '*(orderBy,orderType)',
1313
- condition: '{{$self.value}}',
1314
- state: {
1315
- display: false,
1316
- },
1298
+ condition: '{{!$self.value&&$form.values?.dataSourceType==="data-model"}}',
1317
1299
  },
1318
1300
  {
1319
1301
  type: 'value:state',
@@ -1714,6 +1696,11 @@ const data = Type.Object({
1714
1696
  target: 'selectFieldType',
1715
1697
  condition: '{{ Boolean($self.value) }}',
1716
1698
  },
1699
+ {
1700
+ type: 'value:visible',
1701
+ target: 'isSupportMultipleSort',
1702
+ condition: '{{ Boolean($self.value) }}',
1703
+ },
1717
1704
  ],
1718
1705
  })),
1719
1706
  });
@@ -50,6 +50,7 @@ declare const data: import("@sinclair/typebox").TObject<{
50
50
  placeholder: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString & {
51
51
  default: string;
52
52
  }>;
53
+ searchPlaceholder: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
53
54
  size: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
54
55
  }>;
55
56
  declare const config: {
@@ -104,6 +105,7 @@ declare const config: {
104
105
  placeholder: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString & {
105
106
  default: string;
106
107
  }>;
108
+ searchPlaceholder: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
107
109
  size: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
108
110
  }>;
109
111
  readonly properties: import("@sinclair/typebox").TObject<{
@@ -31,6 +31,14 @@ const data = Type.Partial(Type.Object({
31
31
  placeholder: Object.assign({}, FORM_ITEM_DATA.placeholder, {
32
32
  default: '请选择',
33
33
  }),
34
+ searchPlaceholder: Type.String({
35
+ title: '搜索框占位文字',
36
+ type: 'string',
37
+ default: '搜索选项',
38
+ 'x-index': 31,
39
+ 'x-category': X_CATEGORY.COMMON,
40
+ 'x-helper-text': 'PC/H5端生效',
41
+ }),
34
42
  size: FORM_ITEM_DATA.size,
35
43
  // 标题
36
44
  ...TITLE,
@@ -78,13 +86,7 @@ const data = Type.Partial(Type.Object({
78
86
  }));
79
87
  const properties = Type.Composite([
80
88
  Type.Pick(data, ['name', 'label', 'value', 'required', 'before', 'after']),
81
- Type.Pick(ItemData, [
82
- 'visible',
83
- 'disabled',
84
- 'readOnly',
85
- 'selectedLabel',
86
- 'item',
87
- ]),
89
+ Type.Pick(ItemData, ['visible', 'disabled', 'readOnly', 'selectedLabel', 'item']),
88
90
  ]);
89
91
  const CLASSES = getClasses('select-multiple', { kind: '选择框' });
90
92
  const classes = [
@@ -47,6 +47,7 @@ declare const data: import("@sinclair/typebox").TObject<{
47
47
  placeholder: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString & {
48
48
  default: string;
49
49
  }>;
50
+ searchPlaceholder: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
50
51
  size: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
51
52
  format: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
52
53
  viewId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
@@ -103,6 +104,7 @@ declare const config: {
103
104
  placeholder: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString & {
104
105
  default: string;
105
106
  }>;
107
+ searchPlaceholder: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
106
108
  size: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
107
109
  format: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
108
110
  viewId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
@@ -29,6 +29,14 @@ const data = Type.Partial(Type.Object({
29
29
  placeholder: Object.assign({}, FORM_ITEM_DATA.placeholder, {
30
30
  default: '请选择',
31
31
  }),
32
+ searchPlaceholder: Type.String({
33
+ title: '搜索框占位文字',
34
+ type: 'string',
35
+ default: '搜索选项',
36
+ 'x-index': 31,
37
+ 'x-category': X_CATEGORY.COMMON,
38
+ 'x-helper-text': 'PC/H5端生效',
39
+ }),
32
40
  size: FORM_ITEM_DATA.size,
33
41
  format: FORM_ITEM_DATA._formatInSelect,
34
42
  viewId: FORM_ITEM_DATA.viewId,
@@ -55,13 +63,7 @@ const data = Type.Partial(Type.Object({
55
63
  }));
56
64
  const properties = Type.Composite([
57
65
  Type.Pick(data, ['name', 'value', 'label', 'required']),
58
- Type.Pick(ItemData, [
59
- 'visible',
60
- 'disabled',
61
- 'readOnly',
62
- 'selectedLabel',
63
- 'item',
64
- ]),
66
+ Type.Pick(ItemData, ['visible', 'disabled', 'readOnly', 'selectedLabel', 'item']),
65
67
  ]);
66
68
  const CLASSES = getClasses('select', { kind: '选择框' });
67
69
  const classes = [
@@ -36,6 +36,21 @@ const data = Type.Object({
36
36
  display: false,
37
37
  'x-group': '高级属性',
38
38
  'x-index': 50,
39
+ 'x-linkages': [
40
+ {
41
+ type: 'value:schema',
42
+ schema: {
43
+ 'x-props': {
44
+ 'x-slot-auto': {
45
+ iterable: '[]',
46
+ generator: '{{ {key:$item.slotKey, title: ($item.label) } }}',
47
+ },
48
+ },
49
+ },
50
+ condition: '{{!$self.value}}',
51
+ target: 'autoPanel',
52
+ },
53
+ ],
39
54
  }),
40
55
  list: Type.Array(Type.Object({
41
56
  label: Type.String({
@@ -338,7 +353,7 @@ const data = Type.Object({
338
353
  'x-group': '基础属性',
339
354
  type: 'slot',
340
355
  'x-slot-auto': {
341
- iterable: '{{ $form.values.isSlotAuto ?($form.values.isMultipleSlot? $form.values.list.filter(item => item.slotKey):[$form.values.list[0]]):[] }}',
356
+ iterable: '{{ $form.values.isMultipleSlot? $form.values.list.filter(item => item.slotKey):[{slotKey:1,label:"内容插槽"}] }}',
342
357
  generator: '{{ {key:$item.slotKey, title: ($item.label) } }}',
343
358
  },
344
359
  })),
@@ -110,7 +110,7 @@ const data = Type.Object({
110
110
  'x-linkages': [
111
111
  {
112
112
  type: 'value:state',
113
- target: '*( filterFields,bindMetadata,queryCondition)',
113
+ target: '*( filterFields,bindMetadata,queryCondition,selectFieldType)',
114
114
  condition: "{{$self.value ==='data-model'}}",
115
115
  state: {
116
116
  display: true,
@@ -13983,6 +13983,7 @@ export declare const components: {
13983
13983
  placeholder: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString & {
13984
13984
  default: string;
13985
13985
  }>;
13986
+ searchPlaceholder: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
13986
13987
  size: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
13987
13988
  format: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
13988
13989
  viewId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
@@ -14254,6 +14255,7 @@ export declare const components: {
14254
14255
  placeholder: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString & {
14255
14256
  default: string;
14256
14257
  }>;
14258
+ searchPlaceholder: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
14257
14259
  size: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
14258
14260
  }>;
14259
14261
  readonly properties: import("@sinclair/typebox").TObject<{
@@ -33393,6 +33395,7 @@ declare const _default: {
33393
33395
  placeholder: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString & {
33394
33396
  default: string;
33395
33397
  }>;
33398
+ searchPlaceholder: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
33396
33399
  size: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
33397
33400
  format: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
33398
33401
  viewId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
@@ -33664,6 +33667,7 @@ declare const _default: {
33664
33667
  placeholder: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString & {
33665
33668
  default: string;
33666
33669
  }>;
33670
+ searchPlaceholder: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
33667
33671
  size: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
33668
33672
  }>;
33669
33673
  readonly properties: import("@sinclair/typebox").TObject<{