cnhis-design-vue 3.1.51-release.0 → 3.1.51-release.2

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 (169) hide show
  1. package/es/components/base-search/index.d.ts +13 -8
  2. package/es/components/base-search/src/index.vue.d.ts +13 -8
  3. package/es/components/base-search/src/index.vue2.js +1 -1
  4. package/es/components/callback/index.d.ts +69 -0
  5. package/es/components/callback/index.js +1 -0
  6. package/es/components/callback/src/components/dialog/drawer.vue.d.ts +353 -0
  7. package/es/components/callback/src/components/dialog/drawer.vue.js +1 -0
  8. package/es/components/callback/src/components/dialog/drawer.vue2.js +1 -0
  9. package/es/components/callback/src/components/dialog/modal.vue.d.ts +166 -0
  10. package/es/components/callback/src/components/dialog/modal.vue.js +1 -0
  11. package/es/components/callback/src/components/dialog/modal.vue2.js +1 -0
  12. package/es/components/callback/src/components/popup/index.vue.d.ts +48 -0
  13. package/es/components/callback/src/components/popup/index.vue.js +1 -0
  14. package/es/components/callback/src/components/render/drawerIframe/index.vue.d.ts +62 -0
  15. package/es/components/callback/src/components/render/drawerIframe/index.vue.js +1 -0
  16. package/es/components/callback/src/components/render/drawerIframe/index.vue2.js +1 -0
  17. package/es/components/callback/src/components/render/enums.d.ts +5 -0
  18. package/es/components/callback/src/components/render/enums.js +1 -0
  19. package/es/components/callback/src/components/render/index.vue.d.ts +57 -0
  20. package/es/components/callback/src/components/render/index.vue.js +1 -0
  21. package/es/components/callback/src/components/render/popupMaps.d.ts +5700 -0
  22. package/es/components/callback/src/components/render/popupMaps.js +1 -0
  23. package/es/components/callback/src/index.vue.d.ts +68 -0
  24. package/es/components/callback/src/index.vue.js +1 -0
  25. package/es/components/callback/src/index.vue2.js +1 -0
  26. package/es/components/callback/src/types/index.d.ts +11 -0
  27. package/es/components/callback/style/callback-iconfont.ttf +0 -0
  28. package/es/components/callback/style/index.css +1 -0
  29. package/es/components/classification/index.d.ts +57 -15
  30. package/es/components/classification/src/components/search-filter/index.vue.d.ts +57 -15
  31. package/es/components/classification/src/components/set-classification/index.vue.d.ts +57 -15
  32. package/es/components/classification/src/index.vue.d.ts +57 -15
  33. package/es/components/classification/src/index.vue2.js +1 -1
  34. package/es/components/expand-field/index.d.ts +0 -13
  35. package/es/components/expand-field/src/components/FormItemPerson.vue.d.ts +0 -13
  36. package/es/components/expand-field/src/components/PersonModal.vue.d.ts +0 -13
  37. package/es/components/expand-field/src/components/PersonModal.vue2.js +1 -1
  38. package/es/components/expand-field/src/components/form.vue.d.ts +0 -13
  39. package/es/components/expand-field/src/index.vue.d.ts +0 -13
  40. package/es/components/expand-field/src/index.vue2.js +1 -1
  41. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +1 -1
  42. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcessChart.js +1 -1
  43. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.js +1 -1
  44. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useLeft.js +1 -1
  45. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useOther.js +1 -1
  46. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.js +1 -1
  47. package/es/components/fabric-chart/src/hooks/temperature/useBottom.js +1 -1
  48. package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +1 -1
  49. package/es/components/fabric-chart/src/hooks/temperature/useLeft.js +1 -1
  50. package/es/components/fabric-chart/src/hooks/temperature/useOther.js +1 -1
  51. package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -1
  52. package/es/components/fabric-chart/src/hooks/temperature/useTop.js +1 -1
  53. package/es/components/fabric-chart/src/hooks/useCommon.d.ts +1 -0
  54. package/es/components/fabric-chart/src/hooks/useCommon.js +1 -1
  55. package/es/components/form-config/index.d.ts +174 -25
  56. package/es/components/form-config/src/FormConfig.vue.d.ts +175 -26
  57. package/es/components/form-config/src/FormConfig.vue2.js +1 -1
  58. package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +4 -4
  59. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +13 -10
  60. package/es/components/form-config/src/components/FormConfigEventSetting.vue.d.ts +121 -0
  61. package/es/components/form-config/src/components/FormConfigEventSetting.vue.js +1 -0
  62. package/es/components/form-config/src/components/FormConfigEventSetting.vue2.js +1 -0
  63. package/es/components/form-config/src/constants/index.d.ts +19 -1
  64. package/es/components/form-config/src/constants/index.js +1 -1
  65. package/es/components/form-config/src/hooks/useDataNormalize.d.ts +1 -1
  66. package/es/components/form-config/src/hooks/useDataNormalize.js +1 -1
  67. package/es/components/form-config/src/types/index.d.ts +7 -3
  68. package/es/components/form-config/style/index.css +1 -1
  69. package/es/components/form-render/index.d.ts +4 -4
  70. package/es/components/form-render/src/FormRender.vue.d.ts +2 -2
  71. package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +4 -4
  72. package/es/components/form-render/src/components/renderer/remoteSearch.d.ts +79 -2
  73. package/es/components/form-render/src/components/renderer/remoteSearch.js +1 -1
  74. package/es/components/form-render/src/components/renderer/select.d.ts +10 -1
  75. package/es/components/form-render/src/components/renderer/select.js +1 -1
  76. package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
  77. package/es/components/form-render/src/hooks/useFieldNormalize.d.ts +2 -2
  78. package/es/components/form-render/src/hooks/useFormRenderOptions.d.ts +16 -10
  79. package/es/components/form-render/src/hooks/useFormRenderOptions.js +1 -1
  80. package/es/components/form-render/src/hooks/useFormValidator.js +1 -1
  81. package/es/components/form-render/src/hooks/useLowCodeReactions.d.ts +1 -1
  82. package/es/components/form-render/src/types/fieldItem.d.ts +2 -1
  83. package/es/components/form-render/src/types/index.d.ts +1 -19
  84. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/numberRendererPlugin.js +1 -1
  85. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.d.ts +1 -1
  86. package/es/components/iho-table/src/types/index.d.ts +2 -1
  87. package/es/components/index.css +1 -1
  88. package/es/components/index.d.ts +4 -3
  89. package/es/components/index.js +1 -1
  90. package/es/components/info-header/index.d.ts +13 -13
  91. package/es/components/info-header/src/InfoHeader.vue.d.ts +13 -13
  92. package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +1 -1
  93. package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +1 -1
  94. package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +5 -5
  95. package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +4 -4
  96. package/es/components/quick-search/index.d.ts +13 -8
  97. package/es/components/quick-search/src/index.vue.d.ts +13 -8
  98. package/es/components/quick-search/src/index.vue2.js +1 -1
  99. package/es/components/scale-view/src/hooks/use-component.d.ts +615 -255
  100. package/es/components/select-label/index.d.ts +617 -256
  101. package/es/components/select-label/index.js +1 -1
  102. package/es/components/{iho-select-label/src/LabelFormContent.vue.d.ts → select-label/src/ihoLabel/IhoLabelFormContent.vue.d.ts} +5 -5
  103. package/es/components/select-label/src/ihoLabel/IhoLabelFormContent.vue.js +1 -0
  104. package/es/components/select-label/src/ihoLabel/IhoLabelFormContent.vue2.js +1 -0
  105. package/es/components/{iho-select-label/src/SelectLabel.vue.d.ts → select-label/src/ihoLabel/IhoSelectLabel.vue.d.ts} +7 -7
  106. package/es/components/select-label/src/ihoLabel/IhoSelectLabel.vue.js +1 -0
  107. package/es/components/select-label/src/ihoLabel/IhoSelectLabel.vue2.js +1 -0
  108. package/es/components/{iho-select-label/src/components/label-classify.vue.d.ts → select-label/src/ihoLabel/iho-label-classify.vue.d.ts} +1 -1
  109. package/es/components/select-label/src/ihoLabel/iho-label-classify.vue.js +1 -0
  110. package/es/components/select-label/src/ihoLabel/iho-label-classify.vue2.js +1 -0
  111. package/es/components/select-label/src/index.vue.d.ts +899 -0
  112. package/es/components/select-label/src/index.vue.js +1 -0
  113. package/es/components/select-label/src/index.vue2.js +1 -0
  114. package/es/components/shortcut-setter/index.d.ts +6 -5
  115. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +6 -5
  116. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +52 -7
  117. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue2.js +1 -1
  118. package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +1 -1
  119. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +1 -1
  120. package/es/components/table-filter/src/components/classify-filter/components/InputFilter.vue.d.ts +34 -2
  121. package/es/components/table-filter/src/components/classify-filter/components/InputFilter.vue2.js +1 -1
  122. package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +36 -4
  123. package/es/components/table-filter/src/components/classify-filter/hooks/useFilterConditions.d.ts +1 -6
  124. package/es/components/table-filter/src/components/classify-filter/hooks/useFilterConditions.js +1 -1
  125. package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +57 -15
  126. package/es/components/table-filter/src/components/classify-filter/index.vue2.js +1 -1
  127. package/es/components/table-filter/src/components/render-widget/components/InputCustom.vue.d.ts +58 -0
  128. package/es/components/table-filter/src/components/render-widget/components/InputCustom.vue.js +1 -0
  129. package/es/components/table-filter/src/components/render-widget/components/InputCustom.vue2.js +1 -0
  130. package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue2.js +1 -1
  131. package/es/components/table-filter/src/components/render-widget/components/index.d.ts +56 -1
  132. package/es/components/table-filter/src/components/render-widget/components/index.js +1 -1
  133. package/es/components/table-filter/src/components/render-widget/index.vue.d.ts +4 -1
  134. package/es/components/table-filter/src/components/render-widget/index.vue.js +1 -1
  135. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +55 -1
  136. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +1 -1
  137. package/es/components/table-filter/src/hooks/useAdvanced.d.ts +2 -0
  138. package/es/components/table-filter/src/hooks/useAdvanced.js +1 -1
  139. package/es/components/table-filter/src/hooks/useRenderWidget.d.ts +1 -7
  140. package/es/components/table-filter/src/hooks/useRenderWidget.js +1 -1
  141. package/es/components/table-filter/src/tool/transformData.d.ts +1 -6
  142. package/es/components/table-filter/src/tool/transformData.js +1 -1
  143. package/es/components/table-filter/src/types/index.d.ts +16 -1
  144. package/es/shared/components/InputNumberSlash/InputNumberSlash.d.ts +19 -1
  145. package/es/shared/components/InputNumberSlash/InputNumberSlash.js +1 -1
  146. package/es/shared/directive/flexibleResize.d.ts +4 -0
  147. package/es/{components/classification/src → shared}/directive/flexibleResize.js +1 -1
  148. package/es/shared/directive/index.d.ts +1 -0
  149. package/es/shared/directive/index.js +1 -0
  150. package/es/shared/package.json.js +1 -1
  151. package/es/shared/types/business.d.ts +27 -0
  152. package/es/shared/utils/business.d.ts +1 -2
  153. package/es/shared/utils/index.d.ts +3 -3
  154. package/package.json +2 -2
  155. package/es/components/classification/src/directive/flexibleResize.d.ts +0 -28
  156. package/es/components/iho-select-label/index.d.ts +0 -363
  157. package/es/components/iho-select-label/index.js +0 -1
  158. package/es/components/iho-select-label/src/LabelFormContent.vue.js +0 -1
  159. package/es/components/iho-select-label/src/LabelFormContent.vue2.js +0 -1
  160. package/es/components/iho-select-label/src/SelectLabel.vue.js +0 -1
  161. package/es/components/iho-select-label/src/SelectLabel.vue2.js +0 -1
  162. package/es/components/iho-select-label/src/components/label-classify.vue.js +0 -1
  163. package/es/components/iho-select-label/src/components/label-classify.vue2.js +0 -1
  164. package/es/components/iho-select-label/style/iho-select-label-iconfont.ttf +0 -0
  165. package/es/components/iho-select-label/style/index.css +0 -1
  166. package/es/components/table-filter/src/types/tool.d.ts +0 -7
  167. /package/es/components/{iho-select-label → callback}/src/types/index.js +0 -0
  168. /package/es/components/{iho-select-label → select-label}/src/types/index.d.ts +0 -0
  169. /package/es/components/{table-filter/src/types/tool.js → select-label/src/types/index.js} +0 -0
