cnhis-design-vue 3.2.9-beta.3 → 3.2.9-beta.30

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 (114) hide show
  1. package/es/components/ai-chat/src/components/ChatMain.js +1 -1
  2. package/es/components/ai-chat/src/types/index.d.ts +8 -7
  3. package/es/components/base-search/index.d.ts +2 -0
  4. package/es/components/base-search/src/index.vue.d.ts +2 -0
  5. package/es/components/button-print/index.d.ts +37 -45
  6. package/es/components/button-print/src/ButtonPrint.vue.d.ts +37 -45
  7. package/es/components/button-print/src/ButtonPrint.vue2.js +1 -1
  8. package/es/components/button-print/src/components/NewPrintComponent.vue.d.ts +15 -35
  9. package/es/components/button-print/src/components/NewPrintComponent.vue2.js +1 -1
  10. package/es/components/button-print/src/components/OldPrintComponent.vue.d.ts +10 -5
  11. package/es/components/button-print/src/components/OldPrintComponent.vue2.js +1 -1
  12. package/es/components/button-print/src/utils/print.d.ts +8 -6
  13. package/es/components/button-print/src/utils/print.js +1 -1
  14. package/es/components/classification/index.d.ts +87 -0
  15. package/es/components/classification/src/components/search-filter/index.vue.d.ts +87 -0
  16. package/es/components/classification/src/components/set-classification/index.vue.d.ts +87 -0
  17. package/es/components/classification/src/index.vue.d.ts +87 -0
  18. package/es/components/date-picker/index.d.ts +29 -0
  19. package/es/components/date-picker/src/DatePicker.vue.d.ts +30 -1
  20. package/es/components/date-picker/src/DatePicker.vue2.js +1 -1
  21. package/es/components/expand-field/index.d.ts +1 -1
  22. package/es/components/expand-field/src/components/form.vue.d.ts +1 -1
  23. package/es/components/expand-field/src/index.vue.d.ts +1 -1
  24. package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +1 -1
  25. package/es/components/fabric-chart/src/hooks/temperature/useLeft.js +1 -1
  26. package/es/components/fabric-chart/src/hooks/temperature/useOther.js +1 -1
  27. package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -1
  28. package/es/components/field-set/index.d.ts +7 -1
  29. package/es/components/field-set/src/FieldColor.vue.d.ts +89 -6
  30. package/es/components/field-set/src/FieldColor.vue2.js +1 -1
  31. package/es/components/field-set/src/FieldFilter.vue.d.ts +31 -6
  32. package/es/components/field-set/src/FieldFilter.vue2.js +1 -1
  33. package/es/components/field-set/src/FieldSet.vue.d.ts +72 -29
  34. package/es/components/field-set/src/FieldSet.vue2.js +1 -1
  35. package/es/components/field-set/src/Index.vue.d.ts +7 -1
  36. package/es/components/field-set/src/Index.vue2.js +1 -1
  37. package/es/components/field-set/src/TableStyle.vue2.js +1 -1
  38. package/es/components/field-set/src/components/condition.vue.d.ts +29 -0
  39. package/es/components/field-set/src/components/edit-dialog.vue.d.ts +58 -0
  40. package/es/components/field-set/src/components/edit-filter.vue.d.ts +29 -0
  41. package/es/components/field-set/src/components/table-row.vue.d.ts +28 -1
  42. package/es/components/field-set/src/components/table-row.vue2.js +1 -1
  43. package/es/components/field-set/src/types/index.d.ts +4 -3
  44. package/es/components/field-set/src/utils/index.js +1 -1
  45. package/es/components/field-set/style/index.css +1 -1
  46. package/es/components/form-render/src/components/renderer/select.d.ts +2 -1
  47. package/es/components/form-render/src/components/renderer/select.js +1 -1
  48. package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
  49. package/es/components/iho-chat/index.d.ts +316 -6
  50. package/es/components/iho-chat/src/Index.vue.d.ts +316 -6
  51. package/es/components/iho-chat/src/Index.vue2.js +1 -1
  52. package/es/components/iho-chat/src/api/index.js +1 -1
  53. package/es/components/iho-chat/src/components/ChatAdd.vue.d.ts +5 -0
  54. package/es/components/iho-chat/src/components/ChatAdd.vue2.js +1 -1
  55. package/es/components/iho-chat/src/components/ChatFile.vue.d.ts +121 -1
  56. package/es/components/iho-chat/src/components/ChatFile.vue2.js +1 -1
  57. package/es/components/iho-chat/src/components/ChatFooter.vue.d.ts +6 -0
  58. package/es/components/iho-chat/src/components/ChatFooter.vue2.js +1 -1
  59. package/es/components/iho-chat/src/components/ChatHeader.vue.d.ts +160 -2
  60. package/es/components/iho-chat/src/components/ChatMain.vue.d.ts +122 -0
  61. package/es/components/iho-chat/src/components/ChatMain.vue2.js +1 -1
  62. package/es/components/iho-chat/src/components/ChatRecord.vue.d.ts +29 -0
  63. package/es/components/iho-chat/src/components/ChatRecord.vue2.js +1 -1
  64. package/es/components/iho-chat/src/components/ChatSet.vue.d.ts +6 -1
  65. package/es/components/iho-chat/src/components/ChatSet.vue2.js +1 -1
  66. package/es/components/iho-chat/src/components/ContextMenu.js +1 -1
  67. package/es/components/iho-chat/src/components/MultipleVideo.vue.d.ts +5 -0
  68. package/es/components/iho-chat/src/components/PersonProfile.vue2.js +1 -1
  69. package/es/components/iho-chat/src/components/SiderList.vue.d.ts +1 -3
  70. package/es/components/iho-chat/src/components/SiderList.vue2.js +1 -1
  71. package/es/components/iho-chat/src/constants/index.d.ts +2 -1
  72. package/es/components/iho-chat/src/constants/index.js +1 -1
  73. package/es/components/iho-chat/src/hooks/useSearchUserList.js +1 -1
  74. package/es/components/iho-chat/src/hooks/useSession.js +1 -1
  75. package/es/components/iho-chat/src/hooks/useState.d.ts +6 -0
  76. package/es/components/iho-chat/src/hooks/useState.js +1 -1
  77. package/es/components/iho-chat/src/types/index.d.ts +3 -1
  78. package/es/components/iho-chat/src/types/index.js +1 -1
  79. package/es/components/iho-chat/src/utils/chatSock.js +1 -1
  80. package/es/components/iho-chat/style/index.css +1 -1
  81. package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/filter.vue.d.ts +29 -0
  82. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +29 -0
  83. package/es/components/iho-table/src/plugins/verticalTablePlugin/src/hooks/index.js +1 -1
  84. package/es/components/iho-table/src/plugins/verticalTablePlugin/src/hooks/useRowHeight.d.ts +2 -0
  85. package/es/components/iho-table/src/plugins/verticalTablePlugin/src/hooks/useRowHeight.js +1 -0
  86. package/es/components/iho-table/src/types/index.d.ts +3 -0
  87. package/es/components/iho-table/style/index.css +1 -1
  88. package/es/components/index.css +1 -1
  89. package/es/components/quick-search/index.d.ts +3 -0
  90. package/es/components/quick-search/src/index.vue.d.ts +3 -0
  91. package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue.d.ts +29 -0
  92. package/es/components/table-filter/src/components/bi-filter/components/Date.vue.d.ts +29 -0
  93. package/es/components/table-filter/src/components/bi-filter/components/index.d.ts +29 -0
  94. package/es/components/table-filter/src/components/bi-filter/index.vue.d.ts +29 -0
  95. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +58 -0
  96. package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +29 -0
  97. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +29 -0
  98. package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +58 -0
  99. package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +58 -0
  100. package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.d.ts +29 -0
  101. package/es/components/table-filter/src/components/render-widget/components/DateOut.vue.d.ts +29 -0
  102. package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.d.ts +29 -0
  103. package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue.d.ts +29 -0
  104. package/es/components/table-filter/src/components/render-widget/components/index.d.ts +116 -0
  105. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +116 -0
  106. package/es/components/table-filter/src/hooks/useAdvanced.d.ts +1 -0
  107. package/es/components/table-filter/src/hooks/useAdvanced.js +1 -1
  108. package/es/components/table-filter/src/hooks/useRenderWidget.js +1 -1
  109. package/es/components/table-filter/src/types/index.d.ts +2 -0
  110. package/es/components/vod-chunk-upload/src/chunk-upload-new.vue2.js +1 -1
  111. package/es/shared/package.json.js +1 -1
  112. package/es/shared/utils/index.d.ts +1 -0
  113. package/es/shared/utils/index.js +1 -1
  114. package/package.json +2 -2
