diff --git a/index.ts b/index.ts index bfa7645..d72c323 100644 --- a/index.ts +++ b/index.ts @@ -187,7 +187,7 @@ export const VXETablePluginExportPDF = { config: pluginSetup, install (vxetable: VXETableCore, options?: VXETablePluginExportPDFOptions) { // 检查版本 - if (!/^(4)\./.test(vxetable.version)) { + if (!/^(4)\./.test(vxetable.version) && !/v4/i.test((vxetable as any).v)) { console.error('[vxe-table-plugin-export-pdf 4.x] Version vxe-table 4.x is required') }