import{defineComponent as i,shallowRef as c,createVNode as a}from"vue";import o from"./vue-types/index.mjs";const v=i({compatConfig:{MODE:3},props:{disabled:o.looseBool,type:o.string,value:o.any,tag:{type:String,default:"input"},size:o.string,onChange:Function,onInput:Function,onBlur:Function,onFocus:Function,onKeydown:Function,onCompositionstart:Function,onCompositionend:Function,onKeyup:Function,onPaste:Function,onMousedown:Function},emits:["change","input","blur","keydown","focus","compositionstart","compositionend","keyup","paste","mousedown"],setup(s,{expose:l}){const n=c(null);return l({focus:()=>{n.value&&n.value.focus()},blur:()=>{n.value&&n.value.blur()},input:n,setSelectionRange:(e,t,u)=>{n.value?.setSelectionRange(e,t,u)},select:()=>{n.value?.select()},getSelectionStart:()=>n.value?.selectionStart,getSelectionEnd:()=>n.value?.selectionEnd,getScrollTop:()=>n.value?.scrollTop}),()=>{const{tag:e,value:t,...u}=s;return a(e,{...u,ref:n,value:t},null)}}});export{v as default};
