"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 n=require("../../constant.js");require("../../item/index.vue2.js");const m=require("../../item/index.vue.js"),_=require("../../../ap-field/cascader/index.vue.js"),v=e.defineComponent({name:"ApFormItemCascader",__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,d=e.useSlots(),t=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:()=>{t.value?.focus()},blur:()=>{t.value?.blur()},request:(l,u)=>{t.value?.request(l,u)}}),(l,u)=>(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:"cascaderRef",ref:t}),e.createSlots({_:2},[e.renderList(e.unref(a.omit)(d,e.unref(n.apFormItemSlotNames)),(f,o)=>({name:o,fn:e.withCtx(s=>[e.renderSlot(l.$slots,o,e.normalizeProps(e.guardReactiveProps(s||{})))])}))]),1040)]),_:2},[e.renderList(e.unref(a.pick)(d,e.unref(n.apFormItemSlotNames)),(f,o)=>({name:o,fn:e.withCtx(s=>[e.renderSlot(l.$slots,o,e.normalizeProps(e.guardReactiveProps(s||{})))])}))]),1040))}});exports.default=v;
