上报错内容:
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";