import{defineComponent as d,createVNode as a}from"vue";import p from"@ant-design/icons-vue/SearchOutlined";import c from"../_util/props-util/initDefaultProps.mjs";import"../input/index.mjs";import s from"../input/Input.mjs";const u={prefixCls:String,placeholder:String,value:String,handleClear:Function,disabled:{type:Boolean,default:void 0},onChange:Function},S=d({compatConfig:{MODE:3},name:"Search",inheritAttrs:!1,props:c(u,{placeholder:""}),emits:["change"],setup(r,{emit:n}){const l=e=>{n("change",e),e.target.value===""&&r.handleClear?.()};return()=>{const{placeholder:e,value:t,prefixCls:o,disabled:i}=r;return a(s,{placeholder:e,class:o,value:t,onChange:l,disabled:i,allowClear:!0},{prefix:()=>a(p,null,null)})}}});export{S as default,u as transferSearchProps};
