1 |
- import{_ as e}from"./index-6cf781df.js";import{d as a,n as t,l,s,r as o,o as d,c as i,a as n,a8 as r,w as u,e as c,b as m,t as f,v as p,y as w,a4 as v,_ as h}from"./index-c9b7dd39.js";const y={class:"flex justify-between w-full"},_=["id"],g={class:"flex w-12 justify-end"},x={class:"dialog-footer"},b=h(a({__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(a,{emit:h}){const b=a,k=t(!1);l((()=>k.value?"arrows-pointing-in":"arrows-pointing-out"));const V=()=>{h("update:modelValue",!1)},j=()=>{h("update:modelValue",!1)},C=t("");s((()=>{C.value=b.width?b.width:$()}));const $=()=>{const e=window.document.body.clientWidth;return e<=726?"100%":e>726&&e<1440?"60%":"650px"};return(t,l)=>{const s=e,h=o("el-button"),b=o("el-dialog");return d(),i("div",null,[n(b,v({"model-value":a.modelValue,"show-close":!1,fullscreen:k.value},t.$attrs,{width:C.value,close:V,"before-close":j,draggable:""}),r({header:u((({titleId:e,titleClass:t})=>[c("div",y,[c("div",null,[c("h4",{id:e,class:p(t)},f(a.title),11,_)]),c("div",g,[n(s,{name:"x-mark",className:"hover:cursor-pointer w-5 h-5",onClick:V})])])])),default:u((()=>[w(t.$slots,"default",{},void 0,!0)])),_:2},[a.showFooter?{name:"footer",fn:u((()=>[c("span",x,[n(h,{onClick:V},{default:u((()=>[m(f(t.$t("system.cancel")),1)])),_:1}),n(h,{type:"primary",onClick:V},{default:u((()=>[m(f(t.$t("system.confirm")),1)])),_:1})])])),key:"0"}:void 0]),1040,["model-value","fullscreen","width"])])}}}),[["__scopeId","data-v-ca6c1549"]]);export{b as _};
|