import{_ as p}from"./DrawerForm.vue_vue_type_script_lang-45dsrJlk.js";import{B as c}from"./BasicForm-dL_oCSPM.js";import{u}from"./useForm-CKmgcynv.js";import{d as f,r as d,c as _,o as b,w as h,i as w,j as g,l as e,ac as v}from"./index-9PRMimni.js";import"./Render.vue_vue_type_script_lang-DKUYY0Zw.js";import"./SingleImageUpload-CNx4b9eC.js";import"./ImageUpload.vue_vue_type_style_index_0_scoped_cb086928_lang-D-28kXvw.js";import"./componentSetting-DVhNDBTO.js";import"./ImageUpload-DUsnro3W.js";import"./vuedraggable.umd-Co2xEC3p.js";import"./BasicUpload.vue_vue_type_style_index_0_scoped_a4d0e930_lang-DxRbtP01.js";import"./tabsView-BXskTdVh.js";import"./BasicForm.vue_vue_type_style_index_0_scoped_b9e995ec_lang-CEvcLwxD.js";import"./propTypes-CebMRUpe.js";import"./BasicSelect-C_uwzMkE.js";import"./BasicSelect.vue_vue_type_style_index_0_scoped_772d51cc_lang-Brp6PjEU.js";import"./dictionary-BRse4lkf.js";import"./index-DkvzUEqh.js";import"./index-kKnqLkWM.js";import"./AutoComplete-Dv1Bqed4.js";import"./TreeSelect-BZh2DeCh.js";import"./usePageCache-DluHn7Yy.js";const x={class:"mt-6"},L=f({__name:"EditDrawer",setup(B,{expose:a}){const l=[{field:"name",component:"NInput",label:"名称",rules:[{required:!0,message:"请输入名称",trigger:["blur"]}]},{field:"sex",component:"NSelect",label:"性别",componentProps:{placeholder:"请选择性别",options:[{label:"男",value:"male"},{label:"女",value:"female"},,]}},{field:"email",component:"NInput",label:"邮箱",componentProps:{placeholder:"请输入邮箱"}},{field:"city",component:"NInput",label:"城市",componentProps:{placeholder:"请输入城市"}},{field:"status",component:"NSelect",label:"状态",componentProps:{placeholder:"请选择性别",options:[{label:"拒绝",value:"refuse"},{label:"取消",value:"close"},{label:"成功",value:"success"}]}}],o=d(),[i,s]=u({gridProps:{cols:1},layout:"horizontal",submitButtonText:"提交预约",showActionButtonGroup:!1,schemas:l});function m(t,r){console.log("表单值",t),r(!0)}function n(){v(()=>{o.value.openDrawer()})}return a({openDrawer:n}),(t,r)=>(b(),_(e(p),{ref_key:"drawerFormRef",ref:o,width:450,drawerContent:{title:"编辑用户"},positiveText:"保存",form:e(s),onSubmit:m},{default:h(()=>[w("div",x,[g(e(c),{onRegister:e(i)},null,8,["onRegister"])])]),_:1},8,["form"]))}});export{L as default};
