跳至主要内容

scrollType

描述

可选。指定滚动行为的方式。

用法

scrollType?: "default" | "column";
注释

scrollType 设置为 "column" 时,每个列可以独立滚动。

默认配置

scrollType: "default"
important

如果您将 renderType: "lazy"scrollType: "default" 一起使用,确保通过 cardHeight 属性设置固定的卡片高度。否则,卡片将不会显示。

示例

new kanban.Kanban("#root", {
columns,
cards,
rows,
scrollType: "column",
// 其他参数
});

更新日志: 该属性在 v1.2 版本引入

相关文档: 配置

相关示例: 看板。固定表头、懒加载和列滚动