feat(core): 增强核心事件通讯总线,增强跨组件交互能力

This commit is contained in:
2025-10-30 16:57:33 +08:00
parent 66bf2504e0
commit 0fabacd71c
8 changed files with 1191 additions and 750 deletions

View File

@@ -0,0 +1,8 @@
export default {
methods: {
// 异步触发事件
async __$emitEvent(payload = {eventName: '__unnamedEvent', data: {}, promiseCallback: null}) {
await this.$eventBus?.emit(payload.eventName, payload.data, payload.promiseCallback)
},
}
}