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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vxe-table",
3
- "version": "4.2.2-beta.1",
3
+ "version": "4.2.2",
4
4
  "description": "一个基于 vue 的 PC 端表格组件,支持增删改查、虚拟列表、虚拟树、懒加载、快捷菜单、数据校验、树形结构、打印导出、表单渲染、数据分页、弹窗、自定义模板、渲染器、贼灵活的配置项、扩展接口等...",
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -482,7 +482,7 @@ const editHook: VxeGlobalHooksHandles.HookOptions = {
482
482
  $columnIndex: $xetable.getVMColumnIndex(column)
483
483
  }, evnt || null)
484
484
  }
485
- return ($xetable.clearValidate ? $xetable.clearValidate() : nextTick()).then(() => $xetable.recalculate())
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
- editMethods.clearActived(evnt)
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)