VTable icon indicating copy to clipboard operation
VTable copied to clipboard

[Feature] 搜索组件自动滚动增强功能

Open Vincent1993 opened this issue 2 months ago • 0 comments

What problem does this feature solve?

当前问题

  • 配置受限:autoJump 仅支持布尔值,无法区分不同的滚动行为
  • 缺少页面滚动:当搜索结果超出视窗时,页面不会自动滚动以显示结果,用户需要手动滚动才能看到超出可视区域的搜索结果 改造前:https://share.cleanshot.com/Jh4Zx7NQ 改造后:https://share.cleanshot.com/XJT48vcX

What does the proposed API look like?


export type SearchComponentOption = {
  table: IVTable;
  autoJump?: boolean; // 搜索后是否跳转到第一个结果
  autoScroll?: {
    enableTableScroll?: boolean;    // 启用表格内部滚动
    enableViewportScroll?: boolean; // 启用页面级别滚动
  };
  // ... 其他现有选项
};

Vincent1993 avatar Nov 12 '25 13:11 Vincent1993