import{u as m,C as c}from"./index-BfmhdFfx.js";import{d,i as b,w as o,P as f,e as g,o as _,h as r,k as a,p as l}from"./index-5k_MqT6o.js";import"./index-BHx7dntQ.js";const D=d({__name:"index",setup(y){const[s,{open:n,getFormActions:p}]=m({submit(t,e){setTimeout(()=>{console.log(t),p().reset(),e()},1e3)},formConfig:{schema:[{label:"关键字",prop:"keyword",type:"input",defaultValue:"nb",clearable:!1},{label:"编号",prop:"userId",type:"input",props:{type:"number"}},{label:"用户名",prop:"userName",type:"input",required:!0,hidden:!0},{label:"激活状态",prop:"isActive",type:"switch"},{label:"是否管理员",prop:"isAdmin",type:"select",required:!0,options:[{label:"是",value:0},{label:"否",value:1}]},{label:"创建日期",prop:"createDate",type:"checkbox",slotName:"createDate"}]}});function i(){n({title:"新增"},t=>{t.setSchema("userId","props",{disabled:!0})})}return(t,e)=>{const u=g("el-button");return _(),b(f,null,{default:o(()=>[r(u,{onClick:i},{default:o(()=>[...e[0]||(e[0]=[a("打开",-1)])]),_:1}),r(l(c),{onRegister:l(s)},{container:o(()=>[...e[1]||(e[1]=[a("1",-1)])]),_:1},8,["onRegister"])]),_:1})}}});export{D as default};
