Commit 5ec23562 authored by Shuai Chen's avatar Shuai Chen

style: use standard frontmatter

parent 5ee8b5a0
--- ---
title: title: Authorized
en-US: Authorized
zh-CN: Authorized
subtitle: 权限 subtitle: 权限
cols: 1 cols: 1
order: 15 order: 15
......
--- ---
title: title: Charts
en-US: Charts
zh-CN: Charts
subtitle: 图表 subtitle: 图表
order: 2 order: 2
cols: 2 cols: 2
......
--- ---
title: title: GlobalFooter
en-US: GlobalFooter
zh-CN: GlobalFooter
subtitle: 全局页脚 subtitle: 全局页脚
cols: 1 cols: 1
order: 7 order: 7
......
--- ---
title: title: HeaderSearch
en-US: HeaderSearch
zh-CN: HeaderSearch
subtitle: Top search box subtitle: Top search box
cols: 1 cols: 1
order: 8 order: 8
...@@ -21,4 +19,4 @@ onSelect | Called when a option is selected. param is option's value and option ...@@ -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) | - onPressEnter | Callback when pressing Enter | function(value) | -
onVisibleChange | Show or hide the callback of the text box | 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 defaultOpen | The input box is displayed for the first time. | boolean | false
open | The input box is displayed | booelan |false open | The input box is displayed | boolean |false
\ No newline at end of file \ No newline at end of file
--- ---
title: title: HeaderSearch
en-US: HeaderSearch
zh-CN: HeaderSearch
subtitle: 顶部搜索框 subtitle: 顶部搜索框
cols: 1 cols: 1
order: 8 order: 8
...@@ -21,4 +19,4 @@ onSelect | 被选中时调用,参数为选中项的 value 值 | function(value ...@@ -21,4 +19,4 @@ onSelect | 被选中时调用,参数为选中项的 value 值 | function(value
onPressEnter | 按下回车时的回调 | function(value) | - onPressEnter | 按下回车时的回调 | function(value) | -
onVisibleChange | 显示或隐藏文本框的回调 | function(value) |- onVisibleChange | 显示或隐藏文本框的回调 | function(value) |-
defaultOpen | 输入框首次显示是否显示 | boolean | false defaultOpen | 输入框首次显示是否显示 | boolean | false
open | 控制输入框是否显示 | booelan |false open | 控制输入框是否显示 | boolean |false
\ No newline at end of file \ No newline at end of file
--- ---
title: title: PageHeader
en-US: PageHeader
zh-CN: PageHeader
subtitle: 页头 subtitle: 页头
cols: 1 cols: 1
order: 11 order: 11
......
--- ---
title: title: Result
en-US: Result
zh-CN: Result
subtitle: 处理结果 subtitle: 处理结果
cols: 1 cols: 1
order: 12 order: 12
......
--- ---
title: title: TagSelect
en-US: TagSelect
zh-CN: TagSelect
subtitle: 标签选择器 subtitle: 标签选择器
cols: 1 cols: 1
order: 13 order: 13
......
--- ---
title: title: Trend
en-US: Trend
zh-CN: Trend
subtitle: 趋势标记 subtitle: 趋势标记
cols: 1 cols: 1
order: 14 order: 14
......
...@@ -8,6 +8,7 @@ export const matchParamsPath = (pathname, breadcrumbNameMap) => { ...@@ -8,6 +8,7 @@ export const matchParamsPath = (pathname, breadcrumbNameMap) => {
const pathKey = Object.keys(breadcrumbNameMap).find(key => pathToRegexp(key).test(pathname)); const pathKey = Object.keys(breadcrumbNameMap).find(key => pathToRegexp(key).test(pathname));
return breadcrumbNameMap[pathKey]; return breadcrumbNameMap[pathKey];
}; };
const getPageTitle = (pathname, breadcrumbNameMap) => { const getPageTitle = (pathname, breadcrumbNameMap) => {
const currRouterData = matchParamsPath(pathname, breadcrumbNameMap); const currRouterData = matchParamsPath(pathname, breadcrumbNameMap);
if (!currRouterData) { if (!currRouterData) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment