vue项目使用TS的时候 因为一些细节导致会遇到好多问题 建议打开tslist 更有助于我们熟悉ts
上述报错提示,Property 'activeClass' does not exist on type 'Vue',修改为下面即可
还有种问题,即便写了(this as any) 还是会报红,如下图
报出his expression is not callable.Type 'Boolean' has no call signatures. 这样的错误,上述原因是因为在结尾没有写“ ; ”
两个小问题,体现出细节问题需要注意~~大家加油~