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

This commit is contained in:
sqzhou 2022-09-15 19:38:54 +08:00
parent 92d08b0ae4
commit 2661d284cf
2 changed files with 9 additions and 2 deletions

View File

@ -626,7 +626,7 @@ export class Transfer<
const searchable = !isTreeDeferLoad && resultSearchable;
const placeholder =
resultSearchPlaceholder || __('Transfer.selectFromLeft');
resultSearchPlaceholder || __('Transfer.searchKeyword');
switch (resultSelectMode) {
case 'table':

View File

@ -128,6 +128,11 @@ export interface TransferControlSchema extends FormOptionsSchema {
*
*/
resultSearchPlaceholder?: string;
/**
*
*/
statistics?: boolean;
}
export interface BaseTransferProps
@ -407,7 +412,8 @@ export class BaseTransferRenderer<
searchPlaceholder,
resultListModeFollowSelect = false,
resultSearchPlaceholder,
resultSearchable = false
resultSearchable = false,
statistics = true
} = this.props;
// 目前 LeftOptions 没有接口可以动态加载
@ -456,6 +462,7 @@ export class BaseTransferRenderer<
resultSearchPlaceholder={resultSearchPlaceholder}
optionItemRender={this.optionItemRender}
resultItemRender={this.resultItemRender}
statistics={statistics}
onSelectAll={this.onSelectAll}
onRef={this.getRef}
/>