Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BasicTable 表尾合计行 无法实时同步列宽拖动进行同步 #7101

Closed
benben120 opened this issue Aug 21, 2024 · 3 comments
Closed

Comments

@benben120
Copy link

版本号:

3.7.0_all

问题描述:

在列配置resizable: true时,如果跟表尾合计进行联动使用,列宽改变时, 表尾合计的列宽没有同步改变

错误截图:

image
image

友情提示:

  • 未按格式要求发帖、描述过于简单的,会被直接删掉;
  • 描述问题请图文并茂,方便我们理解并快速定位问题;
  • 如果使用的不是master,请说明你使用的分支;
@zhangdaiscott
Copy link
Member

zy

@liaozhiyang
Copy link
Contributor

已修复,下一版本发布。

你本地可在 src/components/Table/src/BasicTable.vue 文件按如下修改:

image

// update-begin--author:liaozhiyang---date:20240902---for:[issues/7101] 列配置resizable: true时,表尾合计的列宽没有同步改变
          const columns = getColumns();
          const findItem = columns.find((item) => {
            if (item['dataIndex'] != null) {
              return item['dataIndex'] === col['dataIndex'];
            } else if (item['flag'] != null) {
              return item['flag'] === col['flag'];
            }
            return false;
          });
          if (findItem) {
            findItem.width = w;
            setColumns(columns);
          }
          // update-end--author:liaozhiyang---date:20240902---for:[issues/7101] 列配置resizable: true时,表尾合计的列宽没有同步改变
          console.log('col',col);
          col.width = w;

@zhangdaiscott
Copy link
Member

70607db

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants