u-toolbar.js 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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$30],
  6. emits: ["confirm", "cancel"],
  7. created() {
  8. },
  9. methods: {
  10. // 点击取消按钮
  11. cancel() {
  12. this.$emit("cancel");
  13. },
  14. // 点击确定按钮
  15. confirm() {
  16. this.$emit("confirm");
  17. }
  18. }
  19. };
  20. function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
  21. return common_vendor.e({
  22. a: _ctx.show
  23. }, _ctx.show ? common_vendor.e({
  24. b: common_vendor.t(_ctx.cancelText),
  25. c: common_vendor.o((...args) => $options.cancel && $options.cancel(...args)),
  26. d: _ctx.cancelColor,
  27. e: _ctx.title
  28. }, _ctx.title ? {
  29. f: common_vendor.t(_ctx.title)
  30. } : {}, {
  31. g: !_ctx.rightSlot
  32. }, !_ctx.rightSlot ? {
  33. h: common_vendor.t(_ctx.confirmText),
  34. i: common_vendor.o((...args) => $options.confirm && $options.confirm(...args)),
  35. j: _ctx.confirmColor
  36. } : {}, {
  37. k: common_vendor.o((...args) => _ctx.noop && _ctx.noop(...args))
  38. }) : {});
  39. }
  40. const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-3fd495d6"], ["__file", "C:/Users/Administrator/Desktop/srcaaa/node_modules/uview-plus/components/u-toolbar/u-toolbar.vue"]]);
  41. wx.createComponent(Component);