import{$ as i}from"./index.K_MFulpu.js";import{E as _}from"./elementPlus.CSBdF9Zt.js";import{createCrudOptions as x}from"./crud.CyrgKPPG.js";import{d as h,r as B,j as w,ai as n,o as C,M as g,O as R,U as V,K as k,u as v}from"./vue.1RczIYhx.js";import"./dictionary.DpWy6kWR.js";const $=h({__name:"index",setup(y,{expose:s}){const e=B(!1),a=r=>{_.confirm("您确定要关闭?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{r()}).catch(()=>{})},{crudBinding:c,crudRef:d,crudExpose:o}=i({createCrudOptions:x,context:{}}),{setSearchFormData:l,doRefresh:u}=o;return s({drawer:e,setSearchFormData:l,doRefresh:u}),w(()=>{o.doRefresh()}),(r,t)=>{const f=n("fs-crud"),m=n("el-drawer");return C(),g(m,{size:"70%",modelValue:e.value,"onUpdate:modelValue":t[0]||(t[0]=p=>e.value=p),direction:"rtl","destroy-on-close":"","before-close":a},{default:R(()=>[V(f,k({ref_key:"crudRef",ref:d},v(c)),null,16)]),_:1},8,["modelValue"])}}});export{$ as default};
