u-toolbar.js 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  1. "use strict";
  2. const common_vendor = require("../../../../common/vendor.js");
  3. const _sfc_main = {
  4. name: "u-toolbar",
  5. mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$24],
  6. emits: ["confirm", "cancel"],
  7. methods: {
  8. // 点击取消按钮
  9. cancel() {
  10. this.$emit("cancel");
  11. },
  12. // 点击确定按钮
  13. confirm() {
  14. this.$emit("confirm");
  15. }
  16. }
  17. };
  18. function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
  19. return common_vendor.e({
  20. a: _ctx.show
  21. }, _ctx.show ? common_vendor.e({
  22. b: common_vendor.t(_ctx.cancelText),
  23. c: common_vendor.o((...args) => $options.cancel && $options.cancel(...args)),
  24. d: _ctx.cancelColor,
  25. e: _ctx.title
  26. }, _ctx.title ? {
  27. f: common_vendor.t(_ctx.title)
  28. } : {}, {
  29. g: common_vendor.t(_ctx.confirmText),
  30. h: common_vendor.o((...args) => $options.confirm && $options.confirm(...args)),
  31. i: _ctx.confirmColor,
  32. j: common_vendor.o((...args) => _ctx.noop && _ctx.noop(...args))
  33. }) : {});
  34. }
  35. const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-3fd495d6"], ["__file", "D:/project/学吧/learn_applet/node_modules/uview-plus/components/u-toolbar/u-toolbar.vue"]]);
  36. wx.createComponent(Component);