import{_ as h,P as k}from"./page-content.e0c7af12.js";import{u as v}from"./use-page-search.0f272301.js";import{a as B,I as a,r as x,b as y,c as P,j as R,h as V,f as i,u as e,Y as b}from"./index.4d061c66.js";const S={modalConfig:{type:Object,required:!0}},q=B({__name:"ListModal",props:S,setup(r,{expose:f}){const o=r,d=a(()=>o.modalConfig.title),l=a(()=>o.modalConfig.searchConfig),m=a(()=>o.modalConfig.contentConfig),{pageContentRef:n,handleResetClick:p,handleSearchClick:u}=v(void 0,void 0,l),t=x(!1);async function g(s){t.value=!0,b(()=>{n.value&&n.value.getPageData({id:s})})}return f({show:g}),(s,c)=>{const C=y("el-dialog");return P(),R(C,{title:e(d),"close-on-press-escape":!1,modelValue:t.value,"onUpdate:modelValue":c[0]||(c[0]=_=>t.value=_),center:"","append-to-body":"","destroy-on-close":"",width:"1040px"},{default:V(()=>[i(e(h),{"form-config":e(l),onSearchBtnClick:e(u),onResetBtnClick:e(p)},null,8,["form-config","onSearchBtnClick","onResetBtnClick"]),i(e(k),{ref_key:"pageContentRef",ref:n,"content-config":e(m)},null,8,["content-config"])]),_:1},8,["title","modelValue"])}}});export{q as _};
