"use strict";const e=require("../../common/vendor.js"),l=require("./reducer.js");if(!Array){e.resolveComponent("uni-icons")()}Math;const o=e.defineComponent({__name:"hs-input",props:l.wlInputProps,emits:["update:valueModel","input","blur","bindconfirm","onClose"],setup(l,{emit:o}){const n=l,u=e.ref("");e.watch((()=>n.valueModel),(e=>{u.value=e,a(e)})),e.onMounted((()=>{u.value=n.valueModel,a(n.valueModel)}));const t=e=>{console.log(e,"输入"),a(e.detail.value)},a=e=>{o("update:valueModel",e),o("input",e)},i=()=>{o("blur",n.valueModel)},d=e=>{let l=e.target.value;o("bindconfirm",l)},s=()=>{u.value="",t({detail:{value:""}})};return(l,o)=>e.e({a:e.n(n.classInputName),b:e.o([e=>u.value=e.detail.value,t]),c:n.placeholderStyle,d:(null==n?void 0:n.width)||"300rpx",e:null==n?void 0:n.textAlign,f:e.o(t),g:(null==n?void 0:n.placeholder)||"请输入",h:(null==n?void 0:n.maxLength)||255,i:(null==n?void 0:n.type)||"text",j:e.o(i),k:e.o(d),l:null==n?void 0:n.disabled,m:null==n?void 0:n.confirmType,n:(null==n?void 0:n.password)||!1,o:u.value,p:u.value.length},u.value.length?{q:e.p({type:"closeempty",color:"#999",size:"16"}),r:e.o(s)}:{},{s:l.suffix},l.suffix?{t:e.t(l.suffix)}:{},{v:e.n(n.className)})}});wx.createComponent(o);
