import{d as g,r as _,i as k,w as a,P as V,D as C,e as i,o as D,h as t,k as u,g as p,p as r,t as x}from"./index-5k_MqT6o.js";import{u as F,C as N}from"./index-BHx7dntQ.js";const q=g({__name:"index",setup(h){const s=_({}),[b,{getValues:d,reset:m,setValues:v,setFormModel:w,validate:B,validateField:R}]=F({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:"否",value:2},{label:"否",value:3},{label:"否",value:4},{label:"否",value:5},{label:"否",value:6},{label:"否",value:7},{label:"否",value:8},{label:"否",value:9},{label:"否",value:10},{label:"否",value:11},{label:"否",value:12},{label:"否",value:15},{label:"否",value:16},{label:"否",value:17},{label:"否",value:18},{label:"否",value:19},{label:"否",value:20},{label:"否",value:21},{label:"否",value:22},{label:"否",value:23},{label:"否",value:24},{label:"否",value:25},{label:"否",value:26},{label:"否",value:27}],change({prop:y,value:e,event:n,schema:o,setSchema:l}){v("userId",e),l("userName","hidden",e)}},{label:"创建日期",prop:"createDate",type:"checkbox",slotName:"createDate"},{label:"开始日期",prop:"startDate",type:"date-picker"},{label:"异步选择框",prop:"syncSelect",type:"sync-select",api:C.getUserList,immediate:!0,syncOptions:{label:"username",value:"uid",remoteKey:"username"},props:{filterable:!0,remote:!0},options:[]},{label:"时间范围",prop:"range",type:"range-time-picker",props:{},rangeFields:["start","end"]}],elFormStyle:{}});function c(){s.value=d()}return(y,e)=>{const n=i("el-date-picker"),o=i("el-button");return D(),k(V,null,{default:a(()=>[t(r(N),{onRegister:r(b)},{createDate:a(l=>[t(n,{modelValue:l.model.createDate,"onUpdate:modelValue":f=>l.model.createDate=f},null,8,["modelValue","onUpdate:modelValue"]),e[0]||(e[0]=p("span",{style:{"margin-left":"20px"}},"插槽",-1))]),_:1},8,["onRegister"]),u(" "+x(r(s))+" ",1),p("p",null,[t(o,{onClick:c},{default:a(()=>[...e[1]||(e[1]=[u("获取数据",-1)])]),_:1})]),p("p",null,[t(o,{onClick:r(m)},{default:a(()=>[...e[2]||(e[2]=[u("重置",-1)])]),_:1},8,["onClick"])])]),_:1})}}});export{q as default};
