-
-
Notifications
You must be signed in to change notification settings - Fork 8.9k
Closed as not planned
Closed as not planned
Copy link
Description
Link to minimal reproduction
Steps to reproduce
- 首先创建一个 vue 实例:const app = createApp({ ... })
- 注册一个自定义组件: app.component('test-component', { ...setup() { mounted() { console.log(’组件 mounted‘) } })
- 注册一个全局 mixin app.mixin({ mounted() { console.log(’全局 mounted‘) }})
What is expected?
- 期望全局 mixin mounted 先走,输出 「’全局 mounted‘」
- 再输出 test-component 的 「’组件 mounted‘」
What is actually happening?
- 自定义组件 setup 函数中的 onMounted 信息先打印
- 全局 mixin mounted 后打印
System Info
no
Any additional comments?
no
Metadata
Metadata
Assignees
Labels
No labels