2023-11-25 16:06:28 +08:00
|
|
|
import{w as c,L as f}from"./element-plus.9c2fdfa8.js";import{_ as k}from"./index.vue_vue_type_style_index_0_scoped_187b1ead_lang.33043b78.js";import{d as v}from"./index.6e8143ba.js";import{o as l,c as g,a as d,H as i,U as B,a9 as C,L as n,R as s,S as a,K as m,Q as u}from"./@vue.53f8d7c3.js";const y={class:"dialog"},$={class:"dialog-footer"};function V(e,o,b,w,E,T){const r=c,p=f;return l(),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(a(e.content),1)],!0)]),_:2},[e.title?{name:"header",fn:n(()=>[s(a(e.title),1)]),key:"0"}:void 0,e.button?{name:"footer",fn:n(()=>[d("div",$,[e.cancelButtonText?(l(),m(r,{key:0,onClick:o[1]||(o[1]=t=>e.handleEvent("cancel"))},{default:n(()=>[s(a(e.cancelButtonText),1)]),_:1})):u("",!0),e.confirmButtonText?(l(),m(r,{key:1,type:"primary",onClick:o[2]||(o[2]=t=>e.handleEvent("confirm"))},{default:n(()=>[s(a(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-187b1ead"]]);export{L as P};
|