u-toolbar.js 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  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$31],
  6. methods: {
  7. // 点击取消按钮
  8. cancel() {
  9. this.$emit("cancel");
  10. },
  11. // 点击确定按钮
  12. confirm() {
  13. this.$emit("confirm");
  14. }
  15. }
  16. };
  17. function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
  18. return common_vendor.e({
  19. a: _ctx.show
  20. }, _ctx.show ? common_vendor.e({
  21. b: common_vendor.t(_ctx.cancelText),
  22. c: common_vendor.o((...args) => $options.cancel && $options.cancel(...args)),
  23. d: _ctx.cancelColor,
  24. e: _ctx.title
  25. }, _ctx.title ? {
  26. f: common_vendor.t(_ctx.title)
  27. } : {}, {
  28. g: common_vendor.t(_ctx.confirmText),
  29. h: common_vendor.o((...args) => $options.confirm && $options.confirm(...args)),
  30. i: _ctx.confirmColor,
  31. j: common_vendor.o((...args) => _ctx.noop && _ctx.noop(...args))
  32. }) : {});
  33. }
  34. const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-3fd495d6"], ["__file", "F:/兴元/开门柜项目/平台端管理系统小程序/node_modules/uview-plus/components/u-toolbar/u-toolbar.vue"]]);
  35. wx.createComponent(Component);