Skip to content

Commit

Permalink
chore: 移除注释
Browse files Browse the repository at this point in the history
  • Loading branch information
tiantiancheng committed Feb 17, 2025
1 parent a61cb99 commit 568dc90
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
2 changes: 1 addition & 1 deletion packages/amis-ui/src/components/LoadMore.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export interface LoadMoreProps {

/**
* 最小加载时间(ms)
* @default 0
* @default 300
*/
minLoadTime?: number;
}
Expand Down
7 changes: 0 additions & 7 deletions packages/amis/src/renderers/CRUD.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -417,12 +417,6 @@ export interface CRUDCommonSchema extends BaseSchema, SpinnerExtraProps {
*/
multiple?: boolean;

/**
* 加载更多模式下的最小加载时间,避免闪烁
* @default 300
*/
minLoadTime?: number;

loadMoreConfig?: LoadMoreProps;
}

Expand Down Expand Up @@ -1407,7 +1401,6 @@ export default class CRUD<T extends CRUDProps> extends React.Component<T, any> {
matchFunc,
filterOnAllColumns: loadDataOnceFetchOnFilter === false,
position: this.position,
// 修改这里,使用 loadMoreConfig 中的 minLoadTime
minLoadTime: loadDataMode ? loadMoreConfig?.minLoadTime : undefined
});
if (!isAlive(store)) {
Expand Down

0 comments on commit 568dc90

Please sign in to comment.