cnhis-design-vue 3.1.51-beta.1 → 3.1.51-beta.3

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 (72) hide show
  1. package/es/components/callback/index.d.ts +69 -0
  2. package/es/components/callback/index.js +1 -0
  3. package/es/components/callback/src/components/dialog/drawer.vue.d.ts +353 -0
  4. package/es/components/callback/src/components/dialog/drawer.vue.js +1 -0
  5. package/es/components/callback/src/components/dialog/drawer.vue2.js +1 -0
  6. package/es/components/callback/src/components/dialog/modal.vue.d.ts +166 -0
  7. package/es/components/callback/src/components/dialog/modal.vue.js +1 -0
  8. package/es/components/callback/src/components/dialog/modal.vue2.js +1 -0
  9. package/es/components/callback/src/components/popup/index.vue.d.ts +48 -0
  10. package/es/components/callback/src/components/popup/index.vue.js +1 -0
  11. package/es/components/callback/src/components/render/drawerIframe/index.vue.d.ts +62 -0
  12. package/es/components/callback/src/components/render/drawerIframe/index.vue.js +1 -0
  13. package/es/components/callback/src/components/render/drawerIframe/index.vue2.js +1 -0
  14. package/es/components/callback/src/components/render/enums.d.ts +5 -0
  15. package/es/components/callback/src/components/render/enums.js +1 -0
  16. package/es/components/callback/src/components/render/index.vue.d.ts +57 -0
  17. package/es/components/callback/src/components/render/index.vue.js +1 -0
  18. package/es/components/callback/src/components/render/popupMaps.d.ts +5700 -0
  19. package/es/components/callback/src/components/render/popupMaps.js +1 -0
  20. package/es/components/callback/src/index.vue.d.ts +68 -0
  21. package/es/components/callback/src/index.vue.js +1 -0
  22. package/es/components/callback/src/index.vue2.js +1 -0
  23. package/es/components/callback/src/types/index.d.ts +11 -0
  24. package/es/components/callback/style/callback-iconfont.ttf +0 -0
  25. package/es/components/callback/style/index.css +1 -0
  26. package/es/components/expand-field/index.d.ts +0 -13
  27. package/es/components/expand-field/src/components/FormItemPerson.vue.d.ts +0 -13
  28. package/es/components/expand-field/src/components/PersonModal.vue.d.ts +0 -13
  29. package/es/components/expand-field/src/components/PersonModal.vue2.js +1 -1
  30. package/es/components/expand-field/src/components/form.vue.d.ts +0 -13
  31. package/es/components/expand-field/src/index.vue.d.ts +0 -13
  32. package/es/components/expand-field/src/index.vue2.js +1 -1
  33. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.js +1 -1
  34. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useOther.js +1 -1
  35. package/es/components/form-render/src/components/renderer/remoteSearch.d.ts +79 -2
  36. package/es/components/form-render/src/components/renderer/remoteSearch.js +1 -1
  37. package/es/components/form-render/src/hooks/useFormRenderOptions.d.ts +16 -10
  38. package/es/components/form-render/src/hooks/useFormRenderOptions.js +1 -1
  39. package/es/components/index.css +1 -1
  40. package/es/components/index.d.ts +3 -3
  41. package/es/components/index.js +1 -1
  42. package/es/components/scale-view/src/hooks/use-component.d.ts +615 -255
  43. package/es/components/select-label/index.d.ts +617 -256
  44. package/es/components/select-label/index.js +1 -1
  45. package/es/components/{iho-select-label/src/LabelFormContent.vue.d.ts → select-label/src/ihoLabel/IhoLabelFormContent.vue.d.ts} +5 -5
  46. package/es/components/select-label/src/ihoLabel/IhoLabelFormContent.vue.js +1 -0
  47. package/es/components/select-label/src/ihoLabel/IhoLabelFormContent.vue2.js +1 -0
  48. package/es/components/{iho-select-label/src/SelectLabel.vue.d.ts → select-label/src/ihoLabel/IhoSelectLabel.vue.d.ts} +7 -7
  49. package/es/components/select-label/src/ihoLabel/IhoSelectLabel.vue.js +1 -0
  50. package/es/components/select-label/src/ihoLabel/IhoSelectLabel.vue2.js +1 -0
  51. 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
  52. package/es/components/select-label/src/ihoLabel/iho-label-classify.vue.js +1 -0
  53. package/es/components/select-label/src/ihoLabel/iho-label-classify.vue2.js +1 -0
  54. package/es/components/select-label/src/index.vue.d.ts +899 -0
  55. package/es/components/select-label/src/index.vue.js +1 -0
  56. package/es/components/select-label/src/index.vue2.js +1 -0
  57. package/es/components/select-label/src/types/index.js +1 -0
  58. package/es/shared/package.json.js +1 -1
  59. package/es/shared/utils/index.d.ts +3 -3
  60. package/package.json +2 -2
  61. package/es/components/iho-select-label/index.d.ts +0 -363
  62. package/es/components/iho-select-label/index.js +0 -1
  63. package/es/components/iho-select-label/src/LabelFormContent.vue.js +0 -1
  64. package/es/components/iho-select-label/src/LabelFormContent.vue2.js +0 -1
  65. package/es/components/iho-select-label/src/SelectLabel.vue.js +0 -1
  66. package/es/components/iho-select-label/src/SelectLabel.vue2.js +0 -1
  67. package/es/components/iho-select-label/src/components/label-classify.vue.js +0 -1
  68. package/es/components/iho-select-label/src/components/label-classify.vue2.js +0 -1
  69. package/es/components/iho-select-label/style/iho-select-label-iconfont.ttf +0 -0
  70. package/es/components/iho-select-label/style/index.css +0 -1
  71. /package/es/components/{iho-select-label → callback}/src/types/index.js +0 -0
  72. /package/es/components/{iho-select-label → select-label}/src/types/index.d.ts +0 -0
