VTable icon indicating copy to clipboard operation
VTable copied to clipboard

[Feature] 能否在选中多个单元格的情况下,保持行高亮的状态?

Open mzhang-eric opened this issue 1 year ago • 2 comments

What problem does this feature solve?

当设置单元格选中响应模式为整行高亮时,选中单个单元格时,所在行会出现高亮样式,但通过Ctrl Shift 快捷键或鼠标框选选中多个单元格,行的高亮状态不存在了,selectionStyle.inlineRowBgColor 没有生效。

const option = {
    select: {
        highlightMode: 'row'
    },
   selectionStyle: {
      cellBgColor: 'rgba(0, 174, 199, 0.2)',
      cellBorderLineWidth: 1,
      cellBorderColor: '#3dc1d4',
      inlineRowBgColor: '#86dbeb',
  },
}

What does the proposed API look like?

希望在选中多个单元格的时候,单元格所在的行都能保持高亮状态

mzhang-eric avatar Jul 02 '24 11:07 mzhang-eric

目前的逻辑是只有一个单元格被选中的情况 才会出现整行整列的高亮效果

fangsmile avatar Jul 03 '24 02:07 fangsmile

我标记了good first issue 看看有没有其他贡献者可以看看这个需求 或者你也可以参与开源共享 提pr

fangsmile avatar Jul 03 '24 02:07 fangsmile

我标记了good first issue 看看有没有其他贡献者可以看看这个需求 或者你也可以参与开源共享 提pr

这个可以让我尝试下吗

taiiiyang avatar Nov 02 '24 03:11 taiiiyang