Property 'property' does not exist on type 'Vue'.

3,904 阅读1分钟

在使用vue + typescript 环境中报错

改成

(this.$parent as any).status = 'dayPanel';