greenPro/unpackage/dist/dev/mp-weixin/pages/template/component-communication/sender-bus.js

20 lines
657 B
JavaScript
Raw Permalink Normal View History

2024-06-02 14:51:29 +00:00
"use strict";
const common_vendor = require("../../../common/vendor.js");
const _sfc_main = {
methods: {
send() {
let num = parseInt(Math.random() * 1e4);
common_vendor.index.$emit("cc", {
msg: "From event bus -> " + num
});
}
}
};
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return {
a: common_vendor.o((...args) => $options.send && $options.send(...args))
};
}
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "E:/xianyu/app/greenPro/pages/template/component-communication/sender-bus.vue"]]);
wx.createComponent(Component);