From 637a492dd5ca30aedf646afb1bfb46a331662ada Mon Sep 17 00:00:00 2001 From: xuliangzhan Date: Tue, 8 Oct 2024 14:32:04 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E4=BF=AE=E5=A4=8D=E5=85=A8=E5=B1=80=20lo?= =?UTF-8?q?ading=20=E6=97=A0=E6=95=88=E9=97=AE=E9=A2=98=20#39?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/dynamics/index.ts | 2 +- types/components/table.d.ts | 88 ++++++++++++++----------------------- 2 files changed, 35 insertions(+), 55 deletions(-) diff --git a/packages/dynamics/index.ts b/packages/dynamics/index.ts index b325320b..699096ee 100644 --- a/packages/dynamics/index.ts +++ b/packages/dynamics/index.ts @@ -24,7 +24,7 @@ const VxeDynamics = defineComponent({ setup () { const VxeUIModalComponent = VxeUI.getComponent('VxeModal') const VxeUIDrawerComponent = VxeUI.getComponent('VxeDrawer') - const VxeUILoadingComponent = VxeUI.getComponent('VxeTooltip') + const VxeUILoadingComponent = VxeUI.getComponent('VxeLoading') const VxeUIWatermarkComponent = VxeUI.getComponent('VxeWatermark') return () => { diff --git a/types/components/table.d.ts b/types/components/table.d.ts index faf058bb..7496212f 100644 --- a/types/components/table.d.ts +++ b/types/components/table.d.ts @@ -2392,61 +2392,11 @@ export interface TableInternalData { // 渲染所有列 visibleColumn: VxeTableDefines.ColumnInfo[] // 缓存数据集 - fullAllDataRowIdData: { - [key: string]: { - row: D - rowid: string - seq: string | number - index: number - $index: number - _index: number - items: any[] - parent: any - level: number - treeLoaded?: boolean - expandLoaded?: boolean - formatData?: { - [key: string]: { - value: any - label: any - } - } - } - } + fullAllDataRowIdData: Record sourceDataRowIdData: Record - fullDataRowIdData: { - [key: string]: { - row: D - rowid: string - seq: string | number - index: number - $index: number - _index: number - items: any[] - parent: any - level: number - } - } - fullColumnIdData: { - [key: string]: { - column: VxeTableDefines.ColumnInfo - colid: string - index: number - $index: number - _index: number - items: VxeTableDefines.ColumnInfo[] - parent: VxeTableDefines.ColumnInfo - } - } - fullColumnFieldData: { - [key: string]: { - column: VxeTableDefines.ColumnInfo - colid: string - index: number - items: VxeTableDefines.ColumnInfo[] - parent: VxeTableDefines.ColumnInfo - } - } + fullDataRowIdData: Record + fullColumnIdData: Record> + fullColumnFieldData: Record> // 列选取状态 columnStatusMaps: Record // 行选取状态 @@ -3306,6 +3256,36 @@ export namespace VxeTableDefines { slots?: VxeColumnPropTypes.Slots } + export interface RowCacheItem { + row: D + rowid: string + seq: string | number + index: number + $index: number + _index: number + items: any[] + parent: any + level: number + treeLoaded?: boolean + expandLoaded?: boolean + formatData?: { + [key: string]: { + value: any + label: any + } + } + } + + export interface ColumnCacheItem { + column: VxeTableDefines.ColumnInfo + colid: string + index: number + $index: number + _index: number + items: VxeTableDefines.ColumnInfo[] + parent: VxeTableDefines.ColumnInfo + } + /** * 列对象 */