@cloudbase/weda-ui 3.12.2 → 3.12.3

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.
@@ -865,37 +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
- },
889
- {
890
- type: 'value:state',
891
- target: '*(isSupportMultipleSort)',
892
- condition: '{{!$form.values.isSupportMultipleSort}}',
893
- state: {
894
- display: true,
895
- },
896
- otherwise: {
897
- display: false,
898
- },
899
876
  },
900
877
  {
901
878
  type: 'value:state',
@@ -1300,20 +1277,14 @@ const data = Type.Object({
1300
1277
  },
1301
1278
  'x-linkages': [
1302
1279
  {
1303
- type: 'value:state',
1280
+ type: 'value:visible',
1304
1281
  target: '*(sorter)',
1305
- condition: '{{$self.value&&$form.values?.datasource?.name}}',
1306
- state: {
1307
- display: true,
1308
- },
1282
+ condition: '{{$self.value&&$form.values?.dataSourceType==="data-model"}}',
1309
1283
  },
1310
1284
  {
1311
- type: 'value:state',
1285
+ type: 'value:visible',
1312
1286
  target: '*(orderBy,orderType)',
1313
- condition: '{{$self.value}}',
1314
- state: {
1315
- display: false,
1316
- },
1287
+ condition: '{{!$self.value}}',
1317
1288
  },
1318
1289
  {
1319
1290
  type: 'value:state',
@@ -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 = [
@@ -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<{