const formRef = ref<InstanceType<typeof ElTable>>();报错

上报错内容:

TS2344: Type '{ version: string; install: (app: App<any>, options?: Partial<ConfigProviderProps> | undefined) => vo
id; }' does not satisfy the constraint 'abstract new (...args: any) => any'.
  Type '{ version: string; install: (app: App<any>, options?: Partial<ConfigProviderProps> | undefined) => void; }'
 provides no match for the signature 'new (...args: any): any'.

问题解决:

import ElTable,   {ElMessageBox, FormInstance} from "element-plus";

改成

import  {ElTable, ElMessageBox, FormInstance} from "element-plus";

版权声明:本文为zhaozuoyou原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。