You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

48 lines
1.5 KiB

"use strict";
const common_vendor = require("../../common/vendor.js");
const common_assets = require("../../common/assets.js");
const _sfc_main = {
props: ["placeholder", "disable"],
data() {
return {
keyword: ""
};
},
methods: {
searchFn() {
this.$emit("searchFn", this.keyword);
},
clearSearchFn() {
this.keyword = "";
}
}
};
if (!Array) {
const _easycom_u_search2 = common_vendor.resolveComponent("u-search");
_easycom_u_search2();
}
const _easycom_u_search = () => "../../uni_modules/uview-plus/components/u-search/u-search.js";
if (!Math) {
_easycom_u_search();
}
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return {
a: common_assets._imports_0$4,
b: common_vendor.o(($event) => _ctx.$u.debounce($options.searchFn, 1500)),
c: common_vendor.o(($event) => _ctx.$u.debounce($options.searchFn, 500)),
d: common_vendor.o($options.clearSearchFn),
e: common_vendor.o(($event) => $data.keyword = $event),
f: common_vendor.p({
placeholder: $props.placeholder,
searchIcon: " ",
color: "#333",
disabled: $props.disable,
placeholderColor: "#9C9C9C",
bgColor: "transparent",
showAction: false,
modelValue: $data.keyword
})
};
}
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-612eacee"], ["__file", "D:/work/xinjiangMiniProgram/components/searchRow/searchRow.vue"]]);
wx.createComponent(Component);