@@ -1 +1 @@
1
- import{defineComponent as e,inject as t,ref as n,watch as l,createVNode as s,createTextVNode as a,mergeProps as o,isVNode as r}from"vue";import{NAvatar as i,NSpin as u,NButton as c,NSpace as d}from"naive-ui";import{InjectionAIChat as p}from"../types/index.js";import m from"../../../../shared/assets/img/ai__avatar.png.js";import{isArray as v,isFunction as f}from"lodash";import"../../../../shared/utils/index.js";import"@vueuse/core";import"date-fns";import"lodash-es";import"@vue/shared";import"@vueuse/shared";import"../../../../shared/hooks/selectHooks/useSearchContent.js";import"@vicons/ionicons5";import{useScrollLoading as g}from"../../../../shared/hooks/useScrollLoading.js";function h(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!r(e)}var b=e({name:"ChatMain",inheritAttrs:!1,props:{},emits:[],setup(e,{attrs:r,slots:b,emit:y}){const{userAvatar:k,queryData:C,state:S,queryRecord:j,defaultShortcutList:x,hideInput:z=!1}=t(p),w=n(null),M=n([]),A=n(!1),_={page:0,hasMore:!0};let q=!1;async function E(e=!1){if(!_.hasMore)return;_.page++,1==_.page&&(M.value=[]);const{records:t,rows:n}=await j.value({page:_.page});v(n)&&M.value.length<=+t&&(M.value=_.page>1?[...M.value,...n]:n,M.value.length>=+t&&(e&&(A.value=!0),_.hasMore=!1,console.log("没有更多消息了")))}function H({content:e="",button:t={}}){const n=e.replace(/\\n|\n|\r/g,"<br>").split("<br>").map(((e,t,n)=>[e,t===n.length-1?null:s("br",null,null)])),l=t.content?[s("br",null,null),s(c,o({secondary:!0,class:"gradient",disabled:t.disabled},t.link?{tag:"a",href:t.link,target:"_blank"}:{},{onClick:()=>function(e){e.link||(q=!0,S.beingSent=!0,S.sendContent=e.content,e.disabled=!0)}(t)}),{default:()=>[t.content]})]:null;return[n,l]}function I({role:e=""}){return"user"===e}function L(){let e;return s("div",{class:"message-item"},[s(i,{round:!0,size:40,src:m},null),s("div",{class:"content fillet-10 default"},[s("h2",null,[a("Hi,我是你的AI助理")]),s("p",null,[a("我汇集了医生站/护士站各项智能服务,可以向我进行提问哦 ~ "),s("br",null,null),a("你的反馈助我成长,期待我们一起探索未来!下次可以在首页和应用页找到我~")]),v(x.value)&&x.value.length>0?[s("p",{style:"margin: 5px 0 5px"},[a("你可以试着问我:")]),s(d,{"wrap-item":!1},h(e=x.value.map((e=>s(c,{size:"large",secondary:!0,onClick:()=>S.sendContent=e,disabled:S.beingSent},h(e)?e:{default:()=>[e]}))))?e:{default:()=>[e]})]:null])])}return g(w,(()=>{E()}),z.value?"bottom":"top"),E(!0),l((()=>S.beingSent),(async e=>{if(e){q||M.value.unshift({role:"user",content:S.sendContent}),q=!1;const e=await C.value({content:S.sendContent,contentType:"text"});v(e)&&M.value.unshift(...e),S.beingSent=!1,S.sendContent=""}})),()=>s("section",{class:"chat-main",ref:w,style:{"flex-direction":z.value?"column":"column-reverse"}},[[S.beingSent?s("div",{class:"message-item"},[s(i,{round:!0,size:40,src:m},null),s("div",{class:"content fillet-10 loading"},[s(u,{size:22,stroke:"#4170EE"},null),s("span",null,[a("正在加载中,请稍等...")])])]):null,M.value.map((e=>s("div",{class:"message-item"},[s(i,{round:!0,size:40,src:I(e)?k.value:m},null),s("div",{class:["content",I(e)?"fillet-8 mine":"fillet-10"]},[f(e.render)?e.render():H(e)])]))),A.value?L():null]])}});export{b as default};
1
+ import{defineComponent as e,inject as t,ref as n,watch as l,createVNode as s,createTextVNode as a,mergeProps as o,isVNode as r}from"vue";import{NAvatar as i,NSpin as u,NButton as c,NSpace as d}from"naive-ui";import{InjectionAIChat as p}from"../types/index.js";import m from"../../../../shared/assets/img/ai__avatar.png.js";import{isArray as v,isFunction as f}from"lodash";import"../../../../shared/utils/index.js";import"@vueuse/core";import"date-fns";import"lodash-es";import"@vue/shared";import"@vueuse/shared";import"../../../../shared/hooks/selectHooks/useSearchContent.js";import"@vicons/ionicons5";import{useScrollLoading as g}from"../../../../shared/hooks/useScrollLoading.js";function h(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!r(e)}var b=e({name:"ChatMain",inheritAttrs:!1,props:{},emits:[],setup(e,{attrs:r,slots:b,emit:y}){const{userAvatar:k,queryData:C,state:S,queryRecord:j,defaultShortcutList:x,hideInput:z=!1}=t(p),w=n(null),E=n([]),M=n(!1),T={page:0,hasMore:!0};async function A(e=!1){if(!T.hasMore)return;T.page++,1==T.page&&(E.value=[]);const{records:t,rows:n}=await j.value({page:T.page});v(n)&&E.value.length<=+t&&(E.value=T.page>1?[...E.value,...n]:n,E.value.length>=+t&&(e&&(M.value=!0),T.hasMore=!1,console.log("没有更多消息了")))}function _(e,t){const{contents:n=[],buttonType:l=""}=e,r=n[t].content.replace(/\\n|\n|\r\n/g,"<br>").split("<br>").filter((e=>!!e)).map(((e,t,n)=>[e,t===n.length-1?null:s("br",null,null)])),i=l&&0===t?[s("br",null,null),s(c,o({style:"margin-top: 5px",secondary:!0,class:"gradient",disabled:e.disabled},e.link?{tag:"a",href:e.link,target:"_blank"}:{},{onClick:()=>function(e){E.value.forEach((e=>e.buttonType&&(e.disabled=!0))),e.link||(S.beingSent=!0,S.sendContent="确定")}(e)}),{default:()=>[a("确定")]})]:null;return[r,i]}function q({role:e=""}){return"user"===e}function H(){let e;return s("div",{class:"message-item"},[s(i,{round:!0,size:40,src:m},null),s("div",{class:"content fillet-10 default"},[s("h2",null,[a("Hi,我是你的AI助理")]),s("p",null,[a("我汇集了医生站/护士站各项智能服务,可以向我进行提问哦 ~ "),s("br",null,null),a("你的反馈助我成长,期待我们一起探索未来!下次可以在首页和应用页找到我~")]),v(x.value)&&x.value.length>0?[s("p",{style:"margin: 5px 0 5px"},[a("你可以试着问我:")]),s(d,{"wrap-item":!1},h(e=x.value.map((e=>s(c,{size:"large",secondary:!0,onClick:()=>S.sendContent=e,disabled:S.beingSent},h(e)?e:{default:()=>[e]}))))?e:{default:()=>[e]})]:null])])}return g(w,(()=>{A()}),z.value?"bottom":"top"),A(!0),l((()=>S.beingSent),(async e=>{if(e){E.value.unshift({contents:[{role:"user",content:S.sendContent}]}),E.value.forEach((e=>e.buttonType&&(e.disabled=!0)));const e=await C.value({content:S.sendContent,contentType:"text"});v(null==e?void 0:e.contents)&&E.value.unshift(e),S.beingSent=!1,S.sendContent=""}})),()=>s("section",{class:"chat-main",ref:w,style:{"flex-direction":z.value?"column":"column-reverse"}},[[S.beingSent?s("div",{class:"message-item"},[s(i,{round:!0,size:40,src:m},null),s("div",{class:"content fillet-10 loading"},[s(u,{size:22,stroke:"#4170EE"},null),s("span",null,[a("正在加载中,请稍等...")])])]):null,E.value.map((e=>e.contents.map(((t,n)=>s("div",{class:"message-item"},[s(i,{round:!0,size:40,src:q(t)?k.value:m},null),s("div",{class:["content",q(t)?"fillet-8 mine":"fillet-10"]},[f(t.render)?t.render():_(e,n)])]))))),M.value?H():null]])}});export{b as default};
@@ -2,22 +2,23 @@ import { InjectionKey, VNodeChild } from 'vue';
2
2
  import { AnyObject } from '../../../../shared/types';
