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