Skip to content

Commit

Permalink
fix: 修复 CRUD loadMoreProps 类型定义导致的构建失败
Browse files Browse the repository at this point in the history
  • Loading branch information
tiantiancheng committed Feb 18, 2025
1 parent 47119ad commit 7de533b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/amis-ui/src/components/LoadMore.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ interface LoadMoreProps {
color?: string;

/**
* 自定义图标,支持传入React节点或icon字符串
* 自定义图标,支持传入icon字符串
*/
icon?: string | React.ReactNode;
icon?: string;

/**
* 自定义文案配置
Expand Down
2 changes: 1 addition & 1 deletion packages/amis/src/renderers/CRUD.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ interface CRUDLoadMoreConfig {
showIcon?: boolean;
showText?: boolean;
color?: string;
icon?: string | React.ReactNode;
icon?: string;
contentText?: {
contentdown: string;
contentrefresh: string;
Expand Down
2 changes: 1 addition & 1 deletion packages/amis/src/renderers/CRUD2.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ interface CRUDLoadMoreConfig {
showIcon?: boolean;
showText?: boolean;
color?: string;
icon?: string | React.ReactNode;
icon?: string;
contentText?: {
contentdown: string;
contentrefresh: string;
Expand Down

0 comments on commit 7de533b

Please sign in to comment.