Skip to content

Commit

Permalink
feat: remove iconSize from CRUD loadMoreProps
Browse files Browse the repository at this point in the history
  • Loading branch information
tiantiancheng committed Feb 21, 2025
1 parent 4301569 commit af38185
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
7 changes: 1 addition & 6 deletions packages/amis/src/renderers/CRUD.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ import memoize from 'lodash/memoize';
import {Spinner} from 'amis-ui';

interface LoadMoreConfig {
iconSize?: 'sm' | 'lg' | '';
showIcon?: boolean;
showText?: boolean;
color?: string;
Expand Down Expand Up @@ -559,7 +558,6 @@ export default class CRUD<T extends CRUDProps> extends React.Component<T, any> {
loadMoreProps: {
showIcon: true,
showText: true,
iconSize: 'sm',
iconType: 'loading-outline',
contentText: {
contentdown: '点击加载更多',
Expand Down Expand Up @@ -2462,7 +2460,6 @@ export default class CRUD<T extends CRUDProps> extends React.Component<T, any> {
const {page, lastPage} = store;

const {
iconSize = 'sm',
showIcon = true,
showText = true,
iconType = 'loading-outline',
Expand Down Expand Up @@ -2500,9 +2497,7 @@ export default class CRUD<T extends CRUDProps> extends React.Component<T, any> {
});
}}
>
{showIcon && (
<Spinner size={iconSize} show={isLoading} icon={iconType} />
)}
{showIcon && <Spinner show={isLoading} icon={iconType} size="sm" />}
{showText && (
<span>
{isLoading
Expand Down
7 changes: 0 additions & 7 deletions packages/amis/src/renderers/CRUD2.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -218,12 +218,6 @@ export interface CRUD2CommonSchema extends BaseSchema, SpinnerExtraProps {
*/
disabled?: boolean;

/**
* 指定图标大小
* @default 'sm'
*/
iconSize?: 'xs' | 'sm' | 'md' | 'lg';

/**
* 是否显示loading图标
* @default true
Expand Down Expand Up @@ -368,7 +362,6 @@ export default class CRUD2 extends React.Component<CRUD2Props, any> {
parsePrimitiveQuery: true,
pullRefresh: {
disabled: false,
iconSize: 'sm',
showIcon: true,
showText: true,
iconType: 'auto',
Expand Down

0 comments on commit af38185

Please sign in to comment.