ant-design中的穿梭框提示文字修改
1.ant-design中的穿梭框提示文字修改
<a-transferv-model:target-keys="targetKeys":data-source="transform.list":filter-option="filterOption":list-style="{width: '100%',height: '500px',}":rowKey="record => record.schemaName":render="item => item.schemaName"show-search@change="handleChange"@search="handleSearch":selectAllLabels="selectAllLabelsHtml"/>
官方解释
需要采用数组的形式,但是数组中的元素是可以采用函数的。
//穿梭框中文字设置
const selectAllLabelsHtml = [((info: { selectedCount: number; totalCount: number }) => "【"+ (info.totalCount) +'】个数据据待抽取') ,((info: { selectedCount: number; totalCount: number }) => "【"+ (info.totalCount) +'】个数据库已抽取')
]