@@ -0,0 +1,166 @@
1
+ import { PropType } from 'vue';
2
+ import { ICallbackConfigType } from '../../../../../../es/components/callback/src/types';
3
+ declare const _default: import("vue").DefineComponent<{
4
+ options: {
5
+ type: PropType<ICallbackConfigType>;
6
+ };
7
+ visible: {
8
+ type: BooleanConstructor;
9
+ default: boolean;
10
+ };
11
+ closable: {
12
+ type: BooleanConstructor;
13
+ default: boolean;
14
+ };
15
+ screen: {
16
+ type: BooleanConstructor;
17
+ default: boolean;
18
+ };
19
+ modalConfig: {
20
+ type: ObjectConstructor;
21
+ default: () => {
22
+ width: string;
23
+ height: string;
24
+ maxHeight: string;
25
+ minHeight: string;
26
+ };
27
+ };
28
+ callbackApiConfig: {
29
+ type: ObjectConstructor;
30
+ };
31
+ }, {
32
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
33
+ options: {
34
+ type: PropType<ICallbackConfigType>;
35
+ };
36
+ visible: {
37
+ type: BooleanConstructor;
38
+ default: boolean;
39
+ };
40
+ closable: {
41
+ type: BooleanConstructor;
42
+ default: boolean;
43
+ };
44
+ screen: {
45
+ type: BooleanConstructor;
46
+ default: boolean;
47
+ };
48
+ modalConfig: {
49
+ type: ObjectConstructor;
50
+ default: () => {
51
+ width: string;
52
+ height: string;
53
+ maxHeight: string;
54
+ minHeight: string;
55
+ };
56
+ };
57
+ callbackApiConfig: {
58
+ type: ObjectConstructor;
59
+ };
60
+ }>> & {
61
+ onClose?: ((...args: any[]) => any) | undefined;
62
+ onChangeWindow?: ((...args: any[]) => any) | undefined;
63
+ }>>;
64
+ emits: (event: "close" | "changeWindow", ...args: any[]) => void;
65
+ isChangeWindow: import("vue").Ref<boolean>;
66
+ modalWidth: import("vue").Ref<string>;
67
+ modalHeight: import("vue").Ref<string>;
68
+ maxHeight: import("vue").Ref<string>;
69
+ minHeight: import("vue").Ref<string>;
70
+ initDef: () => void;
71
+ onClose: () => void;
72
+ changeWindow: () => void;
73
+ handleStyle: (key: string) => any;
74
+ NModal: any;
75
+ NCard: any;
76
+ renderCb: import("vue").DefineComponent<{
77
+ options: {
78
+ type: ObjectConstructor;
79
+ default: () => {
80
+ visible: boolean;
81
+ type: string;
82
+ code: string;
83
+ targetId: string;
84
+ targetName: string;
85
+ openWindowType: string;
86
+ params: string;
87
+ page: string;
88
+ };
89
+ };
90
+ callbackApiConfig: {
91
+ type: ObjectConstructor;
92
+ };
93
+ }, any, {
94
+ initialProps: {};
95
+ }, {}, {
96
+ getParams(params: any): any;
97
+ handlerCreateURL(url: any, param?: any[]): any;
98
+ getPageProps(): Promise<{
99
+ cache: boolean;
100
+ visible: any;
101
+ iframeUrl: any;
102
+ }>;
103
+ initComponentProps(cfg: any): Promise<void>;
104
+ generateCallback(cfg: any): import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
105
+ [key: string]: any;
106
+ }> | null;
107
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "closeModal"[], "closeModal", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
108
+ options: {
109
+ type: ObjectConstructor;
110
+ default: () => {
111
+ visible: boolean;
112
+ type: string;
113
+ code: string;
114
+ targetId: string;
115
+ targetName: string;
116
+ openWindowType: string;
117
+ params: string;
118
+ page: string;
119
+ };
120
+ };
121
+ callbackApiConfig: {
122
+ type: ObjectConstructor;
123
+ };
124
+ }>> & {
125
+ onCloseModal?: ((...args: any[]) => any) | undefined;
126
+ }, {
127
+ options: Record<string, any>;
128
+ }>;
129
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "changeWindow")[], "close" | "changeWindow", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
130
+ options: {
131
+ type: PropType<ICallbackConfigType>;
132
+ };
133
+ visible: {
134
+ type: BooleanConstructor;
135
+ default: boolean;
136
+ };
137
+ closable: {
138
+ type: BooleanConstructor;
139
+ default: boolean;
140
+ };
141
+ screen: {
142
+ type: BooleanConstructor;
143
+ default: boolean;
144
+ };
145
+ modalConfig: {
146
+ type: ObjectConstructor;
147
+ default: () => {
148
+ width: string;
149
+ height: string;
150
+ maxHeight: string;
151
+ minHeight: string;
152
+ };
153
+ };
154
+ callbackApiConfig: {
155
+ type: ObjectConstructor;
156
+ };
157
+ }>> & {
158
+ onClose?: ((...args: any[]) => any) | undefined;
159
+ onChangeWindow?: ((...args: any[]) => any) | undefined;
160
+ }, {
161
+ closable: boolean;
162
+ visible: boolean;
163
+ screen: boolean;
164
+ modalConfig: Record<string, any>;
165
+ }>;
166
+ export default _default;
@@ -0,0 +1 @@
1
+ import e from"./modal.vue2.js";import r from"../../../../../_virtual/_plugin-vue_export-helper.js";var o=r(e,[["__file","modal.vue"]]);export{o as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,ref as a,onBeforeMount as l,resolveComponent as i,openBlock as o,createBlock as n,unref as t,isRef as c,normalizeClass as s,normalizeStyle as u,withCtx as g,createVNode as h,createElementVNode as d,createCommentVNode as v}from"vue";import{NModal as r,NCard as m}from"naive-ui";import f from"../render/index.vue.js";const p={class:"svg-wrap"};var b=e({__name:"modal",props:{options:{type:Object},visible:{type:Boolean,default:!1},closable:{type:Boolean,default:!0},screen:{type:Boolean,default:!0},modalConfig:{type:Object,default:()=>({width:"860px",height:"548px",maxHeight:"548px",minHeight:"548px"})},callbackApiConfig:{type:Object}},emits:["close","changeWindow"],setup(e,{emit:b}){const k=e,C=a(!1),y=a(""),x=a(""),w=a(""),z=a("");function H(){b("close",!1),C.value&&j()}function j(){C.value=!C.value;let e=document.body.clientHeight;y.value=y.value===A("width")?"100%":A("width"),x.value=x.value===A("height")?`${e}px`:A("height"),b("changeWindow")}function A(e){return k.modalConfig[e]}return l((()=>{k.modalConfig&&Object.keys(k.modalConfig).length&&(y.value=k.modalConfig.width,x.value=k.modalConfig.height,w.value=k.modalConfig.maxHeight,z.value=k.modalConfig.minHeight,C.value=k.modalConfig.isChangeWindow)})),(a,l)=>{const b=i("svg-icon");return o(),n(t(r),{show:e.visible,"onUpdate:show":l[0]||(l[0]=e=>c(visible)?visible.value=e:null),class:s(["callback-modal-block",{"modal-screen":C.value}]),style:u({width:y.value,height:x.value,minHeight:z.value,maxHeight:w.value}),maskClosable:!1,centered:"",onNegativeClick:H},{default:g((()=>{var a;return[h(t(m),{title:null==(a=e.options)?void 0:a.name,bordered:!1,style:{overflowY:"auto",position:"relative"},size:"huge",role:"dialog","aria-modal":"true"},{"header-extra":g((()=>[d("div",p,[e.screen?(o(),n(b,{key:0,style:{"margin-right":"12px"},onClick:j,class:s(C.value?"iconfont-callback icon-callback-menzhenyishengzhanxitongtubiaozuixiaohua":"iconfont-callback icon-callback-menzhenyishengzhanxitongtubiaozuidahua")},null,8,["class"])):v("v-if",!0),e.closable?(o(),n(b,{key:1,class:"'iconfont-callback icon-callback-menzhenyishengzhanxitongtubiaoguanbi'",onClick:H})):v("v-if",!0)])])),default:g((()=>[h(f,{options:e.options,callbackApiConfig:e.callbackApiConfig},null,8,["options","callbackApiConfig"])])),_:1},8,["title"])]})),_:1},8,["show","class","style"])}}});export{b as default};
@@ -0,0 +1,48 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ options: {
3
+ type: ObjectConstructor;
4
+ default: () => {
5
+ visible: boolean;
6
+ type: string;
7
+ code: string;
8
+ targetId: string;
9
+ targetName: string;
10
+ openWindowType: string;
11
+ params: string;
12
+ page: string;
13
+ };
14
+ };
15
+ callbackApiConfig: {
16
+ type: ObjectConstructor;
17
+ };
18
+ }, any, {
19
+ initialProps: {};
20
+ dialogVisible: any;
21
+ }, {}, {
22
+ generateModal(cfg: any): import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
23
+ [key: string]: any;
24
+ }>;
25
+ onClose(): Promise<void>;
26
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "closeModal"[], "closeModal", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
27
+ options: {
28
+ type: ObjectConstructor;
29
+ default: () => {
30
+ visible: boolean;
31
+ type: string;
32
+ code: string;
33
+ targetId: string;
34
+ targetName: string;
35
+ openWindowType: string;
36
+ params: string;
37
+ page: string;
38
+ };
39
+ };
40
+ callbackApiConfig: {
41
+ type: ObjectConstructor;
42
+ };
43
+ }>> & {
44
+ onCloseModal?: ((...args: any[]) => any) | undefined;
45
+ }, {
46
+ options: Record<string, any>;
47
+ }>;
48
+ export default _default;
@@ -0,0 +1 @@
1
+ import{defineComponent as e,h as o}from"vue";import i from"../dialog/modal.vue.js";import a from"../dialog/drawer.vue.js";import t from"../render/index.vue.js";import l from"../../../../../_virtual/_plugin-vue_export-helper.js";var s=l(e({props:{options:{type:Object,default:()=>({visible:!1,type:"",code:"",targetId:"",targetName:"",openWindowType:"",params:"",page:""})},callbackApiConfig:{type:Object}},emits:["closeModal"],computed:{},data(){const{visible:e}=this.options;return{initialProps:{},dialogVisible:e}},methods:{generateModal(e){const{dialogVisible:l,onClose:s,options:r,callbackApiConfig:p}=this,{openWindowType:n}=e;let c=null,d={options:r,callbackApiConfig:p,visible:l,onClose:s};switch(n){case"dialog":case"fullDialog":c=i;break;case"pop":case"fullScreenPop":c=a;break;case"tab":c=t,d={options:r,callbackApiConfig:p},console.log("当前是tab类型,在微服务得页签中打开")}return o(c,d)},async onClose(){this.dialogVisible=!1,await Promise.resolve(),this.$emit("closeModal",!1)}},render(){return this.generateModal(this.options)}}),[["__file","index.vue"]]);export{s as default};
@@ -0,0 +1,62 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ cache: {
3
+ type: BooleanConstructor;
4
+ default: boolean;
5
+ };
6
+ visible: {
7
+ type: BooleanConstructor;
8
+ default: boolean;
9
+ };
10
+ iframeUrl: {
11
+ type: StringConstructor;
12
+ default: string;
13
+ };
14
+ }, {
15
+ iframe_cout: number;
16
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
17
+ cache: {
18
+ type: BooleanConstructor;
19
+ default: boolean;
20
+ };
21
+ visible: {
22
+ type: BooleanConstructor;
23
+ default: boolean;
24
+ };
25
+ iframeUrl: {
26
+ type: StringConstructor;
27
+ default: string;
28
+ };
29
+ }>> & {}>>;
30
+ cache_iframe_List: import("vue").Ref<string[]>;
31
+ pageId: import("vue").Ref<string>;
32
+ iframeDom: import("vue").Ref<any>;
33
+ wrapDom: import("vue").Ref<any>;
34
+ elDom: import("vue").Ref<any>;
35
+ initCacheIframe: () => void;
36
+ cacheIframeId: (id: string) => void;
37
+ removeIframeById: (id: string) => void;
38
+ removeCacheId: (id: string) => void;
39
+ crateIframe: (iFrameUrl: string, menuId: string, el: Element) => void;
40
+ removeIframeDom: () => void;
41
+ updatePosition: () => void;
42
+ onResize: () => void;
43
+ randomId: (len: number) => string;
44
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
45
+ cache: {
46
+ type: BooleanConstructor;
47
+ default: boolean;
48
+ };
49
+ visible: {
50
+ type: BooleanConstructor;
51
+ default: boolean;
52
+ };
53
+ iframeUrl: {
54
+ type: StringConstructor;
55
+ default: string;
56
+ };
57
+ }>>, {
58
+ visible: boolean;
59
+ cache: boolean;
60
+ iframeUrl: string;
61
+ }>;
62
+ export default _default;
@@ -0,0 +1 @@
1
+ import e from"./index.vue2.js";import r from"../../../../../../_virtual/_plugin-vue_export-helper.js";var i=r(e,[["__file","index.vue"]]);export{i as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,ref as t,onMounted as l,onBeforeUnmount as i,onActivated as a,onDeactivated as r,watch as u,openBlock as n,createElementBlock as o,Fragment as s,createCommentVNode as c,nextTick as d}from"vue";const f={key:0,class:"drawer-iframe-wrap",style:{width:"100%",height:"100%"}},h=["src"];var m=e({__name:"index",props:{cache:{type:Boolean,default:!1},visible:{type:Boolean,default:!1},iframeUrl:{type:String,default:""}},setup(e){const m=e;let v=0;const p=t([]),y=t(""),g=t(),b=t(),w=t();function x(){if(!m.iframeUrl)return;var e;v++,y.value=`cacheIframe_${v}_${e=10,Math.random().toString(36).substring(3,e)}`;let t=document.querySelector("body");t&&(b.value=t,function(e){p.value.length||(p.value=[e]);if((p.value.length||0)>=5){let e=p.value.shift();e&&function(e){let t=document.getElementById(e);t&&t.parentNode&&t.parentNode.removeChild(t)}(e)}p.value.push(e)}(y.value),function(e,t,l){let i=t,a=document.createElement("iframe");a.src=e,a.id=i,a.width="100%",a.height="100%",a.setAttribute("frameborder","0"),a.setAttribute("allow","camera;midi"),a.setAttribute("allowfullscreen","true"),a.setAttribute("scrolling","auto"),a.setAttribute("webkitallowfullscreen","true"),a.setAttribute("mozallowfullscreen","true"),a.setAttribute("oallowfullscreen","true"),a.setAttribute("msallowfullscreen","true"),g.value=a,l.appendChild(a)}(m.iframeUrl,y.value,t),function(){if(!m.cache)return;d((()=>{let e=w.value,t=document.getElementById(y.value);if(e&&t){let l=e.getBoundingClientRect(),i=document.body.clientWidth;t.style.position="fixed",t.style.height=`${l.height}px`,t.style.width=`${l.width}px`,t.height=`${l.height}px`,t.width=`${l.width}px`,t.style.top=`${l.top}px`,t.style.left=`${l.left}px`,t.style.bottom=`${l.bottom}px`,t.style.right=i-l.right+"px",t.style.zIndex="1001"}}))}())}function A(){m.cache&&b.value&&g.value&&(!function(e){let t=p.value;if(Array.isArray(t)){let l=t.findIndex((t=>t==e));-1!==l&&t.splice(l,1)}}(y.value),b.value.removeChild(g.value))}return l((()=>{m.cache&&x()})),i((()=>{g.value&&(g.value.style.display="none"),A()})),a((()=>{g.value&&(g.value.style.display="block")})),r((()=>{g.value&&(g.value.style.display="none")})),u((()=>m.visible),(e=>{e||A()})),u((()=>m.iframeUrl),(()=>{x()})),(t,l)=>(n(),o(s,null,[c(' v-resize="onResize" '),e.cache?(n(),o("div",f)):(n(),o("iframe",{class:"iframe-item",width:"100%",height:"100%",scrolling:"auto",frameborder:"0",allow:"camera;midi",key:e.iframeUrl,src:e.iframeUrl},null,8,h))],2112))}});export{m as default};
@@ -0,0 +1,5 @@
1
+ export declare const CallbackTypeEnums: {
2
+ FORM: string;
3
+ TABLE_LIST: string;
4
+ PAGE: string;
5
+ };
@@ -0,0 +1 @@
1
+ const A={FORM:"FORM",TABLE_LIST:"TABLE_LIST",PAGE:"PAGE"};export{A as CallbackTypeEnums};
@@ -0,0 +1,57 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ options: {
3
+ type: ObjectConstructor;
4
+ default: () => {
5
+ visible: boolean;
6
+ type: string;
7
+ code: string;
8
+ targetId: string;
9
+ targetName: string;
10
+ openWindowType: string;
11
+ params: string;
12
+ page: string;
13
+ };
14
+ };
15
+ callbackApiConfig: {
16
+ type: ObjectConstructor;
17
+ };
18
+ }, any, {
19
+ initialProps: {};
20
+ }, {}, {
21
+ /**
22
+ * 默认值的参数解析
23
+ */
24
+ getParams(params: any): any;
25
+ handlerCreateURL(url: any, param?: any[]): any;
26
+ getPageProps(): Promise<{
27
+ cache: boolean;
28
+ visible: any;
29
+ iframeUrl: any;
30
+ }>;
31
+ initComponentProps(cfg: any): Promise<void>;
32
+ generateCallback(cfg: any): import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
33
+ [key: string]: any;
34
+ }> | null;
35
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "closeModal"[], "closeModal", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
36
+ options: {
37
+ type: ObjectConstructor;
38
+ default: () => {
39
+ visible: boolean;
40
+ type: string;
41
+ code: string;
42
+ targetId: string;
43
+ targetName: string;
44
+ openWindowType: string;
45
+ params: string;
46
+ page: string;
47
+ };
48
+ };
49
+ callbackApiConfig: {
50
+ type: ObjectConstructor;
51
+ };
52
+ }>> & {
53
+ onCloseModal?: ((...args: any[]) => any) | undefined;
54
+ }, {
55
+ options: Record<string, any>;
56
+ }>;
57
+ export default _default;
@@ -0,0 +1 @@
1
+ import{defineComponent as e,h as t}from"vue";import{CallbackTypeEnums as a}from"./enums.js";import{CallbackMaps as i}from"./popupMaps.js";import{isString as s,isObject as r}from"lodash-es";import o from"../../../../../_virtual/_plugin-vue_export-helper.js";var n=o(e({props:{options:{type:Object,default:()=>({visible:!1,type:"",code:"",targetId:"",targetName:"",openWindowType:"",params:"",page:""})},callbackApiConfig:{type:Object}},emits:["closeModal"],data:()=>({initialProps:{}}),methods:{getParams(e){let t=s(e)?JSON.parse(e):e;if(Array.isArray(t)){return t.reduce(((e,t)=>(t.p_name&&(e[t.p_name]=t.p_default_value),e)),{})}return{}},handlerCreateURL(e,t=[]){let a="";if(Array.isArray(t)&&t.forEach((e=>{a+="&"+e.p_name+"="+e.p_value})),r(t)&&Object.keys(t||{}).length)for(let e in t){let i="&"+e+"="+t[e];a+=i}return a?(a=e.includes("?")?e+a:e+"?"+a.substring(1),a):e},async getPageProps(){const{page:e,params:t,visible:a}=this.options,i=this.getParams(t);return{cache:!1,visible:a,iframeUrl:this.handlerCreateURL(e,i)}},async initComponentProps(e){const{params:t,type:i}=e;let s=null;switch(i){case a.FORM:{const e=await this.callbackApiConfig.requestFormData(),{fieldList:t}=e.data;s={fieldList:t};break}case a.TABLE_LIST:{const e=await this.callbackApiConfig.requestTableConfig(),t=await this.callbackApiConfig.requestTableData(),{fieldList:a}=e.data,{rows:i}=t.data;s={fieldList:a,tableData:i};break}case a.PAGE:s=await this.getPageProps()}this.initialProps=s},generateCallback(e){const{type:a}=e;if(!i.has(a))return null;const{component:s,style:r,props:o}=i.get(a),n={...this.initialProps,...o};return t(s,{...r,...n})}},async created(){await this.initComponentProps(this.options)},render(){return Object.keys(this.initialProps).length>0?this.generateCallback(this.options):""}}),[["__file","index.vue"]]);export{n as default};