@cloudbase/weda-ui 3.7.4 → 3.7.6

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.
Files changed (46) hide show
  1. package/dist/configs/components/wd-form-arr.d.ts +6 -18
  2. package/dist/configs/components/wd-form-arr.js +12 -23
  3. package/dist/configs/components/wd-form-obj.d.ts +7 -17
  4. package/dist/configs/components/wd-form-obj.js +10 -22
  5. package/dist/configs/components/wd-select-multiple.d.ts +2 -0
  6. package/dist/configs/components/wd-select-multiple.js +3 -0
  7. package/dist/configs/components/wd-select.d.ts +2 -0
  8. package/dist/configs/components/wd-select.js +1 -0
  9. package/dist/configs/index.d.ts +28 -70
  10. package/dist/configs/type-utils/type-form.d.ts +6 -0
  11. package/dist/configs/type-utils/type-form.js +24 -2
  12. package/dist/configs/type-utils/x-runtime-default.d.ts +1 -0
  13. package/dist/configs/type-utils/x-runtime-default.js +1 -0
  14. package/dist/style/index.scss +1 -1
  15. package/dist/web/components/customer-service/customer-service.js +0 -2
  16. package/dist/web/components/form/select/dropdown-select/index.d.ts +2 -1
  17. package/dist/web/components/form/select/dropdown-select/index.js +12 -4
  18. package/dist/web/components/form/select/dropdown-select/ui.d.ts +1 -0
  19. package/dist/web/components/form/select/dropdown-select/ui.js +4 -4
  20. package/dist/web/components/form/select/h5.d.ts +1 -1
  21. package/dist/web/components/form/select/h5.js +2 -2
  22. package/dist/web/components/form/select/index.d.ts +1 -0
  23. package/dist/web/components/form/select/index.js +2 -2
  24. package/dist/web/components/form/selectMultiple/dropdown-select/index.d.ts +2 -1
  25. package/dist/web/components/form/selectMultiple/dropdown-select/index.js +8 -3
  26. package/dist/web/components/form/selectMultiple/dropdown-select/ui.d.ts +1 -0
  27. package/dist/web/components/form/selectMultiple/dropdown-select/ui.js +4 -4
  28. package/dist/web/components/form/selectMultiple/h5.d.ts +1 -1
  29. package/dist/web/components/form/selectMultiple/h5.js +2 -2
  30. package/dist/web/components/form/selectMultiple/index.d.ts +1 -0
  31. package/dist/web/components/form/selectMultiple/index.js +2 -2
  32. package/dist/web/components/phone/index.js +0 -2
  33. package/dist/web/components/share/index.js +0 -2
  34. package/dist/web/components/table/BaseTable.js +1 -0
  35. package/dist/web/components/wd-form-arr/wd-form-arr.js +1 -1
  36. package/dist/web/components/wd-form-item/wd-form-item.js +13 -6
  37. package/dist/web/components/wd-form-obj/base-form-obj.d.ts +1 -0
  38. package/dist/web/components/wd-form-obj/base-form-obj.js +7 -3
  39. package/dist/web/components/wd-official-account/index.js +0 -2
  40. package/dist/web/components/wd-select/wd-select.js +2 -2
  41. package/dist/web/components/wd-select-multiple/wd-select-multiple.js +2 -2
  42. package/dist/web/components/wd-table/utils/index.js +9 -8
  43. package/dist/web/components/wd-textarea/wd-textarea.js +10 -5
  44. package/dist/web/components/wedaVideo/index.js +5 -0
  45. package/dist/web/utils/hooks/useCanPreview.js +0 -1
  46. package/package.json +5 -3
@@ -56,23 +56,11 @@ declare const config: {
56
56
  visible: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
57
57
  readOnly: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
58
58
  }>;
