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