vue3.x TS Mixin method not found
Vue version
3.2
Link to minimal reproduction
Steps to reproduce
app.use(Antd).use(router) .mixin({ methods: { updateCurrentUUID () { } } }) .mount('#app')
export default defineComponent({
initComponentData () {
/* 报错
Property 'updateCurrentUUID' does not exist on type 'CreateComponentPublicInstance<Readonly<ExtractPropTypes<{ DefineInfo: { type: PropTypeon${string}
]: undefined; }, ... 16 more ..., {}>'.Vetur(2339)
*/
this.updateCurrentUUID()
},
})
What is expected?
无
What is actually happening?
无
System Info
No response
Any additional comments?
No response