vxe-table 3.11.6 → 3.11.7

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.
@@ -2506,16 +2506,21 @@ const Methods = {
2506
2506
  * 支持 width=? width=?px width=?% min-width=? min-width=?px min-width=?%
2507
2507
  */
2508
2508
  recalculate (reFull?: boolean) {
2509
- const $xeTable = this
2510
- const internalData = $xeTable
2509
+ return new Promise<void>(resolve => {
2510
+ const $xeTable = this
2511
+ const internalData = $xeTable
2511
2512
 
2512
- const { rceTimeout } = internalData
2513
- if (rceTimeout) {
2514
- clearTimeout(rceTimeout)
2515
- } else {
2516
- handleRecalculateLayout($xeTable, !!reFull)
2517
- }
2518
- return new Promise(resolve => {
2513
+ const { rceTimeout } = internalData
2514
+ if (rceTimeout) {
2515
+ clearTimeout(rceTimeout)
2516
+ $xeTable.$nextTick(() => {
2517
+ resolve()
2518
+ })
2519
+ } else {
2520
+ resolve(
2521
+ handleRecalculateLayout($xeTable, !!reFull)
2522
+ )
2523
+ }
2519
2524
  internalData.rceTimeout = setTimeout(() => {
2520
2525
  internalData.rceTimeout = undefined
2521
2526
  resolve(handleRecalculateLayout($xeTable, !!reFull))