cnhis-design-vue 3.1.42-beta.1 → 3.1.42-beta.11

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 (138) hide show
  1. package/es/components/annotation-edit/src/AnnotationEdit.js +1 -1
  2. package/es/components/base-search/index.d.ts +0 -22
  3. package/es/components/base-search/src/index.vue.d.ts +0 -22
  4. package/es/components/base-search/src/index.vue.js +1 -1
  5. package/es/components/base-search/style/index.css +1 -1
  6. package/es/components/big-table/index.d.ts +3 -4
  7. package/es/components/big-table/src/BigTable.vue.d.ts +3 -4
  8. package/es/components/big-table/src/BigTable.vue2.js +1 -1
  9. package/es/components/big-table/style/index.css +1 -1
  10. package/es/components/button-print/index.d.ts +4 -4
  11. package/es/components/button-print/src/ButtonPrint.vue.d.ts +4 -4
  12. package/es/components/button-print/src/components/EditFormat.vue.d.ts +4 -4
  13. package/es/components/button-print/src/components/IdentityVerification.vue.d.ts +4 -4
  14. package/es/components/button-print/src/utils/print.js +1 -1
  15. package/es/components/classification/src/index.vue.js +1 -1
  16. package/es/components/config-provider/src/ConfigProvider.js +1 -1
  17. package/es/components/config-provider/src/interface.d.ts +4 -4
  18. package/es/components/date-picker/index.d.ts +5 -13
  19. package/es/components/date-picker/src/DatePicker.vue.d.ts +5 -13
  20. package/es/components/date-picker/src/DatePicker.vue.js +1 -1
  21. package/es/components/fabric-chart/index.d.ts +2 -2
  22. package/es/components/fabric-chart/src/FabricChart.vue.d.ts +2 -2
  23. package/es/components/field-set/index.d.ts +84 -15
  24. package/es/components/field-set/src/FieldSet.vue.d.ts +80 -29
  25. package/es/components/field-set/src/types/index.d.ts +18 -0
  26. package/es/components/field-set/src/types/index.js +1 -0
  27. package/es/components/form-config/index.d.ts +24 -24
  28. package/es/components/form-config/src/FormConfig.vue.d.ts +24 -24
  29. package/es/components/form-config/src/FormConfig.vue.js +1 -1
  30. package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +12 -12
  31. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +12 -12
  32. package/es/components/form-render/index.d.ts +12 -12
  33. package/es/components/form-render/index.js +1 -1
  34. package/es/components/form-render/src/FormRender.vue.d.ts +12 -12
  35. package/es/components/form-render/src/FormRender.vue.js +1 -1
  36. package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +12 -12
  37. package/es/components/form-render/src/components/renderer/complex.d.ts +1 -1
  38. package/es/components/form-render/src/components/renderer/date.js +1 -1
  39. package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue.d.ts +1 -1
  40. package/es/components/form-render/src/components/renderer/lineBar/index.d.ts +1 -1
  41. package/es/components/form-render/src/components/renderer/radio&checkbox.d.ts +2 -2
  42. package/es/components/form-render/src/components/renderer/searchCascade.js +1 -1
  43. package/es/components/form-render/src/components/renderer/select.js +1 -1
  44. package/es/components/form-render/src/hooks/index.d.ts +1 -1
  45. package/es/components/form-render/src/hooks/index.js +1 -1
  46. package/es/components/form-render/src/hooks/useFormAsyncQueue.d.ts +16 -0
  47. package/es/components/form-render/src/hooks/useFormAsyncQueue.js +1 -0
  48. package/es/components/form-render/src/hooks/useFormContext.js +1 -1
  49. package/es/components/form-render/src/types/index.d.ts +2 -1
  50. package/es/components/iho-table/index.d.ts +1523 -0
  51. package/es/components/iho-table/src/IhoTable.vue.d.ts +1523 -0
  52. package/es/components/iho-table/src/IhoTable.vue.js +1 -1
  53. package/es/components/iho-table/src/constants/index.d.ts +2 -1
  54. package/es/components/iho-table/src/constants/index.js +1 -1
  55. package/es/components/iho-table/src/hooks/tapHooks/index.d.ts +1 -1
  56. package/es/components/iho-table/src/hooks/tapHooks/index.js +1 -1
  57. package/es/components/iho-table/src/hooks/tapHooks/useDataHooks.d.ts +3 -1
  58. package/es/components/iho-table/src/hooks/tapHooks/useDataHooks.js +1 -1
  59. package/es/components/iho-table/src/plugins/defaultConfigPlugin/index.js +1 -1
  60. package/es/components/iho-table/src/plugins/filterRenderPlugin/index.js +1 -1
  61. package/es/components/iho-table/src/plugins/index.js +1 -1
  62. package/es/components/iho-table/src/plugins/keyboardEventPlugin/index.js +1 -1
  63. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +5 -13
  64. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +1 -1
  65. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +1 -1
  66. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.d.ts +1 -1
  67. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.js +1 -1
  68. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.d.ts +4 -10
  69. package/es/components/iho-table/src/plugins/varialbleHeightPlugin/index.d.ts +1 -0
  70. package/es/components/iho-table/src/plugins/varialbleHeightPlugin/index.js +1 -0
  71. package/es/components/iho-table/src/types/index.d.ts +1 -0
  72. package/es/components/iho-table/src/types/pluginType.d.ts +3 -1
  73. package/es/components/iho-table/src/utils/index.d.ts +1 -0
  74. package/es/components/iho-table/src/utils/index.js +1 -1
  75. package/es/components/iho-table/style/index.css +1 -1
  76. package/es/components/index.css +1 -1
  77. package/es/components/index.d.ts +1 -0
  78. package/es/components/index.js +1 -1
  79. package/es/components/info-header/index.d.ts +28 -28
  80. package/es/components/info-header/src/InfoHeader.vue.d.ts +28 -28
  81. package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +3 -3
  82. package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +3 -3
  83. package/es/components/info-header/src/components/infoDescription/HiddenContent.vue.d.ts +2 -2
  84. package/es/components/info-header/src/components/infoDescription/InfoEllipsis.vue.d.ts +1 -1
  85. package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +15 -15
  86. package/es/components/info-header/src/components/infoDescription/index.vue.js +1 -1
  87. package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +12 -12
  88. package/es/components/info-header/style/index.css +1 -1
  89. package/es/components/keyboard/index.d.ts +1 -1
  90. package/es/components/keyboard/src/Keyboard.vue.d.ts +1 -1
  91. package/es/components/keyboard/src/Keyboard.vue.js +1 -1
  92. package/es/components/keyboard/src/constants/index.js +1 -1
  93. package/es/components/keyboard/style/index.css +1 -1
  94. package/es/components/scale-view/src/components/formitem/standard-modal.d.ts +1 -1
  95. package/es/components/select-person/index.d.ts +1 -1
  96. package/es/components/select-person/src/SelectPerson.vue.d.ts +1 -1
  97. package/es/components/shortcut-setter/index.d.ts +12 -12
  98. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +12 -12
  99. package/es/components/steps-wheel/src/StepsWheel.vue.js +1 -1
  100. package/es/components/steps-wheel/src/constants/index.js +1 -1
  101. package/es/components/steps-wheel/style/index.css +1 -1
  102. package/es/components/table-filter/index.d.ts +0 -1
  103. package/es/components/table-filter/index.js +1 -1
  104. package/es/components/table-filter/src/components/classify-filter/index.vue.js +1 -1
  105. package/es/components/table-filter/src/components/render-widget/components/CheckboxGroup.vue.d.ts +1 -1
  106. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +1 -1
  107. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +1 -1
  108. package/es/components/table-filter/src/hooks/useMixins.js +1 -1
  109. package/es/components/table-filter/src/tool/baseOptions.d.ts +0 -10
  110. package/es/components/table-filter/src/tool/baseOptions.js +1 -1
  111. package/es/components/table-filter/src/tool/generateDefOptions.d.ts +0 -7
  112. package/es/components/table-filter/src/tool/generateDefOptions.js +1 -1
  113. package/es/components/table-filter/src/types/index.d.ts +0 -74
  114. package/es/components/time-picker/index.d.ts +4 -10
  115. package/es/components/time-picker/src/TimePicker.vue.d.ts +4 -10
  116. package/es/components/time-picker/src/TimePicker.vue.js +1 -1
  117. package/es/shared/hooks/index.d.ts +3 -0
  118. package/es/shared/hooks/index.js +1 -0
  119. package/es/{components/form-render/src → shared}/hooks/useAsyncQueue.d.ts +0 -14
  120. package/es/shared/hooks/useAsyncQueue.js +1 -0
  121. package/es/shared/hooks/useDateTime.d.ts +6 -0
  122. package/es/shared/hooks/useDateTime.js +1 -0
  123. package/package.json +2 -2
  124. package/es/components/base-search/src/directive/resize.d.ts +0 -4
  125. package/es/components/base-search/src/directive/resize.js +0 -1
  126. package/es/components/base-search/src/tool/resizeSensor.d.ts +0 -16
  127. package/es/components/base-search/src/tool/resizeSensor.js +0 -1
  128. package/es/components/form-render/src/hooks/useAsyncQueue.js +0 -1
  129. package/es/components/table-filter/src/hooks/export.d.ts +0 -1
  130. package/es/components/table-filter/src/hooks/export.js +0 -1
  131. package/es/components/table-filter/src/tool/getWidgetType.d.ts +0 -1
  132. package/es/components/table-filter/src/tool/getWidgetType.js +0 -1
  133. package/es/shared/mixins/index.d.ts +0 -1
  134. package/es/shared/mixins/index.js +0 -1
  135. package/es/shared/utils/colorLog.d.ts +0 -31
  136. package/es/shared/utils/colorLog.js +0 -1
  137. /package/es/shared/{mixins → hooks}/useTheme.d.ts +0 -0
  138. /package/es/shared/{mixins → hooks}/useTheme.js +0 -0
@@ -917,7 +917,7 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
917
917
  NUpload: any;
918
918
  NUploadDragger: import("vue").DefineComponent<{}, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
