Merge branch '1.x-stable'

This commit is contained in:
afc163 2016-07-05 15:49:36 +08:00
commit aac35a8757
6 changed files with 4 additions and 7 deletions

View File

@ -14,6 +14,7 @@ timeline: true
`2016-07-04`
- 修复 Transfer 的一个 unmount 的错误。[#2206](https://github.com/ant-design/ant-design/pull/2206)
- 修复了 Badge、Alert、Menu、Tag、Checkbox、Radio 组件的一些样式细节问题。
## 1.6.2

View File

@ -3,8 +3,6 @@ order: 7
title: 远程加载数据
---
`0.11.0` 以后,`dataSource` 远程模式被移除,用户可以自行实现数据读取方式。
这个例子通过简单的 ajax 读取方式,演示了如何从服务端读取并展现数据,具有筛选、排序等功能以及页面 loading 效果。开发者可以自行接入其他数据处理方式。
另外,本例也展示了筛选排序功能如何交给服务端实现,列不需要指定具体的 `onFilter``sorter` 函数,而是在把筛选和排序的参数发到服务端来处理。

View File

@ -43,7 +43,7 @@ for (let i = 0; i < 100; i++) {
}
function App() {
return <Table columns={columns} dataSource={data} scroll={{ x: 1300, y: 300 }} />;
return <Table columns={columns} dataSource={data} scroll={{ x: 1500, y: 300 }} />;
}
ReactDOM.render(<App />, mountNode);

View File

@ -47,8 +47,6 @@ const columns = [{
<Table dataSource={dataSource} columns={columns} />
```
> 注:`dataSource` 在 `0.11.0` 版本后不再支持远程模式。
## API
### Table

View File

@ -403,8 +403,7 @@
}
&-fixed-header &-scroll &-header {
overflow-x: scroll;
overflow-y: hidden;
overflow: scroll;
padding-bottom: 20px;
margin-bottom: -20px;
}

View File

@ -58,6 +58,7 @@
.code-box .code-box-title a,
.code-box .code-box-title a:hover {
color: #666;
font-size: 14px;
}
.code-box .code-box-demo {