import{h as i,n as _}from"./index.igw5cVmP.js";import{createCrudOptions as x}from"./crud.CkLZ4Nt5.js";import{w as h,D as w,O as B,aF as n,a0 as C,y as g,a1 as y,a8 as R,Z as V,G as k}from"./vue.Bi2Y_N79.js";import"./dictionary.CuGG9bZ1.js";const O=h({__name:"index",setup(v,{expose:a}){const e=w(!1),s=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 a({drawer:e,setSearchFormData:l,doRefresh:u}),B(()=>{o.doRefresh()}),(r,t)=>{const f=n("fs-crud"),m=n("el-drawer");return g(),C(m,{size:"70%",modelValue:e.value,"onUpdate:modelValue":t[0]||(t[0]=p=>e.value=p),direction:"rtl","destroy-on-close":"","before-close":s},{default:y(()=>[R(f,V({ref_key:"crudRef",ref:d},k(c)),null,16)]),_:1},8,["modelValue"])}}});export{O as default};