S2 icon indicating copy to clipboard operation
S2 copied to clipboard

🐛明细表交叉表设置指定列宽度后,表格剩余列无法自适应容器宽度

Open Bernicechl opened this issue 2 years ago • 5 comments

🏷 Version

latest @antv/s2

Sheet Type

  • [ ] PivotSheet
  • [ ] TableSheet

🖋 Description

明细表交叉表设置指定列宽度后,表格剩余列无法自适应容器宽度

⌨️ Code Snapshots

image image

🤔 Steps to Reproduce

在https://s2.antv.vision/zh/examples/basic/pivot#grid 将s2Options修改为

const s2Options = {
      width: 900,
      height: 480,
        style: {
          colCfg: {
            width: (colNode) => {
              console.log('colNode: ', colNode);
              return colNode.colIndex <= 2 ? 100 : 50
            },
          },
      },
    };

明细表同理

😊 Expected Behavior

设置指定列宽厚表格仍撑满容器

😅 Current Behavior

设置指定列宽厚表格不撑满容器

💻 System information

Bernicechl avatar Oct 13 '22 08:10 Bernicechl

相同问题,希望能解决。

yufan1029 avatar Feb 10 '23 09:02 yufan1029

您发给我的信件已经收到。

Bernicechl avatar Feb 10 '23 09:02 Bernicechl

相同问题,希望能解决。

nnn149 avatar Jul 10 '23 08:07 nnn149

您发给我的信件已经收到。

Bernicechl avatar Jul 10 '23 08:07 Bernicechl

相同问题,希望能解决。

LazyJoke avatar Jul 18 '23 03:07 LazyJoke