index-f7c46570.js 1.9 KB

1
  1. /* empty css *//* empty css *//* empty css *//* empty css */import{_ as e}from"./index-25022d17.js";import{d as t,q as a,n as l,z as s,o,c as i,a as n,b4 as d,w as r,e as u,b as c,t as m,H as p,I as f,bx as h,X as y,y as w,_ as g}from"./index-4a226249.js";const v={class:"flex justify-between w-full"},_=["id"],b={class:"flex justify-end w-12"},x={class:"dialog-footer"},j=g(t({__name:"index",props:{modelValue:{type:Boolean,default:!1,require:!0},showFooter:{type:Boolean,default:!1},alignCenter:{type:Boolean,default:!1},height:{type:String,required:!1,default:""},width:{type:String,required:!1,default:""},title:{type:String,default:""}},emits:["update:modelValue"],setup(t,{emit:g}){const j=t,C=a(!1);l((()=>C.value?"arrows-pointing-in":"arrows-pointing-out"));const k=()=>{g("update:modelValue",!1)},V=()=>{g("update:modelValue",!1)},q=a("");s((()=>{q.value=j.width?j.width:$()}));const $=()=>{const e=window.document.body.clientWidth;return e<=726?"100%":e>726&&e<1440?"60%":"650px"};return(a,l)=>{const s=e,g=y,j=w;return o(),i("div",null,[n(j,h({"model-value":t.modelValue,"align-center":t.alignCenter,"show-close":!1,style:{height:t.height},fullscreen:C.value},a.$attrs,{width:q.value,close:k,"before-close":V,draggable:""}),d({header:r((({titleId:e,titleClass:a})=>[u("div",v,[u("div",null,[u("h4",{id:e,class:p(a)},m(t.title),11,_)]),u("div",b,[n(s,{name:"x-mark",className:"hover:cursor-pointer w-5 h-5",onClick:k})])])])),default:r((()=>[f(a.$slots,"default",{},void 0,!0)])),_:2},[t.showFooter?{name:"footer",fn:r((()=>[u("span",x,[n(g,{onClick:k},{default:r((()=>[c(m(a.$t("system.cancel")),1)])),_:1}),n(g,{type:"primary",onClick:k},{default:r((()=>[c(m(a.$t("system.confirm")),1)])),_:1})])])),key:"0"}:void 0]),1040,["model-value","align-center","style","fullscreen","width"])])}}}),[["__scopeId","data-v-59d8e383"]]);export{j as _};