index-CmrbCn_y.js 1.2 KB

1
  1. import{M as x}from"./index-AOcxwHT9.js";import{ae as k,b4 as g,aQ as _,aS as T,ah as o,ai as s,aj as t,ak as C,al as n,aW as p,aP as m,at as c,ap as r,av as u,am as V,aX as B,bY as D}from"./index-D68iA7pN.js";const w={class:"d-flex justify-center algin-center py-7"},M={key:0,class:"d-flex justify-space-evenly py-3"},h=k({__name:"index",setup(S){const d=g(),{options:e,isShow:l}=_(d),{showDialog:f}=d,y=()=>{e.value.define&&e.value.define(),f(!1)},v=()=>{e.value.cancel&&e.value.cancel(),f(!1)};return T(()=>{e.value.mounted&&e.value.mounted()}),(j,a)=>(n(),o(x,{title:t(e).title,modelValue:t(l),"onUpdate:modelValue":a[2]||(a[2]=i=>C(l)?l.value=i:null),"max-width":"250"},{actions:s(()=>[t(e).defineTitle||t(e).cancelTitle?(n(),p("div",M,[typeof t(e).defineTitle=="string"?(n(),o(m,{key:0,isAction:"",primary:"",onClick:a[0]||(a[0]=i=>y())},{default:s(()=>[c(r(t(e).defineTitle),1)]),_:1})):u("",!0),typeof t(e).cancelTitle=="string"?(n(),o(m,{key:1,isAction:"",onClick:a[1]||(a[1]=i=>v())},{default:s(()=>[c(r(t(e).cancelTitle),1)]),_:1})):u("",!0)])):u("",!0)]),default:s(()=>[V("div",w,[typeof t(e).text=="string"?(n(),p(B,{key:0},[c(r(t(e).text),1)],64)):(n(),o(D(t(e).text),{key:1}))])]),_:1},8,["title","modelValue"]))}});export{h as default};