ant design vue table 滚动错位

699 阅读1分钟

官方文档

建议指定 scroll.x 为大于表格宽度的固定值或百分比。注意,且非固定列宽度之和不要超过 scroll.x。

问题在于table参数 :scroll="{ x: headerWidth, y: 550 }",中的headerWidth要按照要求设置,而设置为:scroll="{ x: true, y: 550 }"是会错位的。