Skip to content

Commit

Permalink
fix(tree): tree 节点禁用状态逻辑改进 (#2935)
Browse files Browse the repository at this point in the history
* test(tree): 完善 tree 组件的禁用示例

* fix(tree): tree 组件, 禁用状态过滤函数不再仅生效于UI层,将传递到模型侧参与状态计算

* fix(tree): tree 组件完善禁用逻辑

* fix(tree): tree 组件添加 refresh 方法刷新节点状态

* test(tree): tree 组件,完善 disabled 相关示例

* fix(tree): tree 组件,完善半选状态下的状态切换

* test(tree): tree 组件,完善操作示例,提供 disabled 状态与其他状态的整合演示

* chore(tree): tree 组件,更新 common 依赖

* test(tree): tree 组件,添加禁用状态相关测试

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

* test(tree): tree 组件,update snapshot
  • Loading branch information
TabSpace authored Nov 30, 2023
1 parent 5ff78fc commit b577367
Show file tree
Hide file tree
Showing 14 changed files with 1,511 additions and 920 deletions.
4 changes: 2 additions & 2 deletions src/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export type InfinityScroll = TScroll;

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

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

0 comments on commit b577367

Please sign in to comment.