"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),a=require("lodash-unified");require("../../../ap-field/index.js");const d=require("../../constant.js");require("../../item/index.vue2.js");const m=require("../../item/index.vue.js"),_=require("../../../ap-field/tree-select/index.vue.js"),v=e.defineComponent({name:"ApFormItemTreeSelect",__name:"index",props:{htmlFor:{},prefixCls:{},label:{},help:{},extra:{},labelCol:{},wrapperCol:{},hasFeedback:{type:Boolean,default:!1},colon:{type:Boolean,default:void 0},labelAlign:{},prop:{},name:{},rules:{},autoLink:{type:Boolean,default:!0},required:{type:Boolean,default:void 0},validateFirst:{type:Boolean,default:void 0},validateStatus:{},validateTrigger:{},messageVariables:{},hidden:{type:Boolean},noStyle:{type:Boolean},tooltip:{},span:{},order:{},offset:{},push:{},pull:{},xs:{},sm:{},md:{},lg:{},xl:{},xxl:{},flex:{},bordered:{type:Boolean},valuePropName:{},initialValue:{},_signal:{},transform:{},description:{},customFilled:{},disabled:{type:Boolean,default:void 0},autoFocus:{type:Boolean},field:{default:()=>({})},placeholder:{}},setup(i,{expose:p}){const r=i,u=e.useSlots(),o=e.shallowRef(),c=e.computed(()=>({placeholder:r.placeholder,disabled:r.disabled,...r.field||{},bordered:r.bordered?!1:a.isUndefined(r.field?.bordered)?!0:r.field?.bordered}));return p({focus:()=>{o.value?.focus()},blur:()=>{o.value?.blur()},request:(l,n)=>{o.value?.request(l,n)}}),(l,n)=>(e.openBlock(),e.createBlock(m.default,e.normalizeProps(e.guardReactiveProps(e.unref(a.omit)(r,["field","placeholder"]))),e.createSlots({default:e.withCtx(()=>[e.createVNode(e.unref(_.default),e.mergeProps(c.value,{ref_key:"treeSelectRef",ref:o}),e.createSlots({_:2},[e.renderList(e.unref(a.omit)(u,e.unref(d.apFormItemSlotNames)),(f,t)=>({name:t,fn:e.withCtx(s=>[e.renderSlot(l.$slots,t,e.normalizeProps(e.guardReactiveProps(s||{})))])}))]),1040)]),_:2},[e.renderList(e.unref(a.pick)(u,e.unref(d.apFormItemSlotNames)),(f,t)=>({name:t,fn:e.withCtx(s=>[e.renderSlot(l.$slots,t,e.normalizeProps(e.guardReactiveProps(s||{})))])}))]),1040))}});exports.default=v;
