import{k as i,F as _}from"./index.CL7yl-Wb.js";import{createCrudOptions as x}from"./crud.BMSk_ir1.js";import{a as h,r as B,q as k,aj as n,J as w,o as C,K as g,S as R,H as V,u as v}from"./vue.D1BjjNmv.js";import"./dictionary.BGob_AR7.js";const T=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}),k(()=>{o.doRefresh()}),(r,t)=>{const f=n("fs-crud"),m=n("el-drawer");return C(),w(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:g(()=>[R(f,V({ref_key:"crudRef",ref:d},v(c)),null,16)]),_:1},8,["modelValue"])}}});export{T as default};
