@cloudbase/weda-ui 3.11.11 → 3.12.1

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 (47) hide show
  1. package/dist/configs/components/dataView.d.ts +1 -0
  2. package/dist/configs/components/dataView.js +2 -1
  3. package/dist/configs/components/listView.js +5 -12
  4. package/dist/configs/components/wd-form-arr.d.ts +4 -1
  5. package/dist/configs/components/wd-form-arr.js +11 -140
  6. package/dist/configs/components/wd-form-obj.d.ts +2 -0
  7. package/dist/configs/components/wd-form-obj.js +13 -1
  8. package/dist/configs/components/wd-modal.d.ts +10 -1
  9. package/dist/configs/components/wd-modal.js +52 -1
  10. package/dist/configs/components/wd-table.d.ts +10 -0
  11. package/dist/configs/components/wd-table.js +9 -17
  12. package/dist/configs/components/web-view.d.ts +4 -0
  13. package/dist/configs/components/web-view.js +19 -1
  14. package/dist/configs/index.d.ts +44 -4
  15. package/dist/configs/type-utils/type-form.d.ts +2 -0
  16. package/dist/configs/type-utils/type-form.js +5 -3
  17. package/dist/configs/utils/field.d.ts +4 -0
  18. package/dist/configs/utils/field.js +508 -0
  19. package/dist/style/index.css +41 -3
  20. package/dist/style/index.scss +1 -1
  21. package/dist/style/weda-ui.min.css +2 -2
  22. package/dist/web/components/form/uploader/uploader.pc.d.ts +8 -1
  23. package/dist/web/components/form/uploader/uploader.pc.js +22 -20
  24. package/dist/web/components/uploaderView/index.d.ts +8 -1
  25. package/dist/web/components/uploaderView/index.js +5 -4
  26. package/dist/web/components/wd-form-item/wd-form-item.js +3 -3
  27. package/dist/web/components/wd-form-item/wd-input-wrap.js +8 -2
  28. package/dist/web/components/wd-form-obj/base-form-obj.js +4 -1
  29. package/dist/web/components/wd-image/ImagePreview.d.ts +1 -0
  30. package/dist/web/components/wd-image/ImagePreview.js +124 -0
  31. package/dist/web/components/wd-image/image.d.ts +2 -1
  32. package/dist/web/components/wd-image/image.js +47 -159
  33. package/dist/web/components/wd-image/index.d.ts +1 -0
  34. package/dist/web/components/wd-image/index.js +7 -3
  35. package/dist/web/components/wd-menu-list/CommonMenuList.js +12 -1
  36. package/dist/web/components/wd-rich-text/wd-rich-text.js +1 -1
  37. package/dist/web/components/wd-select/relationSelect/relationSelect.js +7 -12
  38. package/dist/web/components/wd-select/select/selectUI.js +8 -13
  39. package/dist/web/components/wd-table/components/FieldRender/ImagePreview.js +8 -1
  40. package/dist/web/components/wd-table/components/FieldRender/index.js +2 -2
  41. package/dist/web/components/wd-table/wd-table.js +16 -46
  42. package/dist/web/components/wd-upload-file/wd-upload-file.js +1 -1
  43. package/dist/web/components/wd-upload-image/wd-upload-image.js +1 -1
  44. package/dist/web/components/web-view/web-view.d.ts +2 -0
  45. package/dist/web/components/web-view/web-view.js +2 -2
  46. package/dist/web/utils/getModelParams.js +8 -3
  47. package/package.json +3 -3
@@ -1176,6 +1176,7 @@ export declare const components: {
1176
1176
  value: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{}>, import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{}>>]>>;
1177
1177
  size: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
1178
1178
  isRoot: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
1179
+ mode: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
1179
1180
  }>;
1180
1181
  readonly properties: import("@sinclair/typebox").TObject<{
1181
1182
  value: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{}>, import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{}>>]>>;
@@ -1304,6 +1305,7 @@ export declare const components: {
1304
1305
  readonly $schema: "https://comp-public-1303824488.cos.ap-shanghai.myqcloud.com/schema/lcds_component.json";
1305
1306
  readonly data: import("@sinclair/typebox").TObject<{
1306
1307
  status: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
1308
+ dataSourceName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
1307
1309
  layout: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string> & {
1308
1310
  title: string;
1309
1311
  }>;
@@ -1455,11 +1457,12 @@ export declare const components: {
1455
1457
  readonly __k: "init-name-with-id";
1456
1458
  }, {
1457
1459
  readonly when: "$attached";
1458
- readonly body: "\n[attributes]\nvalue = [{}]\n\":addDefaultValue\"=\"{}\"\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 width: 100%;\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";
1460
+ readonly body: string;
1459
1461
  }, {
1460
1462
  readonly when: "mode";
1461
1463
  readonly to: "$children";
1462
1464
  readonly body: string;
1465
+ readonly remainToTemplateContainer: "WdFormObj *";
1463
1466
  }];
1464
1467
  };
