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