3
3
  export declare const InjectionAIChat: InjectionKey<AnyObject>;
4
4
  export declare const InjectionAIChatEmits: InjectionKey<(event: string, ...args: any[]) => void>;
5
- export type MessageList = Array<{
5
+ export type MessageItem = {
6
6
  role: string;
7
7
  content: string;
8
8
  render?: () => VNodeChild;
9
- button?: {
10
- content: string;
11
- link: string;
12
- };
13
9
  [key: string]: any;
10
+ };
11
+ export type MessageList = Array<{
12
+ contents: MessageItem[];
13
+ msgId: string;
14
+ buttonType?: string;
14
15
  }>;
15
16
  export type QueryData = (props: {
16
17
  content: string;
17
18
  contentType: string;
18
19
  }) => Promise<Array<{
19
- content: string;
20
- render?: () => VNodeChild;
20
+ contents: MessageItem[];
21
+ buttonType?: string;
21
22
  [key: string]: any;
22
23
  }>>;
23
24
  export type QueryRecord = (props: {
@@ -74,6 +74,7 @@ declare const CBaseSearch: SFCWithInstall<import("vue").DefineComponent<{
74
74
  placeholder: string | undefined;
75
75
  advanceColWidth: number | null | undefined;
76
76
  accurateSearch: any;
77
+ extendKey: string;
77
78
  }[];
78
79
  transformParams: (paramsList: any[]) => any;
79
80
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
@@ -150,6 +151,7 @@ declare const CBaseSearch: SFCWithInstall<import("vue").DefineComponent<{
150
151
  alias?: string | undefined;
151
152
  accurateSearch?: any;
152
153
  isAccurateSearchVal?: boolean | undefined;
154
+ extendKey?: string | undefined;
153
155
  }[]>;
154
156
  filterChangeFnList: import("vue").Ref<any[]>;
155
157
  showQuickSearch: import("vue").ComputedRef<boolean>;
@@ -75,6 +75,7 @@ declare const _default: import("vue").DefineComponent<{
75
75
  placeholder: string | undefined;
76
76
  advanceColWidth: number | null | undefined;
77
77
  accurateSearch: any;
78
+ extendKey: string;
78
79
  }[];
79
80
  transformParams: (paramsList: any[]) => any;
80
81
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
@@ -151,6 +152,7 @@ declare const _default: import("vue").DefineComponent<{
151
152
  alias?: string | undefined;
152
153
  accurateSearch?: any;
153
154
  isAccurateSearchVal?: boolean | undefined;
155
+ extendKey?: string | undefined;
154
156
  }[]>;
155
157
  filterChangeFnList: import("vue").Ref<any[]>;
156
158
  showQuickSearch: import("vue").ComputedRef<boolean>;
@@ -92,7 +92,6 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
92
92
  };
93
93
  printCopies: {
94
94
  type: NumberConstructor;
95
- default: number;
96
95
  };
97
96
  printCustomProps: {
98
97
  type: ObjectConstructor;
@@ -109,6 +108,9 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
109
108
  type: ObjectConstructor;
110
109
  default: () => {};
111
110
  };
111
+ svrUpdateIp: {
112
+ type: StringConstructor;
113
+ };
112
114
  }, {
113
115
  $attrs: {
114
116
  [x: string]: unknown;
@@ -204,7 +206,6 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
204
206
  };
205
207
  printCopies: {
206
208
  type: NumberConstructor;
207
- default: number;
208
209
  };
209
210
  printCustomProps: {
210
211
  type: ObjectConstructor;
@@ -221,6 +222,9 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
221
222
  type: ObjectConstructor;
222
223
  default: () => {};
223
224
  };
225
+ svrUpdateIp: {
226
+ type: StringConstructor;
227
+ };
224
228
  }>> & {
225
229
  onSuccess?: ((...args: any[]) => any) | undefined;
226
230
  onError?: ((...args: any[]) => any) | undefined;
@@ -317,7 +321,6 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
317
321
  };
318
322
  printCopies: {
319
323
  type: NumberConstructor;
320
- default: number;
321
324
  };
322
325
  resolution: {
323
326
  type: NumberConstructor;
@@ -334,6 +337,9 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
334
337
  shortcut: {};
335
338
  };
336
339
  };
