mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 12:08:13 +08:00
Merge pull request #4040 from zhyc9de/feat-crud.selected
feat: CURD 支持显示已选择条数
This commit is contained in:
commit
e5c3dcfe66
@ -37,7 +37,7 @@ register('de-DE', {
|
|||||||
'CRUD.exportExcel': 'In Excel exportieren',
|
'CRUD.exportExcel': 'In Excel exportieren',
|
||||||
'CRUD.fetchFailed': 'Fehler beim Abrufen',
|
'CRUD.fetchFailed': 'Fehler beim Abrufen',
|
||||||
'CRUD.filter': 'Filtern',
|
'CRUD.filter': 'Filtern',
|
||||||
'CRUD.selected': 'Ausgewählte Elemente: ',
|
'CRUD.selected': 'Ausgewählte {{total}} Elemente: ',
|
||||||
'CRUD.invalidArray': '"data.items" muss ein Array sein',
|
'CRUD.invalidArray': '"data.items" muss ein Array sein',
|
||||||
'CRUD.invalidData': '"data" ist leer',
|
'CRUD.invalidData': '"data" ist leer',
|
||||||
'CRUD.loadMore': 'Weitere laden',
|
'CRUD.loadMore': 'Weitere laden',
|
||||||
|
@ -34,7 +34,7 @@ register('en-US', {
|
|||||||
'CRUD.exportExcel': 'Export Excel',
|
'CRUD.exportExcel': 'Export Excel',
|
||||||
'CRUD.fetchFailed': 'Fetch failed',
|
'CRUD.fetchFailed': 'Fetch failed',
|
||||||
'CRUD.filter': 'Filter',
|
'CRUD.filter': 'Filter',
|
||||||
'CRUD.selected': 'selected items: ',
|
'CRUD.selected': 'selected {{total}} items: ',
|
||||||
'CRUD.invalidArray': 'data.items must be an array',
|
'CRUD.invalidArray': 'data.items must be an array',
|
||||||
'CRUD.invalidData': 'data is empty',
|
'CRUD.invalidData': 'data is empty',
|
||||||
'CRUD.loadMore': 'Load more',
|
'CRUD.loadMore': 'Load more',
|
||||||
|
@ -37,7 +37,7 @@ register('zh-CN', {
|
|||||||
'CRUD.exportExcel': '导出 Excel',
|
'CRUD.exportExcel': '导出 Excel',
|
||||||
'CRUD.fetchFailed': '获取失败',
|
'CRUD.fetchFailed': '获取失败',
|
||||||
'CRUD.filter': '筛选',
|
'CRUD.filter': '筛选',
|
||||||
'CRUD.selected': '已选条目:',
|
'CRUD.selected': '已选{{total}}条:',
|
||||||
'CRUD.invalidArray': 'data.items 必须是数组',
|
'CRUD.invalidArray': 'data.items 必须是数组',
|
||||||
'CRUD.invalidData': '返回数据格式不正确,data 没有数据',
|
'CRUD.invalidData': '返回数据格式不正确,data 没有数据',
|
||||||
'CRUD.loadMore': '加载更多',
|
'CRUD.loadMore': '加载更多',
|
||||||
|
@ -1993,7 +1993,9 @@ export default class CRUD extends React.Component<CRUDProps, any> {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={cx('Crud-selection')}>
|
<div className={cx('Crud-selection')}>
|
||||||
<div className={cx('Crud-selectionLabel')}>{__('CRUD.selected')}</div>
|
<div className={cx('Crud-selectionLabel')}>
|
||||||
|
{__('CRUD.selected', {total: store.selectedItems.length})}
|
||||||
|
</div>
|
||||||
{store.selectedItems.map((item, index) => (
|
{store.selectedItems.map((item, index) => (
|
||||||
<div key={index} className={cx(`Crud-value`)}>
|
<div key={index} className={cx(`Crud-value`)}>
|
||||||
<span
|
<span
|
||||||
|
Loading…
Reference in New Issue
Block a user