Skip to content

fix(table): radio cell should not render in summary row series number column #4027#5106

Open
william-xue wants to merge 1 commit intoVisActor:developfrom
william-xue:fix/4027-radio-show-in-summary-row
Open

fix(table): radio cell should not render in summary row series number column #4027#5106
william-xue wants to merge 1 commit intoVisActor:developfrom
william-xue:fix/4027-radio-show-in-summary-row

Conversation

@william-xue
Copy link
Copy Markdown

What

修复合计行(summary row)中行序号列(series number column)的单选框(radio)意外显示的问题。

Why

Closes #4027

当表格配置了合计行且选择列为单选框类型时,合计行上会错误地渲染单选框,
而复选框类型已正确处理了这种情况(不显示)。两者行为不一致。

How

cell-helper.ts 的 radio 分支中,仿照 checkbox 的处理方式,
添加 isAggregation && isSeriesNumber 判断:当处于合计行的序号列时,
降级渲染为普通文本单元格,与 checkbox 行为保持一致。

Checklist

  • 逻辑修复,与 checkbox 分支处理完全对齐
  • 无破坏性变更(正常行中 radio 渲染逻辑不受影响)

… column

When using summary rows with a radio selection column, the radio
button was incorrectly rendered in the summary row, inconsistent
with checkbox behavior which already has an isAggregation &&
isSeriesNumber guard to fall back to a text cell.

Closes VisActor#4027
@fangsmile
Copy link
Copy Markdown
Contributor

请拉取最新代码 这个问题前几个版本已经修了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

2 participants