diff --git a/src/components/FooterToolbar/demo/basic.md b/src/components/FooterToolbar/demo/basic.md
new file mode 100644
index 0000000000000000000000000000000000000000..4d90efe0d7f9001e7381d26beafe2efa0a089c01
--- /dev/null
+++ b/src/components/FooterToolbar/demo/basic.md
@@ -0,0 +1,29 @@
+---
+order: 0
+title: 演示
+iframe: 600
+---
+
+浮动固定页脚。
+
+````jsx
+import FooterToolbar from 'ant-design-pro/lib/FooterToolbar';
+import { Icon } from 'antd';
+
+ReactDOM.render(
+
+
页面内容 页面内容 页面内容 页面内容
+
页面内容 页面内容 页面内容 页面内容
+
页面内容 页面内容 页面内容 页面内容
+
页面内容 页面内容 页面内容 页面内容
+
页面内容 页面内容 页面内容 页面内容
+
页面内容 页面内容 页面内容 页面内容
+
页面内容 页面内容 页面内容 页面内容
+
页面内容 页面内容 页面内容 页面内容
+
+
+
+
+
+, mountNode);
+````
diff --git a/src/components/FooterToolbar/index.md b/src/components/FooterToolbar/index.md
index b202bd1ebfb6eb9fc8f4d92a5e44883378877960..acdb62add1e1198156bf96fca756b7a46e5f80a6 100644
--- a/src/components/FooterToolbar/index.md
+++ b/src/components/FooterToolbar/index.md
@@ -6,4 +6,15 @@ subtitle: 底部固定工具栏
cols: 1
---
+固定在底部的工具栏。
+
+## 何时使用
+
+固定在内容区域的底部,不随滚动条移动,常用于长页面的数据搜集和提交工作。
+
## API
+
+参数 | 说明 | 类型 | 默认值
+----|------|-----|------
+children | 工具栏内容,向右对齐 | ReactNode | -
+extra | 额外信息,向左对齐 | ReactNode | -
diff --git a/src/components/GlobalFooter/demo/basic.md b/src/components/GlobalFooter/demo/basic.md
index eb47d0e43877d20aa993ec58ee5d1e62e36e5184..53e5caba34a048e15cceab41f5c684d43bc64557 100644
--- a/src/components/GlobalFooter/demo/basic.md
+++ b/src/components/GlobalFooter/demo/basic.md
@@ -1,6 +1,7 @@
---
order: 0
-title: Basic
+title: 演示
+iframe: 600
---
基本页脚。
diff --git a/src/components/GlobalFooter/index.md b/src/components/GlobalFooter/index.md
index 6f3e43a1ee0f33847b005efd3a82669a3614bb9f..c181629351b5e97db4851ffd76d2d39c2d493ed6 100644
--- a/src/components/GlobalFooter/index.md
+++ b/src/components/GlobalFooter/index.md
@@ -10,7 +10,7 @@ cols: 1
## API
-| 参数 | 说明 | 类型 | 默认值 |
-|----------|------------------------------------------|-------------|-------|
-| links | 链接数据 | array<{ title: ReactNode, href: string, blankTarget?: boolean }> | - |
-| copyright | 版权信息 | ReactNode | - |
+参数 | 说明 | 类型 | 默认值
+----|------|-----|------
+links | 链接数据 | array<{ title: ReactNode, href: string, blankTarget?: boolean }> | -
+copyright | 版权信息 | ReactNode | -
diff --git a/src/components/HeaderSearch/demo/basic.md b/src/components/HeaderSearch/demo/basic.md
new file mode 100644
index 0000000000000000000000000000000000000000..733e5555b2f24e2ff7c7120f3e7ba3740ffbc858
--- /dev/null
+++ b/src/components/HeaderSearch/demo/basic.md
@@ -0,0 +1,35 @@
+---
+order: 0
+title: 全局搜索
+---
+
+通常放在全局导航条右侧。
+
+````jsx
+import HeaderSearch from 'ant-design-pro/lib/HeaderSearch';
+import { Icon } from 'antd';
+
+ReactDOM.render(
+
+ {
+ console.log('input', value); // eslint-disable-line
+ }}
+ onPressEnter={(value) => {
+ console.log('enter', value); // eslint-disable-line
+ }}
+ />
+
+, mountNode);
+````
diff --git a/src/components/HeaderSearch/index.js b/src/components/HeaderSearch/index.js
index 06ad10b299cc38e3e115391d295ceb3add5fc948..e96986ee8b9a643afa9aaf2e9adcbf87ab9ed9a4 100644
--- a/src/components/HeaderSearch/index.js
+++ b/src/components/HeaderSearch/index.js
@@ -1,4 +1,5 @@
import React, { PureComponent } from 'react';
+import PropTypes from 'prop-types';
import { Input, Icon, AutoComplete } from 'antd';
import classNames from 'classnames';
import styles from './index.less';
@@ -6,6 +7,21 @@ import styles from './index.less';
export default class HeaderSearch extends PureComponent {
static defaultProps = {
defaultActiveFirstOption: false,
+ onPressEnter: () => {},
+ onChange: () => {},
+ onSearch: () => {},
+ className: '',
+ placeholder: '',
+ dataSource: [],
+ };
+ static propTypes = {
+ className: PropTypes.string,
+ placeholder: PropTypes.string,
+ onSearch: PropTypes.func,
+ onPressEnter: PropTypes.func,
+ onChange: PropTypes.func,
+ defaultActiveFirstOption: PropTypes.bool,
+ dataSource: PropTypes.array,
};
state = {
searchMode: false,
@@ -23,6 +39,7 @@ export default class HeaderSearch extends PureComponent {
}
onChange = (value) => {
this.setState({ value });
+ this.props.onChange();
}
enterSearchMode = () => {
this.setState({ searchMode: true }, () => {
@@ -49,7 +66,6 @@ export default class HeaderSearch extends PureComponent {
className={inputClass}
value={this.state.value}
onChange={this.onChange}
- onSelect={this.onSelect}
{...restProps}
>