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