vxe-table 3.12.1-beta.1 → 3.12.1-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,7 +7,7 @@ import { getRowUniqueId, clearTableAllStatus, getRowkey, getRowid, rowToVisible,
7
7
  import { getSlotVNs } from '../../ui/src/vn'
8
8
  import { warnLog, errLog } from '../../ui/src/log'
9
9
 
10
- import type { VxeTableDefines, VxeColumnPropTypes, VxeTableEmits, ValueOf, TableReactData } from '../../../types'
10
+ import type { VxeTableDefines, VxeColumnPropTypes, VxeTableEmits, ValueOf, TableReactData, VxeTableConstructor, TableInternalData } from '../../../types'
11
11
 
12
12
  const { getConfig, getI18n, renderer, formats, interceptor, createEvent } = VxeUI
13
13
 
@@ -289,10 +289,26 @@ function calcTableHeight (_vm: any, key: 'height' | 'minHeight' | 'maxHeight') {
289
289
  return num
290
290
  }
291
291
 
292
- const calcCellHeight = ($xeTable: any) => {
292
+ // const updateCellOffset = ($xeTable: VxeTableConstructor) => {
293
+ // const internalData = $xeTable as unknown as TableInternalData
294
+
295
+ // const { chTimeout, chRunTime } = internalData
296
+ // if (chTimeout) {
297
+ // clearTimeout(chTimeout)
298
+ // }
299
+ // if (!chRunTime || chRunTime + 10 < Date.now()) {
300
+ // internalData.chRunTime = Date.now()
301
+ // }
302
+ // internalData.chTimeout = setTimeout(() => {
303
+ // internalData.chRunTime = undefined
304
+ // internalData.chTimeout = undefined
305
+ // }, 80)
306
+ // }
307
+
308
+ const calcCellHeight = ($xeTable: VxeTableConstructor) => {
293
309
  const props = $xeTable
294
- const reactData = $xeTable
295
- const internalData = $xeTable
310
+ const reactData = $xeTable as unknown as TableReactData
311
+ const internalData = $xeTable as unknown as TableInternalData
296
312
 
297
313
  const { showOverflow } = props
298
314
  const { tableData, scrollXLoad } = reactData
@@ -329,6 +345,7 @@ const calcCellHeight = ($xeTable: any) => {
329
345
  }
330
346
  })
331
347
  }
348
+ // updateCellOffset($xeTable)
332
349
  }
333
350
 
334
351
  function getOrderField (_vm: any, column: any) {