@cloudbase/weda-ui 3.12.3 → 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,
@@ -874,6 +874,17 @@ const data = Type.Object({
874
874
  target: '*(orderBy,orderType)',
875
875
  condition: "{{$self.value ==='data-model'&&!$form.values.isSupportMultipleSort}}",
876
876
  },
877
+ {
878
+ type: 'value:state',
879
+ target: '*(isSupportMultipleSort)',
880
+ condition: '{{!$form.values.isSupportMultipleSort}}',
881
+ state: {
882
+ display: true,
883
+ },
884
+ otherwise: {
885
+ display: false,
886
+ },
887
+ },
877
888
  {
878
889
  type: 'value:state',
879
890
  target: '*(bindConnectMetadata,connectorMethod,connectorParams)',
@@ -1006,7 +1017,7 @@ const data = Type.Object({
1006
1017
  condition: '{{!!$value && !!$value.name && !!$form.values.orderBy && getDataSourceValueOptions($value.name).every(o => o.value !== $form.values.orderBy)}}',
1007
1018
  target: 'orderBy',
1008
1019
  state: {
1009
- value: '',
1020
+ value: 'updatedAt',
1010
1021
  },
1011
1022
  },
1012
1023
  {
@@ -1284,7 +1295,7 @@ const data = Type.Object({
1284
1295
  {
1285
1296
  type: 'value:visible',
1286
1297
  target: '*(orderBy,orderType)',
1287
- condition: '{{!$self.value}}',
1298
+ condition: '{{!$self.value&&$form.values?.dataSourceType==="data-model"}}',
1288
1299
  },
1289
1300
  {
1290
1301
  type: 'value:state',
@@ -1685,6 +1696,11 @@ const data = Type.Object({
1685
1696
  target: 'selectFieldType',
1686
1697
  condition: '{{ Boolean($self.value) }}',
1687
1698
  },
1699
+ {
1700
+ type: 'value:visible',
1701
+ target: 'isSupportMultipleSort',
1702
+ condition: '{{ Boolean($self.value) }}',
1703
+ },
1688
1704
  ],
1689
1705
  })),
1690
1706
  });
@@ -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,