searchBox.js
888 字节
"use strict";const e=require("../common/vendor.js");Array||e.resolveComponent("u-search")();const d=()=>"../uni_modules/uview-plus/components/u-search/u-search.js";Math||d();const i={__name:"searchBox",props:{disabled:{type:Boolean,default:!0},keyWord:{type:String,default:""}},emits:["doSearchs","input"],setup(a,{emit:r}){const s=a;let o=e.ref("");const n=e.ref({fontSize:"28rpx",fontWeight:700,color:"#fb753c"});e.onMounted(()=>{o.value=s.keyWord});const t=l=>{r("doSearchs",o.value)},u=()=>{s.disabled&&e.index.navigateTo({url:"/pages/index/search"})};return(l,p)=>({a:e.o(t),b:e.o(t),c:e.o(c=>e.isRef(o)?o.value=c:o=c),d:e.p({disabled:a.disabled,placeholder:"请输入",bgColor:"#fff",searchIconColor:"#fda9a3",actionStyle:n.value,modelValue:e.unref(o)}),e:e.o(u)})}},h=e._export_sfc(i,[["__file","D:/vue/大健康商城/healthMall/componets/searchBox.vue"]]);wx.createComponent(h);