1465
1468
  };
@@ -1701,38 +1704,47 @@ export declare const components: {
1701
1704
  readonly name: "根元素";
1702
1705
  readonly selector: ".wd-modal";
1703
1706
  readonly description: "组件根元素";
1707
+ readonly code: "\n :scope.wd-modal {\n /* 在这里编写CSS 样式 */\n }\n ";
1704
1708
  }, {
1705
1709
  readonly name: "PC 端根元素";
1706
1710
  readonly selector: ".wd-pc-modal";
1707
1711
  readonly description: "可以为 PC 端的编写样式";
1712
+ readonly code: "\n :scope.wd-pc-modal {\n /* 可以为 PC 端的编写样式 */\n }\n ";
1708
1713
  }, {
1709
1714
  readonly name: "H5 端根元素";
1710
1715
  readonly selector: ".wd-h5-modal";
1711
1716
  readonly description: "可以为 H5 端的编写样式";
1717
+ readonly code: "\n :scope.wd-h5-modal {\n /* 在这里编写CSS 样式 */\n }\n ";
1712
1718
  }, {
1713
1719
  readonly name: "小程序 端根元素";
1714
1720
  readonly selector: ".wd-mp-modal";
1715
1721
  readonly description: "可以为 小程序 端的编写样式";
1722
+ readonly code: "\n :scope.wd-mp-modal {\n /* 可以为 小程序 端的编写样式 */\n }\n ";
1716
1723
  }, {
1717
1724
  readonly name: "弹窗遮罩层样式";
1718
1725
  readonly selector: ".wd-modal-mask";
1719
1726
  readonly description: "可以为遮罩层编写样式";
1727
+ readonly code: "\n :scope .wd-modal-mask {\n /* 可以为遮罩层编写样式 */\n background-color: rgba(0, 0, 0, 0.5)\n }\n ";
1720
1728
  }, {
1721
1729
  readonly name: "弹窗主体容器样式";
1722
- readonly selector: ".wd-modal-bd";
1730
+ readonly selector: ".wd-modal-content";
1723
1731
  readonly description: "可以为主体容器编写样式";
1732
+ readonly code: "\n :scope .wd-modal-content {\n /* 可以为主体容器编写样式 */\n inset-inline-start: auto;\n inset-inline-end: 0;\n }\n ";
1724
1733
  }, {
1725
1734
  readonly name: "弹窗标题区样式";
1726
1735
  readonly selector: ".wd-modal-bd__hd";
1727
1736
  readonly description: "可以为标题区编写样式";
1737
+ readonly code: "\n :scope .wd-modal-bd__hd .wd-typography {\n /* 可以为标题区编写样式 */\n font-size: 20px;\n color: #333;\n }\n ";
1728
1738
  }, {
1729
1739
  readonly name: "弹窗内容区样式";
1730
1740
  readonly selector: ".wd-modal-bd__main";
1731
1741
  readonly description: "可以为内容区编写样式";
1742
+ readonly code: "\n :scope .wd-modal-bd__main {\n /* 可以为内容区编写样式 */\n }\n ";
1732
1743
  }, {
1733
1744
  readonly name: "弹窗按钮区样式";
1734
1745
  readonly selector: ".wd-modal-bd__ft";
1735
1746
  readonly description: "可以为按钮区编写样式";
1747
+ readonly code: "\n :scope .wd-modal-bd__ft {\n /* 可以为按钮区编写样式 */\n justify-content: flex-start;\n }\n ";
1736
1748
  }];
1737
1749
  readonly methods: readonly [{
1738
1750
  readonly name: "open";
@@ -7393,6 +7405,7 @@ export declare const components: {
7393
7405
  'data-withBindMeta': boolean;
7394
7406
  };
7395
7407
  description: string;
7408
+ 'x-helper-text': string;
7396
7409
  };
7397
7410
  isSupportApis: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
7398
7411
  selectFieldType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
@@ -11985,6 +11998,11 @@ export declare const components: {
11985
11998
  readonly label: "重置筛选器";
11986
11999
  readonly 'x-platforms': readonly ["MOBILEWEB", "PCWEB"];
11987
12000
  readonly description: "重置筛选器";
12001
+ }, {
12002
+ readonly name: "clearSelection";
12003
+ readonly label: "清空选中项";
12004
+ readonly 'x-platforms': readonly ["MOBILEWEB", "PCWEB"];
12005
+ readonly description: "清空选中项";
11988
12006
  }];
