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
deccafe6
Commit
deccafe6
authored
Apr 27, 2018
by
jim
Committed by
陈帅
Apr 29, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change hideClear to showClear
parent
89b3d2ee
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
9 deletions
+9
-9
src/components/NoticeIcon/NoticeIconTab.d.ts
src/components/NoticeIcon/NoticeIconTab.d.ts
+1
-1
src/components/NoticeIcon/NoticeList.js
src/components/NoticeIcon/NoticeList.js
+3
-3
src/components/NoticeIcon/index.en-US.md
src/components/NoticeIcon/index.en-US.md
+4
-4
src/components/NoticeIcon/index.zh-CN.md
src/components/NoticeIcon/index.zh-CN.md
+1
-1
No files found.
src/components/NoticeIcon/NoticeIconTab.d.ts
View file @
deccafe6
...
@@ -14,7 +14,7 @@ export interface INoticeIconTabProps {
...
@@ -14,7 +14,7 @@ export interface INoticeIconTabProps {
emptyText
?:
React
.
ReactNode
;
emptyText
?:
React
.
ReactNode
;
emptyImage
?:
string
;
emptyImage
?:
string
;
style
?:
React
.
CSSProperties
;
style
?:
React
.
CSSProperties
;
hide
Clear
?:
boolean
;
show
Clear
?:
boolean
;
}
}
export
default
class
NoticeIconTab
extends
React
.
Component
<
INoticeIconTabProps
,
any
>
{}
export
default
class
NoticeIconTab
extends
React
.
Component
<
INoticeIconTabProps
,
any
>
{}
src/components/NoticeIcon/NoticeList.js
View file @
deccafe6
...
@@ -11,7 +11,7 @@ export default function NoticeList({
...
@@ -11,7 +11,7 @@ export default function NoticeList({
locale
,
locale
,
emptyText
,
emptyText
,
emptyImage
,
emptyImage
,
hideClear
,
showClear
=
true
,
})
{
})
{
if
(
data
.
length
===
0
)
{
if
(
data
.
length
===
0
)
{
return
(
return
(
...
@@ -52,12 +52,12 @@ export default function NoticeList({
...
@@ -52,12 +52,12 @@ export default function NoticeList({
);
);
})}
})}
<
/List
>
<
/List
>
{
hideClear
?
null
:
(
{
showClear
?
(
<
div
className
=
{
styles
.
clear
}
onClick
=
{
onClear
}
>
<
div
className
=
{
styles
.
clear
}
onClick
=
{
onClear
}
>
{
locale
.
clear
}
{
locale
.
clear
}
{
title
}
{
title
}
<
/div
>
<
/div
>
)}
)
:
null
}
<
/div
>
<
/div
>
);
);
}
}
src/components/NoticeIcon/index.en-US.md
View file @
deccafe6
...
@@ -9,7 +9,7 @@ order: 9
...
@@ -9,7 +9,7 @@ order: 9
## API
## API
参数 | 说明 | 类型 | 默认值
Property | Description | Type | Default
----|------|-----|------
----|------|-----|------
count | Total number of messages | number | -
count | Total number of messages | number | -
loading | Popup card loading status | boolean | false
loading | Popup card loading status | boolean | false
...
@@ -23,18 +23,18 @@ locale | Default message text | Object | `{ emptyText: '暂无数据', clear: '
...
@@ -23,18 +23,18 @@ locale | Default message text | Object | `{ emptyText: '暂无数据', clear: '
### NoticeIcon.Tab
### NoticeIcon.Tab
参数 | 说明 | 类型 | 默认值
Property | Description | Type | Default
----|------|-----|------
----|------|-----|------
title | header for message Tab | string | -
title | header for message Tab | string | -
list | List data, format refer to the following table | Array |
`[]`
list | List data, format refer to the following table | Array |
`[]`
hideClear | Clear button display status | boolean | fals
e
showClear | Clear button display status | boolean | tru
e
emptyText | message text when list is empty | ReactNode | -
emptyText | message text when list is empty | ReactNode | -
emptyImage | image when list is empty | string | -
emptyImage | image when list is empty | string | -
### Tab data
### Tab data
参数 | 说明 | 类型 | 默认值
Property | Description | Type | Default
----|------|-----|------
----|------|-----|------
avatar | avatar img url | string | -
avatar | avatar img url | string | -
title | title | ReactNode | -
title | title | ReactNode | -
...
...
src/components/NoticeIcon/index.zh-CN.md
View file @
deccafe6
...
@@ -27,7 +27,7 @@ locale | 默认文案 | Object | `{ emptyText: '暂无数据', clear: '清空' }
...
@@ -27,7 +27,7 @@ locale | 默认文案 | Object | `{ emptyText: '暂无数据', clear: '清空' }
----|------|-----|------
----|------|-----|------
title | 消息分类的页签标题 | string | -
title | 消息分类的页签标题 | string | -
list | 列表数据,格式参照下表 | Array |
`[]`
list | 列表数据,格式参照下表 | Array |
`[]`
hideClear | 是否显示清空按钮 | boolean | fals
e
showClear | 是否显示清空按钮 | boolean | tru
e
emptyText | 针对每个 Tab 定制空数据文案 | ReactNode | -
emptyText | 针对每个 Tab 定制空数据文案 | ReactNode | -
emptyImage | 针对每个 Tab 定制空数据图片 | string | -
emptyImage | 针对每个 Tab 定制空数据图片 | string | -
...
...
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