340
+ svrUpdateIp: {
341
+ type: StringConstructor;
342
+ };
337
343
  }, {
338
344
  baseDownListSetting: {
339
345
  label: string;
@@ -431,7 +437,6 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
431
437
  };
432
438
  printCopies: {
433
439
  type: NumberConstructor;
434
- default: number;
435
440
  };
436
441
  resolution: {
437
442
  type: NumberConstructor;
@@ -448,44 +453,22 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
448
453
  shortcut: {};
449
454
  };
450
455
  };
456
+ svrUpdateIp: {
457
+ type: StringConstructor;
458
+ };
451
459
  }>> & {}>>;
452
460
  emit: any;
453
461
  defaultFormatInfo: import("../../shared/types").AnyObject;
454
462
  authorizationKey: import("vue").Ref<string>;
455
- state: {
456
- spinning: boolean;
457
- visible: boolean;
458
- formatList: never[];
459
- templateParams: never[];
460
- printParams: never[];
461
- originParams: {};
462
- currentFormatId: string;
463
- identityVerification: {
464
- visible: boolean;
465
- };
466
- isInited: boolean;
467
- watchPrintParamsReformatFn: null;
468
- spinTimer: null;
469
- isClickOuterPrint: boolean;
470
- curPrintParamList: never[];
471
- ireportExecuteMode: number;
472
- };
463
+ state: any;
473
464
  shortcutFn: any;
474
465
  options: import("vue").Ref<import("../../shared/types").AnyObject[]>;
475
466
  operations: import("vue").Ref<import("../../shared/types").AnyObject[]>;
476
- downlistOperation: {
477
- oneMouseType: string;
478
- oneClickType: string;
479
- twoMouseType: string;
480
- };
481
- downlistPopover: {
482
- oneShow: boolean;
483
- isOperation: boolean;
484
- isOutSetting: boolean;
485
- };
467
+ downlistOperation: any;
468
+ downlistPopover: any;
486
469
  innerPrintItems: import("vue").Ref<any[]>;
487
470
  outerPrintItems: import("vue").Ref<any[]>;
488
- currentFormatItem: import("vue").ComputedRef<{} | undefined>;
471
+ currentFormatItem: import("vue").ComputedRef<any>;
489
472
  formatTitle: import("vue").ComputedRef<any>;
