mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-04 21:19:01 +08:00
fix: transfer结果搜索默认提示语句错误&统计信息设置不生效
This commit is contained in:
parent
2661d284cf
commit
b9639dfef4
@ -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>
|
||||
)}
|
||||
</>
|
||||
);
|
||||
|
@ -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>
|
||||
);
|
||||
|
@ -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>
|
||||
);
|
||||
|
@ -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 = {
|
||||
|
@ -413,7 +413,7 @@ export class BaseTransferRenderer<
|
||||
resultListModeFollowSelect = false,
|
||||
resultSearchPlaceholder,
|
||||
resultSearchable = false,
|
||||
statistics = true
|
||||
statistics
|
||||
} = this.props;
|
||||
|
||||
// 目前 LeftOptions 没有接口可以动态加载
|
||||
|
Loading…
Reference in New Issue
Block a user