vxe-table 4.2.2-beta.1 → 4.2.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.
- package/es/edit/src/hook.js +4 -2
- package/es/grid/src/grid.js +1 -1
- package/lib/edit/src/hook.js +6 -4
- package/lib/edit/src/hook.min.js +1 -1
- package/lib/grid/src/grid.js +1 -1
- package/lib/grid/src/grid.min.js +1 -1
- package/lib/index.umd.js +7 -5
- package/lib/index.umd.min.js +1 -1
- package/package.json +1 -1
- package/packages/edit/src/hook.ts +4 -2
- package/packages/grid/src/grid.ts +1 -1
package/package.json
CHANGED
|
@@ -482,7 +482,7 @@ const editHook: VxeGlobalHooksHandles.HookOptions = {
|
|
|
482
482
|
$columnIndex: $xetable.getVMColumnIndex(column)
|
|
483
483
|
}, evnt || null)
|
|
484
484
|
}
|
|
485
|
-
return
|
|
485
|
+
return $xetable.clearValidate ? $xetable.clearValidate() : nextTick()
|
|
486
486
|
},
|
|
487
487
|
/**
|
|
488
488
|
* 清除所选中源状态
|
|
@@ -575,7 +575,9 @@ const editHook: VxeGlobalHooksHandles.HookOptions = {
|
|
|
575
575
|
}
|
|
576
576
|
}
|
|
577
577
|
$xetable.closeTooltip()
|
|
578
|
-
|
|
578
|
+
if (actived.column) {
|
|
579
|
+
editMethods.clearActived(evnt)
|
|
580
|
+
}
|
|
579
581
|
type = 'edit-actived'
|
|
580
582
|
column.renderHeight = cell.offsetHeight
|
|
581
583
|
actived.args = params
|
|
@@ -772,7 +772,7 @@ export default defineComponent({
|
|
|
772
772
|
if (rest) {
|
|
773
773
|
if (isEnableConf(pagerConfig)) {
|
|
774
774
|
const total = XEUtils.get(rest, proxyProps.total || 'page.total') || 0
|
|
775
|
-
tablePage.total = total
|
|
775
|
+
tablePage.total = XEUtils.toNumber(total)
|
|
776
776
|
reactData.tableData = XEUtils.get(rest, proxyProps.result || 'result') || []
|
|
777
777
|
// 检验当前页码,不能超出当前最大页数
|
|
778
778
|
const pageCount = Math.max(Math.ceil(total / tablePage.pageSize), 1)
|