490
473
  getTemplateIdByFormatId: import("vue").ComputedRef<any>;
491
474
  getTemplateCodeByFormatId: import("vue").ComputedRef<any>;
@@ -515,7 +498,7 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
515
498
  getOnceParams: (curPrintParamList: any[] | undefined, templateCode: string) => string;
516
499
  handleClickPrintAll: () => void;
517
500
  toggleExpandLoading: (isLoading: boolean, formatId?: string | undefined) => void;
518
- getCurrentLoading: () => boolean;
501
+ getCurrentLoading: () => any;
519
502
  handleOneTypePrint: (templateCode: string, templateId: string, formatId: string, isOuterClick: boolean) => void;
520
503
  handleClickPrint: (curPrintParamList: any[] | undefined, templateCode: string, templateId: string, formatId: string, printToParam?: never[], needContinuePrint?: boolean | undefined) => Promise<void>;
521
504
  handleClickPreview: (curPrintParamList: any[] | undefined, templateCode: string, templateId: string, formatId: string) => Promise<void>;
@@ -545,7 +528,7 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
545
528
  handleClickBtn: (visible?: boolean) => Promise<false | undefined>;
546
529
  reformatPrintParams: () => void;
547
530
  verifiySuccess: (token: string) => void;
548
- isPrintDisabled: (outer: any, j: number) => false;
531
+ isPrintDisabled: (outer: any, j: number) => any;
549
532
  directPrint: () => Promise<void>;
550
533
  directDefaultFormatPrint: (defaultFormatId: string) => Promise<void>;
551
534
  NDropdown: any;
@@ -823,7 +806,6 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
823
806
  };
824
807
  printCopies: {
825
808
  type: NumberConstructor;
826
- default: number;
827
809
  };
828
810
  resolution: {
829
811
  type: NumberConstructor;
@@ -840,6 +822,9 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
840
822
  shortcut: {};
841
823
  };
842
824
  };
825
+ svrUpdateIp: {
826
+ type: StringConstructor;
827
+ };
843
828
  }>>, {
844
829
  params: import("../../shared/types").AnyObject[];
845
830
  btnText: string;
@@ -862,7 +847,6 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
862
847
  }>;
863
848
  showLoading: boolean;
864
849
  hideButtons: unknown[];
865
- printCopies: number;
866
850
  newPrintSetting: Record<string, any>;
867
851
  }> | import("vue").DefineComponent<{
868
852
  printParams: {
@@ -955,7 +939,6 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
955
939
  };
956
940
  printCopies: {
957
941
  type: NumberConstructor;
958
- default: number;
959
942
  };
960
943
  resolution: {
961
944
  type: NumberConstructor;
@@ -967,6 +950,9 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
967
950
  placement: {
968
951
  type: StringConstructor;
969
952
  };
953
+ svrUpdateIp: {
954
+ type: StringConstructor;
955
+ };
970
956
  }, {
971
957
  $attrs: {
972
958
  [x: string]: unknown;
@@ -1066,7 +1052,6 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
1066
1052
  };
1067
1053
  printCopies: {
1068
1054
  type: NumberConstructor;
1069
- default: number;
1070
1055
  };
1071
1056
  resolution: {
1072
1057
  type: NumberConstructor;
@@ -1078,6 +1063,9 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
1078
1063
  placement: {
1079
1064
  type: StringConstructor;
1080
1065
  };
1066
+ svrUpdateIp: {
1067
+ type: StringConstructor;
1068
+ };
1081
1069
  }>> & {}>>;
1082
1070
  emit: any;
1083
1071
  defaultFormatInfo: import("../../shared/types").AnyObject;
@@ -1095,7 +1083,7 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
1095
1083
  isInited: boolean;
1096
1084
  watchPrintParamsReformatFn: null;
1097
1085
  spinTimer: null;
1098
- ireportExecuteMode: number;
1086
+ iReportExecuteMode: number;
1099
1087
  };
1100
1088
  options: import("vue").Ref<import("../../shared/types").AnyObject[]>;
1101
1089
  currentFormatItem: import("vue").ComputedRef<{} | undefined>;
@@ -1406,7 +1394,6 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
1406
1394
  };
1407
1395
  printCopies: {
1408
1396
  type: NumberConstructor;
1409
- default: number;
1410
1397
  };
1411
1398
  resolution: {
1412
1399
  type: NumberConstructor;
@@ -1418,6 +1405,9 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
1418
1405
  placement: {
1419
1406
  type: StringConstructor;
1420
1407
  };
1408
+ svrUpdateIp: {
1409
+ type: StringConstructor;
1410
+ };
1421
1411
  }>>, {
1422
1412
  params: import("../../shared/types").AnyObject[];
1423
1413
  btnText: string;
@@ -1441,7 +1431,6 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
1441
1431
  }>;
1442
1432
  showLoading: boolean;
1443
1433
  hideButtons: unknown[];
1444
- printCopies: number;
1445
1434
  printCustomProps: Record<string, any>;
1446
1435
  }>>;
1447
1436
  getProps: import("vue").ComputedRef<Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
@@ -1535,7 +1524,6 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
1535
1524
  };
1536
1525
  printCopies: {
1537
1526
  type: NumberConstructor;
1538
- default: number;
1539
1527
  };
1540
1528
  printCustomProps: {
1541
1529
  type: ObjectConstructor;
@@ -1552,6 +1540,9 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
1552
1540
  type: ObjectConstructor;
1553
1541
  default: () => {};
1554
1542
  };
1543
+ svrUpdateIp: {
1544
+ type: StringConstructor;
1545
+ };
1555
1546
  }>> & {
1556
1547
  onSuccess?: ((...args: any[]) => any) | undefined;
1557
1548
  onError?: ((...args: any[]) => any) | undefined;
@@ -1654,7 +1645,6 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
1654
1645
  };
1655
1646
  printCopies: {
1656
1647
  type: NumberConstructor;
1657
- default: number;
1658
1648
  };
