custom-refresher.js 838 B

123456789101112131415161718192021222324252627282930
  1. "use strict";
  2. const common_vendor = require("../../common/vendor.js");
  3. const common_assets = require("../../common/assets.js");
  4. const _sfc_main = {
  5. data() {
  6. return {};
  7. },
  8. computed: {
  9. statusText() {
  10. const statusTextArr = ["哎呀,用点力继续下拉!", "松手刷新~~", "正在努力刷新中...", "刷新成功啦~"];
  11. return statusTextArr[this.status];
  12. }
  13. },
  14. props: {
  15. status: {
  16. type: Number,
  17. default: function() {
  18. return 0;
  19. }
  20. }
  21. }
  22. };
  23. function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
  24. return {
  25. a: common_assets._imports_0,
  26. b: common_vendor.t($options.statusText)
  27. };
  28. }
  29. const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-f0e95ecb"]]);
  30. wx.createComponent(Component);