diff --git a/docs/pattern/classic.md b/docs/pattern/classic.md deleted file mode 100644 index 15859615f..000000000 --- a/docs/pattern/classic.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -order: 0 -disabled: true -chinese: 典型页面 -english: Classic ---- - -敬请期待。 diff --git a/docs/pattern/table/demo/data-select-all.md b/docs/pattern/table/demo/data-select-all.md new file mode 100644 index 000000000..8321ea6f6 --- /dev/null +++ b/docs/pattern/table/demo/data-select-all.md @@ -0,0 +1,134 @@ +--- +order: 0 +title: 全选数据 +--- + +当使用了分页器,又想实现全选数据的功能,可以结合『Alert』来实现。 + +```jsx +import { Table, Alert, Dropdown, Menu, Icon } from 'antd'; + +const mockData = []; +for (let i = 1; i < 100; i++) { + mockData.push({ + database: `Ant-Dlist-${i}`, + detail: '我是内容我是内容我是内容', + key: i, + }); +} + +class PagedTable extends React.Component { + constructor(props) { + super(props); + + this.state = { + selectedRowKeys: [], + showAlert: false, + allSelected: false, + }; + + ['handleSelected', 'handleSelectAll', + 'handleSelectAllRecords', 'handleClearAllRecords'].forEach((method) => { + this[method] = this[method].bind(this); + }); + + const menu = ( +
+ ); + + this.columns = [{ + title: '数据库名称', + dataIndex: 'database', + key: 'database', + }, { + title: '详情', + dataIndex: 'detail', + key: 'detail', + }, { + title: '操作', + key: 'operation', + render() { + return ( + + 删除 + +
-
-
-
-
-
-当使用了分页器,又想实现全选数据的功能,可以结合『Alert』来实现。
-
-### 跨页选数据
-
-
-
-
-
-
-
-
-
-
-
-当需要对表格/列表的数据进行跨分页器选择时,结合『Alert』来实现。
-
### 固定按钮组
@@ -112,12 +88,6 @@ english: Table
适用在易读性高于易编辑性时;适用在有一定数量的项需要编辑时。
-### 直接编辑
-
-
-
-适用在易编辑性高于易读性时。
-
### 悬浮层编辑
diff --git a/docs/spec/layout/demo/ceiling.md b/docs/spec/layout/demo/ceiling.md
index 97822900d..afbc0ea0a 100644
--- a/docs/spec/layout/demo/ceiling.md
+++ b/docs/spec/layout/demo/ceiling.md
@@ -8,7 +8,6 @@ title: 吊顶规范
吊顶背景深色,高度 `30px`,和浅色调的主导航配合使用。
````jsx
-import { Menu, Breadcrumb } from 'antd';
import BrowserDemo from 'site/component/BrowserDemo';
ReactDOM.render(
diff --git a/docs/spec/layout/demo/top-aside.md b/docs/spec/layout/demo/top-aside.md
index 6fe494f1c..37daf3895 100644
--- a/docs/spec/layout/demo/top-aside.md
+++ b/docs/spec/layout/demo/top-aside.md
@@ -17,7 +17,7 @@ ReactDOM.render(