acdr-ui/dist/dev/mp-weixin/components/Search.js

69 lines
2.2 KiB
JavaScript

"use strict";
const common_vendor = require("../common/vendor.js");
if (!Array) {
const _easycom_wd_icon2 = common_vendor.resolveComponent("wd-icon");
const _easycom_wd_popover2 = common_vendor.resolveComponent("wd-popover");
const _easycom_wd_search2 = common_vendor.resolveComponent("wd-search");
(_easycom_wd_icon2 + _easycom_wd_popover2 + _easycom_wd_search2)();
}
const _easycom_wd_icon = () => "../node-modules/wot-design-uni/components/wd-icon/wd-icon.js";
const _easycom_wd_popover = () => "../node-modules/wot-design-uni/components/wd-popover/wd-popover.js";
const _easycom_wd_search = () => "../node-modules/wot-design-uni/components/wd-search/wd-search.js";
if (!Math) {
(_easycom_wd_icon + _easycom_wd_popover + _easycom_wd_search)();
}
const _sfc_main = {
__name: "Search",
setup(__props) {
const searchType = common_vendor.ref("全部");
const value = common_vendor.ref("");
const menu = common_vendor.ref([
{
content: "全部"
},
{
content: "上门服务"
},
{
content: "宠物陪伴"
},
{
content: "宠物陪遛"
},
{
content: "宠物商城"
}
]);
const search = ({ value: value2 }) => {
};
const changeSearchType = ({ item, index }) => {
searchType.value = item.content;
};
return (_ctx, _cache) => {
return {
a: common_vendor.t(common_vendor.unref(searchType)),
b: common_vendor.p({
["custom-class"]: "icon-arrow",
name: "fill-arrow-down"
}),
c: common_vendor.o(changeSearchType),
d: common_vendor.p({
mode: "menu",
content: common_vendor.unref(menu)
}),
e: common_vendor.o(search),
f: common_vendor.o(search),
g: common_vendor.o(($event) => common_vendor.isRef(value) ? value.value = $event : null),
h: common_vendor.p({
placeholder: "搜索...",
["cancel-txt"]: "搜索",
modelValue: common_vendor.unref(value)
})
};
};
}
};
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-87359d7f"]]);
wx.createComponent(Component);
//# sourceMappingURL=Search.js.map