HomeLease/unpackage/dist/dev/mp-weixin/components/announcement-bar/announcement-bar.js
2025-08-13 11:23:14 +08:00

31 lines
970 B
JavaScript

"use strict";
const common_vendor = require("../../common/vendor.js");
const _sfc_main = {
name: "AnnouncementBar",
props: {
announcementText: {
type: String,
default: "暂无更多公告! 暂无更多公告! 暂无更多公告!"
},
announcementIcon: {
type: String,
required: true
}
},
methods: {
onAnnouncementClick() {
this.$emit("announcement-click");
}
}
};
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return {
a: $props.announcementIcon,
b: common_vendor.t($props.announcementText),
c: common_vendor.o((...args) => $options.onAnnouncementClick && $options.onAnnouncementClick(...args))
};
}
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-3c038241"]]);
wx.createComponent(Component);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/components/announcement-bar/announcement-bar.js.map