@@ -0,0 +1,69 @@
1
+ import { SFCWithInstall } from '../../../es/shared/types';
2
+ declare const Callback: SFCWithInstall<import("vue").DefineComponent<{
3
+ config: {
4
+ type: ObjectConstructor;
5
+ };
6
+ callbackApiConfig: {
7
+ type: ObjectConstructor;
8
+ };
9
+ }, {
10
+ emit: (event: "closeModal", ...args: any[]) => void;
11
+ closeModal: (bool: boolean) => void;
12
+ CallbackPopup: import("vue").DefineComponent<{
13
+ options: {
14
+ type: ObjectConstructor;
15
+ default: () => {
16
+ visible: boolean;
17
+ type: string;
18
+ code: string;
19
+ targetId: string;
20
+ targetName: string;
21
+ openWindowType: string;
22
+ params: string;
23
+ page: string;
24
+ };
25
+ };
26
+ callbackApiConfig: {
27
+ type: ObjectConstructor;
28
+ };
29
+ }, any, {
30
+ initialProps: {};
31
+ dialogVisible: any;
32
+ }, {}, {
33
+ generateModal(cfg: any): import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
34
+ [key: string]: any;
35
+ }>;
36
+ onClose(): Promise<void>;
37
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "closeModal"[], "closeModal", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
38
+ options: {
39
+ type: ObjectConstructor;
40
+ default: () => {
41
+ visible: boolean;
42
+ type: string;
43
+ code: string;
44
+ targetId: string;
45
+ targetName: string;
46
+ openWindowType: string;
47
+ params: string;
48
+ page: string;
49
+ };
50
+ };
51
+ callbackApiConfig: {
52
+ type: ObjectConstructor;
53
+ };
54
+ }>> & {
55
+ onCloseModal?: ((...args: any[]) => any) | undefined;
56
+ }, {
57
+ options: Record<string, any>;
58
+ }>;
59
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "closeModal"[], "closeModal", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
60
+ config: {
61
+ type: ObjectConstructor;
62
+ };
63
+ callbackApiConfig: {
64
+ type: ObjectConstructor;
65
+ };
66
+ }>> & {
67
+ onCloseModal?: ((...args: any[]) => any) | undefined;
68
+ }, {}>>;
69
+ export default Callback;
@@ -0,0 +1 @@
1
+ import{COMPONENT_NAMESPACE as r}from"../../shared/global/variable.js";import{safeComponentRegister as a}from"../../shared/utils/index.js";import o from"./src/index.vue.js";const s=o;s.install=function(o){a(o,s,r+"Callback")};export{s as default};
@@ -0,0 +1,353 @@
1
+ import { PropType } from 'vue';
2
+ import { DrawerPlacement } from 'naive-ui';
3
+ import { ICallbackConfigType } from '../../../../../../es/components/callback/src/types';
4
+ declare const _default: import("vue").DefineComponent<{
5
+ options: {
6
+ type: PropType<ICallbackConfigType>;
7
+ };
8
+ visible: {
9
+ type: BooleanConstructor;
10
+ default: boolean;
11
+ };
12
+ zIndex: {
13
+ type: NumberConstructor;
14
+ default: number;
15
+ };
16
+ closable: {
17
+ type: BooleanConstructor;
18
+ default: boolean;
19
+ };
20
+ screen: {
21
+ type: BooleanConstructor;
22
+ default: boolean;
23
+ };
24
+ drawerWidth: {
25
+ type: StringConstructor;
26
+ default: string;
27
+ };
28
+ isDrawerBig: {
29
+ type: BooleanConstructor;
30
+ default: boolean;
31
+ };
32
+ callbackApiConfig: {
33
+ type: ObjectConstructor;
34
+ };
35
+ }, {
36
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
37
+ options: {
38
+ type: PropType<ICallbackConfigType>;
39
+ };
40
+ visible: {
41
+ type: BooleanConstructor;
42
+ default: boolean;
43
+ };
44
+ zIndex: {
45
+ type: NumberConstructor;
46
+ default: number;
47
+ };
48
+ closable: {
49
+ type: BooleanConstructor;
50
+ default: boolean;
51
+ };
52
+ screen: {
53
+ type: BooleanConstructor;
54
+ default: boolean;
55
+ };
56
+ drawerWidth: {
57
+ type: StringConstructor;
58
+ default: string;
59
+ };
60
+ isDrawerBig: {
61
+ type: BooleanConstructor;
62
+ default: boolean;
63
+ };
64
+ callbackApiConfig: {
65
+ type: ObjectConstructor;
66
+ };
67
+ }>> & {
68
+ onClose?: ((...args: any[]) => any) | undefined;
69
+ onChangeWindow?: ((...args: any[]) => any) | undefined;
70
+ }>>;
71
+ emits: (event: "close" | "changeWindow", ...args: any[]) => void;
72
+ isChangeWindow: import("vue").Ref<boolean>;
73
+ curDrawerWidth: import("vue").Ref<string>;
74
+ placement: import("vue").Ref<DrawerPlacement>;
75
+ initDef: () => void;
76
+ onClose: () => void;
77
+ calculateWidth: (isBig: boolean) => string;
78
+ changeWindow: () => void;
79
+ NDrawer: any;
80
+ NDrawerContent: import("vue").DefineComponent<{
81
+ title: {
82
+ type: StringConstructor;
83
+ };
84
+ headerStyle: PropType<string | import("vue").CSSProperties>;
85
+ footerStyle: PropType<string | import("vue").CSSProperties>;
86
+ bodyStyle: PropType<string | import("vue").CSSProperties>;
87
+ bodyContentStyle: PropType<string | import("vue").CSSProperties>;
88
+ nativeScrollbar: {
89
+ type: BooleanConstructor;
90
+ default: boolean;
91
+ };
92
+ scrollbarProps: PropType<import("naive-ui/es/_internal").ScrollbarProps>;
93
+ closable: BooleanConstructor;
94
+ }, {
95
+ handleCloseClick: () => void;
96
+ mergedTheme: import("vue").Ref<{
97
+ common: {
98
+ baseColor: string;
99
+ primaryColor: string;
100
+ primaryColorHover: string;
101
+ primaryColorPressed: string;
102
+ primaryColorSuppl: string;
103
+ infoColor: string;
104
+ infoColorHover: string;
105
+ infoColorPressed: string;
106
+ infoColorSuppl: string;
107
+ successColor: string;
108
+ successColorHover: string;
109
+ successColorPressed: string;
110
+ successColorSuppl: string;
111
+ warningColor: string;
112
+ warningColorHover: string;
113
+ warningColorPressed: string;
114
+ warningColorSuppl: string;
115
+ errorColor: string;
116
+ errorColorHover: string;
117
+ errorColorPressed: string;
118
+ errorColorSuppl: string;
119
+ textColorBase: string;
120
+ textColor1: string;
121
+ textColor2: string;
122
+ textColor3: string;
123
+ textColorDisabled: string;
124
+ placeholderColor: string;
125
+ placeholderColorDisabled: string;
126
+ iconColor: string;
127
+ iconColorHover: string;
128
+ iconColorPressed: string;
129
+ iconColorDisabled: string;
130
+ opacity1: string;
131
+ opacity2: string;
132
+ opacity3: string;
133
+ opacity4: string;
134
+ opacity5: string;
135
+ dividerColor: string;
136
+ borderColor: string;
137
+ closeIconColor: string;
138
+ closeIconColorHover: string;
139
+ closeIconColorPressed: string;
140
+ closeColorHover: string;
141
+ closeColorPressed: string;
142
+ clearColor: string;
143
+ clearColorHover: string;
144
+ clearColorPressed: string;
145
+ scrollbarColor: string;
146
+ scrollbarColorHover: string;
147
+ scrollbarWidth: string;
148
+ scrollbarHeight: string;
149
+ scrollbarBorderRadius: string;
150
+ progressRailColor: string;
151
+ railColor: string;
152
+ popoverColor: string;
153
+ tableColor: string;
154
+ cardColor: string;
155
+ modalColor: string;
156
+ bodyColor: string;
157
+ tagColor: string;
158
+ avatarColor: string;
159
+ invertedColor: string;
160
+ inputColor: string;
161
+ codeColor: string;
162
+ tabColor: string;
163
+ actionColor: string;
164
+ tableHeaderColor: string;
165
+ hoverColor: string;
166
+ tableColorHover: string;
167
+ tableColorStriped: string;
168
+ pressedColor: string;
169
+ opacityDisabled: string;
170
+ inputColorDisabled: string;
171
+ buttonColor2: string;
172
+ buttonColor2Hover: string;
173
+ buttonColor2Pressed: string;
174
+ boxShadow1: string;
175
+ boxShadow2: string;
176
+ boxShadow3: string;
177
+ fontFamily: string;
178
+ fontFamilyMono: string;
179
+ fontWeight: string;
180
+ fontWeightStrong: string;
181
+ cubicBezierEaseInOut: string;
182
+ cubicBezierEaseOut: string;
183
+ cubicBezierEaseIn: string;
184
+ borderRadius: string;
185
+ borderRadiusSmall: string;
186
+ fontSize: string;
187
+ fontSizeMini: string;
188
+ fontSizeTiny: string;
189
+ fontSizeSmall: string;
190
+ fontSizeMedium: string;
191
+ fontSizeLarge: string;
192
+ fontSizeHuge: string;
193
+ lineHeight: string;
194
+ heightMini: string;
195
+ heightTiny: string;
196
+ heightSmall: string;
197
+ heightMedium: string;
198
+ heightLarge: string;
199
+ heightHuge: string;
200
+ name: "common";
201
+ };
202
+ self: {
203
+ bodyPadding: string;
204
+ headerPadding: string;
205
+ footerPadding: string;
206
+ color: string;
207
+ textColor: string;
208
+ titleTextColor: string;
209
+ titleFontSize: string;
210
+ titleFontWeight: string;
211
+ boxShadow: string;
212
+ lineHeight: string;
213
+ headerBorderBottom: string;
214
+ footerBorderTop: string;
215
+ closeIconColor: string;
216
+ closeIconColorHover: string;
217
+ closeIconColorPressed: string;
218
+ closeSize: string;
219
+ closeIconSize: string;
220
+ closeColorHover: string;
221
+ closeColorPressed: string;
222
+ closeBorderRadius: string;
223
+ resizableTriggerColorHover: string;
224
+ };
225
+ peers: {
226
+ Scrollbar: import("naive-ui/es/_mixins").Theme<"Scrollbar", {
227
+ color: string;
228
+ colorHover: string;
229
+ }, any>;
230
+ };
231
+ peerOverrides: {
232
+ Scrollbar?: {
233
+ peers?: {
234
+ [x: string]: any;
235
+ } | undefined;
236
+ } | undefined;
237
+ };
238
+ }>;
239
+ mergedClsPrefix: import("vue").Ref<string>;
240
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
241
+ title: {
242
+ type: StringConstructor;
243
+ };
244
+ headerStyle: PropType<string | import("vue").CSSProperties>;
245
+ footerStyle: PropType<string | import("vue").CSSProperties>;
246
+ bodyStyle: PropType<string | import("vue").CSSProperties>;
247
+ bodyContentStyle: PropType<string | import("vue").CSSProperties>;
248
+ nativeScrollbar: {
249
+ type: BooleanConstructor;
250
+ default: boolean;
251
+ };
252
+ scrollbarProps: PropType<import("naive-ui/es/_internal").ScrollbarProps>;
253
+ closable: BooleanConstructor;
254
+ }>>, {
255
+ closable: boolean;
256
+ nativeScrollbar: boolean;
257
+ }>;
258
+ renderCb: import("vue").DefineComponent<{
259
+ options: {
260
+ type: ObjectConstructor;
261
+ default: () => {
262
+ visible: boolean;
263
+ type: string;
264
+ code: string;
265
+ targetId: string;
266
+ targetName: string;
267
+ openWindowType: string;
268
+ params: string;
269
+ page: string;
270
+ };
271
+ };
272
+ callbackApiConfig: {
273
+ type: ObjectConstructor;
274
+ };
275
+ }, any, {
276
+ initialProps: {};
277
+ }, {}, {
278
+ getParams(params: any): any;
279
+ handlerCreateURL(url: any, param?: any[]): any;
280
+ getPageProps(): Promise<{
281
+ cache: boolean;
282
+ visible: any;
283
+ iframeUrl: any;
284
+ }>;
285
+ initComponentProps(cfg: any): Promise<void>;
286
+ generateCallback(cfg: any): import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
287
+ [key: string]: any;
288
+ }> | null;
289
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "closeModal"[], "closeModal", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
290
+ options: {
291
+ type: ObjectConstructor;
292
+ default: () => {
293
+ visible: boolean;
294
+ type: string;
295
+ code: string;
296
+ targetId: string;
297
+ targetName: string;
298
+ openWindowType: string;
299
+ params: string;
300
+ page: string;
301
+ };
302
+ };
303
+ callbackApiConfig: {
304
+ type: ObjectConstructor;
305
+ };
306
+ }>> & {
307
+ onCloseModal?: ((...args: any[]) => any) | undefined;
308
+ }, {
309
+ options: Record<string, any>;
310
+ }>;
311
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "changeWindow")[], "close" | "changeWindow", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
312
+ options: {
313
+ type: PropType<ICallbackConfigType>;
314
+ };
315
+ visible: {
316
+ type: BooleanConstructor;
317
+ default: boolean;
318
+ };
319
+ zIndex: {
320
+ type: NumberConstructor;
321
+ default: number;
322
+ };
323
+ closable: {
324
+ type: BooleanConstructor;
325
+ default: boolean;
326
+ };
327
+ screen: {
328
+ type: BooleanConstructor;
329
+ default: boolean;
330
+ };
331
+ drawerWidth: {
332
+ type: StringConstructor;
333
+ default: string;
334
+ };
335
+ isDrawerBig: {
336
+ type: BooleanConstructor;
337
+ default: boolean;
338
+ };
339
+ callbackApiConfig: {
340
+ type: ObjectConstructor;
341
+ };
342
+ }>> & {
343
+ onClose?: ((...args: any[]) => any) | undefined;
344
+ onChangeWindow?: ((...args: any[]) => any) | undefined;
345
+ }, {
346
+ closable: boolean;
347
+ visible: boolean;
348
+ zIndex: number;
349
+ screen: boolean;
350
+ drawerWidth: string;
351
+ isDrawerBig: boolean;
352
+ }>;
353
+ export default _default;
@@ -0,0 +1 @@
1
+ import r from"./drawer.vue2.js";import e from"../../../../../_virtual/_plugin-vue_export-helper.js";var a=e(r,[["__file","drawer.vue"]]);export{a as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,ref as a,onBeforeMount as l,openBlock as i,createBlock as n,unref as o,isRef as t,normalizeStyle as c,withCtx as s,createVNode as u,createElementVNode as r,toDisplayString as d,createElementBlock as p,normalizeClass as v,createCommentVNode as b}from"vue";import{NDrawer as f,NDrawerContent as h}from"naive-ui";import g from"../render/index.vue.js";const m={class:"d-header"},k={class:"title"},y={class:"svg-wrap"};var w=e({__name:"drawer",props:{options:{type:Object},visible:{type:Boolean,default:!1},zIndex:{type:Number,default:1e3},closable:{type:Boolean,default:!0},screen:{type:Boolean,default:!0},drawerWidth:{type:String,default:"60vw"},isDrawerBig:{type:Boolean,default:!1},callbackApiConfig:{type:Object}},emits:["close","changeWindow"],setup(e,{emit:w}){const x=e,z=a(!1),C=a(""),B=a("right");function W(){w("close",!1)}function A(e){let a=document.body.clientWidth;return e?`${a}px`:x.drawerWidth}function _(){z.value=!z.value,C.value=A(z.value),w("changeWindow",z.value)}return l((()=>{!function(){if(!x.isDrawerBig)return void(C.value=x.drawerWidth);C.value=A(!1)}()})),(a,l)=>(i(),n(o(f),{show:e.visible,"onUpdate:show":l[0]||(l[0]=e=>t(visible)?visible.value=e:null),class:"callback-drawer-block",maskClosable:!1,"z-index":e.zIndex,style:c({width:C.value}),placement:B.value,onAfterLeave:W},{default:s((()=>[u(o(h),{closable:!1},{header:s((()=>{var a;return[r("div",m,[r("h3",k,d(null==(a=e.options)?void 0:a.name),1),r("div",y,[e.screen?(i(),p("i",{key:0,style:{"margin-right":"12px"},onClick:_,class:v(z.value?"iconfont-callback icon-callback-menzhenyishengzhanxitongtubiaozuixiaohua":"iconfont-callback icon-callback-menzhenyishengzhanxitongtubiaozuidahua")},null,2)):b("v-if",!0),e.closable?(i(),p("i",{key:1,class:"iconfont-callback icon-callback-menzhenyishengzhanxitongtubiaoguanbi",onClick:W})):b("v-if",!0)])])]})),default:s((()=>[b(" 加载的具体的内容组件 "),u(g,{options:e.options,callbackApiConfig:e.callbackApiConfig},null,8,["options","callbackApiConfig"])])),_:1})])),_:1},8,["show","z-index","style","placement"]))}});export{w as default};
@@ -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};