From 362005bf64b6fac0ba1e2098b9cca16566239f28 Mon Sep 17 00:00:00 2001 From: dap <15891557205@163.com> Date: Mon, 4 Nov 2024 14:40:53 +0800 Subject: [PATCH] fix: xxeTable destruction/reconstruction remains at the first init --- packages/effects/plugins/src/vxe-table/use-vxe-grid.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/effects/plugins/src/vxe-table/use-vxe-grid.ts b/packages/effects/plugins/src/vxe-table/use-vxe-grid.ts index 3e7bb37caee..d2c44bfb722 100644 --- a/packages/effects/plugins/src/vxe-table/use-vxe-grid.ts +++ b/packages/effects/plugins/src/vxe-table/use-vxe-grid.ts @@ -9,8 +9,7 @@ import VxeGrid from './use-vxe-grid.vue'; export function useVbenVxeGrid(options: VxeGridProps) { // const IS_REACTIVE = isReactive(options); - const api = new VxeGridApi(options); - let extendedApi: ExtendedVxeGridApi = api as ExtendedVxeGridApi; + let extendedApi!: ExtendedVxeGridApi; const Grid = defineComponent( (props: VxeGridProps, { attrs, slots }) => {