当前位置:网站首页>After using the vxe-table row merge, there will be an extra column blank after the merged row.
After using the vxe-table row merge, there will be an extra column blank after the merged row.
2022-08-07 12:32:00 【Lady, please respect yourself】

The above picture is the problem I encountered in the process of using vxe-table. After merging all the rows in the last column, there will be a blank extra column except the first row. After a long research, I finally solved it.
Here is the code:
RowSpan({ row, _rowIndex, column, visibleData }) {if (_rowIndex === 0 && column.field === 'he') {var sumNumber = 0for (var i in visibleData) {sumNumber += visibleData[i].qfje}row.he = sumNumberreturn { 'rowspan': visibleData.length, 'colspan': 1 }} else if (_rowIndex !== 0 && column.field === 'he') {return { 'rowspan': 0, 'colspan': 0 }} else {return { 'rowspan': 1, 'colspan': 1 }}}边栏推荐
猜你喜欢

使用vxe-table行合并后所合并到的行后面会多出一列空白出来,

金九银十面试季在即,Android程序猿如何斩获offer?

1.0常见命令以及权限理解

免费的编程连字等宽字体:Fira Code
![[Cloud Native--Kubernetes] Security Mechanism](/img/81/0187e1ea9e9436abc271dd6608de6d.png)
[Cloud Native--Kubernetes] Security Mechanism

Custom types: structs, enums, unions
![[Deep Learning] Li Mu's Deep Learning Notes are here!](/img/68/4e032f65a06dc31abc491a99de9dda.png)
[Deep Learning] Li Mu's Deep Learning Notes are here!

【深度学习】李沐的深度学习笔记来了!

OneNote 教程,如何在 OneNote 中使用绘图和批注?

若依集成just-auth实现第三方授权登录
随机推荐
若依集成just-auth实现第三方授权登录
1.0常见命令以及权限理解
The Three Musketeers of Mini Programs-wxml, wxss, js Preliminary Understanding
动态内存管理
flutter打包
odoo community edition approval flow
Job interview, written test experience and preparation process
什么是 Office Open XML 文件格式
MySQL 报错原因:ERROR 1241 (21000): Operand should contain 1 column(s)
'utf-8' codec can't decode byte 0xb9 in position 0: invalid start byte
【机器学习】XGBoost 比深度学习还强?
USB模块分析(四)- 设备列表&权限申请
Custom types: structs, enums, unions
Detailed explanation of grid_sample function in frame insertion
dll修复工具安装教程
Leetcode 47. Full Permutation II
Yolo v5 masks monitoring
ESP8266-Arduino编程实例-L3GD20三轴角速率传感器驱动
[js] Calculate the distance from the child node to the parent node and scroll to the position
Linux - Install and start Redis on a Linux system