2 lines
1.4 KiB
JavaScript
2 lines
1.4 KiB
JavaScript
|
import{w as c,L as f}from"./element-plus.10e48c93.js";import{_ as k}from"./index.vue_vue_type_style_index_0_scoped_95d1884e_lang.0fc4c9f8.js";import{d as v}from"./index.5b774352.js";import{o as a,c as g,a as d,H as i,U as B,a9 as C,L as n,R as s,S as l,K as m,Q as u}from"./@vue.51d7f2d8.js";const y={class:"dialog"},$={class:"dialog-footer"};function V(e,o,b,w,E,T){const r=c,p=f;return a(),g("div",y,[d("div",{class:"dialog__trigger",onClick:o[0]||(o[0]=(...t)=>e.open&&e.open(...t))},[i(e.$slots,"trigger",{},void 0,!0)]),B(p,{modelValue:e.visible,"onUpdate:modelValue":o[3]||(o[3]=t=>e.visible=t),"custom-class":e.customClass,center:e.center,"append-to-body":!0,width:e.width,"close-on-click-modal":e.clickModalClose,onClosed:e.close},C({default:n(()=>[i(e.$slots,"default",{},()=>[s(l(e.content),1)],!0)]),_:2},[e.title?{name:"header",fn:n(()=>[s(l(e.title),1)]),key:"0"}:void 0,e.button?{name:"footer",fn:n(()=>[d("div",$,[e.cancelButtonText?(a(),m(r,{key:0,onClick:o[1]||(o[1]=t=>e.handleEvent("cancel"))},{default:n(()=>[s(l(e.cancelButtonText),1)]),_:1})):u("",!0),e.confirmButtonText?(a(),m(r,{key:1,type:"primary",onClick:o[2]||(o[2]=t=>e.handleEvent("confirm"))},{default:n(()=>[s(l(e.confirmButtonText),1)]),_:1})):u("",!0)])]),key:"1"}:void 0]),1032,["modelValue","custom-class","center","width","close-on-click-modal","onClosed"])])}const L=v(k,[["render",V],["__scopeId","data-v-95d1884e"]]);export{L as P};
|