猎羽广告

_dialog.ium6sOk7.js 2.3KB

12
  1. import{k as e,l,v as o}from"../element-plus/element-plus.DqqeXZzT.js";import{_ as a}from"../../assets/index-DYMYfyXS.js";import{d as s,o as t,J as d,K as n,a as i,S as c,c as f,G as p,R as u,L as r,U as m,$ as y,O as h}from"../@vue/@vue.lccsL1Mu.js";const g={class:"flex_between"},k={class:"c-0F161E f18 f-wei-600"},v={class:"dialog-footer"},_=u("关闭"),C=a(s({__name:"_dialog",props:{dialog_key:{default:"key"},dialogTitle:{default:"提示"},dialogVisible:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},fullLoading:{type:Boolean,default:!1},width:{default:"60%"},height:{default:"400px"},minheight:{default:"auto"},confirmText:{default:"确定"},cancleText:{default:"取消"},top:{default:"15vh"},hasBtn:{type:Boolean},haveModal:{type:Boolean,default:!0},destroyOnCloseFlag:{type:Boolean,default:!1},propsClass:{default:""},closeOnModal:{type:Boolean,default:!0},selfCancleFlag:{type:Boolean,default:!1},showClose:{type:Boolean,default:!1}},emits:["confirm","close","cancle"],setup(a,{emit:s}){const C=()=>{s("close")},B=()=>{s("confirm")},w=()=>{s("cancle")};return(s,x)=>{const b=e,T=l,O=o;return t(),d(T,{class:h(a.propsClass),"model-value":a.dialogVisible,top:a.top,"append-to-body":"",width:a.width,onClose:C,modal:a.haveModal,"show-close":a.showClose,key:a.dialog_key,"close-on-click-modal":a.closeOnModal,"close-on-press-escape":a.closeOnModal,"destroy-on-close":a.destroyOnCloseFlag,draggable:""},{header:n((({close:e})=>[i("div",g,[i("div",k,c(a.dialogTitle),1)])])),footer:n((()=>[i("span",v,[a.hasBtn?(t(),d(b,{key:0,type:"primary",plain:"",onClick:C,size:"default"},{default:n((()=>[_])),_:1})):(t(),f(m,{key:1},[p(s.$slots,"footerBtn",{},void 0,!0),a.selfCancleFlag?(t(),d(b,{key:0,onClick:w,size:"default"},{default:n((()=>[u(c(a.cancleText),1)])),_:1})):(t(),d(b,{key:1,onClick:C,size:"default"},{default:n((()=>[u(c(a.cancleText),1)])),_:1})),r((t(),d(b,{type:"primary",onClick:B,size:"default"},{default:n((()=>[u(c(a.confirmText),1)])),_:1})),[[O,a.fullLoading,void 0,{fullscreen:!0,lock:!0}]])],64))])])),default:n((()=>[r((t(),f("div",{class:"container",style:y({maxHeight:a.height,minHeight:a.minheight})},[p(s.$slots,"content",{},void 0,!0)],4)),[[O,a.loading]])])),_:3},8,["class","model-value","top","width","modal","show-close","close-on-click-modal","close-on-press-escape","destroy-on-close"])}}}),[["__scopeId","data-v-efb5ba64"]]);export{C as D};