1659
1649
  printCustomProps: {
1660
1650
  type: ObjectConstructor;
@@ -1671,6 +1661,9 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
1671
1661
  type: ObjectConstructor;
1672
1662
  default: () => {};
1673
1663
  };
1664
+ svrUpdateIp: {
1665
+ type: StringConstructor;
1666
+ };
1674
1667
  }>> & {
1675
1668
  onSuccess?: ((...args: any[]) => any) | undefined;
1676
1669
  onError?: ((...args: any[]) => any) | undefined;
@@ -1700,7 +1693,6 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
1700
1693
  }>;
1701
1694
  showLoading: boolean;
1702
1695
  hideButtons: unknown[];
1703
- printCopies: number;
1704
1696
  printCustomProps: Record<string, any>;
1705
1697
  placement: string;
1706
1698
  newPrintSetting: Record<string, any>;
@@ -95,7 +95,6 @@ declare const _default: import("vue").DefineComponent<{
95
95
  };
96
96
  printCopies: {
97
97
  type: NumberConstructor;
98
- default: number;
99
98
  };
100
99
  printCustomProps: {
101
100
  type: ObjectConstructor;
@@ -112,6 +111,9 @@ declare const _default: import("vue").DefineComponent<{
112
111
  type: ObjectConstructor;
113
112
  default: () => {};
114
113
  };
114
+ svrUpdateIp: {
115
+ type: StringConstructor;
116
+ };
115
117
  }, {
116
118
  $attrs: {
117
119
  [x: string]: unknown;
@@ -210,7 +212,6 @@ declare const _default: import("vue").DefineComponent<{
210
212
  };
211
213
  printCopies: {
212
214
  type: NumberConstructor;
213
- default: number;
214
215
  };
215
216
  printCustomProps: {
216
217
  type: ObjectConstructor;
@@ -227,6 +228,9 @@ declare const _default: import("vue").DefineComponent<{
227
228
  type: ObjectConstructor;
228
229
  default: () => {};
229
230
  };
231
+ svrUpdateIp: {
232
+ type: StringConstructor;
233
+ };
230
234
  }>> & {
231
235
  onSuccess?: ((...args: any[]) => any) | undefined;
232
236
  onError?: ((...args: any[]) => any) | undefined;
@@ -323,7 +327,6 @@ declare const _default: import("vue").DefineComponent<{
323
327
  };
324
328
  printCopies: {
325
329
  type: NumberConstructor;
326
- default: number;
327
330
  };
328
331
  resolution: {
329
332
  type: NumberConstructor;
@@ -340,6 +343,9 @@ declare const _default: import("vue").DefineComponent<{
340
343
  shortcut: {};
341
344
  };
342
345
  };
346
+ svrUpdateIp: {
347
+ type: StringConstructor;
348
+ };
343
349
  }, {
344
350
  baseDownListSetting: {
345
351
  label: string;
@@ -437,7 +443,6 @@ declare const _default: import("vue").DefineComponent<{
437
443
  };
438
444
  printCopies: {
439
445
  type: NumberConstructor;
440
- default: number;
441
446
  };
442
447
  resolution: {
443
448
  type: NumberConstructor;
@@ -454,44 +459,22 @@ declare const _default: import("vue").DefineComponent<{
454
459
  shortcut: {};
455
460
  };
456
461
  };
462
+ svrUpdateIp: {
463
+ type: StringConstructor;
464
+ };
457
465
  }>> & {}>>;
458
466
  emit: any;
459
467
  defaultFormatInfo: AnyObject;
460
468
  authorizationKey: import("vue").Ref<string>;
461
- state: {
462
- spinning: boolean;
463
- visible: boolean;
464
- formatList: never[];
465
- templateParams: never[];
466
- printParams: never[];
467
- originParams: {};
468
- currentFormatId: string;
469
- identityVerification: {
470
- visible: boolean;
471
- };
472
- isInited: boolean;
473
- watchPrintParamsReformatFn: null;
474
- spinTimer: null;
475
- isClickOuterPrint: boolean;
476
- curPrintParamList: never[];
477
- ireportExecuteMode: number;
478
- };
469
+ state: any;
479
470
  shortcutFn: any;
480
471
  options: import("vue").Ref<AnyObject[]>;
481
472
  operations: import("vue").Ref<AnyObject[]>;
482
- downlistOperation: {
483
- oneMouseType: string;
484
- oneClickType: string;
485
- twoMouseType: string;
486
- };
487
- downlistPopover: {
488
- oneShow: boolean;
489
- isOperation: boolean;
490
- isOutSetting: boolean;
491
- };
473
+ downlistOperation: any;
474
+ downlistPopover: any;
492
475
  innerPrintItems: import("vue").Ref<any[]>;
493
476
  outerPrintItems: import("vue").Ref<any[]>;
494
- currentFormatItem: import("vue").ComputedRef<{} | undefined>;
477
+ currentFormatItem: import("vue").ComputedRef<any>;
495
478
  formatTitle: import("vue").ComputedRef<any>;
496
479
  getTemplateIdByFormatId: import("vue").ComputedRef<any>;
497
480
  getTemplateCodeByFormatId: import("vue").ComputedRef<any>;
@@ -521,7 +504,7 @@ declare const _default: import("vue").DefineComponent<{
521
504
  getOnceParams: (curPrintParamList: any[] | undefined, templateCode: string) => string;
522
505
  handleClickPrintAll: () => void;
523
506
  toggleExpandLoading: (isLoading: boolean, formatId?: string | undefined) => void;
524
- getCurrentLoading: () => boolean;
507
+ getCurrentLoading: () => any;
525
508
  handleOneTypePrint: (templateCode: string, templateId: string, formatId: string, isOuterClick: boolean) => void;
526
509
  handleClickPrint: (curPrintParamList: any[] | undefined, templateCode: string, templateId: string, formatId: string, printToParam?: never[], needContinuePrint?: boolean | undefined) => Promise<void>;
527
510
  handleClickPreview: (curPrintParamList: any[] | undefined, templateCode: string, templateId: string, formatId: string) => Promise<void>;
@@ -551,7 +534,7 @@ declare const _default: import("vue").DefineComponent<{
551
534
  handleClickBtn: (visible?: boolean) => Promise<false | undefined>;
552
535
  reformatPrintParams: () => void;
553
536
  verifiySuccess: (token: string) => void;
554
- isPrintDisabled: (outer: any, j: number) => false;
537
+ isPrintDisabled: (outer: any, j: number) => any;
555
538
  directPrint: () => Promise<void>;
556
539
  directDefaultFormatPrint: (defaultFormatId: string) => Promise<void>;
557
540
  NDropdown: any;
@@ -829,7 +812,6 @@ declare const _default: import("vue").DefineComponent<{
829
812
  };
830
813
  printCopies: {
831
814
  type: NumberConstructor;
832
- default: number;
833
815
  };
834
816
  resolution: {
835
817
  type: NumberConstructor;
@@ -846,6 +828,9 @@ declare const _default: import("vue").DefineComponent<{
846
828
  shortcut: {};
847
829
  };
848
830
  };
831
+ svrUpdateIp: {
832
+ type: StringConstructor;
833
+ };
849
834
  }>>, {
850
835
  params: AnyObject[];
851
836
  btnText: string;
@@ -868,7 +853,6 @@ declare const _default: import("vue").DefineComponent<{
868
853
  }>;
869
854
  showLoading: boolean;
870
855
  hideButtons: unknown[];
871
- printCopies: number;
872
856
  newPrintSetting: Record<string, any>;
873
857
  }> | import("vue").DefineComponent<{
874
858
  printParams: {
@@ -961,7 +945,6 @@ declare const _default: import("vue").DefineComponent<{
961
945
  };
962
946
  printCopies: {
963
947
  type: NumberConstructor;
964
- default: number;
965
948
  };
966
949
  resolution: {
967
950
  type: NumberConstructor;
@@ -973,6 +956,9 @@ declare const _default: import("vue").DefineComponent<{
973
956
  placement: {
974
957
  type: StringConstructor;
975
958
  };
959
+ svrUpdateIp: {
960
+ type: StringConstructor;
961
+ };
976
962
  }, {
977
963
  $attrs: {
978
964
  [x: string]: unknown;
@@ -1072,7 +1058,6 @@ declare const _default: import("vue").DefineComponent<{
1072
1058
  };
1073
1059
  printCopies: {
1074
1060
  type: NumberConstructor;
1075
- default: number;
1076
1061
  };
1077
1062
  resolution: {
1078
1063
  type: NumberConstructor;
@@ -1084,6 +1069,9 @@ declare const _default: import("vue").DefineComponent<{
1084
1069
  placement: {
1085
1070
  type: StringConstructor;
1086
1071
  };
1072
+ svrUpdateIp: {
1073
+ type: StringConstructor;
1074
+ };
1087
1075
  }>> & {}>>;
1088
1076
  emit: any;
1089
1077
  defaultFormatInfo: AnyObject;
@@ -1101,7 +1089,7 @@ declare const _default: import("vue").DefineComponent<{
1101
1089
  isInited: boolean;
1102
1090
  watchPrintParamsReformatFn: null;
1103
1091
  spinTimer: null;
1104
- ireportExecuteMode: number;
1092
+ iReportExecuteMode: number;
1105
1093
  };
1106
1094
  options: import("vue").Ref<AnyObject[]>;
1107
1095
  currentFormatItem: import("vue").ComputedRef<{} | undefined>;
@@ -1412,7 +1400,6 @@ declare const _default: import("vue").DefineComponent<{
1412
1400
  };
1413
1401
  printCopies: {
1414
1402
  type: NumberConstructor;
1415
- default: number;
1416
1403
  };
1417
1404
  resolution: {
1418
1405
  type: NumberConstructor;
@@ -1424,6 +1411,9 @@ declare const _default: import("vue").DefineComponent<{
1424
1411
  placement: {
1425
1412
  type: StringConstructor;
1426
1413
  };
1414
+ svrUpdateIp: {
1415
+ type: StringConstructor;
1416
+ };
1427
1417
  }>>, {
1428
1418
  params: AnyObject[];
1429
1419
  btnText: string;
@@ -1447,7 +1437,6 @@ declare const _default: import("vue").DefineComponent<{
1447
1437
  }>;
1448
1438
  showLoading: boolean;
1449
1439
  hideButtons: unknown[];
1450
- printCopies: number;
1451
1440
  printCustomProps: Record<string, any>;
1452
1441
  }>>;
1453
1442
  getProps: import("vue").ComputedRef<Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
@@ -1544,7 +1533,6 @@ declare const _default: import("vue").DefineComponent<{
1544
1533
  };
1545
1534
  printCopies: {
1546
1535
  type: NumberConstructor;
1547
- default: number;
1548
1536
  };
1549
1537
  printCustomProps: {
1550
1538
  type: ObjectConstructor;
@@ -1561,6 +1549,9 @@ declare const _default: import("vue").DefineComponent<{
1561
1549
  type: ObjectConstructor;
1562
1550
  default: () => {};
1563
1551
  };
1552
+ svrUpdateIp: {
1553
+ type: StringConstructor;
1554
+ };
1564
1555
  }>> & {
1565
1556
  onSuccess?: ((...args: any[]) => any) | undefined;
1566
1557
  onError?: ((...args: any[]) => any) | undefined;
@@ -1666,7 +1657,6 @@ declare const _default: import("vue").DefineComponent<{
1666
1657
  };
1667
1658
  printCopies: {
1668
1659
  type: NumberConstructor;
1669
- default: number;
1670
1660
  };
1671
1661
  printCustomProps: {
1672
1662
  type: ObjectConstructor;
@@ -1683,6 +1673,9 @@ declare const _default: import("vue").DefineComponent<{
1683
1673
  type: ObjectConstructor;
1684
1674
  default: () => {};
1685
1675
  };
1676
+ svrUpdateIp: {
1677
+ type: StringConstructor;
1678
+ };
1686
1679
  }>> & {
1687
1680
  onSuccess?: ((...args: any[]) => any) | undefined;
1688
1681
  onError?: ((...args: any[]) => any) | undefined;
@@ -1712,7 +1705,6 @@ declare const _default: import("vue").DefineComponent<{
1712
1705
  }>;
1713
1706
  showLoading: boolean;
1714
1707
  hideButtons: unknown[];
1715
- printCopies: number;
1716
1708
  printCustomProps: Record<string, any>;
1717
1709
  placement: string;
1718
1710
  newPrintSetting: Record<string, any>;
@@ -1 +1 @@
1
- import{defineComponent as t,useAttrs as e,ref as r,computed as n,provide as o,openBlock as i,createBlock as a,resolveDynamicComponent as p,unref as u,mergeProps as l,withCtx as s,createCommentVNode as d,renderSlot as f,normalizeProps as y,guardReactiveProps as m}from"vue";import{InjectionButtonPrintEmits as c}from"./constants/index.js";import g from"./components/NewPrintComponent.vue.js";import P from"./components/OldPrintComponent.vue.js";var v=t({__name:"ButtonPrint",props:{printParams:{type:Array},params:{default:()=>[],type:Array},btnText:{default:"打印",type:String},printText:{default:"直接打印",type:String},previewText:{default:"打印预览",type:String},pdfLoadText:{default:"下载pdf",type:String},formatEditText:{default:"格式编辑",type:String},prevFn:{default:()=>Promise.resolve(),type:Function},queryPrintFormatByNumber:{default:()=>Promise.resolve({}),type:Function},queryTemplateParams:{default:()=>Promise.resolve({}),type:Function},strategy:{default:"MULTI",type:String},clickPrevFn:{default:()=>Promise.resolve(!0),type:Function},noDataMsg:{default:"请选中需要打印的数据",type:String},noDefaultFormatMsg:{default:"获取打印格式失败,请联系管理员!",type:String},token:{type:String},printdlgshow:{default:"0",type:String},btnprint:{type:String,default:"1"},directPrint:{type:Boolean,default:!1},externalOptionConfig:{type:Object,default:()=>({})},signature:{type:String},showLoading:{type:Boolean,default:!0},hideButtons:{type:Array,default:()=>[]},printCopies:{type:Number,default:1},printCustomProps:{type:Object,default:()=>({})},resolution:{type:Number},placement:{type:String,default:"bottom-start"},newPrintSetting:{type:Object,default:()=>({})}},emits:["success","error","cancel","clickoutside","saveOuterPrint"],setup(t,{expose:v,emit:S}){const b=t,x=e(),j=r(),F=n((()=>{var t;return(null==(t=Object.keys(b.newPrintSetting))?void 0:t.length)>0?g:P})),O=n((()=>Object.assign({},b,x)));o(c,(function(t,...e){S(t,...e)}));return v({directPrint:async()=>{var t;null==(t=j.value)||t.directPrint()}}),(t,e)=>(i(),a(p(u(F)),l({ref_key:"printComponentRef",ref:j},u(O)),{button:s((e=>[d(" 自定义按钮样式 "),f(t.$slots,"button",y(m(e)))])),_:3},16))}});export{v as default};
1
+ import{defineComponent as t,useAttrs as e,ref as r,computed as n,provide as o,openBlock as i,createBlock as p,resolveDynamicComponent as a,unref as u,mergeProps as s,withCtx as l,createCommentVNode as d,renderSlot as y,normalizeProps as f,guardReactiveProps as m}from"vue";import{InjectionButtonPrintEmits as c}from"./constants/index.js";import g from"./components/NewPrintComponent.vue.js";import P from"./components/OldPrintComponent.vue.js";var v=t({__name:"ButtonPrint",props:{printParams:{type:Array},params:{default:()=>[],type:Array},btnText:{default:"打印",type:String},printText:{default:"直接打印",type:String},previewText:{default:"打印预览",type:String},pdfLoadText:{default:"下载pdf",type:String},formatEditText:{default:"格式编辑",type:String},prevFn:{default:()=>Promise.resolve(),type:Function},queryPrintFormatByNumber:{default:()=>Promise.resolve({}),type:Function},queryTemplateParams:{default:()=>Promise.resolve({}),type:Function},strategy:{default:"MULTI",type:String},clickPrevFn:{default:()=>Promise.resolve(!0),type:Function},noDataMsg:{default:"请选中需要打印的数据",type:String},noDefaultFormatMsg:{default:"获取打印格式失败,请联系管理员!",type:String},token:{type:String},printdlgshow:{default:"0",type:String},btnprint:{type:String,default:"1"},directPrint:{type:Boolean,default:!1},externalOptionConfig:{type:Object,default:()=>({})},signature:{type:String},showLoading:{type:Boolean,default:!0},hideButtons:{type:Array,default:()=>[]},printCopies:{type:Number},printCustomProps:{type:Object,default:()=>({})},resolution:{type:Number},placement:{type:String,default:"bottom-start"},newPrintSetting:{type:Object,default:()=>({})},svrUpdateIp:{type:String}},emits:["success","error","cancel","clickoutside","saveOuterPrint"],setup(t,{expose:v,emit:S}){const b=t,x=e(),j=r(),F=n((()=>{var t;return(null==(t=Object.keys(b.newPrintSetting))?void 0:t.length)>0?g:P})),O=n((()=>Object.assign({},b,x)));o(c,(function(t,...e){S(t,...e)}));return v({directPrint:async()=>{var t;null==(t=j.value)||t.directPrint()}}),(t,e)=>(i(),p(a(u(F)),s({ref_key:"printComponentRef",ref:j},u(O)),{button:l((e=>[d(" 自定义按钮样式 "),y(t.$slots,"button",f(m(e)))])),_:3},16))}});export{v as default};