cnhis-design-vue 3.1.51-beta.2 → 3.1.51-beta.20
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.
- package/es/components/base-search/src/index.vue2.js +1 -1
- package/es/components/callback/index.d.ts +69 -0
- package/es/components/callback/index.js +1 -0
- package/es/components/callback/src/components/dialog/drawer.vue.d.ts +353 -0
- package/es/components/callback/src/components/dialog/drawer.vue.js +1 -0
- package/es/components/callback/src/components/dialog/drawer.vue2.js +1 -0
- package/es/components/callback/src/components/dialog/modal.vue.d.ts +166 -0
- package/es/components/callback/src/components/dialog/modal.vue.js +1 -0
- package/es/components/callback/src/components/dialog/modal.vue2.js +1 -0
- package/es/components/callback/src/components/popup/index.vue.d.ts +48 -0
- package/es/components/callback/src/components/popup/index.vue.js +1 -0
- package/es/components/callback/src/components/render/drawerIframe/index.vue.d.ts +62 -0
- package/es/components/callback/src/components/render/drawerIframe/index.vue.js +1 -0
- package/es/components/callback/src/components/render/drawerIframe/index.vue2.js +1 -0
- package/es/components/callback/src/components/render/enums.d.ts +5 -0
- package/es/components/callback/src/components/render/enums.js +1 -0
- package/es/components/callback/src/components/render/index.vue.d.ts +57 -0
- package/es/components/callback/src/components/render/index.vue.js +1 -0
- package/es/components/callback/src/components/render/popupMaps.d.ts +5702 -0
- package/es/components/callback/src/components/render/popupMaps.js +1 -0
- package/es/components/callback/src/index.vue.d.ts +68 -0
- package/es/components/callback/src/index.vue.js +1 -0
- package/es/components/callback/src/index.vue2.js +1 -0
- package/es/components/callback/src/types/index.d.ts +11 -0
- package/es/components/callback/style/callback-iconfont.ttf +0 -0
- package/es/components/callback/style/index.css +1 -0
- package/es/components/classification/src/index.vue2.js +1 -1
- package/es/components/expand-field/index.d.ts +0 -13
- package/es/components/expand-field/src/components/FormItemPerson.vue.d.ts +0 -13
- package/es/components/expand-field/src/components/PersonModal.vue.d.ts +0 -13
- package/es/components/expand-field/src/components/PersonModal.vue2.js +1 -1
- package/es/components/expand-field/src/components/form.vue.d.ts +0 -13
- package/es/components/expand-field/src/index.vue.d.ts +0 -13
- package/es/components/expand-field/src/index.vue2.js +1 -1
- package/es/components/fabric-chart/index.d.ts +5 -6
- package/es/components/fabric-chart/src/FabricChart.vue.d.ts +5 -6
- package/es/components/fabric-chart/src/FabricChart.vue2.js +1 -1
- package/es/components/fabric-chart/src/components/PopupMenu.js +1 -1
- package/es/components/fabric-chart/src/components/PopupTip.vue.d.ts +0 -6
- package/es/components/fabric-chart/src/components/PopupTip.vue2.js +1 -1
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcessChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useOther.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -1
- package/es/components/fabric-chart/style/index.css +1 -1
- package/es/components/form-config/index.d.ts +6 -2
- package/es/components/form-config/src/FormConfig.vue.d.ts +6 -2
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +3 -1
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +3 -1
- package/es/components/form-render/index.d.ts +3 -1
- package/es/components/form-render/src/FormRender.vue.d.ts +3 -1
- package/es/components/form-render/src/FormRender.vue2.js +1 -1
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +3 -1
- package/es/components/form-render/src/components/renderer/remoteSearch.js +1 -1
- package/es/components/form-render/src/components/renderer/select.js +1 -1
- package/es/components/form-render/src/hooks/useFormEvent.d.ts +3 -1
- package/es/components/form-render/src/hooks/useFormEvent.js +1 -1
- package/es/components/form-render/src/types/index.d.ts +4 -1
- package/es/components/iho-table/src/IhoTable.vue2.js +1 -1
- package/es/components/iho-table/src/plugins/keyboardEventPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useSelectOption.d.ts +2 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useSelectOption.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.d.ts +27 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.d.ts +2 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/separateUtils.d.ts +4 -3
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/separateUtils.js +1 -1
- package/es/components/iho-table/src/plugins/varialbleHeightPlugin/index.js +1 -1
- package/es/components/iho-table/src/types/index.d.ts +8 -1
- package/es/components/index.css +1 -1
- package/es/components/index.d.ts +5 -3
- package/es/components/index.js +1 -1
- package/es/components/info-header/index.d.ts +6 -2
- package/es/components/info-header/src/InfoHeader.vue.d.ts +6 -2
- package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +3 -1
- package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +3 -1
- package/es/components/scale-view/src/hooks/use-component.d.ts +615 -255
- package/es/components/select-label/index.d.ts +617 -256
- package/es/components/select-label/index.js +1 -1
- package/es/components/{iho-select-label/src/LabelFormContent.vue.d.ts → select-label/src/ihoLabel/IhoLabelFormContent.vue.d.ts} +5 -5
- package/es/components/select-label/src/ihoLabel/IhoLabelFormContent.vue.js +1 -0
- package/es/components/select-label/src/ihoLabel/IhoLabelFormContent.vue2.js +1 -0
- package/es/components/{iho-select-label/src/SelectLabel.vue.d.ts → select-label/src/ihoLabel/IhoSelectLabel.vue.d.ts} +7 -7
- package/es/components/select-label/src/ihoLabel/IhoSelectLabel.vue.js +1 -0
- package/es/components/select-label/src/ihoLabel/IhoSelectLabel.vue2.js +1 -0
- 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
- package/es/components/select-label/src/ihoLabel/iho-label-classify.vue.js +1 -0
- package/es/components/select-label/src/ihoLabel/iho-label-classify.vue2.js +1 -0
- package/es/components/select-label/src/index.vue.d.ts +899 -0
- package/es/components/select-label/src/index.vue.js +1 -0
- package/es/components/select-label/src/index.vue2.js +1 -0
- package/es/components/shortcut-provider/src/hooks/useShortcuts.d.ts +1 -0
- package/es/components/shortcut-provider/src/hooks/useShortcuts.js +1 -1
- package/es/components/shortcut-setter/index.d.ts +4 -1
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +4 -1
- package/es/components/slider-tree/index.d.ts +153 -0
- package/es/components/slider-tree/index.js +1 -0
- package/es/components/slider-tree/src/hooks/useAsyncData.d.ts +6 -0
- package/es/components/slider-tree/src/hooks/useAsyncData.js +1 -0
- package/es/components/slider-tree/src/index.vue.d.ts +152 -0
- package/es/components/slider-tree/src/index.vue.js +1 -0
- package/es/components/slider-tree/src/index.vue2.js +1 -0
- package/es/components/slider-tree/src/utils/index.d.ts +1 -0
- package/es/components/slider-tree/src/utils/index.js +1 -0
- package/es/components/slider-tree/style/index.css +1 -0
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue2.js +1 -1
- package/es/components/table-filter/src/hooks/useAdvanced.js +1 -1
- package/es/shared/directive/flexibleResize.d.ts +4 -0
- package/es/{components/classification/src → shared}/directive/flexibleResize.js +1 -1
- package/es/shared/directive/index.d.ts +1 -0
- package/es/shared/directive/index.js +1 -0
- package/es/shared/package.json.js +1 -1
- package/es/shared/types/business.d.ts +7 -0
- package/es/shared/utils/index.js +1 -1
- package/package.json +2 -2
- package/es/components/classification/src/directive/flexibleResize.d.ts +0 -28
- package/es/components/iho-select-label/index.d.ts +0 -363
- package/es/components/iho-select-label/index.js +0 -1
- package/es/components/iho-select-label/src/LabelFormContent.vue.js +0 -1
- package/es/components/iho-select-label/src/LabelFormContent.vue2.js +0 -1
- package/es/components/iho-select-label/src/SelectLabel.vue.js +0 -1
- package/es/components/iho-select-label/src/SelectLabel.vue2.js +0 -1
- package/es/components/iho-select-label/src/components/label-classify.vue.js +0 -1
- package/es/components/iho-select-label/src/components/label-classify.vue2.js +0 -1
- package/es/components/iho-select-label/style/iho-select-label-iconfont.ttf +0 -0
- package/es/components/iho-select-label/style/index.css +0 -1
- package/es/components/table-filter/src/types/tool.d.ts +0 -7
- /package/es/components/{iho-select-label → callback}/src/types/index.js +0 -0
- /package/es/components/{iho-select-label → select-label}/src/types/index.d.ts +0 -0
- /package/es/components/{table-filter/src/types/tool.js → select-label/src/types/index.js} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,ref as t,provide as a,computed as l,watch as i,openBlock as n,createElementBlock as r,createElementVNode as s,createCommentVNode as o,renderSlot as c,unref as u,createVNode as f,withCtx as d,createTextVNode as m,toDisplayString as h,Fragment as p,renderList as v}from"vue";import
|
|
1
|
+
import{defineComponent as e,ref as t,provide as a,computed as l,watch as i,openBlock as n,createElementBlock as r,createElementVNode as s,createCommentVNode as o,renderSlot as c,unref as u,createVNode as f,withCtx as d,createTextVNode as m,toDisplayString as h,Fragment as p,renderList as v}from"vue";import b from"../../table-filter/src/components/render-widget/index.vue.js";import g from"../../table-filter/src/hooks/useMixins.js";import y from"../../table-filter/src/hooks/useAdvanced.js";import k from"../../table-filter/src/hooks/useRenderWidget.js";import{NButton as C,NIcon as j}from"naive-ui";import{Search as A}from"@vicons/ionicons5";import{isObject as S,cloneDeep as O}from"lodash-es";import{InjectionFilterApiConfig as x,InjectionFilterSearchConfig as q}from"../../table-filter/src/constants/index.js";const R={class:"base-search-block"},F={class:"base-container"},V={class:"bease-left"},Q={class:"base-ul"},N={key:0,class:"baseli showQuickBtn"},_=s("i",{class:"iconfont-table-filter icon-table-filter-shaixuan",style:{color:"inherit","margin-right":"6px"}},null,-1),w={key:0,class:"qqConObjCount"},E={key:1,class:"baseli"},I={key:2,class:"baseli"},P=s("i",{class:"iconfont-table-filter icon-table-filter-reset",style:{"margin-right":"6px"}},null,-1);var B=e({__name:"index",props:{showSettings:{type:Object,default:()=>({hideQuickSearch:0,hideResetBtn:0})},searchFieldList:{type:Array,default:()=>[]},qqConObjCount:{type:Number,default:0},filterApiConfig:{type:Object},appendValueConfig:{type:Object,default:()=>({})}},emits:["foldQuickSearch","onFilterSearch","handleReset","getFilterParam"],setup(e,{expose:B,emit:U}){const D=e,{outQuickSearchFn:L}=g(),{isRender:W,getRenderSearchConObj:$,isExistDefValByRenderWidget:z,resetRenderWidgetValue:M}=k(),{transformData:T,transformParams:G}=y(),H=t([]),J=t(!1),K=t([]);a(x,D.filterApiConfig),a(q,K);const X=l((()=>Z("hideQuickSearch"))),Y=l((()=>Z("hideResetBtn")));function Z(e){return 0==D.showSettings[e]}function ee(){U("foldQuickSearch",!0)}function te(e={}){const t=ae()||[];!function(e,t,a=!1,l={}){let i=[];K.value.length>0&&(i=O(K.value));U("onFilterSearch",e,t,a,i,l)}(t,G(t),!0,e)}function ae(){return function(e){if(!Array.isArray(e))return[];let t=[];for(let a=0;a<e.length;a++){let l=e[a];const i=$(l);i&&t.push(i)}return t.filter((e=>e.value||Object.keys(e).includes("isAccurateSearch")))}(K.value)}function le(){!function(e){if(!Array.isArray(e))return;e.forEach((e=>{M(e)})),L.handlerInitSearchItem(e)}(K.value),U("handleReset",{targetType:"outQuickSearchReset"})}return i((()=>D.searchFieldList),(e=>{e&&e.length>0&&function(){K.value=[];let e=O(T(D.searchFieldList,{_filterApiConfig:D.filterApiConfig})).filter((e=>1==e.isShowSearch&&1==e.filterExplicit));K.value=e,L.handlerInitSearchItem(K.value),K.value.some((e=>W(e)?z(e):!!e.explicitDefaultVal))}()}),{immediate:!0,deep:!0}),i((()=>D.qqConObjCount),(e=>{const t=H.value.length||0;J.value=t+Number(e)>0&&Y.value}),{immediate:!0}),i((()=>K),(()=>{H.value=ae()||[];const e=G(H.value);J.value=H.value.length+Number(D.qqConObjCount)>0&&Y.value,U("getFilterParam",H.value,e)}),{immediate:!0,deep:!0}),i((()=>D.appendValueConfig),(e=>{if(S(e)&&Object.keys(e).length>0){const t=Object.keys(e);K.value.forEach((a=>{t.includes(a.columnName)&&(a.value=e[a.columnName])}))}}),{immediate:!0,deep:!0}),B({handleReset:le,getFilterParams:function(){const e=ae()||[];return G(e)},setFilterParams:function(e){const t=e?Object.keys(e):[];t.length>0&&K.value.forEach((a=>{var l;if(W(a)&&t.includes(a.columnName)){const t=e[a.columnName];a.value=Array.isArray(t)&&!1===(null==(l=a.widgetCfg)?void 0:l.multiple)?t[0]:t}}))}}),(t,a)=>(n(),r("div",R,[s("div",F,[s("div",V,[s("ul",Q,[o(" 筛选分类插槽 "),c(t.$slots,"classification"),u(X)?(n(),r("li",N,[f(u(C),{class:"search-default",type:"default",onClick:ee},{default:d((()=>[_,m(" 筛选"),e.qqConObjCount?(n(),r("span",w,"("+h(e.qqConObjCount)+")",1)):o("v-if",!0)])),_:1})])):o("v-if",!0),o(" start--筛选外显--start "),(n(!0),r(p,null,v(K.value,(e=>(n(),r(p,null,[e.isRender?(n(),r("li",{class:"baseli outQuickSearch-li",key:e._frontId},[f(b,{cfg:e,modelValue:e.value,"onUpdate:modelValue":t=>e.value=t,isAccurate:e.isAccurateSearchVal,"onUpdate:isAccurate":t=>e.isAccurateSearchVal=t,onOutFilterChange:te},null,8,["cfg","modelValue","onUpdate:modelValue","isAccurate","onUpdate:isAccurate"])])):o("v-if",!0)],64)))),256)),o(" end--筛选外显--end "),o(" 查询按钮 "),K.value&&K.value.length>0?(n(),r("li",E,[f(u(C),{type:"primary",onClick:te},{default:d((()=>[f(u(j),{component:u(A),size:"16",style:{"margin-right":"6px"}},null,8,["component"]),m(" 查询 ")])),_:1})])):o("v-if",!0),o(" 重置按钮 "),J.value?(n(),r("li",I,[f(u(C),{onClick:le},{default:d((()=>[P,m(" 重置 ")])),_:1})])):o("v-if",!0),o(" 业务按钮插槽 "),c(t.$slots,"buttons")])])])]))}});export{B as default};
|
|
@@ -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};
|