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

4 months ago
4 months ago
4 months ago
  1. "use strict";
  2. const common_vendor = require("../../common/vendor.js");
  3. const common_assets = require("../../common/assets.js");
  4. const _sfc_main = {
  5. props: ["placeholder", "disable"],
  6. data() {
  7. return {
  8. keyword: ""
  9. };
  10. },
  11. methods: {
  12. searchFn() {
  13. this.$emit("searchFn", this.keyword);
  14. },
  15. clearSearchFn() {
  16. this.keyword = "";
  17. }
  18. }
  19. };
  20. if (!Array) {
  21. const _easycom_u_search2 = common_vendor.resolveComponent("u-search");
  22. _easycom_u_search2();
  23. }
  24. const _easycom_u_search = () => "../../uni_modules/uview-plus/components/u-search/u-search.js";
  25. if (!Math) {
  26. _easycom_u_search();
  27. }
  28. function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
  29. return {
  30. a: common_assets._imports_0$4,
  31. b: common_vendor.o(($event) => _ctx.$u.debounce($options.searchFn, 1500)),
  32. c: common_vendor.o(($event) => _ctx.$u.debounce($options.searchFn, 500)),
  33. d: common_vendor.o($options.clearSearchFn),
  34. e: common_vendor.o(($event) => $data.keyword = $event),
  35. f: common_vendor.p({
  36. placeholder: $props.placeholder,
  37. searchIcon: " ",
  38. color: "#333",
  39. disabled: $props.disable,
  40. placeholderColor: "#9C9C9C",
  41. bgColor: "transparent",
  42. showAction: false,
  43. modelValue: $data.keyword
  44. })
  45. };
  46. }
  47. const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-612eacee"], ["__file", "D:/work/xinjiangMiniProgram/components/searchRow/searchRow.vue"]]);
  48. wx.createComponent(Component);