mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 03:58:07 +08:00
fix: transfer结果搜索默认提示语句错误&统计信息设置不生效
This commit is contained in:
parent
92d08b0ae4
commit
2661d284cf
@ -626,7 +626,7 @@ export class Transfer<
|
||||
const searchable = !isTreeDeferLoad && resultSearchable;
|
||||
|
||||
const placeholder =
|
||||
resultSearchPlaceholder || __('Transfer.selectFromLeft');
|
||||
resultSearchPlaceholder || __('Transfer.searchKeyword');
|
||||
|
||||
switch (resultSelectMode) {
|
||||
case 'table':
|
||||
|
@ -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}
|
||||
/>
|
||||
|
Loading…
Reference in New Issue
Block a user