919
919
  NP: import("vue").DefineComponent<{
920
- depth: import("vue").PropType<2 | 1 | 3 | "1" | "2" | "3">;
920
+ depth: import("vue").PropType<2 | 1 | "1" | "2" | 3 | "3">;
921
921
  theme: import("vue").PropType<import("naive-ui/es/_mixins").Theme<"Typography", {
922
922
  aTextColor: string;
923
923
  blockquoteTextColor: string;
@@ -1128,7 +1128,7 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
1128
1128
  themeClass: import("vue").Ref<string> | undefined;
1129
1129
  onRender: (() => void) | undefined;
1130
1130
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
1131
- depth: import("vue").PropType<2 | 1 | 3 | "1" | "2" | "3">;
1131
+ depth: import("vue").PropType<2 | 1 | "1" | "2" | 3 | "3">;
1132
1132
  theme: import("vue").PropType<import("naive-ui/es/_mixins").Theme<"Typography", {
1133
1133
  aTextColor: string;
1134
1134
  blockquoteTextColor: string;
@@ -1339,7 +1339,7 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
1339
1339
  readonly strong: BooleanConstructor;
1340
1340
  readonly italic: BooleanConstructor;
1341
1341
  readonly underline: BooleanConstructor;
1342
- readonly depth: import("vue").PropType<2 | 1 | 3 | "1" | "2" | "3">;
1342
+ readonly depth: import("vue").PropType<2 | 1 | "1" | "2" | 3 | "3">;
1343
1343
  readonly tag: StringConstructor;
1344
1344
  readonly as: {
1345
1345
  readonly type: StringConstructor;
@@ -1569,7 +1569,7 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
1569
1569
  readonly strong: BooleanConstructor;
1570
1570
  readonly italic: BooleanConstructor;
1571
1571
  readonly underline: BooleanConstructor;
1572
- readonly depth: import("vue").PropType<2 | 1 | 3 | "1" | "2" | "3">;
1572
+ readonly depth: import("vue").PropType<2 | 1 | "1" | "2" | 3 | "3">;
1573
1573
  readonly tag: StringConstructor;
1574
1574
  readonly as: {
1575
1575
  readonly type: StringConstructor;
@@ -925,7 +925,7 @@ declare const _default: import("vue").DefineComponent<{
925
925
  NUpload: any;
926
926
  NUploadDragger: import("vue").DefineComponent<{}, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
927
927
  NP: import("vue").DefineComponent<{
928
- depth: PropType<2 | 1 | 3 | "1" | "2" | "3">;
928
+ depth: PropType<2 | 1 | "1" | "2" | 3 | "3">;
929
929
  theme: PropType<import("naive-ui/es/_mixins").Theme<"Typography", {
930
930
  aTextColor: string;
931
931
  blockquoteTextColor: string;
@@ -1136,7 +1136,7 @@ declare const _default: import("vue").DefineComponent<{
1136
1136
  themeClass: import("vue").Ref<string> | undefined;
1137
1137
  onRender: (() => void) | undefined;
1138
1138
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
1139
- depth: PropType<2 | 1 | 3 | "1" | "2" | "3">;
1139
+ depth: PropType<2 | 1 | "1" | "2" | 3 | "3">;
1140
1140
  theme: PropType<import("naive-ui/es/_mixins").Theme<"Typography", {
1141
1141
  aTextColor: string;
1142
1142
  blockquoteTextColor: string;
@@ -1347,7 +1347,7 @@ declare const _default: import("vue").DefineComponent<{
1347
1347
  readonly strong: BooleanConstructor;
1348
1348
  readonly italic: BooleanConstructor;
1349
1349
  readonly underline: BooleanConstructor;
1350
- readonly depth: PropType<2 | 1 | 3 | "1" | "2" | "3">;
1350
+ readonly depth: PropType<2 | 1 | "1" | "2" | 3 | "3">;
1351
1351
  readonly tag: StringConstructor;
1352
1352
  readonly as: {
1353
1353
  readonly type: StringConstructor;
@@ -1577,7 +1577,7 @@ declare const _default: import("vue").DefineComponent<{
1577
1577
  readonly strong: BooleanConstructor;
1578
1578
  readonly italic: BooleanConstructor;
1579
1579
  readonly underline: BooleanConstructor;
1580
- readonly depth: PropType<2 | 1 | 3 | "1" | "2" | "3">;
1580
+ readonly depth: PropType<2 | 1 | "1" | "2" | 3 | "3">;
1581
1581
  readonly tag: StringConstructor;
1582
1582
  readonly as: {
1583
1583
  readonly type: StringConstructor;
@@ -363,7 +363,7 @@ declare const _default: import("vue").DefineComponent<{
363
363
  NUpload: any;
364
364
  NUploadDragger: import("vue").DefineComponent<{}, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
365
365
  NP: import("vue").DefineComponent<{
366
- depth: import("vue").PropType<2 | 1 | 3 | "1" | "2" | "3">;
366
+ depth: import("vue").PropType<2 | 1 | "1" | "2" | 3 | "3">;
367
367
  theme: import("vue").PropType<import("naive-ui/es/_mixins").Theme<"Typography", {
368
368
  aTextColor: string;
369
369
  blockquoteTextColor: string;
@@ -574,7 +574,7 @@ declare const _default: import("vue").DefineComponent<{
574
574
  themeClass: import("vue").Ref<string> | undefined;
575
575
  onRender: (() => void) | undefined;
576
576
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
577
- depth: import("vue").PropType<2 | 1 | 3 | "1" | "2" | "3">;
577
+ depth: import("vue").PropType<2 | 1 | "1" | "2" | 3 | "3">;
578
578
  theme: import("vue").PropType<import("naive-ui/es/_mixins").Theme<"Typography", {
579
579
  aTextColor: string;
580
580
  blockquoteTextColor: string;
@@ -785,7 +785,7 @@ declare const _default: import("vue").DefineComponent<{
785
785
  readonly strong: BooleanConstructor;
786
786
  readonly italic: BooleanConstructor;
787
787
  readonly underline: BooleanConstructor;
788
- readonly depth: import("vue").PropType<2 | 1 | 3 | "1" | "2" | "3">;
788
+ readonly depth: import("vue").PropType<2 | 1 | "1" | "2" | 3 | "3">;
789
789
  readonly tag: StringConstructor;
790
790
  readonly as: {
791
791
  readonly type: StringConstructor;
@@ -1015,7 +1015,7 @@ declare const _default: import("vue").DefineComponent<{
1015
1015
  readonly strong: BooleanConstructor;
1016
1016
  readonly italic: BooleanConstructor;
1017
1017
  readonly underline: BooleanConstructor;
1018
- readonly depth: import("vue").PropType<2 | 1 | 3 | "1" | "2" | "3">;
1018
+ readonly depth: import("vue").PropType<2 | 1 | "1" | "2" | 3 | "3">;
1019
1019
  readonly tag: StringConstructor;
1020
1020
  readonly as: {
1021
1021
  readonly type: StringConstructor;
@@ -720,7 +720,7 @@ declare const _default: import("vue").DefineComponent<{
720
720
  NUpload: any;
721
721
  NUploadDragger: import("vue").DefineComponent<{}, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
722
722
  NP: import("vue").DefineComponent<{
723
- depth: import("vue").PropType<2 | 1 | 3 | "1" | "2" | "3">;
723
+ depth: import("vue").PropType<2 | 1 | "1" | "2" | 3 | "3">;
724
724
  theme: import("vue").PropType<import("naive-ui/es/_mixins").Theme<"Typography", {
725
725
  aTextColor: string;
726
726
  blockquoteTextColor: string;
@@ -931,7 +931,7 @@ declare const _default: import("vue").DefineComponent<{
931
931
  themeClass: import("vue").Ref<string> | undefined;
932
932
  onRender: (() => void) | undefined;
933
933
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
934
- depth: import("vue").PropType<2 | 1 | 3 | "1" | "2" | "3">;
934
+ depth: import("vue").PropType<2 | 1 | "1" | "2" | 3 | "3">;
935
935
  theme: import("vue").PropType<import("naive-ui/es/_mixins").Theme<"Typography", {
936
936
  aTextColor: string;
937
937
  blockquoteTextColor: string;
@@ -1142,7 +1142,7 @@ declare const _default: import("vue").DefineComponent<{
1142
1142
  readonly strong: BooleanConstructor;
1143
1143
  readonly italic: BooleanConstructor;
1144
1144
  readonly underline: BooleanConstructor;
1145
- readonly depth: import("vue").PropType<2 | 1 | 3 | "1" | "2" | "3">;
1145
+ readonly depth: import("vue").PropType<2 | 1 | "1" | "2" | 3 | "3">;
1146
1146
  readonly tag: StringConstructor;
1147
1147
  readonly as: {
1148
1148
  readonly type: StringConstructor;
@@ -1372,7 +1372,7 @@ declare const _default: import("vue").DefineComponent<{
1372
1372
  readonly strong: BooleanConstructor;
1373
1373
  readonly italic: BooleanConstructor;
1374
1374
  readonly underline: BooleanConstructor;
1375
- readonly depth: import("vue").PropType<2 | 1 | 3 | "1" | "2" | "3">;
1375
+ readonly depth: import("vue").PropType<2 | 1 | "1" | "2" | 3 | "3">;
1376
1376
  readonly tag: StringConstructor;
1377
1377
  readonly as: {
1378
1378
  readonly type: StringConstructor;
@@ -1 +1 @@
1
- import t from"axios";import{isArray as e}from"lodash-es";import{IdentityVerificationDialog as i,PreviewDialog as n}from"./dialog.js";import{getFileUrl as s,useBrowserPrint as r,isIReport as a}from"./browserPrint.js";import{getCurrentInstance as o}from"vue";import{format as l}from"date-fns";const d=t.create({timeout:1e3,withCredentials:!1}),h=`${window.location.protocol}//${window.location.host}`,c=`${h}/fdp-api/print/assembly/printIReport`,p=`${h}/bi-api/reprot/print/open/client/getRemote`,u=`${h}/printService/file`;let m=null;class w{constructor(){var t;if(this.webview=null,this.dialog=new i,this.dialogPreview=new n,this.instance=null,this.downloadPath="",this.printOrigin="http://127.0.0.1:11111",this.isRemote=!1,this.messageHandlerQueue=[],m)return m;m=this;const e=window;this.webview=null==(t=e.chrome)?void 0:t.webview,this.webview&&(this.currentMessageHandler=this.messageHandler.bind(this),this.webview.addEventListener("message",this.currentMessageHandler),this.postMessage({exec:"config",data:""}))}messageHandler(t){var e;const i=this.messageHandlerQueue.shift();if(!i)return console.log("当前回执",t,"没有可用的handler");const{resolve:n,reject:s}=i;try{const{exec:i}=JSON.parse(t.data);"config"===i&&(this.downloadPath=(null==(e=JSON.parse(t.data).res)?void 0:e.downloadpath)||""),console.log(t),n(JSON.parse(t.data).res)}catch(t){s(t)}}async postMessage(t){return this.webview?new Promise(((e,i)=>{this.messageHandlerQueue.push({resolve:e,reject:i}),this.webview.postMessage(t)})):Promise.reject()}destroy(){this.webview&&this.currentMessageHandler&&(this.webview.removeEventListener("message",this.currentMessageHandler),this.currentMessageHandler=void 0)}show(...t){return this.dialog.show(...t)}showPreview(...t){return this.dialogPreview.show(...t)}_testConnection(){return this.webview?Promise.resolve(!0):new Promise((t=>{d({url:`${this.printOrigin}/test`,method:"get",withCredentials:!1,params:{inputdata:{result:"success"}}}).then((({data:e})=>{"success"===e.result?t(!0):t(!1)})).catch((e=>{t(!1)}))}))}_queryServicesPrint(t){return this.webview?this.postMessage({exec:"print",data:{inputData:t}}):d({url:this.printOrigin+"/services/print",method:"get",params:{inputData:JSON.stringify(t)}}).then((({data:t})=>t))}_callPrintWithFile(t){const e={cmdid:"7",flag:"1"},i={inputData:JSON.stringify(Object.assign({},e,t))};return this.webview?this.postMessage({exec:"print",data:n(i)}):d({url:this.printOrigin+"/PrintLocal",method:"post",data:i,transformRequest:[n]}).then((({data:t})=>t));function n(t){let e="";for(const i in t)e+=encodeURIComponent(i)+"="+encodeURIComponent(t[i])+"&";return e=e.slice(0,-1),e}}_handleResult(t,e){if("success"!==t.result){const i={type:"printError",message:t.message||t.Message,result:t.result,errinfo:t.errinfo};return null==e||e(i),!1}return t}_handleResultTest(t,e){return!!t||(console.log("notInstalledApp"),null==e||e({type:"notInstalledApp",message:"请打开打印服务器插件"}),!1)}async _handleEventQueryPrintData(t,e,i,n){const s={templateId:t,formatId:e,params:i,cmdid:"7"},r=await this._queryServicesPrint(s);return this._handleQueryPrintDataResult(r,e,n)}_handleQueryPrintDataResult(t,e,i){if(!(null==t?void 0:t.file)){try{const e=t.message||t.Message;console.log(e),null==i||i({type:"queryPrintDataFailure",message:e})}catch(t){console.log(t)}return!1}return{file:t.file,printerName:t.defprinter,pageCount:t.pagecount,formatId:e}}async _handleEventDirect({templateId:t,formatId:e,params:i,cmdid:n,print:s,printdlgshow:r="1",nobillnode:a="1",btnprint:o="1"}){const d={templateId:t,formatId:e,params:i,cmdid:n,nobillnode:a,printdlgshow:r,btnprint:o};if(s){try{s=JSON.parse(s)}catch(t){}d.print=s}else if(this.isRemote){const t=l(new Date,"yyyyMMddHHmmss");d.print={print:"1",type:"1",zip:"0",filename:`F:\\WorkSpace\\crmweb\\web\\${t}\\${t}`}}return await this._queryServicesPrint(d)}async _handleEventEditFormat({templateId:t,formatId:e="",params:i="",token:n}){const s={};let r={};try{r=Object.assign({},s,JSON.parse(i))}catch(t){r=s}const a={templateId:t,formatId:e,cmdid:"9",token:n,params:JSON.stringify(r)};return await this._queryServicesPrint(a)}async _queryProxyOrigin(){if(this.isRemote)return;const{data:t}=await d({method:"get",url:p})||{},{map:e={}}=t;e.isRemote&&(this.printOrigin=h+"/printService",this.isRemote=!0)}async _queryPrintFile(t,e=""){const{data:i}=await d({method:"post",url:c,responseType:"blob",params:{formatId:t.split("_")[1],params:e}})||{};return i}async _browserPrint(t,e){if(this.isRemote){const{filedir:i}=t,n=JSON.parse(i)[0].replace(/\\/g,"/").split("/"),a=n[n.length-2],o=n[n.length-1],l=await s(`${u}/${a}/${o}`),d=r(null,e,l);if("preview"===e)return d}}async preview({templateId:t,formatId:e,params:i="",btnprint:n},s,l){if(a(e)){const t=await this._queryPrintFile(e,i);if(!t)return null==l?void 0:l("获取文件失败!");const n=r(t,"preview");return this.instance||(this.instance=o()),this.showPreview(this.instance,n),void(null==s||s({file:t}))}await this._queryProxyOrigin();const d=await this._testConnection();if(!this._handleResultTest(d,l))return!1;const h=await this._handleEventDirect({templateId:t,formatId:e,params:i,cmdid:this.isRemote?"7":"8",btnprint:n});if(!h)return!1;const c=this._handleResult(h,l);if(!c)return!1;if(this.isRemote){const t=await this._browserPrint(c,"preview");this.instance||(this.instance=o()),this.showPreview(this.instance,t)}s&&s(c)}async printDirect({templateId:t,formatId:e,params:i="",print:n,printdlgshow:s,nobillnode:o,isDownloadFile:l=!0},d,h,c="printDirect"){if(a(e)){const t=await this._queryPrintFile(e,i);return t?(r(t,c),void(null==d||d({file:t}))):null==h?void 0:h("获取文件失败!")}await this._queryProxyOrigin();const p=await this._testConnection();if(!this._handleResultTest(p,h))return!1;const u=await this._handleEventDirect({templateId:t,formatId:e,params:i,cmdid:"7",print:n,printdlgshow:s,nobillnode:o});if(!u)return!1;const m=this._handleResult(u,h);if(!m)return!1;l&&["downloadPDF"].includes(c)&&await this._browserPrint(m,c),null==d||d(m)}_downloadPDF(t){return this.webview?this.postMessage({exec:"pdf",data:{file:t}}):d.get(this.printOrigin+"/download",{params:{inputData:t}}).then((({data:t})=>t))}downloadPDF(t,i,n){this.webview&&this.downloadPath&&(t.print.filename=this.downloadPath.replace(/\\/g,"/")),this.printDirect(t,(async s=>{if(s||n(null),a(t.formatId))return i(s);const r=this,o=await async function(t){const i=[],n=JSON.parse(t);if(!e(n))return await r._downloadPDF("");if(1===n.length)return await r._downloadPDF(n[0]||"");for(let t=0,e=n.length;t<e;t++)i.push(await r._downloadPDF(n[t]||""));return i}(s.filedir);i(o,s)}),(t=>n(t)),"downloadPDF")}async print({templateId:t,formatId:e,params:i=""},n,s){const r=await this._testConnection();if(!this._handleResultTest(r,s))return!1;const a=await this.queryPrintData({templateId:t,formatId:e,params:i},void 0,s);if(!a)return!1;const o=this.printFileData({formatId:e,file:a.file,printerName:a.printerName},void 0,s);if(!o)return!1;n&&n(o)}async queryPrintData({templateId:t,formatId:e,params:i=""},n,s){const r=await this._testConnection();if(!this._handleResultTest(r,s))return!1;const a=await this._handleEventQueryPrintData(t,e,i,s);return!!a&&(n&&n(a),a)}async printFileData({formatId:t,file:e,printerName:i="Default"},n,s){const r=await this._testConnection();if(!this._handleResultTest(r,s))return!1;const a=await this._callPrintWithFile({formatId:t,printname:i,file:e}),o=this._handleResult(a,s);return!!o&&(n&&n(o),o)}async editPrintFormat({templateId:t,formatId:e,params:i,token:n},s,r){const a=await this._testConnection();if(!this._handleResultTest(a,r))return!1;const o=await this._handleEventEditFormat({templateId:t,formatId:e,params:i,token:n}),l=this._handleResult(o,r);if(!l)return!1;s&&s(l)}async addPrintFormat({templateId:t,params:e,token:i},n,s){const r=await this._testConnection();if(!this._handleResultTest(r,s))return!1;const a=await this._handleEventEditFormat({templateId:t,params:e,token:i}),o=this._handleResult(a,s);if(!o)return!1;n&&n(o)}}export{w as Print};
1
+ import t from"axios";import{isArray as e}from"lodash-es";import{IdentityVerificationDialog as i,PreviewDialog as n}from"./dialog.js";import{getFileUrl as s,useBrowserPrint as r,isIReport as a}from"./browserPrint.js";import{getCurrentInstance as o}from"vue";import{format as l}from"date-fns";const d=t.create({timeout:1e3,withCredentials:!1}),h=`${window.location.protocol}//${window.location.host}`,c=`${h}/fdp-api/print/assembly/printIReport`,p=`${h}/bi-api/reprot/print/open/client/getRemote`,u=`${h}/printService/file`;let m=null;class w{constructor(){var t;if(this.webview=null,this.dialog=new i,this.dialogPreview=new n,this.instance=null,this.downloadPath="",this.printOrigin="http://127.0.0.1:11111",this.isRemote=!1,this.messageHandlerQueue=[],m)return m;m=this;const e=window;this.webview=null==(t=e.chrome)?void 0:t.webview,this.webview&&(this.currentMessageHandler=this.messageHandler.bind(this),this.webview.addEventListener("message",this.currentMessageHandler),this.postMessage({exec:"config",data:""}))}messageHandler(t){var e;const i=this.messageHandlerQueue.shift();if(!i)return console.log("当前回执",t,"没有可用的handler");const{resolve:n,reject:s}=i;try{const{exec:i}=JSON.parse(t.data);"config"===i&&(this.downloadPath=(null==(e=JSON.parse(t.data).res)?void 0:e.downloadpath)||""),console.log(t),n(JSON.parse(t.data).res)}catch(t){s(t)}}async postMessage(t){return this.webview?new Promise(((e,i)=>{this.messageHandlerQueue.push({resolve:e,reject:i}),this.webview.postMessage(t)})):Promise.reject()}destroy(){this.webview&&this.currentMessageHandler&&(this.webview.removeEventListener("message",this.currentMessageHandler),this.currentMessageHandler=void 0)}show(...t){return this.dialog.show(...t)}showPreview(...t){return this.dialogPreview.show(...t)}_testConnection(){return this.webview?Promise.resolve(!0):new Promise((t=>{d({url:`${this.printOrigin}/test`,method:"get",withCredentials:!1,params:{inputdata:{result:"success"}}}).then((({data:e})=>{"success"===e.result?t(!0):t(!1)})).catch((e=>{t(!1)}))}))}_queryServicesPrint(e){return this.webview?this.postMessage({exec:"print",data:{inputData:e}}):t({url:this.printOrigin+"/services/print",method:"get",params:{inputData:JSON.stringify(e)}}).then((({data:t})=>t))}_callPrintWithFile(t){const e={cmdid:"7",flag:"1"},i={inputData:JSON.stringify(Object.assign({},e,t))};return this.webview?this.postMessage({exec:"print",data:n(i)}):d({url:this.printOrigin+"/PrintLocal",method:"post",data:i,transformRequest:[n]}).then((({data:t})=>t));function n(t){let e="";for(const i in t)e+=encodeURIComponent(i)+"="+encodeURIComponent(t[i])+"&";return e=e.slice(0,-1),e}}_handleResult(t,e){if("success"!==t.result){const i={type:"printError",message:t.message||t.Message,result:t.result,errinfo:t.errinfo};return null==e||e(i),!1}return t}_handleResultTest(t,e){return!!t||(console.log("notInstalledApp"),null==e||e({type:"notInstalledApp",message:"请打开打印服务器插件"}),!1)}async _handleEventQueryPrintData(t,e,i,n){const s={templateId:t,formatId:e,params:i,cmdid:"7"},r=await this._queryServicesPrint(s);return this._handleQueryPrintDataResult(r,e,n)}_handleQueryPrintDataResult(t,e,i){if(!(null==t?void 0:t.file)){try{const e=t.message||t.Message;console.log(e),null==i||i({type:"queryPrintDataFailure",message:e})}catch(t){console.log(t)}return!1}return{file:t.file,printerName:t.defprinter,pageCount:t.pagecount,formatId:e}}async _handleEventDirect({templateId:t,formatId:e,params:i,cmdid:n,print:s,printdlgshow:r="1",nobillnode:a="1",btnprint:o="1"}){const d={templateId:t,formatId:e,params:i,cmdid:n,nobillnode:a,printdlgshow:r,btnprint:o};if(s){try{s=JSON.parse(s)}catch(t){}d.print=s}else if(this.isRemote){const t=l(new Date,"yyyyMMddHHmmss");d.print={print:"1",type:"1",zip:"0",filename:`F:\\WorkSpace\\crmweb\\web\\${t}\\${t}`}}return await this._queryServicesPrint(d)}async _handleEventEditFormat({templateId:t,formatId:e="",params:i="",token:n}){const s={};let r={};try{r=Object.assign({},s,JSON.parse(i))}catch(t){r=s}const a={templateId:t,formatId:e,cmdid:"9",token:n,params:JSON.stringify(r)};return await this._queryServicesPrint(a)}async _queryProxyOrigin(){if(this.isRemote)return;const{data:t}=await d({method:"get",url:p})||{},{map:e={}}=t;e.isRemote&&(this.printOrigin=h+"/printService",this.isRemote=!0)}async _queryPrintFile(t,e=""){const{data:i}=await d({method:"post",url:c,responseType:"blob",params:{formatId:t.split("_")[1],params:e}})||{};return i}async _browserPrint(t,e){if(this.isRemote){const{filedir:i}=t,n=JSON.parse(i)[0].replace(/\\/g,"/").split("/"),a=n[n.length-2],o=n[n.length-1],l=await s(`${u}/${a}/${o}`),d=r(null,e,l);if("preview"===e)return d}}async preview({templateId:t,formatId:e,params:i="",btnprint:n},s,l){if(a(e)){const t=await this._queryPrintFile(e,i);if(!t)return null==l?void 0:l("获取文件失败!");const n=r(t,"preview");return this.instance||(this.instance=o()),this.showPreview(this.instance,n),void(null==s||s({file:t}))}await this._queryProxyOrigin();const d=await this._testConnection();if(!this._handleResultTest(d,l))return!1;const h=await this._handleEventDirect({templateId:t,formatId:e,params:i,cmdid:this.isRemote?"7":"8",btnprint:n});if(!h)return!1;const c=this._handleResult(h,l);if(!c)return!1;if(this.isRemote){const t=await this._browserPrint(c,"preview");this.instance||(this.instance=o()),this.showPreview(this.instance,t)}s&&s(c)}async printDirect({templateId:t,formatId:e,params:i="",print:n,printdlgshow:s,nobillnode:o,isDownloadFile:l=!0},d,h,c="printDirect"){if(a(e)){const t=await this._queryPrintFile(e,i);return t?(r(t,c),void(null==d||d({file:t}))):null==h?void 0:h("获取文件失败!")}await this._queryProxyOrigin();const p=await this._testConnection();if(!this._handleResultTest(p,h))return!1;const u=await this._handleEventDirect({templateId:t,formatId:e,params:i,cmdid:"7",print:n,printdlgshow:s,nobillnode:o});if(!u)return!1;const m=this._handleResult(u,h);if(!m)return!1;l&&["downloadPDF"].includes(c)&&await this._browserPrint(m,c),null==d||d(m)}_downloadPDF(t){return this.webview?this.postMessage({exec:"pdf",data:{file:t}}):d.get(this.printOrigin+"/download",{params:{inputData:t}}).then((({data:t})=>t))}downloadPDF(t,i,n){this.webview&&this.downloadPath&&(t.print.filename=this.downloadPath.replace(/\\/g,"/")),this.printDirect(t,(async s=>{if(s||n(null),a(t.formatId))return i(s);const r=this,o=await async function(t){const i=[],n=JSON.parse(t);if(!e(n))return await r._downloadPDF("");if(1===n.length)return await r._downloadPDF(n[0]||"");for(let t=0,e=n.length;t<e;t++)i.push(await r._downloadPDF(n[t]||""));return i}(s.filedir);i(o,s)}),(t=>n(t)),"downloadPDF")}async print({templateId:t,formatId:e,params:i=""},n,s){const r=await this._testConnection();if(!this._handleResultTest(r,s))return!1;const a=await this.queryPrintData({templateId:t,formatId:e,params:i},void 0,s);if(!a)return!1;const o=this.printFileData({formatId:e,file:a.file,printerName:a.printerName},void 0,s);if(!o)return!1;n&&n(o)}async queryPrintData({templateId:t,formatId:e,params:i=""},n,s){const r=await this._testConnection();if(!this._handleResultTest(r,s))return!1;const a=await this._handleEventQueryPrintData(t,e,i,s);return!!a&&(n&&n(a),a)}async printFileData({formatId:t,file:e,printerName:i="Default"},n,s){const r=await this._testConnection();if(!this._handleResultTest(r,s))return!1;const a=await this._callPrintWithFile({formatId:t,printname:i,file:e}),o=this._handleResult(a,s);return!!o&&(n&&n(o),o)}async editPrintFormat({templateId:t,formatId:e,params:i,token:n},s,r){const a=await this._testConnection();if(!this._handleResultTest(a,r))return!1;const o=await this._handleEventEditFormat({templateId:t,formatId:e,params:i,token:n}),l=this._handleResult(o,r);if(!l)return!1;s&&s(l)}async addPrintFormat({templateId:t,params:e,token:i},n,s){const r=await this._testConnection();if(!this._handleResultTest(r,s))return!1;const a=await this._handleEventEditFormat({templateId:t,params:e,token:i}),o=this._handleResult(a,s);if(!o)return!1;n&&n(o)}}export{w as Print};
@@ -1 +1 @@
1
- import{defineComponent as e,useAttrs as i,ref as n,provide as l,computed as t,onMounted as a,nextTick as o,watch as s,openBlock as d,createElementBlock as c,normalizeClass as r,unref as h,normalizeStyle as u,withDirectives as f,createVNode as p,createTextVNode as m,toDisplayString as g,createCommentVNode as v,createElementVNode as C,Fragment as y,renderList as k,createBlock as S,withCtx as b}from"vue";import{useMessage as x,NIcon as O,NTooltip as _}from"naive-ui";import{Repeat as w,SettingsOutline as I,ChevronDown as L,ChevronForward as N,Checkmark as z,Close as j,ChevronUp as B}from"@vicons/ionicons5";import P from"./components/set-classification/index.vue.js";import J from"./directive/flexibleResize.js";import{root_isShowResetButton as M}from"./const/index.js";import A from"../../table-filter/src/hooks/useMixins.js";import E from"../../table-filter/src/hooks/useAdvanced.js";import T from"../../../_virtual/plugin-vue_export-helper.js";const R={key:0,class:"header"},F={class:"tree"},W=["onClick"],q=["onClick"],G=["onClick"],Q={class:"child-item-name"},$={key:1,class:"tree-type-footer"},D={class:"selected-num"},V=C("i",{class:"iconfont-table-filter icon-table-filter-menzhenyishengzhananniushanchu2"},null,-1),H={key:0,class:"tile-type classify-1"},K={key:0,class:"header"},U={class:"right-setting"},X=["onClick"],Y={class:"parent ellips"},Z={class:"children"},ee=["onClick"],ie={key:1,class:"selected-list"},ne={class:"selected-num"},le=C("i",{class:"iconfont-table-filter icon-table-filter-menzhenyishengzhananniushanchu2"},null,-1),te={class:"name"},ae={class:"name"},oe={key:0,class:"main-wrapper"},se=["onClick"],de={class:"tree-footer"},ce=["onClick"],re=["onClick"],he={key:0,class:"select-type-footer"},ue={class:"selected-num"},fe=C("i",{class:"iconfont-table-filter icon-table-filter-menzhenyishengzhananniushanchu2"},null,-1);var pe=T(e({__name:"index",props:{tableId:{type:String,default:""},searchFieldList:{type:Array,default:()=>[]},conditionMap:{type:Object,default:()=>{}},conditionSid:{type:Array,default:()=>["all_data"]},curClassificationIndex:{type:Number,default:0},curClassificationWidth:{type:Number},hideConditionChangeBtn:{type:Number,default:0},hideConditionChangeSetting:{type:Number,default:0},hideClearConditionChange:{type:Number,default:1},isShowResetButton:{type:Boolean,default:!0},filterApiConfig:{type:Object,default:()=>({})}},emits:["changeSearch","setClassificationIndex","getQuickSearchListObj"],setup(e,{emit:T}){const pe=e,{handleGetConfigApi:me}=A(),{transformClassifyChild:ge}=E(),ve=i(),Ce=x(),ye=n(null);let ke=n(150),Se=n(!1),be=n([]),xe=n([]),Oe=n([]),_e=n(2),we=n({name:"全部数据",sid:"all_data"}),Ie=n([]),Le=n(""),Ne=n(!1),ze=n("全部数据");l(M,n(pe.isShowResetButton));let je=t((()=>0===_e.value?{marginRight:"8px"}:2===_e.value?{display:"inline-block"}:{})),Be=t((()=>{let e=xe.value.filter((e=>-1!==pe.conditionSid.indexOf(e.sid)));if(-1!==pe.conditionSid.indexOf("all_data"))return"全部数据";{let i=[];return e.map((e=>{i.push(e.name)})),i.join(",")}})),Pe=t((()=>function(e){let i=0===e.digital?"(0)":e.digital?`(${e.digital})`:"";const{name:n,isPublic:l}=e;return Ke(n,l)+i}));function Je(e){e.open?e.open=!1:e.open=!0}function Me(e,i,n){ze.value=e.name;let l=function(e){let i=[];return be.value.forEach((n=>{n.children?n.children.forEach((n=>{-1!==e.indexOf(n.sid)?(n.selected=!0,i.push(n)):n.selected=!1})):-1!==e.indexOf(n.sid)?(n.selected=!0,i.push(n)):n.selected=!1})),i}(function(e,i,n){let l=JSON.parse(JSON.stringify(i));l="all_data"===e||-1!==l.indexOf(e)?["all_data"]:[e];return l}(e.sid,pe.conditionSid));Fe(!1);const t=ge(null==e?void 0:e.conObj);T("changeSearch",Boolean("all_data"===e.sid),e,t,n,l)}function Ae(){let e="";if(2===_e.value)e=0;else{let i=_e.value;e=++i}ke.value=150,Ee(e)}async function Ee(e,i){let n={tableId:pe.tableId,setting:JSON.stringify({classificationIndex:e,classificationWidth:i})};try{await me(n,"requestSaveListPersonaSetting",{},pe.filterApiConfig)&&T("setClassificationIndex",e)}catch(e){console.log(e)}}function Te(){Ne.value=!0,Fe(!1)}function Re(e){Ne.value=e}function Fe(e){Se.value=void 0===e?!Se.value:e}function We(){if(!pe.tableId)return Ce.warning("请传入tableId");be.value=[];let{displayCategoryList:e=[],conditionList:i=[]}=pe.conditionMap;Ie.value=JSON.parse(JSON.stringify(e))||[],Oe.value=JSON.parse(JSON.stringify(i)),xe.value=JSON.parse(JSON.stringify([{name:"全部数据",sid:"all_data"},...i]));let n=[];var l;0===Ie.value.length&&(Ie.value=["未分类"]),Ie.value.forEach((e=>{let i={name:e,children:[]};xe.value.forEach((n=>{(n.displayCategory===e||!n.displayCategory&&"未分类"===e&&"all_data"!==n.sid)&&(-1!==pe.conditionSid.indexOf(n.sid)&&(n.selected=!0,i.open=!0),n.isShow&&i.children.push(n))})),i.children.length>0&&n.push(i)})),n.unshift({name:"全部数据",sid:"all_data"}),be.value=n,0===_e.value&&(l=!0,be.value.forEach((e=>{e.children&&e.children.length&&(e.open=l)})))}function qe({distance:e}){const i=ke.value+e;ke.value=Math.min(Math.max(i,50),650)}function Ge(){Ee(_e.value,ke.value)}async function Qe(){await He(pe.tableId),De()}async function $e(e){await He(pe.tableId),Ve()}function De(e){Ve(e).then((e=>{}))}function Ve(e,i={}){if(!pe.tableId)return new Promise((e=>e(!1)));let n=Object.keys(i).length>0?i:JSON.parse(JSON.stringify(pe.conditionMap));return new Promise(((i,l)=>{var t,a,o,s,d,c;if(Object.keys(n).length>0){Oe.value=n.conditionList||[],Ie.value=n.displayCategoryList||[];let l={conditionList:Oe.value,displayCategoryList:Ie.value};T("getQuickSearchListObj",l),Le.value=n.settingId;const r=Oe.value.find((e=>e.isDefault))||{name:"全部数据",sid:"all_data"};(null==(a=null==(t=ve.tableOptions)?void 0:t.filterCondition)?void 0:a.displayCategory)&&e&&i({name:null==(s=null==(o=ve.tableOptions)?void 0:o.filterCondition)?void 0:s.name,sid:null==(c=null==(d=ve.tableOptions)?void 0:d.filterCondition)?void 0:c.displayCategory}),i(r)}else i({})}))}async function He(e){try{if(!e)return new Promise((e=>e(!1)));let i={tableId:e},n=await me(i,"requestTableCondiTionList",{},pe.filterApiConfig);return Promise.resolve(n)}catch(e){return Promise.resolve(!1)}}function Ke(e,i){return i&&e&&"1"===i?e.replace(/\(公共\)$/,""):e}return a((()=>{document.addEventListener("click",(e=>{o((()=>{let i=e.composedPath&&e.composedPath();ye&&i.includes(ye.value)||Fe(!1)}))}))})),s((()=>pe.tableId),(e=>{e&&De(!0)}),{immediate:!0,deep:!0}),s((()=>pe.curClassificationIndex),(e=>{void 0!==e&&(_e.value=e)}),{immediate:!0,deep:!0}),s((()=>pe.curClassificationWidth),(e=>{e&&(ke.value=Number(e)||150)}),{immediate:!0}),s((()=>pe.conditionMap),(e=>{!async function(){try{await We()}catch(e){console.log(e)}}()}),{immediate:!0,deep:!0}),(i,n)=>(d(),c("div",{class:r(["classification-block","classificationIndex-"+h(_e)]),style:u(h(je))},[0===h(_e)?f((d(),c("div",{key:0,class:"tree-type classify-0",style:u({width:h(ke)+"px",paddingBottom:1!=e.hideClearConditionChange?"80px":0,position:"relative"})},[1!=e.hideConditionChangeBtn||1!=e.hideConditionChangeSetting?(d(),c("div",R,[1!=e.hideConditionChangeBtn?(d(),c("span",{key:0,class:"header-1",onClick:Ae},[p(h(O),{component:h(w),size:"16"},null,8,["component"]),m(" "+g("切换"))])):v("v-if",!0),1!=e.hideConditionChangeSetting?(d(),c("span",{key:1,class:"header-1",onClick:Te},[p(h(O),{component:h(I),size:"16"},null,8,["component"]),m(" "+g("设置"))])):v("v-if",!0)])):v("v-if",!0),C("ul",F,[(d(!0),c(y,null,k(h(be),((i,n)=>(d(),c(y,null,[0===n||!i.children||0===i.children.length||i.children&&0!==i.children.filter((e=>e.isShow)).length?(d(),c("li",{key:n,class:r(["tree-item",{"tree-header":0===n||!i.children||0===i.children.length}])},[0!==n&&i.children&&0!==i.children.length?(d(),c(y,{key:1},[C("span",{class:r(["parent",{open:i.open}]),onClick:e=>Je(i)},[C("span",null,g(i.name),1),p(h(O),{component:i.open?h(L):h(N)},null,8,["component"])],10,q),i.open?(d(!0),c(y,{key:0},k(i.children.filter((e=>e.isShow)),((e,n)=>(d(),c("div",{class:"children",key:n},[e.isShow?(d(),S(h(_),{key:0,trigger:"hover",placement:"right"},{trigger:b((()=>[C("span",{class:r(["child-item",{selected:e.selected}]),onClick:n=>Me(e,0,i)},[C("span",Q,g(Ke(e.name,null==e?void 0:e.isPublic)),1),e.selected?(d(),S(h(O),{key:0,component:h(z),size:"20"},null,8,["component"])):v("v-if",!0)],10,G)])),default:b((()=>[C("span",null,g(h(Pe)(e)),1)])),_:2},1024)):v("v-if",!0)])))),128)):v("v-if",!0)],64)):(d(),c("span",{key:0,class:r(["child-item header-item",{selected:i.selected||-1!==e.conditionSid.indexOf("all_data")}]),onClick:e=>Me(i)},g(i.name),11,W))],2)):v("v-if",!0)],64)))),256))]),1!=e.hideClearConditionChange?(d(),c("div",$,[C("div",D,"已选择"+g(e.conditionSid.filter((e=>"all_data"!==e)).length)+"项",1),C("div",{class:"selected-item-del",onClick:n[0]||(n[0]=e=>Me({sid:"all_data",name:"全部数据",digital:h(we).digital}))},[V,m(" 清空筛选 ")])])):v("v-if",!0)],4)),[[h(J),{mode:"VR",onMove:qe,onEnd:Ge}]]):v("v-if",!0),1===h(_e)?(d(),c(y,{key:1},[1!=e.hideConditionChangeBtn||1!=e.hideConditionChangeSetting||1!=e.hideConditionChangeSetting||h(Oe).filter((e=>e.isShow)).length>0?(d(),c("div",H,[1!=e.hideConditionChangeBtn||1!=e.hideConditionChangeSetting?(d(),c("div",K,[C("span",{class:r(["all-data",{selected:-1!==e.conditionSid.indexOf("all_data")}]),onClick:n[1]||(n[1]=e=>Me({sid:"all_data",name:"全部数据",digital:h(we).digital}))},[m(" 全部数据 "),h(we).digital||0===h(we).digital?(d(),c(y,{key:0},[m(" ("+g(h(we).digital||0)+") ",1)],64)):v("v-if",!0)],2),C("div",U,[1!=e.hideConditionChangeBtn?(d(),c("span",{key:0,class:"setting-1",onClick:Ae,style:{"margin-right":"30px"}},[p(h(O),{component:h(w),size:"16"},null,8,["component"]),m(" "+g("切换"))])):v("v-if",!0),1!=e.hideConditionChangeSetting?(d(),c("span",{key:1,class:"setting-1",onClick:Te},[p(h(O),{component:h(I),size:"16"},null,8,["component"]),m(" "+g("设置"))])):v("v-if",!0)])])):v("v-if",!0),C("ul",{class:"tile",style:u({borderBottom:1!=e.hideClearConditionChange?"1px solid #d5d5d5":0})},[(d(!0),c(y,null,k(h(be).slice(1),((e,i)=>(d(),c(y,null,[e.children&&e.children.length>0?(d(),c("li",{class:"tile-item",key:i},[e.children&&0!==e.children.length?(d(),c(y,{key:1},[C("span",Y,g(e.name),1),C("div",Z,[(d(!0),c(y,null,k(e.children,((i,n)=>(d(),c(y,null,[i.isShow?(d(),c("span",{key:n,class:r(["child-item",{selected:i.selected}]),onClick:n=>Me(i,0,e)},g(Ke(i.name,null==i?void 0:i.isPublic)),11,ee)):v("v-if",!0)],64)))),256))])],64)):(d(),c("span",{key:0,class:r(["child-item",{selected:e.selected}]),style:{"padding-left":"17px"},onClick:i=>Me(e)},g(e.name)+" "+g(e.digital),11,X))])):v("v-if",!0)],64)))),256))],4),1!=e.hideClearConditionChange?(d(),c("div",ie,[C("div",ne,"已选择"+g(e.conditionSid.filter((e=>"all_data"!==e)).length)+"项",1),(d(!0),c(y,null,k(h(be).slice(1),((e,i)=>(d(),c(y,null,[e.children&&0!==e.children.length?(d(!0),c(y,{key:1},k(e.children,((i,n)=>(d(),c(y,null,[i.selected?(d(),c("div",{class:"selected-item",key:i.sid},[m(g(i.name)+" ",1),p(h(O),{component:h(j),onClick:n=>Me(i,0,e)},null,8,["component","onClick"])])):v("v-if",!0)],64)))),256)):(d(),c("div",{class:"selected-item",key:e.sid},[m(g(e.name)+" ",1),p(h(O),{component:h(j),onClick:i=>Me(e)},null,8,["component","onClick"])]))],64)))),256)),C("div",{class:"selected-item-del",onClick:n[2]||(n[2]=e=>Me({sid:"all_data",name:"全部数据",digital:h(we).digital}))},[le,m(" 清空筛选 ")])])):v("v-if",!0)])):v("v-if",!0)],64)):v("v-if",!0),2===h(_e)?(d(),c("div",{key:2,class:"select-type classify-2",ref_key:"selectType",ref:ye},[C("span",{class:"title",onClick:n[3]||(n[3]=()=>Fe())},[p(h(_),{trigger:"hover",placement:"top"},{trigger:b((()=>[C("span",te,g(h(Be)),1)])),default:b((()=>[C("span",ae,g(h(Be)),1)])),_:1}),p(h(O),{component:h(Se)?h(B):h(L)},null,8,["component"])]),h(Se)?(d(),c("div",oe,[C("ul",{class:"tree",style:u({padding:1!=e.hideClearConditionChange?"40px 0":"40px 0 0"})},[(d(!0),c(y,null,k(h(be),((i,n)=>(d(),c(y,null,[0===n||!i.children||0===i.children.length||i.children&&0!==i.children.filter((e=>e.isShow)).length?(d(),c("li",{key:n,class:r(["tree-item",{"tree-header":0===n||!i.children||0===i.children.length}])},[0!==n&&i.children&&0!==i.children.length?(d(),c(y,{key:1},[0!==i.children.filter((e=>e.isShow)).length?(d(),c("span",{key:0,class:r(["parent",{open:i.open}]),onClick:e=>Je(i)},[m(g(i.name)+g(i.digital||0===i.digital?"("+i.digital+")":"")+" ",1),p(h(O),{component:i.open?h(L):h(N)},null,8,["component"])],10,ce)):v("v-if",!0),i.open?(d(!0),c(y,{key:1},k(i.children.filter((e=>e.isShow)),((e,n)=>(d(),c("div",{class:"children",key:n},[e.isShow?(d(),S(h(_),{key:0,placement:"right",trigger:"hover","z-index":1e4},{trigger:b((()=>[C("span",{class:r(["child-item",{selected:e.selected}]),onClick:n=>Me(e,0,i)},[C("span",null,g(Ke(e.name,null==e?void 0:e.isPublic)),1),e.selected?(d(),S(h(O),{key:0,component:h(z),size:"20"},null,8,["component"])):v("v-if",!0)],10,re)])),default:b((()=>[C("span",null,g(h(Pe)(e)),1)])),_:2},1024)):v("v-if",!0)])))),128)):v("v-if",!0)],64)):(d(),c(y,{key:0},[C("span",{class:r(["child-item child-header header-item",{selected:i.selected||-1!==e.conditionSid.indexOf("all_data")}]),onClick:e=>Me(i)},g(i.name),11,se),C("div",de,[1!=e.hideConditionChangeBtn?(d(),c("span",{key:0,class:"tree-footer-icon",onClick:Ae},[p(h(O),{component:h(w),size:"16"},null,8,["component"]),m(" "+g("切换"))])):v("v-if",!0),1!=e.hideConditionChangeSetting?(d(),c("span",{key:1,class:"tree-footer-icon",onClick:Te},[p(h(O),{component:h(I),size:"16"},null,8,["component"]),m(" "+g("设置"))])):v("v-if",!0)])],64))],2)):v("v-if",!0)],64)))),256))],4),1!=e.hideClearConditionChange?(d(),c("div",he,[C("div",ue,"已选择"+g(e.conditionSid.filter((e=>"all_data"!==e)).length)+"项",1),C("div",{class:"selected-item-del",onClick:n[4]||(n[4]=e=>Me({sid:"all_data",name:"全部数据",digital:h(we).digital}))},[fe,m(" 清空筛选 ")])])):v("v-if",!0)])):v("v-if",!0)],512)):v("v-if",!0),v(" 弹出弹窗 "),p(P,{ref:"search",searchFieldList:e.searchFieldList,conditionList:h(Oe),displayCategoryList:h(Ie),settingId:h(Le),tableId:e.tableId,classifyModal:h(Ne),filterApiConfig:e.filterApiConfig,onSaveGetTableCondiTionList:$e,onCondiTionListInit:Qe,onSetClassifyModal:Re},null,8,["searchFieldList","conditionList","displayCategoryList","settingId","tableId","classifyModal","filterApiConfig"])],6))}}),[["__file","index.vue"]]);export{pe as default};
1
+ import{defineComponent as e,useAttrs as i,ref as n,provide as l,computed as t,onMounted as a,nextTick as o,watch as s,openBlock as d,createElementBlock as c,normalizeClass as r,unref as h,normalizeStyle as u,withDirectives as f,createVNode as p,createTextVNode as g,toDisplayString as m,createCommentVNode as v,createElementVNode as C,Fragment as y,renderList as k,createBlock as S,withCtx as b}from"vue";import{useMessage as x,NIcon as O,NTooltip as _}from"naive-ui";import{Repeat as w,SettingsOutline as I,ChevronDown as L,ChevronForward as N,Checkmark as z,Close as j,ChevronUp as B}from"@vicons/ionicons5";import P from"./components/set-classification/index.vue.js";import J from"./directive/flexibleResize.js";import{root_isShowResetButton as M}from"./const/index.js";import A from"../../table-filter/src/hooks/useMixins.js";import E from"../../table-filter/src/hooks/useAdvanced.js";import T from"../../../_virtual/plugin-vue_export-helper.js";const R={key:0,class:"header"},F={class:"tree"},W=["onClick"],q=["onClick"],G=["onClick"],Q={class:"child-item-name"},$={key:1,class:"tree-type-footer"},D={class:"selected-num"},V=C("i",{class:"iconfont-table-filter icon-table-filter-menzhenyishengzhananniushanchu2"},null,-1),H={key:0,class:"tile-type classify-1"},K={key:0,class:"header"},U={class:"right-setting"},X=["onClick"],Y={class:"parent ellips"},Z={class:"children"},ee=["onClick"],ie={key:1,class:"selected-list"},ne={class:"selected-num"},le=C("i",{class:"iconfont-table-filter icon-table-filter-menzhenyishengzhananniushanchu2"},null,-1),te={class:"name"},ae={class:"name"},oe={key:0,class:"main-wrapper"},se=["onClick"],de={class:"tree-footer"},ce=["onClick"],re=["onClick"],he={key:0,class:"select-type-footer"},ue={class:"selected-num"},fe=C("i",{class:"iconfont-table-filter icon-table-filter-menzhenyishengzhananniushanchu2"},null,-1);var pe=T(e({__name:"index",props:{tableId:{type:String,default:""},searchFieldList:{type:Array,default:()=>[]},conditionMap:{type:Object,default:()=>{}},conditionSid:{type:Array,default:()=>["all_data"]},curClassificationIndex:{type:Number,default:0},curClassificationWidth:{type:Number},hideConditionChangeBtn:{type:Number,default:0},hideConditionChangeSetting:{type:Number,default:0},hideClearConditionChange:{type:Number,default:1},isShowResetButton:{type:Boolean,default:!0},filterApiConfig:{type:Object,default:()=>({})}},emits:["changeSearch","setClassificationIndex","getQuickSearchListObj"],setup(e,{emit:T}){const pe=e,{handleGetConfigApi:ge}=A(),{transformClassifyChild:me}=E(),ve=i(),Ce=x(),ye=n(null);let ke=n(150),Se=n(!1),be=n([]),xe=n([]),Oe=n([]),_e=n(2),we=n({name:"全部数据",sid:"all_data"}),Ie=n([]),Le=n(""),Ne=n(!1),ze=n("全部数据");l(M,n(pe.isShowResetButton));let je=t((()=>0===_e.value?{marginRight:"8px"}:2===_e.value?{display:"inline-block"}:{})),Be=t((()=>{let e=xe.value.filter((e=>-1!==pe.conditionSid.indexOf(e.sid)));if(-1!==pe.conditionSid.indexOf("all_data"))return"全部数据";{let i=[];return e.map((e=>{i.push(e.name)})),i.join(",")}})),Pe=t((()=>function(e){let i=0===e.digital?"(0)":e.digital?`(${e.digital})`:"";const{name:n,isPublic:l}=e;return Ke(n,l)+i}));function Je(e){e.open?e.open=!1:e.open=!0}function Me(e,i,n){ze.value=e.name;let l=function(e){let i=[];return be.value.forEach((n=>{n.children?n.children.forEach((n=>{-1!==e.indexOf(n.sid)?(n.selected=!0,i.push(n)):n.selected=!1})):-1!==e.indexOf(n.sid)?(n.selected=!0,i.push(n)):n.selected=!1})),i}(function(e,i,n){let l=JSON.parse(JSON.stringify(i));l="all_data"===e||-1!==l.indexOf(e)?["all_data"]:[e];return l}(e.sid,pe.conditionSid));Fe(!1);const t=me(null==e?void 0:e.conObj);T("changeSearch",Boolean("all_data"===e.sid),e,t,n,l)}function Ae(){let e="";if(2===_e.value)e=0;else{let i=_e.value;e=++i}ke.value=150,Ee(e)}async function Ee(e,i){let n={tableId:pe.tableId,setting:JSON.stringify({classificationIndex:e,classificationWidth:i})};try{await ge(n,"requestSaveListPersonaSetting",{},pe.filterApiConfig)&&T("setClassificationIndex",e)}catch(e){console.log(e)}}function Te(){Ne.value=!0,Fe(!1)}function Re(e){Ne.value=e}function Fe(e){Se.value=void 0===e?!Se.value:e}function We(){if(!pe.tableId)return Ce.warning("请传入tableId");be.value=[];let{displayCategoryList:e=[],conditionList:i=[]}=pe.conditionMap;Ie.value=JSON.parse(JSON.stringify(e))||[],Oe.value=JSON.parse(JSON.stringify(i)),xe.value=JSON.parse(JSON.stringify([{name:"全部数据",sid:"all_data"},...i]));let n=[];var l;0===Ie.value.length&&(Ie.value=["未分类"]),Ie.value.forEach((e=>{let i={name:e,children:[]};xe.value.forEach((n=>{if(n.displayCategory===e||!n.displayCategory&&"未分类"===e&&"all_data"!==n.sid){if(-1!==pe.conditionSid.indexOf(n.sid)){n.selected=!0,i.open=!0;const e=me(null==n?void 0:n.conObj);T("changeSearch",!1,n,e)}n.isShow&&i.children.push(n)}})),i.children.length>0&&n.push(i)})),n.unshift({name:"全部数据",sid:"all_data"}),be.value=n,0===_e.value&&(l=!0,be.value.forEach((e=>{e.children&&e.children.length&&(e.open=l)})))}function qe({distance:e}){const i=ke.value+e;ke.value=Math.min(Math.max(i,50),650)}function Ge(){Ee(_e.value,ke.value)}async function Qe(){await He(pe.tableId),De()}async function $e(e){await He(pe.tableId),Ve()}function De(e){Ve(e).then((e=>{}))}function Ve(e,i={}){if(!pe.tableId)return new Promise((e=>e(!1)));let n=Object.keys(i).length>0?i:JSON.parse(JSON.stringify(pe.conditionMap));return new Promise(((i,l)=>{var t,a,o,s,d,c;if(Object.keys(n).length>0){Oe.value=n.conditionList||[],Ie.value=n.displayCategoryList||[];let l={conditionList:Oe.value,displayCategoryList:Ie.value};T("getQuickSearchListObj",l),Le.value=n.settingId;const r=Oe.value.find((e=>e.isDefault))||{name:"全部数据",sid:"all_data"};(null==(a=null==(t=ve.tableOptions)?void 0:t.filterCondition)?void 0:a.displayCategory)&&e&&i({name:null==(s=null==(o=ve.tableOptions)?void 0:o.filterCondition)?void 0:s.name,sid:null==(c=null==(d=ve.tableOptions)?void 0:d.filterCondition)?void 0:c.displayCategory}),i(r)}else i({})}))}async function He(e){try{if(!e)return new Promise((e=>e(!1)));let i={tableId:e},n=await ge(i,"requestTableCondiTionList",{},pe.filterApiConfig);return Promise.resolve(n)}catch(e){return Promise.resolve(!1)}}function Ke(e,i){return i&&e&&"1"===i?e.replace(/\(公共\)$/,""):e}return a((()=>{document.addEventListener("click",(e=>{o((()=>{let i=e.composedPath&&e.composedPath();ye&&i.includes(ye.value)||Fe(!1)}))}))})),s((()=>pe.tableId),(e=>{e&&De(!0)}),{immediate:!0,deep:!0}),s((()=>pe.curClassificationIndex),(e=>{void 0!==e&&(_e.value=e)}),{immediate:!0,deep:!0}),s((()=>pe.curClassificationWidth),(e=>{e&&(ke.value=Number(e)||150)}),{immediate:!0}),s((()=>pe.conditionMap),(e=>{!async function(){try{await We()}catch(e){console.log(e)}}()}),{immediate:!0,deep:!0}),(i,n)=>(d(),c("div",{class:r(["classification-block","classificationIndex-"+h(_e)]),style:u(h(je))},[0===h(_e)?f((d(),c("div",{key:0,class:"tree-type classify-0",style:u({width:h(ke)+"px",paddingBottom:1!=e.hideClearConditionChange?"80px":0,position:"relative"})},[1!=e.hideConditionChangeBtn||1!=e.hideConditionChangeSetting?(d(),c("div",R,[1!=e.hideConditionChangeBtn?(d(),c("span",{key:0,class:"header-1",onClick:Ae},[p(h(O),{component:h(w),size:"16"},null,8,["component"]),g(" "+m("切换"))])):v("v-if",!0),1!=e.hideConditionChangeSetting?(d(),c("span",{key:1,class:"header-1",onClick:Te},[p(h(O),{component:h(I),size:"16"},null,8,["component"]),g(" "+m("设置"))])):v("v-if",!0)])):v("v-if",!0),C("ul",F,[(d(!0),c(y,null,k(h(be),((i,n)=>(d(),c(y,null,[0===n||!i.children||0===i.children.length||i.children&&0!==i.children.filter((e=>e.isShow)).length?(d(),c("li",{key:n,class:r(["tree-item",{"tree-header":0===n||!i.children||0===i.children.length}])},[0!==n&&i.children&&0!==i.children.length?(d(),c(y,{key:1},[C("span",{class:r(["parent",{open:i.open}]),onClick:e=>Je(i)},[C("span",null,m(i.name),1),p(h(O),{component:i.open?h(L):h(N)},null,8,["component"])],10,q),i.open?(d(!0),c(y,{key:0},k(i.children.filter((e=>e.isShow)),((e,n)=>(d(),c("div",{class:"children",key:n},[e.isShow?(d(),S(h(_),{key:0,trigger:"hover",placement:"right"},{trigger:b((()=>[C("span",{class:r(["child-item",{selected:e.selected}]),onClick:n=>Me(e,0,i)},[C("span",Q,m(Ke(e.name,null==e?void 0:e.isPublic)),1),e.selected?(d(),S(h(O),{key:0,component:h(z),size:"20"},null,8,["component"])):v("v-if",!0)],10,G)])),default:b((()=>[C("span",null,m(h(Pe)(e)),1)])),_:2},1024)):v("v-if",!0)])))),128)):v("v-if",!0)],64)):(d(),c("span",{key:0,class:r(["child-item header-item",{selected:i.selected||-1!==e.conditionSid.indexOf("all_data")}]),onClick:e=>Me(i)},m(i.name),11,W))],2)):v("v-if",!0)],64)))),256))]),1!=e.hideClearConditionChange?(d(),c("div",$,[C("div",D,"已选择"+m(e.conditionSid.filter((e=>"all_data"!==e)).length)+"项",1),C("div",{class:"selected-item-del",onClick:n[0]||(n[0]=e=>Me({sid:"all_data",name:"全部数据",digital:h(we).digital}))},[V,g(" 清空筛选 ")])])):v("v-if",!0)],4)),[[h(J),{mode:"VR",onMove:qe,onEnd:Ge}]]):v("v-if",!0),1===h(_e)?(d(),c(y,{key:1},[1!=e.hideConditionChangeBtn||1!=e.hideConditionChangeSetting||1!=e.hideConditionChangeSetting||h(Oe).filter((e=>e.isShow)).length>0?(d(),c("div",H,[1!=e.hideConditionChangeBtn||1!=e.hideConditionChangeSetting?(d(),c("div",K,[C("span",{class:r(["all-data",{selected:-1!==e.conditionSid.indexOf("all_data")}]),onClick:n[1]||(n[1]=e=>Me({sid:"all_data",name:"全部数据",digital:h(we).digital}))},[g(" 全部数据 "),h(we).digital||0===h(we).digital?(d(),c(y,{key:0},[g(" ("+m(h(we).digital||0)+") ",1)],64)):v("v-if",!0)],2),C("div",U,[1!=e.hideConditionChangeBtn?(d(),c("span",{key:0,class:"setting-1",onClick:Ae,style:{"margin-right":"30px"}},[p(h(O),{component:h(w),size:"16"},null,8,["component"]),g(" "+m("切换"))])):v("v-if",!0),1!=e.hideConditionChangeSetting?(d(),c("span",{key:1,class:"setting-1",onClick:Te},[p(h(O),{component:h(I),size:"16"},null,8,["component"]),g(" "+m("设置"))])):v("v-if",!0)])])):v("v-if",!0),C("ul",{class:"tile",style:u({borderBottom:1!=e.hideClearConditionChange?"1px solid #d5d5d5":0})},[(d(!0),c(y,null,k(h(be).slice(1),((e,i)=>(d(),c(y,null,[e.children&&e.children.length>0?(d(),c("li",{class:"tile-item",key:i},[e.children&&0!==e.children.length?(d(),c(y,{key:1},[C("span",Y,m(e.name),1),C("div",Z,[(d(!0),c(y,null,k(e.children,((i,n)=>(d(),c(y,null,[i.isShow?(d(),c("span",{key:n,class:r(["child-item",{selected:i.selected}]),onClick:n=>Me(i,0,e)},m(Ke(i.name,null==i?void 0:i.isPublic)),11,ee)):v("v-if",!0)],64)))),256))])],64)):(d(),c("span",{key:0,class:r(["child-item",{selected:e.selected}]),style:{"padding-left":"17px"},onClick:i=>Me(e)},m(e.name)+" "+m(e.digital),11,X))])):v("v-if",!0)],64)))),256))],4),1!=e.hideClearConditionChange?(d(),c("div",ie,[C("div",ne,"已选择"+m(e.conditionSid.filter((e=>"all_data"!==e)).length)+"项",1),(d(!0),c(y,null,k(h(be).slice(1),((e,i)=>(d(),c(y,null,[e.children&&0!==e.children.length?(d(!0),c(y,{key:1},k(e.children,((i,n)=>(d(),c(y,null,[i.selected?(d(),c("div",{class:"selected-item",key:i.sid},[g(m(i.name)+" ",1),p(h(O),{component:h(j),onClick:n=>Me(i,0,e)},null,8,["component","onClick"])])):v("v-if",!0)],64)))),256)):(d(),c("div",{class:"selected-item",key:e.sid},[g(m(e.name)+" ",1),p(h(O),{component:h(j),onClick:i=>Me(e)},null,8,["component","onClick"])]))],64)))),256)),C("div",{class:"selected-item-del",onClick:n[2]||(n[2]=e=>Me({sid:"all_data",name:"全部数据",digital:h(we).digital}))},[le,g(" 清空筛选 ")])])):v("v-if",!0)])):v("v-if",!0)],64)):v("v-if",!0),2===h(_e)?(d(),c("div",{key:2,class:"select-type classify-2",ref_key:"selectType",ref:ye},[C("span",{class:"title",onClick:n[3]||(n[3]=()=>Fe())},[p(h(_),{trigger:"hover",placement:"top"},{trigger:b((()=>[C("span",te,m(h(Be)),1)])),default:b((()=>[C("span",ae,m(h(Be)),1)])),_:1}),p(h(O),{component:h(Se)?h(B):h(L)},null,8,["component"])]),h(Se)?(d(),c("div",oe,[C("ul",{class:"tree",style:u({padding:1!=e.hideClearConditionChange?"40px 0":"40px 0 0"})},[(d(!0),c(y,null,k(h(be),((i,n)=>(d(),c(y,null,[0===n||!i.children||0===i.children.length||i.children&&0!==i.children.filter((e=>e.isShow)).length?(d(),c("li",{key:n,class:r(["tree-item",{"tree-header":0===n||!i.children||0===i.children.length}])},[0!==n&&i.children&&0!==i.children.length?(d(),c(y,{key:1},[0!==i.children.filter((e=>e.isShow)).length?(d(),c("span",{key:0,class:r(["parent",{open:i.open}]),onClick:e=>Je(i)},[g(m(i.name)+m(i.digital||0===i.digital?"("+i.digital+")":"")+" ",1),p(h(O),{component:i.open?h(L):h(N)},null,8,["component"])],10,ce)):v("v-if",!0),i.open?(d(!0),c(y,{key:1},k(i.children.filter((e=>e.isShow)),((e,n)=>(d(),c("div",{class:"children",key:n},[e.isShow?(d(),S(h(_),{key:0,placement:"right",trigger:"hover","z-index":1e4},{trigger:b((()=>[C("span",{class:r(["child-item",{selected:e.selected}]),onClick:n=>Me(e,0,i)},[C("span",null,m(Ke(e.name,null==e?void 0:e.isPublic)),1),e.selected?(d(),S(h(O),{key:0,component:h(z),size:"20"},null,8,["component"])):v("v-if",!0)],10,re)])),default:b((()=>[C("span",null,m(h(Pe)(e)),1)])),_:2},1024)):v("v-if",!0)])))),128)):v("v-if",!0)],64)):(d(),c(y,{key:0},[C("span",{class:r(["child-item child-header header-item",{selected:i.selected||-1!==e.conditionSid.indexOf("all_data")}]),onClick:e=>Me(i)},m(i.name),11,se),C("div",de,[1!=e.hideConditionChangeBtn?(d(),c("span",{key:0,class:"tree-footer-icon",onClick:Ae},[p(h(O),{component:h(w),size:"16"},null,8,["component"]),g(" "+m("切换"))])):v("v-if",!0),1!=e.hideConditionChangeSetting?(d(),c("span",{key:1,class:"tree-footer-icon",onClick:Te},[p(h(O),{component:h(I),size:"16"},null,8,["component"]),g(" "+m("设置"))])):v("v-if",!0)])],64))],2)):v("v-if",!0)],64)))),256))],4),1!=e.hideClearConditionChange?(d(),c("div",he,[C("div",ue,"已选择"+m(e.conditionSid.filter((e=>"all_data"!==e)).length)+"项",1),C("div",{class:"selected-item-del",onClick:n[4]||(n[4]=e=>Me({sid:"all_data",name:"全部数据",digital:h(we).digital}))},[fe,g(" 清空筛选 ")])])):v("v-if",!0)])):v("v-if",!0)],512)):v("v-if",!0),v(" 弹出弹窗 "),p(P,{ref:"search",searchFieldList:e.searchFieldList,conditionList:h(Oe),displayCategoryList:h(Ie),settingId:h(Le),tableId:e.tableId,classifyModal:h(Ne),filterApiConfig:e.filterApiConfig,onSaveGetTableCondiTionList:$e,onCondiTionListInit:Qe,onSetClassifyModal:Re},null,8,["searchFieldList","conditionList","displayCategoryList","settingId","tableId","classifyModal","filterApiConfig"])],6))}}),[["__file","index.vue"]]);export{pe as default};
@@ -1 +1 @@
1
- import{defineComponent as e,computed as r,provide as t,createVNode as o,resolveComponent as i,mergeProps as n,isVNode as s}from"vue";import{NConfigProvider as m}from"naive-ui";import{cloneDeep as d}from"lodash-es";import{addPrefix as p}from"./utils/index.js";var a=e({name:"ConfigProvider",inheritAttrs:!1,components:{NConfigProvider:m},props:{themeOverrides:{type:Object}},emits:[],setup(e,{attrs:m,slots:a,emit:f}){const v=r((()=>({...d(e.themeOverrides),...p(e.themeOverrides,["IhoTable","Keyboard","IhoTable","StepsWheel"])})));return t("themeOverridesInjectRef",v),{renderVN:()=>{return[o(i("n-config-provider"),n(m,e),(r=a,"function"==typeof r||"[object Object]"===Object.prototype.toString.call(r)&&!s(r)?a:{default:()=>[a]}))];var r}}},render(){return this.renderVN()}});export{a as default};
1
+ import{defineComponent as e,computed as r,provide as t,createVNode as o,resolveComponent as i,mergeProps as n,isVNode as s}from"vue";import{NConfigProvider as m}from"naive-ui";import{cloneDeep as d}from"lodash-es";import{addPrefix as p}from"./utils/index.js";var a=e({name:"ConfigProvider",inheritAttrs:!1,components:{NConfigProvider:m},props:{themeOverrides:{type:Object}},emits:[],setup(e,{attrs:m,slots:a,emit:f}){const v=r((()=>({...d(e.themeOverrides),...p(e.themeOverrides,["IhoTable","Keyboard","StepsWheel"])})));return t("themeOverridesInjectRef",v),{renderVN:()=>{return[o(i("n-config-provider"),n(m,e),(r=a,"function"==typeof r||"[object Object]"===Object.prototype.toString.call(r)&&!s(r)?a:{default:()=>[a]}))];var r}}},render(){return this.renderVN()}});export{a as default};
@@ -3,12 +3,12 @@ interface IhoTableStyle {
3
3
  borderColor: string;
4
4
  }
5
5
  interface KeyboardStyle {
6
- colorHover: string;
7
- colorPressed: string;
6
+ primaryColorHover: string;
7
+ primaryColorPressed: string;
8
8
  }
9
9
  interface StepsWheelStyle {
10
- colorPrimary: string;
11
- colorFinish: string;
10
+ primaryColor: string;
11
+ successColor: string;
12
12
  }
13
13
  export declare type CComponentThemeOverrides = Partial<{
14
14
  IhoTable: IhoTableStyle;
@@ -3,18 +3,10 @@ declare const DatePicker: SFCWithInstall<import("vue").DefineComponent<{}, {
3
3
  attrs: {
4
4
  [x: string]: unknown;
5
5
  };
6
- emits: (event: "update:formattedValue", ...args: any[]) => void;
7
- datePickerRef: import("vue").Ref<null>;
8
- __formattedValue: import("vue").Ref<any>;
9
- keyupValue: import("vue").Ref<string>;
10
- inputIndex: number;
11
- placeholder: string;
12
- formatRef: import("vue").ComputedRef<unknown>;
13
- updateFormattedValue: (value: any) => void;
14
- onBlur: () => void;
15
- onKeyUp: (event: import("../../../es/shared/types").AnyObject) => any;
6
+ datePickerRef: import("vue").Ref<import("../../../es/shared/types").AnyObject | null>;
7
+ formatRef: import("vue").ComputedRef<string>;
8
+ focus: () => any;
9
+ blur: () => any;
16
10
  NDatePicker: any;
17
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:formattedValue"[], "update:formattedValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
18
- "onUpdate:formattedValue"?: ((...args: any[]) => any) | undefined;
19
- }, {}>>;
11
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
20
12
  export default DatePicker;
@@ -3,18 +3,10 @@ declare const _default: import("vue").DefineComponent<{}, {
3
3
  attrs: {
4
4
  [x: string]: unknown;
5
5
  };
6
- emits: (event: "update:formattedValue", ...args: any[]) => void;
7
- datePickerRef: import("vue").Ref<null>;
8
- __formattedValue: import("vue").Ref<any>;
9
- keyupValue: import("vue").Ref<string>;
10
- inputIndex: number;
11
- placeholder: string;
12
- formatRef: import("vue").ComputedRef<unknown>;
13
- updateFormattedValue: (value: any) => void;
14
- onBlur: () => void;
15
- onKeyUp: (event: AnyObject) => any;
6
+ datePickerRef: import("vue").Ref<AnyObject | null>;
7
+ formatRef: import("vue").ComputedRef<string>;
8
+ focus: () => any;
9
+ blur: () => any;
16
10
  NDatePicker: any;
17
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:formattedValue"[], "update:formattedValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
18
- "onUpdate:formattedValue"?: ((...args: any[]) => any) | undefined;
19
- }, {}>;
11
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
20
12
  export default _default;
@@ -1 +1 @@
1
- import{defineComponent as e,useAttrs as t,ref as a,computed as l,watch as u,openBlock as r,createBlock as o,unref as n,mergeProps as i,createSlots as v,renderList as d,withCtx as m,renderSlot as f}from"vue";import{NDatePicker as s}from"naive-ui";import{parse as c,isValid as y,format as p}from"date-fns";import _ from"../../../_virtual/plugin-vue_export-helper.js";var g=_(e({__name:"DatePicker",emits:["update:formattedValue"],setup(e,{expose:_,emit:g}){const k=t(),M=a(null),h=a(),P=a("");let $=-1,b="";const x=l((()=>{if(k.format)return k.format;const e=k.type||"";return["datetime","datetimerange"].includes(e)?"yyyy-MM-dd HH:mm:ss":"month"===e?"yyyy-MM":"year"===e?"yyyy":"yyyy-MM-dd"}));function D(e){g("update:formattedValue",e)}function V(){var e;const t=c(P.value,null==(e=x.value.match(/[a-zA-Z]/g))?void 0:e.join(""),new Date);if(y(t)){const e=p(t,x.value);~$?h.value?h.value[$]=e:h.value=[e,e]:h.value=e,D(h.value)}}function j(e){var t,a,l,u;const{keyCode:r=0}=e;if((k.type||"").includes("range")&&(b=(null==(t=e.target)?void 0:t.placeholder)||b,$=b.includes("开始")?0:1),13==r)return null==(l=null==(a=M.value)?void 0:a.blur)?void 0:l.call(a);P.value=(null==(u=e.target)?void 0:u.value)||""}return u((()=>k["formatted-value"]),(e=>{h.value=e}),{immediate:!0}),_({$datePicker:M,focus:()=>{var e,t;return null==(t=null==(e=M.value)?void 0:e.focus)?void 0:t.call(e)},blur:()=>{var e,t;return null==(t=null==(e=M.value)?void 0:e.blur)?void 0:t.call(e)}}),(e,t)=>(r(),o(n(s),i({ref_key:"datePickerRef",ref:M},e.$attrs,{"formatted-value":h.value,"onUpdate:formattedValue":D,onBlur:V,onKeyup:j}),v({_:2},[d(e.$slots,((t,a)=>({name:a,fn:m((()=>[f(e.$slots,a)]))})))]),1040,["formatted-value"]))}}),[["__file","DatePicker.vue"]]);export{g as default};
1
+ import{defineComponent as e,useAttrs as r,ref as t,computed as o,openBlock as s,createBlock as a,unref as i,mergeProps as m,createSlots as u,renderList as y,withCtx as f,renderSlot as n}from"vue";import{NDatePicker as d}from"naive-ui";import"../../../shared/utils/index.js";import"lodash-es";import{useDateTime as l}from"../../../shared/hooks/useDateTime.js";import p from"../../../_virtual/plugin-vue_export-helper.js";var c=p(e({__name:"DatePicker",setup(e,{expose:p}){const c=r(),_=t(null),h=o((()=>{if(c.format)return c.format;const e=c.type||"";return["datetime","datetimerange"].includes(e)?"yyyy-MM-dd HH:mm:ss":"month"===e?"yyyy-MM":"year"===e?"yyyy":"yyyy-MM-dd"})),{focus:k,blur:v}=l(_,h);return p({$datePicker:_,focus:k,blur:v}),(e,r)=>(s(),a(i(d),m({ref_key:"datePickerRef",ref:_},e.$attrs),u({_:2},[y(e.$slots,((r,t)=>({name:t,fn:f((()=>[n(e.$slots,t)]))})))]),1040))}}),[["__file","DatePicker.vue"]]);export{c as default};
@@ -30,7 +30,7 @@ declare const FabricChart: SFCWithInstall<import("vue").DefineComponent<{
30
30
  onAdd?: ((...args: any[]) => any) | undefined;
31
31
  onRemove?: ((...args: any[]) => any) | undefined;
32
32
  }>>;
33
- emits: (event: "add" | "change" | "remove" | "select", ...args: any[]) => void;
33
+ emits: (event: "change" | "add" | "remove" | "select", ...args: any[]) => void;
34
34
  isTemperature: import("vue").ComputedRef<boolean>;
35
35
  canvasRef: any;
36
36
  canvas: import("vue").Ref<any>;
@@ -182,7 +182,7 @@ declare const FabricChart: SFCWithInstall<import("vue").DefineComponent<{
182
182
  show: boolean;
183
183
  list: unknown[];
184
184
  }>;
185
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("add" | "change" | "remove" | "select")[], "remove" | "add" | "change" | "select", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
185
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "add" | "remove" | "select")[], "remove" | "change" | "add" | "select", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
186
186
  type: {
187
187
  type: import("vue").PropType<import("./src/interface").IType>;
188
188
  default: string;
@@ -32,7 +32,7 @@ declare const _default: import("vue").DefineComponent<{
32
32
  onAdd?: ((...args: any[]) => any) | undefined;
33
33
  onRemove?: ((...args: any[]) => any) | undefined;
34
34
  }>>;
35
- emits: (event: "add" | "change" | "remove" | "select", ...args: any[]) => void;
35
+ emits: (event: "change" | "add" | "remove" | "select", ...args: any[]) => void;
36
36
  isTemperature: import("vue").ComputedRef<boolean>;
37
37
  canvasRef: any;
38
38
  canvas: import("vue").Ref<any>;
@@ -184,7 +184,7 @@ declare const _default: import("vue").DefineComponent<{
184
184
  show: boolean;
185
185
  list: unknown[];
186
186
  }>;
187
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("add" | "change" | "remove" | "select")[], "remove" | "add" | "change" | "select", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
187
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "add" | "remove" | "select")[], "remove" | "change" | "add" | "select", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
188
188
  type: {
189
189
  type: PropType<IType>;
190
190
  default: string;
@@ -1,7 +1,25 @@
1
1
  import { SFCWithInstall } from '../../../es/shared/types';
2
+ export * from './src/types';
2
3
  declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
3
4
  fields: {
4
- type: import("vue").PropType<any[]>;
5
+ type: import("vue").PropType<Partial<{
6
+ [key: string]: any;
7
+ id: string;
8
+ name: string;
9
+ show: boolean;
10
+ sort: boolean;
11
+ sortDirection: "NONE" | "ASC" | "DESC";
12
+ title: string;
13
+ alias: string;
14
+ fixedShow: boolean;
15
+ fixedWay: "NONE" | "LEFT" | "RIGHT";
16
+ columnWidth: number | null;
17
+ editable: boolean;
18
+ editableDisable: boolean;
19
+ required: boolean;
20
+ requiredDisable: boolean;
21
+ hide: boolean;
22
+ }>[]>;
5
23
  default: () => never[];
6
24
  };
7
25
  footerFlag: {
@@ -23,11 +41,28 @@ declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
23
41
  label: string;
24
42
  value: string;
25
43
  }[];
26
- emit: (event: "reset" | "onSave" | "onClose", ...args: any[]) => void;
44
+ emit: (event: "onSave" | "onClose" | "reset", ...args: any[]) => void;
27
45
  settingView: any;
28
46
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
29
47
  fields: {
30
- type: import("vue").PropType<any[]>;
48
+ type: import("vue").PropType<Partial<{
49
+ [key: string]: any;
50
+ id: string;
51
+ name: string;
52
+ show: boolean;
53
+ sort: boolean;
54
+ sortDirection: "NONE" | "ASC" | "DESC";
55
+ title: string;
56
+ alias: string;
57
+ fixedShow: boolean;
58
+ fixedWay: "NONE" | "LEFT" | "RIGHT";
59
+ columnWidth: number | null;
60
+ editable: boolean;
61
+ editableDisable: boolean;
62
+ required: boolean;
63
+ requiredDisable: boolean;
64
+ hide: boolean;
65
+ }>[]>;
31
66
  default: () => never[];
32
67
  };
33
68
  footerFlag: {
@@ -54,7 +89,7 @@ declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
54
89
  clickItem: {
55
90
  [key: string]: any;
56
91
  };
57
- fields: {
92
+ fields: Partial<{
58
93
  [key: string]: any;
59
94
  id: string;
60
95
  name: string;
@@ -71,11 +106,11 @@ declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
71
106
  required: boolean;
72
107
  requiredDisable: boolean;
73
108
  hide: boolean;
74
- }[];
109
+ }>[];
75
110
  widthShow: string;
76
111
  widthLarge: string;
77
112
  };
78
- leftStyle: (ele: {
113
+ leftStyle: (ele: Partial<{
79
114
  [key: string]: any;
80
115
  id: string;
81
116
  name: string;
@@ -92,7 +127,7 @@ declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
92
127
  required: boolean;
93
128
  requiredDisable: boolean;
94
129
  hide: boolean;
95
- }) => {
130
+ }>) => {
96
131
  background: string | undefined;
97
132
  };
98
133
  showCheckBox: (key: string) => boolean;
@@ -103,7 +138,7 @@ declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
103
138
  reset: () => void;
104
139
  calculateCheck: (key: string) => boolean;
105
140
  handleAllCheck: (e: boolean, key: string) => void;
106
- handleFieldClick: (item: {
141
+ handleFieldClick: (item: Partial<{
107
142
  [key: string]: any;
108
143
  id: string;
109
144
  name: string;
@@ -120,8 +155,8 @@ declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
120
155
  required: boolean;
121
156
  requiredDisable: boolean;
122
157
  hide: boolean;
123
- }) => void;
124
- isDisable: (item: {
158
+ }>) => void;
159
+ isDisable: (item: Partial<{
125
160
  [key: string]: any;
126
161
  id: string;
127
162
  name: string;
@@ -138,7 +173,7 @@ declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
138
173
  required: boolean;
139
174
  requiredDisable: boolean;
140
175
  hide: boolean;
141
- }, key: string) => any;
176
+ }>, key: string) => any;
142
177
  setWidth: () => void;
143
178
  NButton: any;
144
179
  NCheckbox: any;
@@ -148,7 +183,7 @@ declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
148
183
  NSpin: any;
149
184
  NTooltip: any;
150
185
  NPopconfirm: any;
151
- draggable: import("vue").DefineComponent<{
186
+ Draggable: import("vue").DefineComponent<{
152
187
  list: {
153
188
  type: ArrayConstructor;
154
189
  required: boolean;
@@ -221,9 +256,26 @@ declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
221
256
  modelValue: unknown[];
222
257
  componentData: Record<string, any>;
223
258
  }>;
224
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("reset" | "onSave" | "onClose")[], "reset" | "onSave" | "onClose", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
259
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("onSave" | "onClose" | "reset")[], "onSave" | "onClose" | "reset", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
225
260
  fields: {
226
- type: import("vue").PropType<any[]>;
261
+ type: import("vue").PropType<Partial<{
262
+ [key: string]: any;
263
+ id: string;
264
+ name: string;
265
+ show: boolean;
266
+ sort: boolean;
267
+ sortDirection: "NONE" | "ASC" | "DESC";
268
+ title: string;
269
+ alias: string;
270
+ fixedShow: boolean;
271
+ fixedWay: "NONE" | "LEFT" | "RIGHT";
272
+ columnWidth: number | null;
273
+ editable: boolean;
274
+ editableDisable: boolean;
275
+ required: boolean;
276
+ requiredDisable: boolean;
277
+ hide: boolean;
278
+ }>[]>;
227
279
  default: () => never[];
228
280
  };
229
281
  footerFlag: {
@@ -244,7 +296,24 @@ declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
244
296
  onOnClose?: ((...args: any[]) => any) | undefined;
245
297
  }, {
246
298
  type: string;
247
- fields: any[];
299
+ fields: Partial<{
300
+ [key: string]: any;
301
+ id: string;
302
+ name: string;
303
+ show: boolean;
304
+ sort: boolean;
305
+ sortDirection: "NONE" | "ASC" | "DESC";
306
+ title: string;
307
+ alias: string;
308
+ fixedShow: boolean;
309
+ fixedWay: "NONE" | "LEFT" | "RIGHT";
310
+ columnWidth: number | null;
311
+ editable: boolean;
312
+ editableDisable: boolean;
313
+ required: boolean;
314
+ requiredDisable: boolean;
315
+ hide: boolean;
316
+ }>[];
248
317
  footerFlag: boolean;
249
318
  isEdit: boolean;
250
319
  }>>;