Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
前端-吴智勇
jinfa-platform
Commits
e28c39f9
Commit
e28c39f9
authored
Dec 24, 2021
by
前端-许佳敏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修复table分页国际化问题
parent
a38480d1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
2 deletions
+8
-2
index.tsx
src/components/StandardTable/index.tsx
+4
-1
BasicLayout.tsx
src/layouts/BasicLayout.tsx
+1
-1
components.ts
src/locales/en-US/components.ts
+1
-0
components.ts
src/locales/ko-KR/components.ts
+1
-0
components.ts
src/locales/zh-CN/components.ts
+1
-0
No files found.
src/components/StandardTable/index.tsx
View file @
e28c39f9
...
...
@@ -15,6 +15,7 @@ import {
clearCurrentState
,
}
from
'./keepAlive'
;
import
{
createAsyncFormActions
}
from
'@formily/antd'
;
import
{
getIntl
}
from
'umi'
export
type
tableTypes
=
'small'
|
'normal'
;
...
...
@@ -28,6 +29,8 @@ export interface ITablePagination {
pageSize
?:
number
;
}
const
intl
=
getIntl
()
export
interface
IStandardTableProps
<
RecordType
>
extends
TableProps
<
RecordType
>
,
FormilyCustomProps
{
...
...
@@ -326,7 +329,7 @@ class StandardTable<RecordType extends object = any> extends PureComponent<
pageSize
:
pageSize
,
pageSizeOptions
:
[
'10'
,
'20'
,
'50'
,
'100'
],
total
:
totalPage
,
showTotal
:
()
=>
`共
${
totalPage
}
条`
,
showTotal
:
()
=>
intl
.
formatMessage
({
id
:
'componnets.standardTablePages'
},
{
totalPage
})
,
...
pagination
,
};
...
...
src/layouts/BasicLayout.tsx
View file @
e28c39f9
...
...
@@ -55,7 +55,7 @@ export const getSelectedMenuKeys = (
const
defaultFooterDom
=
(
<
DefaultFooter
copyright=
{
`瓴犀-${new Date().getFullYear()} 前端组体验出品`
}
//
copyright={`瓴犀-${new Date().getFullYear()} 前端组体验出品`}
links=
{
[]
}
/>
);
...
...
src/locales/en-US/components.ts
View file @
e28c39f9
...
...
@@ -272,4 +272,5 @@ export default {
'components.tableResetTip'
:
'Reset'
,
'components.tableFilterTip'
:
'Filter'
,
'components.xuanzezhidinghetong'
:
'Select the designated contract'
,
'componnets.standardTablePages'
:
'A total of {totalPage}'
}
src/locales/ko-KR/components.ts
View file @
e28c39f9
...
...
@@ -272,4 +272,5 @@ export default {
'components.tableResetTip'
:
'초기화'
,
'components.tableFilterTip'
:
'고급 심사'
,
'components.xuanzezhidinghetong'
:
'선택지정계약'
,
'componnets.standardTablePages'
:
'총 {totalPage}'
}
src/locales/zh-CN/components.ts
View file @
e28c39f9
...
...
@@ -272,4 +272,5 @@ export default {
'components.tableResetTip'
:
'重置'
,
'components.tableFilterTip'
:
'高级筛选'
,
'components.xuanzezhidinghetong'
:
'选择指定合同'
,
'componnets.standardTablePages'
:
'共 {totalPage} 条'
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment