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
5ec23562
Commit
5ec23562
authored
Feb 21, 2019
by
Shuai Chen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
style: use standard frontmatter
parent
5ee8b5a0
Changes
10
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
12 additions
and
29 deletions
+12
-29
src/components/Authorized/index.md
src/components/Authorized/index.md
+1
-3
src/components/Charts/index.md
src/components/Charts/index.md
+1
-3
src/components/GlobalFooter/index.md
src/components/GlobalFooter/index.md
+1
-3
src/components/HeaderSearch/index.en-US.md
src/components/HeaderSearch/index.en-US.md
+2
-4
src/components/HeaderSearch/index.zh-CN.md
src/components/HeaderSearch/index.zh-CN.md
+2
-4
src/components/PageHeader/index.md
src/components/PageHeader/index.md
+1
-3
src/components/Result/index.md
src/components/Result/index.md
+1
-3
src/components/TagSelect/index.md
src/components/TagSelect/index.md
+1
-3
src/components/Trend/index.md
src/components/Trend/index.md
+1
-3
src/utils/getPageTitle.js
src/utils/getPageTitle.js
+1
-0
No files found.
src/components/Authorized/index.md
View file @
5ec23562
---
title
:
en-US
:
Authorized
zh-CN
:
Authorized
title
:
Authorized
subtitle
:
权限
cols
:
1
order
:
15
...
...
src/components/Charts/index.md
View file @
5ec23562
---
title
:
en-US
:
Charts
zh-CN
:
Charts
title
:
Charts
subtitle
:
图表
order
:
2
cols
:
2
...
...
src/components/GlobalFooter/index.md
View file @
5ec23562
---
title
:
en-US
:
GlobalFooter
zh-CN
:
GlobalFooter
title
:
GlobalFooter
subtitle
:
全局页脚
cols
:
1
order
:
7
...
...
src/components/HeaderSearch/index.en-US.md
View file @
5ec23562
---
title
:
en-US
:
HeaderSearch
zh-CN
:
HeaderSearch
title
:
HeaderSearch
subtitle
:
Top search box
cols
:
1
order
:
8
...
...
@@ -21,4 +19,4 @@ onSelect | Called when a option is selected. param is option's value and option
onPressEnter | Callback when pressing Enter | function(value) | -
onVisibleChange | Show or hide the callback of the text box | function(value) |-
defaultOpen | The input box is displayed for the first time. | boolean | false
open | The input box is displayed | booelan |false
\ No newline at end of file
open | The input box is displayed | boolean |false
\ No newline at end of file
src/components/HeaderSearch/index.zh-CN.md
View file @
5ec23562
---
title
:
en-US
:
HeaderSearch
zh-CN
:
HeaderSearch
title
:
HeaderSearch
subtitle
:
顶部搜索框
cols
:
1
order
:
8
...
...
@@ -21,4 +19,4 @@ onSelect | 被选中时调用,参数为选中项的 value 值 | function(value
onPressEnter | 按下回车时的回调 | function(value) | -
onVisibleChange | 显示或隐藏文本框的回调 | function(value) |-
defaultOpen | 输入框首次显示是否显示 | boolean | false
open | 控制输入框是否显示 | booelan |false
\ No newline at end of file
open | 控制输入框是否显示 | boolean |false
\ No newline at end of file
src/components/PageHeader/index.md
View file @
5ec23562
---
title
:
en-US
:
PageHeader
zh-CN
:
PageHeader
title
:
PageHeader
subtitle
:
页头
cols
:
1
order
:
11
...
...
src/components/Result/index.md
View file @
5ec23562
---
title
:
en-US
:
Result
zh-CN
:
Result
title
:
Result
subtitle
:
处理结果
cols
:
1
order
:
12
...
...
src/components/TagSelect/index.md
View file @
5ec23562
---
title
:
en-US
:
TagSelect
zh-CN
:
TagSelect
title
:
TagSelect
subtitle
:
标签选择器
cols
:
1
order
:
13
...
...
src/components/Trend/index.md
View file @
5ec23562
---
title
:
en-US
:
Trend
zh-CN
:
Trend
title
:
Trend
subtitle
:
趋势标记
cols
:
1
order
:
14
...
...
src/utils/getPageTitle.js
View file @
5ec23562
...
...
@@ -8,6 +8,7 @@ export const matchParamsPath = (pathname, breadcrumbNameMap) => {
const
pathKey
=
Object
.
keys
(
breadcrumbNameMap
).
find
(
key
=>
pathToRegexp
(
key
).
test
(
pathname
));
return
breadcrumbNameMap
[
pathKey
];
};
const
getPageTitle
=
(
pathname
,
breadcrumbNameMap
)
=>
{
const
currRouterData
=
matchParamsPath
(
pathname
,
breadcrumbNameMap
);
if
(
!
currRouterData
)
{
...
...
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