11989
12007
  readonly events: readonly [{
11990
12008
  readonly title: "点击表格行";
@@ -18963,6 +18981,8 @@ export declare const components: {
18963
18981
  readonly $schema: "https://comp-public-1303824488.cos.ap-shanghai.myqcloud.com/schema/lcds_component.json";
18964
18982
  readonly data: import("@sinclair/typebox").TObject<{
18965
18983
  link: import("@sinclair/typebox").TString;
18984
+ allow: import("@sinclair/typebox").TString;
18985
+ sandbox: import("@sinclair/typebox").TString;
18966
18986
  }>;
18967
18987
  readonly properties: import("@sinclair/typebox").TObject<{
18968
18988
  link: import("@sinclair/typebox").TString;
@@ -20566,6 +20586,7 @@ declare const _default: {
20566
20586
  value: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{}>, import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{}>>]>>;
20567
20587
  size: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
20568
20588
  isRoot: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
20589
+ mode: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
20569
20590
  }>;
20570
20591
  readonly properties: import("@sinclair/typebox").TObject<{
20571
20592
  value: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{}>, import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{}>>]>>;
@@ -20694,6 +20715,7 @@ declare const _default: {
20694
20715
  readonly $schema: "https://comp-public-1303824488.cos.ap-shanghai.myqcloud.com/schema/lcds_component.json";
20695
20716
  readonly data: import("@sinclair/typebox").TObject<{
20696
20717
  status: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
20718
+ dataSourceName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
20697
20719
  layout: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string> & {
20698
20720
  title: string;
20699
20721
  }>;
@@ -20845,11 +20867,12 @@ declare const _default: {
20845
20867
  readonly __k: "init-name-with-id";
20846
20868
  }, {
20847
20869
  readonly when: "$attached";
20848
- readonly body: "\n[attributes]\nvalue = [{}]\n\":addDefaultValue\"=\"{}\"\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 width: 100%;\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";
20870
+ readonly body: string;
20849
20871
  }, {
20850
20872
  readonly when: "mode";
20851
20873
  readonly to: "$children";
20852
20874
  readonly body: string;
20875
+ readonly remainToTemplateContainer: "WdFormObj *";
20853
20876
  }];
20854
20877
  };
20855
20878
  };
@@ -21091,38 +21114,47 @@ declare const _default: {
21091
21114
  readonly name: "根元素";
21092
21115
  readonly selector: ".wd-modal";
21093
21116
  readonly description: "组件根元素";
21117
+ readonly code: "\n :scope.wd-modal {\n /* 在这里编写CSS 样式 */\n }\n ";
21094
21118
  }, {
21095
21119
  readonly name: "PC 端根元素";
21096
21120
  readonly selector: ".wd-pc-modal";
21097
21121
  readonly description: "可以为 PC 端的编写样式";
21122
+ readonly code: "\n :scope.wd-pc-modal {\n /* 可以为 PC 端的编写样式 */\n }\n ";
21098
21123
  }, {
21099
21124
  readonly name: "H5 端根元素";
21100
21125
  readonly selector: ".wd-h5-modal";
21101
21126
  readonly description: "可以为 H5 端的编写样式";
21127
+ readonly code: "\n :scope.wd-h5-modal {\n /* 在这里编写CSS 样式 */\n }\n ";
21102
21128
  }, {
21103
21129
  readonly name: "小程序 端根元素";
21104
21130
  readonly selector: ".wd-mp-modal";
21105
21131
  readonly description: "可以为 小程序 端的编写样式";
21132
+ readonly code: "\n :scope.wd-mp-modal {\n /* 可以为 小程序 端的编写样式 */\n }\n ";
21106
21133
  }, {
21107
21134
  readonly name: "弹窗遮罩层样式";
21108
21135
  readonly selector: ".wd-modal-mask";
21109
21136
  readonly description: "可以为遮罩层编写样式";
21137
+ readonly code: "\n :scope .wd-modal-mask {\n /* 可以为遮罩层编写样式 */\n background-color: rgba(0, 0, 0, 0.5)\n }\n ";
21110
21138
  }, {
21111
21139
  readonly name: "弹窗主体容器样式";
21112
- readonly selector: ".wd-modal-bd";
21140
+ readonly selector: ".wd-modal-content";
21113
21141
  readonly description: "可以为主体容器编写样式";
21142
+ readonly code: "\n :scope .wd-modal-content {\n /* 可以为主体容器编写样式 */\n inset-inline-start: auto;\n inset-inline-end: 0;\n }\n ";
21114
21143
  }, {
21115
21144
  readonly name: "弹窗标题区样式";
21116
21145
  readonly selector: ".wd-modal-bd__hd";
21117
21146
  readonly description: "可以为标题区编写样式";
21147
+ readonly code: "\n :scope .wd-modal-bd__hd .wd-typography {\n /* 可以为标题区编写样式 */\n font-size: 20px;\n color: #333;\n }\n ";
21118
21148
  }, {
21119
21149
  readonly name: "弹窗内容区样式";
21120
21150
  readonly selector: ".wd-modal-bd__main";
21121
21151
  readonly description: "可以为内容区编写样式";
21152
+ readonly code: "\n :scope .wd-modal-bd__main {\n /* 可以为内容区编写样式 */\n }\n ";
21122
21153
  }, {
21123
21154
  readonly name: "弹窗按钮区样式";
21124
21155
  readonly selector: ".wd-modal-bd__ft";
21125
21156
  readonly description: "可以为按钮区编写样式";
21157
+ readonly code: "\n :scope .wd-modal-bd__ft {\n /* 可以为按钮区编写样式 */\n justify-content: flex-start;\n }\n ";
21126
21158
  }];
21127
21159
  readonly methods: readonly [{
21128
21160
  readonly name: "open";
@@ -26783,6 +26815,7 @@ declare const _default: {
26783
26815
  'data-withBindMeta': boolean;
26784
26816
  };
26785
26817
  description: string;
26818
+ 'x-helper-text': string;
26786
26819
  };
26787
26820
  isSupportApis: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
26788
26821
  selectFieldType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
@@ -31375,6 +31408,11 @@ declare const _default: {
31375
31408
  readonly label: "重置筛选器";
31376
31409
  readonly 'x-platforms': readonly ["MOBILEWEB", "PCWEB"];
31377
31410
  readonly description: "重置筛选器";
31411
+ }, {
31412
+ readonly name: "clearSelection";
31413
+ readonly label: "清空选中项";
31414
+ readonly 'x-platforms': readonly ["MOBILEWEB", "PCWEB"];
31415
+ readonly description: "清空选中项";
31378
31416
  }];
31379
31417
  readonly events: readonly [{
31380
31418
  readonly title: "点击表格行";
@@ -38353,6 +38391,8 @@ declare const _default: {
38353
38391
  readonly $schema: "https://comp-public-1303824488.cos.ap-shanghai.myqcloud.com/schema/lcds_component.json";
38354
38392
  readonly data: import("@sinclair/typebox").TObject<{
38355
38393
  link: import("@sinclair/typebox").TString;
38394
+ allow: import("@sinclair/typebox").TString;
38395
+ sandbox: import("@sinclair/typebox").TString;
38356
38396
  }>;
38357
38397
  readonly properties: import("@sinclair/typebox").TObject<{
38358
38398
  link: import("@sinclair/typebox").TString;
@@ -643,6 +643,8 @@ export interface WdFormItemProps extends CommonPropsType, Pick<ItemDataType, 'la
643
643
  format?: string;
644
644
  /** 字段值 */
645
645
  value?: any;
646
+ /** 嵌套表单类型 */
647
+ mode?: string;
646
648
  }
647
649
  export interface WdInputGroupProps extends Pick<ItemDataType, 'before' | 'after' | 'block' | 'size' | 'readOnly'> {
648
650
  /** 子元素 */
@@ -589,12 +589,14 @@ export const FORM_ITEM_DATA = {
589
589
  'x-category': X_CATEGORY.COMMON,
590
590
  }),
591
591
  _modeInFormArr: Type.StringEnum({
592
- title: '嵌套表单项类型',
592
+ title: '嵌套表单模板',
593
593
  type: 'string',
594
594
  default: 'obj',
595
595
  enum: [
596
- { label: '对象', value: 'obj' },
597
- { label: '字段', value: 'field' },
596
+ { label: '对象数组(卡片)', value: 'obj' },
597
+ { label: '对象数组(表格)', value: 'table' },
598
+ { label: '对象数组(自定义)', value: 'custom' },
599
+ { label: '值数组(表单项)', value: 'field' },
598
600
  ],
599
601
  'x-category': X_CATEGORY.COMMON,
600
602
  'x-component': 'string',
@@ -0,0 +1,4 @@
1
+ export declare const $table_template: string;
2
+ export declare const $attached_template: string;
3
+ export declare const $custom_template: string;
4
+ export declare const $field_template: string;