Skip to content

Commit

Permalink
fix(tree): tree 节点禁用状态逻辑改进 (#3653)
Browse files Browse the repository at this point in the history
* fix(tree): tree 组件,完善禁用状态相关逻辑

* test(unit): tree 组件,完善禁用状态相关单元测试

* chore(tree): tree 组件更新 common 依赖,完善文档

* test(unit): tree 组件,update snapshot
  • Loading branch information
TabSpace authored Dec 1, 2023
1 parent c709bfa commit 240f1bd
Show file tree
Hide file tree
Showing 14 changed files with 1,777 additions and 1,077 deletions.
4 changes: 2 additions & 2 deletions src/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ export type InfinityScroll = TScroll;

export interface ScrollToElementParams {
/** 跳转元素下标 */
index: number;
index?: number;
/** 跳转元素距离顶部的距离 */
top?: number;
/** 单个元素高度非固定场景下,即 isFixedRowHeight = false。延迟设置元素位置,一般用于依赖不同高度异步渲染等场景,单位:毫秒 */
Expand All @@ -128,5 +128,5 @@ export interface ScrollToElementParams {
}

export interface ComponentScrollToElementParams extends ScrollToElementParams {
key: string | number;
key?: string | number;
}
Loading

0 comments on commit 240f1bd

Please sign in to comment.