Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
ant-design-pro
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
duanledexianxianxian
ant-design-pro
Commits
fab29f3e
Commit
fab29f3e
authored
Sep 30, 2018
by
ιεΈ
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove umi/locale in components
parent
a09ed8c3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
src/components/GlobalHeader/RightContent.js
src/components/GlobalHeader/RightContent.js
+4
-0
src/components/NoticeIcon/index.js
src/components/NoticeIcon/index.js
+2
-3
No files found.
src/components/GlobalHeader/RightContent.js
View file @
fab29f3e
...
@@ -109,6 +109,10 @@ export default class GlobalHeaderRight extends PureComponent {
...
@@ -109,6 +109,10 @@ export default class GlobalHeaderRight extends PureComponent {
onItemClick
=
{(
item
,
tabProps
)
=>
{
onItemClick
=
{(
item
,
tabProps
)
=>
{
console
.
log
(
item
,
tabProps
);
// eslint-disable-line
console
.
log
(
item
,
tabProps
);
// eslint-disable-line
}}
}}
locale
=
{{
emptyText
:
formatMessage
({
id
:
'
component.noticeIcon.empty
'
}),
clear
:
formatMessage
({
id
:
'
component.noticeIcon.clear
'
}),
}}
onClear
=
{
onNoticeClear
}
onClear
=
{
onNoticeClear
}
onPopupVisibleChange
=
{
onNoticeVisibleChange
}
onPopupVisibleChange
=
{
onNoticeVisibleChange
}
loading
=
{
fetchingNotices
}
loading
=
{
fetchingNotices
}
...
...
src/components/NoticeIcon/index.js
View file @
fab29f3e
import
React
,
{
PureComponent
}
from
'
react
'
;
import
React
,
{
PureComponent
}
from
'
react
'
;
import
{
formatMessage
}
from
'
umi/locale
'
;
import
{
Popover
,
Icon
,
Tabs
,
Badge
,
Spin
}
from
'
antd
'
;
import
{
Popover
,
Icon
,
Tabs
,
Badge
,
Spin
}
from
'
antd
'
;
import
classNames
from
'
classnames
'
;
import
classNames
from
'
classnames
'
;
import
List
from
'
./NoticeList
'
;
import
List
from
'
./NoticeList
'
;
...
@@ -17,8 +16,8 @@ export default class NoticeIcon extends PureComponent {
...
@@ -17,8 +16,8 @@ export default class NoticeIcon extends PureComponent {
onClear
:
()
=>
{},
onClear
:
()
=>
{},
loading
:
false
,
loading
:
false
,
locale
:
{
locale
:
{
emptyText
:
formatMessage
({
id
:
'
component.noticeIcon.empty
'
})
,
emptyText
:
'
No notifications
'
,
clear
:
formatMessage
({
id
:
'
component.noticeIcon.clear
'
})
,
clear
:
'
Clear
'
,
},
},
emptyImage
:
'
https://gw.alipayobjects.com/zos/rmsportal/wAhyIChODzsoKIOBHcBk.svg
'
,
emptyImage
:
'
https://gw.alipayobjects.com/zos/rmsportal/wAhyIChODzsoKIOBHcBk.svg
'
,
};
};
...
...
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