59
- readonly classes: readonly [{
60
- readonly name: "根元素";
61
- readonly selector: ".form-obj-wrap";
62
- readonly description: "嵌套表单根元素";
63
- }, {
64
- readonly name: "PC 端嵌套表单根元素";
65
- readonly selector: ".pc-form-obj-wrap";
66
- readonly description: "可以为 PC 端的嵌套表单编写样式";
67
- }, {
68
- readonly name: "H5 端嵌套表单根元素";
69
- readonly selector: ".h5-form-obj-wrap";
70
- readonly description: "可以为 H5 端的嵌套表单编写样式";
71
- }, {
72
- readonly name: "小程序端嵌套表单根元素";
73
- readonly selector: ".mp-form-obj-wrap";
74
- readonly description: "可以为小程序端的嵌套表单编写样式";
75
- }];
59
+ readonly classes: {
60
+ name: string;
61
+ selector: string;
62
+ description: string;
63
+ }[];
76
64
  readonly methods: readonly [{
77
65
  readonly name: "add";
78
66
  readonly label: "新增一行";
@@ -186,7 +174,7 @@ declare const config: {
186
174
  readonly __k: "init-name-with-id";
187
175
  }, {
188
176
  readonly when: "$attached";
189
- readonly body: "\n{{#with $self as |$self|}}\n[attributes]\nvalue = [{}]\n\n[[template]]\ncomponent = \"Repeater\"\n[template.attributes]\n\":data\" = \"($w.{{$self.id}}.value || [])\"\nsuffix = '{{$self.id}}'\nforItem = 'item_{{$self.id}}'\nforIndex = 'index_{{$self.id}}'\n[[template.items]]\ncomponent = \"Container\"\nscopedStyle = \":scope {\n position: relative;\n}\"\n[[template.items.items]]\ncomponent = 'WdFormObj'\n[template.items.items.attributes]\n\":label\" = \"`${$w.{{$self.id}}.label}[${$w.index_{{$self.id}} + 1}]`\"\n\":name\" = \"$w.index_{{$self.id}}\"\nvalue = {}\n[[template.items.items]]\ncomponent = 'WdIcon'\nscopedStyle = \":scope {\n position: absolute;\n right: var(--wd-card-heder-pd-bordered);\n top: var(--wd-card-heder-pd-bordered);\n color: var(--wd-color-brand);\n}\n\n:scope.wd-mp-icon {\n top: calc(10px + var(--wd-card-heder-pd-bordered));\n}\"\n[template.items.items.attributes]\nname = \"td:delete\"\n[[template.items.items.listeners]]\neventName = \"tap\"\ntype = \"platform\"\n[template.items.items.listeners.handler]\nmodule = \"platform\"\nname = \"invoke\"\n[template.items.items.listeners.handler.params]\ncomponent = \"{{$self.id}}\"\nmethod = \"remove\"\n[template.items.items.listeners.handler.params.params]\n\":index\" = \"$w.index_{{$self.id}}\"\n\n[[template]]\ncomponent = 'Grid'\nscopedStyle = \":scope {\n margin-top: 10px;\n width: 100%;\n}\"\n[[template.listeners]]\neventName = \"tap\"\ntype = \"platform\"\n[template.listeners.handler]\nmodule = \"platform\"\nname = \"invoke\"\n[template.listeners.handler.params]\ncomponent = \"{{$self.id}}\"\nmethod = \"add\"\n[[template.items]]\ncomponent = 'Row'\n[template.items.attributes]\nalignItems = \"center\"\n[[template.items.items]]\ncomponent = 'Col'\nscopedStyle = \":scope {\n flex: 0;\n}\"\n[template.items.items.attributes]\nlgWidthType = \"fit-content\"\nwidthType = \"fit-content\"\n[[template.items.items.items]]\ncomponent = 'WdIcon'\nscopedStyle = \":scope {\n color: var(--wd-color-brand);\n}\"\n[template.items.items.items.attributes]\nname = \"td:add-circle\"\n\n[[template.items.items]]\ncomponent = 'Col'\nscopedStyle = \":scope {\n flex: 0;\n}\"\n[template.items.items.attributes]\nlgWidthType = \"fit-content\"\nwidthType = \"fit-content\"\n[[template.items.items.items]]\ncomponent = 'WdText'\nscopedStyle = \":scope {\n color: var(--wd-color-brand);\n white-space: nowrap;\n}\"\n[template.items.items.items.attributes]\ntext = \"新增\"\n{{/with}}\n";
177
+ readonly body: "\n{{#with $self as |$self|}}\n[attributes]\nvalue = [{}]\n\n[[template]]\ncomponent = \"Repeater\"\n[template.attributes]\n\":data\" = \"($w.{{$self.id}}.value || [])\"\nsuffix = '{{$self.id}}'\nforItem = 'item_{{$self.id}}'\nforIndex = 'index_{{$self.id}}'\n[[template.items]]\ncomponent = \"Container\"\nscopedStyle = \":scope {\n position: relative;\n}\"\n[[template.items.items]]\ncomponent = 'WdFormObj'\n[template.items.items.attributes]\n\":label\" = \"`${$w.{{$self.id}}.label}[${$w.index_{{$self.id}} + 1}]`\"\n\":name\" = \"$w.index_{{$self.id}}\"\nisRoot = false\nvalue = {}\n[[template.items.items]]\ncomponent = 'WdIcon'\nscopedStyle = \":scope {\n position: absolute;\n right: var(--wd-card-heder-pd-bordered);\n top: var(--wd-card-heder-pd-bordered);\n color: var(--wd-color-brand);\n}\n\n:scope.wd-mp-icon {\n top: var(--wd-card-heder-pd-bordered);\n}\"\n[template.items.items.attributes]\nname = \"td:delete\"\nsize = \"sm\"\n[[template.items.items.listeners]]\neventName = \"tap\"\ntype = \"platform\"\n[template.items.items.listeners.handler]\nmodule = \"platform\"\nname = \"invoke\"\n[template.items.items.listeners.handler.params]\ncomponent = \"{{$self.id}}\"\nmethod = \"remove\"\n[template.items.items.listeners.handler.params.params]\n\":index\" = \"$w.index_{{$self.id}}\"\n\n[[template]]\ncomponent = 'Grid'\nscopedStyle = \":scope {\n margin-top: 10px;\n width: 100%;\n}\"\n[[template.listeners]]\neventName = \"tap\"\ntype = \"platform\"\n[template.listeners.handler]\nmodule = \"platform\"\nname = \"invoke\"\n[template.listeners.handler.params]\ncomponent = \"{{$self.id}}\"\nmethod = \"add\"\n[[template.items]]\ncomponent = 'Row'\n[template.items.attributes]\nalignItems = \"center\"\n[[template.items.items]]\ncomponent = 'Col'\nscopedStyle = \":scope {\n flex: 0;\n}\"\n[template.items.items.attributes]\nlgWidthType = \"fit-content\"\nwidthType = \"fit-content\"\n[[template.items.items.items]]\ncomponent = 'WdIcon'\nscopedStyle = \":scope {\n color: var(--wd-color-brand);\n}\"\n[template.items.items.items.attributes]\nname = \"td:add-circle\"\n\n[[template.items.items]]\ncomponent = 'Col'\nscopedStyle = \":scope {\n flex: 0;\n}\"\n[template.items.items.attributes]\nlgWidthType = \"fit-content\"\nwidthType = \"fit-content\"\n[[template.items.items.items]]\ncomponent = 'WdText'\nscopedStyle = \":scope {\n color: var(--wd-color-brand);\n white-space: nowrap;\n}\"\n[template.items.items.items.attributes]\ntext = \"新增\"\n{{/with}}\n";
190
178
  }];
191
179
  };
192
180
  };
@@ -1,5 +1,6 @@
1
1
  import { defineConfig, Type } from '../type-utils';
2
2
  import { FORM_ITEM_DATA, FORM_ITEM_META, ItemData, FORM_ITEM_DATA_TITLE, } from '../type-utils/type-form';
3
+ import { getClasses } from '../type-utils/classes';
3
4
  import { templateInitNameWithId } from './common/init-name-with-id';
4
5
  const $attached_template = `
5
6
  {{#with $self as |$self|}}
@@ -21,12 +22,14 @@ component = 'WdFormObj'
21
22
  [template.items.items.attributes]
22
23
  ":label" = "\`\${$w.{{$self.id}}.label}[\${$w.index_{{$self.id}} + 1}]\`"
23
24
  ":name" = "$w.index_{{$self.id}}"
25
+ isRoot = false
24
26
  value = {}
25
27
  [[template.items.items]]
26
28
  component = 'WdIcon'
27
- scopedStyle = ":scope {\n position: absolute;\n right: var(--wd-card-heder-pd-bordered);\n top: var(--wd-card-heder-pd-bordered);\n color: var(--wd-color-brand);\n}\n\n:scope.wd-mp-icon {\n top: calc(10px + var(--wd-card-heder-pd-bordered));\n}"
29
+ scopedStyle = ":scope {\n position: absolute;\n right: var(--wd-card-heder-pd-bordered);\n top: var(--wd-card-heder-pd-bordered);\n color: var(--wd-color-brand);\n}\n\n:scope.wd-mp-icon {\n top: var(--wd-card-heder-pd-bordered);\n}"
28
30
  [template.items.items.attributes]
29
31
  name = "td:delete"
32
+ size = "sm"
30
33
  [[template.items.items.listeners]]
31
34
  eventName = "tap"
32
35
  type = "platform"
@@ -107,6 +110,13 @@ const properties = Type.Composite([
107
110
  Type.Pick(data, ['name', 'label', 'value']),
108
111
  Type.Pick(ItemData, ['visible', 'disabled', 'readOnly']),
109
112
  ]);
113
+ const CLASSES = getClasses('form-obj', { kind: '嵌套表单' });
114
+ const classes = [
115
+ CLASSES.root,
116
+ CLASSES.root_h5,
117
+ CLASSES.root_pc,
118
+ CLASSES.root_mp,
119
+ ];
110
120
  // export default
111
121
  const config = defineConfig({
112
122
  $schema: 'https://comp-public-1303824488.cos.ap-shanghai.myqcloud.com/schema/lcds_component.json',
@@ -115,28 +125,7 @@ const config = defineConfig({
115
125
  // 只读属性定义
116
126
  properties,
117
127
  // 样式API
118
- classes: [
119
- {
120
- name: '根元素',
121
- selector: '.form-obj-wrap',
122
- description: '嵌套表单根元素',
123
- },
124
- {
125
- name: 'PC 端嵌套表单根元素',
126
- selector: '.pc-form-obj-wrap',
127
- description: '可以为 PC 端的嵌套表单编写样式',
128
- },
129
- {
130
- name: 'H5 端嵌套表单根元素',
131
- selector: '.h5-form-obj-wrap',
132
- description: '可以为 H5 端的嵌套表单编写样式',
133
- },
134
- {
135
- name: '小程序端嵌套表单根元素',
136
- selector: '.mp-form-obj-wrap',
137
- description: '可以为小程序端的嵌套表单编写样式',
138
- },
139
- ],
128
+ classes,
140
129
  // 组件方法
141
130
  methods: [
142
131
  {
@@ -19,6 +19,7 @@ declare const data: import("@sinclair/typebox").TObject<{
19
19
  }>;
20
20
  value: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{}>, import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{}>>]>>;
21
21
  size: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
22
+ isRoot: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
22
23
  }>;
23
24
  export type DataType = Simplify<Static<typeof data>>;
24
25
  declare const config: {
@@ -42,6 +43,7 @@ declare const config: {
42
43
  }>;
43
44
  value: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{}>, import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{}>>]>>;
44
45
  size: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
46
+ isRoot: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
45
47
  }>;
46
48
  readonly properties: import("@sinclair/typebox").TObject<{
47
49
  label: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
@@ -56,23 +58,11 @@ declare const config: {
56
58
  visible: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
57
59
  readOnly: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
58
60
  }>;
59
- readonly classes: readonly [{
60
- readonly name: "根元素";
61
- readonly selector: ".form-obj-wrap";
62
- readonly description: "嵌套表单根元素";
63
- }, {
64
- readonly name: "PC 端嵌套表单根元素";
65
- readonly selector: ".pc-form-obj-wrap";
66
- readonly description: "可以为 PC 端的嵌套表单编写样式";
67
- }, {
68
- readonly name: "H5 端嵌套表单根元素";
69
- readonly selector: ".h5-form-obj-wrap";
70
- readonly description: "可以为 H5 端的嵌套表单编写样式";
71
- }, {
72
- readonly name: "小程序端嵌套表单根元素";
73
- readonly selector: ".mp-form-obj-wrap";
74
- readonly description: "可以为小程序端的嵌套表单编写样式";
75
- }];
61
+ readonly classes: {
62
+ name: string;
63
+ selector: string;
64
+ description: string;
65
+ }[];
76
66
  readonly methods: readonly [{
77
67
  readonly name: "change";
78
68
  readonly label: "值改变";
@@ -1,5 +1,6 @@
1
1
  import { defineConfig, Type } from '../type-utils';
2
2
  import { FORM_ITEM_DATA, FORM_ITEM_META, ItemData, FORM_ITEM_DATA_TITLE, } from '../type-utils/type-form';
3
+ import { getClasses } from '../type-utils/classes';
3
4
  import { templateInitNameWithId } from './common/init-name-with-id';
4
5
  // 属性类型定义
5
6
  const data = Type.Partial(Type.Object({
@@ -14,6 +15,7 @@ const data = Type.Partial(Type.Object({
14
15
  }),
15
16
  value: FORM_ITEM_DATA._valueInFormObj,
16
17
  size: FORM_ITEM_DATA.size,
18
+ isRoot: FORM_ITEM_DATA.isRoot,
17
19
  // 标题
18
20
  ...{
19
21
  ...FORM_ITEM_DATA_TITLE,
@@ -28,6 +30,13 @@ const properties = Type.Composite([
28
30
  Type.Pick(data, ['name', 'label', 'value']),
29
31
  Type.Pick(ItemData, ['visible', 'disabled', 'readOnly']),
30
32
  ]);
33
+ const CLASSES = getClasses('form-obj', { kind: '嵌套表单' });
34
+ const classes = [
35
+ CLASSES.root,
36
+ CLASSES.root_h5,
37
+ CLASSES.root_pc,
38
+ CLASSES.root_mp,
39
+ ];
31
40
  // export default
32
41
  const config = defineConfig({
33
42
  $schema: 'https://comp-public-1303824488.cos.ap-shanghai.myqcloud.com/schema/lcds_component.json',
@@ -36,28 +45,7 @@ const config = defineConfig({
36
45
  // 只读属性定义
37
46
  properties,
38
47
  // 样式API
39
- classes: [
40
- {
41
- name: '根元素',
42
- selector: '.form-obj-wrap',
43
- description: '嵌套表单根元素',
44
- },
45
- {
46
- name: 'PC 端嵌套表单根元素',
47
- selector: '.pc-form-obj-wrap',
48
- description: '可以为 PC 端的嵌套表单编写样式',
49
- },
50
- {
51
- name: 'H5 端嵌套表单根元素',
52
- selector: '.h5-form-obj-wrap',
53
- description: '可以为 H5 端的嵌套表单编写样式',
54
- },
55
- {
56
- name: '小程序端嵌套表单根元素',
57
- selector: '.mp-form-obj-wrap',
58
- description: '可以为小程序端的嵌套表单编写样式',
59
- },
60
- ],
48
+ classes,
61
49
  // 组件方法
62
50
  methods: [
63
51
  {
@@ -37,6 +37,7 @@ declare const data: import("@sinclair/typebox").TObject<{
37
37
  }>>>;
38
38
  tipBlock: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
39
39
  value: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
40
+ staticSearchable: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
40
41
  ignoreCase: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
41
42
  placeholder: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString & {
42
43
  default: string;
@@ -82,6 +83,7 @@ declare const config: {
82
83
  }>>>;
83
84
  tipBlock: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
84
85
  value: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
86
+ staticSearchable: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
85
87
  ignoreCase: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
86
88
  placeholder: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString & {
87
89
  default: string;
@@ -23,6 +23,7 @@ const data = Type.Partial(Type.Object({
23
23
  range: FORM_ITEM_DATA.range,
24
24
  tipBlock: FORM_ITEM_DATA.tipBlock,
25
25
  value: FORM_ITEM_DATA._valueInSelectMultiple,
26
+ staticSearchable: FORM_ITEM_DATA.staticSearchable,
26
27
  ignoreCase: FORM_ITEM_DATA.ignoreCase,
27
28
  placeholder: Object.assign({}, FORM_ITEM_DATA.placeholder, {
28
29
  default: '请选择',
@@ -58,6 +59,8 @@ const data = Type.Partial(Type.Object({
58
59
  // condition: "{{$self.value=='many-many'||$self.value=='one-many'}}",
59
60
  // },
60
61
  ],
62
+ 'x-category': X_CATEGORY.COMMON,
63
+ 'x-index': 43,
61
64
  'x-platforms': [''],
62
65
  }),
63
66
  viewId: FORM_ITEM_DATA.viewId,
@@ -35,6 +35,7 @@ declare const data: import("@sinclair/typebox").TObject<{
35
35
  value: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString & {
36
36
  title: string;
37
37
  }>;
38
+ staticSearchable: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
38
39
  ignoreCase: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
39
40
  placeholder: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString & {
40
41
  default: string;
@@ -83,6 +84,7 @@ declare const config: {
83
84
  value: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString & {
84
85
  title: string;
85
86
  }>;
87
+ staticSearchable: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
86
88
  ignoreCase: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
87
89
  placeholder: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString & {
88
90
  default: string;
@@ -24,6 +24,7 @@ const data = Type.Partial(Type.Object({
24
24
  tipBlock: FORM_ITEM_DATA.tipBlock,
25
25
  where: FORM_ITEM_DATA.where,
26
26
  value: Object.assign({}, FORM_ITEM_DATA.value, { title: '选中值' }),
27
+ staticSearchable: FORM_ITEM_DATA.staticSearchable,
27
28
  ignoreCase: FORM_ITEM_DATA.ignoreCase,
28
29
  placeholder: Object.assign({}, FORM_ITEM_DATA.placeholder, {
29
30
  default: '请选择',
@@ -1065,6 +1065,7 @@ export declare const components: {
1065
1065
  }>;
1066
1066
  value: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{}>, import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{}>>]>>;
1067
1067
  size: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
1068
+ isRoot: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
1068
1069
  }>;
1069
1070
  readonly properties: import("@sinclair/typebox").TObject<{
1070
1071
  label: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
@@ -1079,23 +1080,11 @@ export declare const components: {
1079
1080
  visible: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
1080
1081
  readOnly: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
1081
1082
  }>;
1082
- readonly classes: readonly [{
1083
- readonly name: "根元素";
1084
- readonly selector: ".form-obj-wrap";
1085
- readonly description: "嵌套表单根元素";
1086
- }, {
1087
- readonly name: "PC 端嵌套表单根元素";
1088
- readonly selector: ".pc-form-obj-wrap";
1089
- readonly description: "可以为 PC 端的嵌套表单编写样式";
1090
- }, {
1091
- readonly name: "H5 端嵌套表单根元素";
1092
- readonly selector: ".h5-form-obj-wrap";
1093
- readonly description: "可以为 H5 端的嵌套表单编写样式";
1094
- }, {
1095
- readonly name: "小程序端嵌套表单根元素";
1096
- readonly selector: ".mp-form-obj-wrap";
1097
- readonly description: "可以为小程序端的嵌套表单编写样式";
1098
- }];
1083
+ readonly classes: {
1084
+ name: string;
1085
+ selector: string;
1086
+ description: string;
1087
+ }[];
1099
1088
  readonly methods: readonly [{
1100
1089
  readonly name: "change";
1101
1090
  readonly label: "值改变";
@@ -1236,23 +1225,11 @@ export declare const components: {
1236
1225
  visible: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
1237
1226
  readOnly: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
1238
1227
  }>;
1239
- readonly classes: readonly [{
1240
- readonly name: "根元素";
1241
- readonly selector: ".form-obj-wrap";
1242
- readonly description: "嵌套表单根元素";
1243
- }, {
1244
- readonly name: "PC 端嵌套表单根元素";
1245
- readonly selector: ".pc-form-obj-wrap";
1246
- readonly description: "可以为 PC 端的嵌套表单编写样式";
1247
- }, {
1248
- readonly name: "H5 端嵌套表单根元素";
1249
- readonly selector: ".h5-form-obj-wrap";
1250
- readonly description: "可以为 H5 端的嵌套表单编写样式";
1251
- }, {
1252
- readonly name: "小程序端嵌套表单根元素";
1253
- readonly selector: ".mp-form-obj-wrap";
1254
- readonly description: "可以为小程序端的嵌套表单编写样式";
1255
- }];
1228
+ readonly classes: {
1229
+ name: string;
1230
+ selector: string;
1231
+ description: string;
1232
+ }[];
1256
1233
  readonly methods: readonly [{
1257
1234
  readonly name: "add";
1258
1235
  readonly label: "新增一行";
@@ -1366,7 +1343,7 @@ export declare const components: {
1366
1343
  readonly __k: "init-name-with-id";
1367
1344
  }, {
1368
1345
  readonly when: "$attached";
1369
- readonly body: "\n{{#with $self as |$self|}}\n[attributes]\nvalue = [{}]\n\n[[template]]\ncomponent = \"Repeater\"\n[template.attributes]\n\":data\" = \"($w.{{$self.id}}.value || [])\"\nsuffix = '{{$self.id}}'\nforItem = 'item_{{$self.id}}'\nforIndex = 'index_{{$self.id}}'\n[[template.items]]\ncomponent = \"Container\"\nscopedStyle = \":scope {\n position: relative;\n}\"\n[[template.items.items]]\ncomponent = 'WdFormObj'\n[template.items.items.attributes]\n\":label\" = \"`${$w.{{$self.id}}.label}[${$w.index_{{$self.id}} + 1}]`\"\n\":name\" = \"$w.index_{{$self.id}}\"\nvalue = {}\n[[template.items.items]]\ncomponent = 'WdIcon'\nscopedStyle = \":scope {\n position: absolute;\n right: var(--wd-card-heder-pd-bordered);\n top: var(--wd-card-heder-pd-bordered);\n color: var(--wd-color-brand);\n}\n\n:scope.wd-mp-icon {\n top: calc(10px + var(--wd-card-heder-pd-bordered));\n}\"\n[template.items.items.attributes]\nname = \"td:delete\"\n[[template.items.items.listeners]]\neventName = \"tap\"\ntype = \"platform\"\n[template.items.items.listeners.handler]\nmodule = \"platform\"\nname = \"invoke\"\n[template.items.items.listeners.handler.params]\ncomponent = \"{{$self.id}}\"\nmethod = \"remove\"\n[template.items.items.listeners.handler.params.params]\n\":index\" = \"$w.index_{{$self.id}}\"\n\n[[template]]\ncomponent = 'Grid'\nscopedStyle = \":scope {\n margin-top: 10px;\n width: 100%;\n}\"\n[[template.listeners]]\neventName = \"tap\"\ntype = \"platform\"\n[template.listeners.handler]\nmodule = \"platform\"\nname = \"invoke\"\n[template.listeners.handler.params]\ncomponent = \"{{$self.id}}\"\nmethod = \"add\"\n[[template.items]]\ncomponent = 'Row'\n[template.items.attributes]\nalignItems = \"center\"\n[[template.items.items]]\ncomponent = 'Col'\nscopedStyle = \":scope {\n flex: 0;\n}\"\n[template.items.items.attributes]\nlgWidthType = \"fit-content\"\nwidthType = \"fit-content\"\n[[template.items.items.items]]\ncomponent = 'WdIcon'\nscopedStyle = \":scope {\n color: var(--wd-color-brand);\n}\"\n[template.items.items.items.attributes]\nname = \"td:add-circle\"\n\n[[template.items.items]]\ncomponent = 'Col'\nscopedStyle = \":scope {\n flex: 0;\n}\"\n[template.items.items.attributes]\nlgWidthType = \"fit-content\"\nwidthType = \"fit-content\"\n[[template.items.items.items]]\ncomponent = 'WdText'\nscopedStyle = \":scope {\n color: var(--wd-color-brand);\n white-space: nowrap;\n}\"\n[template.items.items.items.attributes]\ntext = \"新增\"\n{{/with}}\n";
1346
+ readonly body: "\n{{#with $self as |$self|}}\n[attributes]\nvalue = [{}]\n\n[[template]]\ncomponent = \"Repeater\"\n[template.attributes]\n\":data\" = \"($w.{{$self.id}}.value || [])\"\nsuffix = '{{$self.id}}'\nforItem = 'item_{{$self.id}}'\nforIndex = 'index_{{$self.id}}'\n[[template.items]]\ncomponent = \"Container\"\nscopedStyle = \":scope {\n position: relative;\n}\"\n[[template.items.items]]\ncomponent = 'WdFormObj'\n[template.items.items.attributes]\n\":label\" = \"`${$w.{{$self.id}}.label}[${$w.index_{{$self.id}} + 1}]`\"\n\":name\" = \"$w.index_{{$self.id}}\"\nisRoot = false\nvalue = {}\n[[template.items.items]]\ncomponent = 'WdIcon'\nscopedStyle = \":scope {\n position: absolute;\n right: var(--wd-card-heder-pd-bordered);\n top: var(--wd-card-heder-pd-bordered);\n color: var(--wd-color-brand);\n}\n\n:scope.wd-mp-icon {\n top: var(--wd-card-heder-pd-bordered);\n}\"\n[template.items.items.attributes]\nname = \"td:delete\"\nsize = \"sm\"\n[[template.items.items.listeners]]\neventName = \"tap\"\ntype = \"platform\"\n[template.items.items.listeners.handler]\nmodule = \"platform\"\nname = \"invoke\"\n[template.items.items.listeners.handler.params]\ncomponent = \"{{$self.id}}\"\nmethod = \"remove\"\n[template.items.items.listeners.handler.params.params]\n\":index\" = \"$w.index_{{$self.id}}\"\n\n[[template]]\ncomponent = 'Grid'\nscopedStyle = \":scope {\n margin-top: 10px;\n width: 100%;\n}\"\n[[template.listeners]]\neventName = \"tap\"\ntype = \"platform\"\n[template.listeners.handler]\nmodule = \"platform\"\nname = \"invoke\"\n[template.listeners.handler.params]\ncomponent = \"{{$self.id}}\"\nmethod = \"add\"\n[[template.items]]\ncomponent = 'Row'\n[template.items.attributes]\nalignItems = \"center\"\n[[template.items.items]]\ncomponent = 'Col'\nscopedStyle = \":scope {\n flex: 0;\n}\"\n[template.items.items.attributes]\nlgWidthType = \"fit-content\"\nwidthType = \"fit-content\"\n[[template.items.items.items]]\ncomponent = 'WdIcon'\nscopedStyle = \":scope {\n color: var(--wd-color-brand);\n}\"\n[template.items.items.items.attributes]\nname = \"td:add-circle\"\n\n[[template.items.items]]\ncomponent = 'Col'\nscopedStyle = \":scope {\n flex: 0;\n}\"\n[template.items.items.attributes]\nlgWidthType = \"fit-content\"\nwidthType = \"fit-content\"\n[[template.items.items.items]]\ncomponent = 'WdText'\nscopedStyle = \":scope {\n color: var(--wd-color-brand);\n white-space: nowrap;\n}\"\n[template.items.items.items.attributes]\ntext = \"新增\"\n{{/with}}\n";
1370
1347
  }];
1371
1348
  };
1372
1349
  };
@@ -14759,6 +14736,7 @@ export declare const components: {
14759
14736
  value: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString & {
14760
14737
  title: string;
14761
14738
  }>;
14739
+ staticSearchable: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
14762
14740
  ignoreCase: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
14763
14741
  placeholder: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString & {
14764
14742
  default: string;
@@ -14995,6 +14973,7 @@ export declare const components: {
14995
14973
  }>>>;
14996
14974
  tipBlock: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
14997
14975
  value: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
14976
+ staticSearchable: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
14998
14977
  ignoreCase: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
14999
14978
  placeholder: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString & {
15000
14979
  default: string;
@@ -21137,6 +21116,7 @@ declare const _default: {
21137
21116
  }>;
21138
21117
  value: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{}>, import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{}>>]>>;
21139
21118
  size: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
21119
+ isRoot: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
21140
21120
  }>;
21141
21121
  readonly properties: import("@sinclair/typebox").TObject<{
21142
21122
  label: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
@@ -21151,23 +21131,11 @@ declare const _default: {
21151
21131
  visible: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
21152
21132
  readOnly: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
21153
21133
  }>;
21154
- readonly classes: readonly [{
21155
- readonly name: "根元素";
21156
- readonly selector: ".form-obj-wrap";
21157
- readonly description: "嵌套表单根元素";
21158
- }, {
21159
- readonly name: "PC 端嵌套表单根元素";
21160
- readonly selector: ".pc-form-obj-wrap";
21161
- readonly description: "可以为 PC 端的嵌套表单编写样式";
21162
- }, {
21163
- readonly name: "H5 端嵌套表单根元素";
21164
- readonly selector: ".h5-form-obj-wrap";
21165
- readonly description: "可以为 H5 端的嵌套表单编写样式";
21166
- }, {
21167
- readonly name: "小程序端嵌套表单根元素";
21168
- readonly selector: ".mp-form-obj-wrap";
21169
- readonly description: "可以为小程序端的嵌套表单编写样式";
21170
- }];
21134
+ readonly classes: {
21135
+ name: string;
21136
+ selector: string;
21137
+ description: string;
21138
+ }[];
21171
21139
  readonly methods: readonly [{
21172
21140
  readonly name: "change";
21173
21141
  readonly label: "值改变";
@@ -21308,23 +21276,11 @@ declare const _default: {
21308
21276
  visible: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
21309
21277
  readOnly: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
21310
21278
  }>;
21311
- readonly classes: readonly [{
21312
- readonly name: "根元素";
21313
- readonly selector: ".form-obj-wrap";
21314
- readonly description: "嵌套表单根元素";
21315
- }, {
21316
- readonly name: "PC 端嵌套表单根元素";
21317
- readonly selector: ".pc-form-obj-wrap";
21318
- readonly description: "可以为 PC 端的嵌套表单编写样式";
21319
- }, {
21320
- readonly name: "H5 端嵌套表单根元素";
21321
- readonly selector: ".h5-form-obj-wrap";
21322
- readonly description: "可以为 H5 端的嵌套表单编写样式";
21323
- }, {
21324
- readonly name: "小程序端嵌套表单根元素";
21325
- readonly selector: ".mp-form-obj-wrap";
21326
- readonly description: "可以为小程序端的嵌套表单编写样式";
21327
- }];
21279
+ readonly classes: {
21280
+ name: string;
21281
+ selector: string;
21282
+ description: string;
21283
+ }[];
21328
21284
  readonly methods: readonly [{
21329
21285
  readonly name: "add";
21330
21286
  readonly label: "新增一行";
@@ -21438,7 +21394,7 @@ declare const _default: {
21438
21394
  readonly __k: "init-name-with-id";
21439
21395
  }, {
21440
21396
  readonly when: "$attached";
21441
- readonly body: "\n{{#with $self as |$self|}}\n[attributes]\nvalue = [{}]\n\n[[template]]\ncomponent = \"Repeater\"\n[template.attributes]\n\":data\" = \"($w.{{$self.id}}.value || [])\"\nsuffix = '{{$self.id}}'\nforItem = 'item_{{$self.id}}'\nforIndex = 'index_{{$self.id}}'\n[[template.items]]\ncomponent = \"Container\"\nscopedStyle = \":scope {\n position: relative;\n}\"\n[[template.items.items]]\ncomponent = 'WdFormObj'\n[template.items.items.attributes]\n\":label\" = \"`${$w.{{$self.id}}.label}[${$w.index_{{$self.id}} + 1}]`\"\n\":name\" = \"$w.index_{{$self.id}}\"\nvalue = {}\n[[template.items.items]]\ncomponent = 'WdIcon'\nscopedStyle = \":scope {\n position: absolute;\n right: var(--wd-card-heder-pd-bordered);\n top: var(--wd-card-heder-pd-bordered);\n color: var(--wd-color-brand);\n}\n\n:scope.wd-mp-icon {\n top: calc(10px + var(--wd-card-heder-pd-bordered));\n}\"\n[template.items.items.attributes]\nname = \"td:delete\"\n[[template.items.items.listeners]]\neventName = \"tap\"\ntype = \"platform\"\n[template.items.items.listeners.handler]\nmodule = \"platform\"\nname = \"invoke\"\n[template.items.items.listeners.handler.params]\ncomponent = \"{{$self.id}}\"\nmethod = \"remove\"\n[template.items.items.listeners.handler.params.params]\n\":index\" = \"$w.index_{{$self.id}}\"\n\n[[template]]\ncomponent = 'Grid'\nscopedStyle = \":scope {\n margin-top: 10px;\n width: 100%;\n}\"\n[[template.listeners]]\neventName = \"tap\"\ntype = \"platform\"\n[template.listeners.handler]\nmodule = \"platform\"\nname = \"invoke\"\n[template.listeners.handler.params]\ncomponent = \"{{$self.id}}\"\nmethod = \"add\"\n[[template.items]]\ncomponent = 'Row'\n[template.items.attributes]\nalignItems = \"center\"\n[[template.items.items]]\ncomponent = 'Col'\nscopedStyle = \":scope {\n flex: 0;\n}\"\n[template.items.items.attributes]\nlgWidthType = \"fit-content\"\nwidthType = \"fit-content\"\n[[template.items.items.items]]\ncomponent = 'WdIcon'\nscopedStyle = \":scope {\n color: var(--wd-color-brand);\n}\"\n[template.items.items.items.attributes]\nname = \"td:add-circle\"\n\n[[template.items.items]]\ncomponent = 'Col'\nscopedStyle = \":scope {\n flex: 0;\n}\"\n[template.items.items.attributes]\nlgWidthType = \"fit-content\"\nwidthType = \"fit-content\"\n[[template.items.items.items]]\ncomponent = 'WdText'\nscopedStyle = \":scope {\n color: var(--wd-color-brand);\n white-space: nowrap;\n}\"\n[template.items.items.items.attributes]\ntext = \"新增\"\n{{/with}}\n";
21397
+ readonly body: "\n{{#with $self as |$self|}}\n[attributes]\nvalue = [{}]\n\n[[template]]\ncomponent = \"Repeater\"\n[template.attributes]\n\":data\" = \"($w.{{$self.id}}.value || [])\"\nsuffix = '{{$self.id}}'\nforItem = 'item_{{$self.id}}'\nforIndex = 'index_{{$self.id}}'\n[[template.items]]\ncomponent = \"Container\"\nscopedStyle = \":scope {\n position: relative;\n}\"\n[[template.items.items]]\ncomponent = 'WdFormObj'\n[template.items.items.attributes]\n\":label\" = \"`${$w.{{$self.id}}.label}[${$w.index_{{$self.id}} + 1}]`\"\n\":name\" = \"$w.index_{{$self.id}}\"\nisRoot = false\nvalue = {}\n[[template.items.items]]\ncomponent = 'WdIcon'\nscopedStyle = \":scope {\n position: absolute;\n right: var(--wd-card-heder-pd-bordered);\n top: var(--wd-card-heder-pd-bordered);\n color: var(--wd-color-brand);\n}\n\n:scope.wd-mp-icon {\n top: var(--wd-card-heder-pd-bordered);\n}\"\n[template.items.items.attributes]\nname = \"td:delete\"\nsize = \"sm\"\n[[template.items.items.listeners]]\neventName = \"tap\"\ntype = \"platform\"\n[template.items.items.listeners.handler]\nmodule = \"platform\"\nname = \"invoke\"\n[template.items.items.listeners.handler.params]\ncomponent = \"{{$self.id}}\"\nmethod = \"remove\"\n[template.items.items.listeners.handler.params.params]\n\":index\" = \"$w.index_{{$self.id}}\"\n\n[[template]]\ncomponent = 'Grid'\nscopedStyle = \":scope {\n margin-top: 10px;\n width: 100%;\n}\"\n[[template.listeners]]\neventName = \"tap\"\ntype = \"platform\"\n[template.listeners.handler]\nmodule = \"platform\"\nname = \"invoke\"\n[template.listeners.handler.params]\ncomponent = \"{{$self.id}}\"\nmethod = \"add\"\n[[template.items]]\ncomponent = 'Row'\n[template.items.attributes]\nalignItems = \"center\"\n[[template.items.items]]\ncomponent = 'Col'\nscopedStyle = \":scope {\n flex: 0;\n}\"\n[template.items.items.attributes]\nlgWidthType = \"fit-content\"\nwidthType = \"fit-content\"\n[[template.items.items.items]]\ncomponent = 'WdIcon'\nscopedStyle = \":scope {\n color: var(--wd-color-brand);\n}\"\n[template.items.items.items.attributes]\nname = \"td:add-circle\"\n\n[[template.items.items]]\ncomponent = 'Col'\nscopedStyle = \":scope {\n flex: 0;\n}\"\n[template.items.items.attributes]\nlgWidthType = \"fit-content\"\nwidthType = \"fit-content\"\n[[template.items.items.items]]\ncomponent = 'WdText'\nscopedStyle = \":scope {\n color: var(--wd-color-brand);\n white-space: nowrap;\n}\"\n[template.items.items.items.attributes]\ntext = \"新增\"\n{{/with}}\n";
21442
21398
  }];
21443
21399
  };
21444
21400
  };
@@ -34831,6 +34787,7 @@ declare const _default: {
34831
34787
  value: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString & {
34832
34788
  title: string;
34833
34789
  }>;
34790
+ staticSearchable: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
34834
34791
  ignoreCase: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
34835
34792
  placeholder: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString & {
34836
34793
  default: string;
@@ -35067,6 +35024,7 @@ declare const _default: {
35067
35024
  }>>>;
35068
35025
  tipBlock: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
35069
35026
  value: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
35027
+ staticSearchable: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
35070
35028
  ignoreCase: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
35071
35029
  placeholder: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString & {
35072
35030
  default: string;
@@ -30,6 +30,7 @@ export declare const X_CATEGORY: {
30
30
  };
31
31
  export declare const FORM_ITEM_DATA: {
32
32
  /** 通用 */
33
+ isRoot: import("@sinclair/typebox").TBoolean;
33
34
  name: import("@sinclair/typebox").TString;
34
35
  language: import("@sinclair/typebox").TUnsafe<string>;
35
36
  theme: import("@sinclair/typebox").TUnsafe<string>;
@@ -61,6 +62,7 @@ export declare const FORM_ITEM_DATA: {
61
62
  }>>;
62
63
  tipBlock: import("@sinclair/typebox").TString;
63
64
  regionType: import("@sinclair/typebox").TUnsafe<string>;
65
+ staticSearchable: import("@sinclair/typebox").TBoolean;
64
66
  ignoreCase: import("@sinclair/typebox").TBoolean;
65
67
  value: import("@sinclair/typebox").TString;
66
68
  _valueInTag: import("@sinclair/typebox").TUnknown;
@@ -428,6 +430,7 @@ export declare const FORM_ITEM_META: {
428
430
  };
429
431
  };
430
432
  export declare const ItemData: import("@sinclair/typebox").TObject<{
433
+ isRoot: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
431
434
  name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
432
435
  language: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
433
436
  theme: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
@@ -459,6 +462,7 @@ export declare const ItemData: import("@sinclair/typebox").TObject<{
459
462
  }>>>;
460
463
  tipBlock: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
461
464
  regionType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
465
+ staticSearchable: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
462
466
  ignoreCase: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
463
467
  value: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
464
468
  _valueInTag: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnknown>;
@@ -604,6 +608,8 @@ export interface WdFormItemProps extends CommonPropsType, Pick<ItemDataType, 'la
604
608
  readBeforeAfter?: boolean;
605
609
  /** 标题容器 */
606
610
  LabelContainer?: (props: any) => JSX.Element;
611
+ /** 是否为根元素 */
612
+ isRoot?: boolean;
607
613
  }
608
614
  export interface WdInputGroupProps extends Pick<ItemDataType, 'before' | 'after' | 'block' | 'size' | 'readOnly'> {
609
615
  /** 子元素 */
@@ -57,6 +57,14 @@ export const X_CATEGORY = {
57
57
  // 表单组件属性集合
58
58
  export const FORM_ITEM_DATA = {
59
59
  /** 通用 */
60
+ isRoot: Type.Boolean({
61
+ type: 'boolean',
62
+ title: '是否是根节点',
63
+ default: true,
64
+ display: false,
65
+ 'x-category': X_CATEGORY.COMMON,
66
+ 'x-index': 0,
67
+ }),
60
68
  name: Type.String({
61
69
  title: '绑定字段',
62
70
  type: 'string',
@@ -528,11 +536,25 @@ export const FORM_ITEM_DATA = {
528
536
  'x-category': X_CATEGORY.COMMON,
529
537
  'x-index': 19,
530
538
  }),
539
+ staticSearchable: Type.Boolean({
540
+ title: '前端查询',
541
+ 'x-runtime-default': X_RUNTIME_DEFAULT.staticSearchable,
542
+ 'x-category': X_CATEGORY.COMMON,
543
+ 'x-index': 14,
544
+ 'x-linkages': [
545
+ {
546
+ type: 'value:visible',
547
+ target: 'ignoreCase',
548
+ condition: '{{$self.value !== false}}',
549
+ },
550
+ ],
551
+ description: '开启后,前端会进行模糊查询,关闭时,可以通过后端进行查询',
552
+ }),
531
553
  ignoreCase: Type.Boolean({
532
554
  title: '搜索时忽略大小写',
533
555
  'x-runtime-default': X_RUNTIME_DEFAULT.ignoreCase,
534
556
  'x-category': X_CATEGORY.COMMON,
535
- 'x-index': 19,
557
+ 'x-index': 15,
536
558
  }),
537
559
  value: Type.String({
538
560
  title: '输入值',
@@ -1568,7 +1590,7 @@ export const FORM_ITEM_DATA = {
1568
1590
  {
1569
1591
  type: 'value:visible',
1570
1592
  target: 'ignoreCase',
1571
- condition: "{{$self.value!='father-son'&&$self.value!='related'&&$self.value!='many-one'&&$self.value!='one-one'&&$self.value!='one-one-r'}}",
1593
+ condition: "{{$self.value!='father-son'&&$self.value!='related'&&$self.value!='many-one'&&$self.value!='one-one'&&$self.value!='one-one-r'&&$form.values.staticSearchable==true}}",
1572
1594
  },
1573
1595
  {
1574
1596
  type: 'value:visible',
@@ -24,6 +24,7 @@ export declare const X_RUNTIME_DEFAULT: {
24
24
  locationType: number;
25
25
  regionType: string;
26
26
  ignoreCase: boolean;
27
+ staticSearchable: boolean;
27
28
  viewType: string;
28
29
  size: string;
29
30
  block: boolean;
@@ -24,6 +24,7 @@ export const X_RUNTIME_DEFAULT = {
24
24
  locationType: 1,
25
25
  regionType: 'levelThree',
26
26
  ignoreCase: true,
27
+ staticSearchable: true,
27
28
  viewType: 'table',
28
29
  size: '',
29
30
  block: true,