fix: transfer结果搜索默认提示语句错误&统计信息设置不生效

This commit is contained in:
sqzhou 2022-09-15 20:16:36 +08:00
parent 2661d284cf
commit b9639dfef4
5 changed files with 7 additions and 8 deletions

View File

@ -215,7 +215,6 @@ export class ResultList extends React.Component<
renderNormalList(value?: Options) {
const {
classnames: cx,
placeholder,
itemRender,
disabled,
itemClassName,
@ -266,7 +265,7 @@ export class ResultList extends React.Component<
))}
</div>
) : (
<div className={cx('Selections-placeholder')}>{__(placeholder)}</div>
<div className={cx('Selections-placeholder')}>{__('Transfer.selectFromLeft')}</div>
)}
</>
);

View File

@ -195,7 +195,7 @@ export class BaseResultTableSelection extends BaseSelection<
}}
/>
) : (
<div className={cx('Selections-placeholder')}>{__(placeholder)}</div>
<div className={cx('Selections-placeholder')}>{__('Transfer.selectFromLeft')}</div>
)}
</div>
);

View File

@ -254,7 +254,6 @@ export class BaseResultTreeList extends React.Component<
className,
classnames: cx,
value,
placeholder,
valueField,
itemRender,
translate: __
@ -277,7 +276,7 @@ export class BaseResultTreeList extends React.Component<
onDelete={(option: Option) => this.deleteTreeChecked(option)}
/>
) : (
<div className={cx('Selections-placeholder')}>{__(placeholder)}</div>
<div className={cx('Selections-placeholder')}>{__('Transfer.selectFromLeft')}</div>
)}
</div>
);

View File

@ -117,11 +117,12 @@ export class Transfer<
> extends React.Component<T, TransferState> {
static defaultProps: Pick<
TransferProps,
'multiple' | 'resultListModeFollowSelect' | 'selectMode'
'multiple' | 'resultListModeFollowSelect' | 'selectMode' | 'statistics'
> = {
multiple: true,
resultListModeFollowSelect: false,
selectMode: 'list'
selectMode: 'list',
statistics: true
};
state: TransferState = {

View File

@ -413,7 +413,7 @@ export class BaseTransferRenderer<
resultListModeFollowSelect = false,
resultSearchPlaceholder,
resultSearchable = false,
statistics = true
statistics
} = this.props;
// 目前 LeftOptions 没有接口可以动态加载