Commit Graph

1810 Commits

Author SHA1 Message Date
KgTong
b9ce4c7ddf replace the table loading with spin 2015-10-27 10:34:05 +08:00
afc163
415fa383e3 unify all size prop to: large default small 2015-10-22 21:01:52 +08:00
yiminghe
fdee139459 add className for table 2015-10-22 17:28:12 +08:00
afc163
86c5ead45a Add onChange prop to Table, fix #395 2015-10-21 20:21:14 +08:00
afc163
eed88125f1 Fix document 2015-10-21 10:48:58 +08:00
yiminghe
76b0f673ec beta2 2015-10-20 16:47:55 +08:00
afc163
dc47b1cd5b fix reqwest 2015-10-19 11:34:44 +08:00
afc163
100adfc69a update row select argument name 2015-10-10 11:35:31 +08:00
afc163
d184b39450 Merge branch 'feature-#252' of https://github.com/RaoHai/ant-design into develop-0.10.0 2015-10-09 18:48:32 +08:00
RaoHai
2c1fda70d6 Table 列选择模式重构
+ 表格 `rowSelection` 支持多选
+ 表格可配置某行数据默认选中、不能选中。该配置对 ajax 载入的数据有效。
示例:
```
getCheckboxProps: function (value) {
    return {
        defaultValue: value.name === '胡彦祖ajax2', // 配置默认勾选的列
        disabled: value.name === '李大嘴ajax3'    // 配置无法勾选的列
    }
},
```
2015-10-09 17:14:09 +08:00
Benjy Cui
5b86a4be1d refactor: replace button tag with Button component 2015-10-08 15:13:04 +08:00
elrrrrrrr
1640a34c4c chore: 迁移 table iconfont 2015-10-02 16:31:51 +08:00
afc163
05347da926 not emit fetch when there is no dataSource change, #347 2015-09-26 00:56:15 +08:00
afc163
52b639faba Should update table data when changing pageSize
fix #317
2015-09-23 14:28:08 +08:00
afc163
88108b9fb9 Fix loading icon position in empty table 2015-09-15 11:40:58 +08:00
afc163
13ebd2d76d Fix pagination in table 2015-09-14 13:38:19 +08:00
zhujun24
af6a8d31ee optimize 2015-09-10 11:15:36 +08:00
zhujun24
95465a6794 add expand table 2015-09-10 11:04:31 +08:00
afc163
b35f85751b update table api 2015-09-09 22:37:22 +08:00
afc163
579ad01fc5 rollback for reqwest 2015-09-07 11:24:28 +08:00
afc163
b25b48b6e5 fix reqwest 2015-09-07 10:20:20 +08:00
afc163
691b0147b1 update eslintrc and fix code 2015-09-01 16:19:39 +08:00
afc163
f7308fbb48 Replace reqwest via reqwest-without-xhr2
Fork reqwest to https://github.com/ant-design/reqwest,
Remove xhr2 dependency cause it is useless in browser side, it will
cause some bugs in different pack solutions, waiting offcial repo resolve this problem: https://github.com/ded/reqwest/issues/204

ref: #216
2015-08-31 17:31:12 +08:00
chencheng (云谦)
0c40b6af68 typo fix 2015-08-31 16:13:58 +08:00
afc163
e45fbaad7f empty table should not have pagination 2015-08-28 17:30:37 +08:00
afc163
4c54644116 Add empty style for table 2015-08-28 17:20:02 +08:00
afc163
90e8296949 Fix table key warning 2015-08-28 15:22:09 +08:00
afc163
6d2dcc4539 allow dataSourse controlled by parent in local mode 2015-08-27 23:55:25 +08:00
afc163
c799326e7f default pagination current page 2015-08-27 23:53:42 +08:00
afc163
9b8abb2199 loading should be in remote mode 2015-08-27 23:52:59 +08:00
afc163
38cbaf1239 dataSource clone config should not be overwrited by origin config, fix #200 2015-08-26 14:08:46 +08:00
afc163
c33569e4d1 ref #190 2015-08-25 18:38:34 +08:00
afc163
86c90f0109 只有 dataSource 的变化才能从外面触发新请求
另外,is-equals-shallow 的比较始终是 false,因为 props.columns 是 array
2015-08-24 21:08:00 +08:00
afc163
fdf19520d6 Add component type 2015-08-22 20:16:24 +08:00
afc163
cfaf31b47c update demo title 2015-08-19 11:41:44 +08:00
afc163
5264263849 Replace jQuery.ajax via reqwest, fix #142
https://github.com/ded/reqwest

need xhr2 as peerDependency
2015-08-18 14:30:55 +08:00
afc163
6b32f18f79 improve table filter dropdown 2015-08-17 18:14:39 +08:00
afc163
2eecc1071b update eslint and fix indent problems 2015-08-15 15:08:55 +08:00
afc163
f6aaefa43f remove useless code for sorter className 2015-08-12 13:04:13 +08:00
afc163
d1b581be06 fix table dataSource propTypes 2015-08-12 12:51:33 +08:00
afc163
dfff7ef86b fix sort and filter 2015-08-12 12:47:04 +08:00
yiminghe
d95d4e4aea fix sort 2015-08-12 11:50:07 +08:00
yiminghe
e24850f42d disabled prop modify 2015-08-12 11:26:36 +08:00
afc163
137e40acae bordered table 2015-08-11 20:05:52 +08:00
afc163
f5afbf16aa Improve table ajax dataSource
1. Add ajax data params support
2. improve dataSource.clone for new config
2015-08-11 16:57:17 +08:00
yiminghe
eef1da7ed6 upgrade menu 2015-08-10 17:57:28 +08:00
afc163
4c8d3994a2 improve code style 2015-08-07 10:58:15 +08:00
yiminghe
d60fca4993 fix datasource 2015-08-07 01:03:42 +08:00
afc163
6d2cf352c3 return promise object from fetch 2015-08-05 11:04:00 +08:00
afc163
cfaabbb825 Improve dataSource implementation
1. move advance-ajax to ajax demo
2. remove plain object dataSource support
3. use propTypes over judgement of constructor
2015-08-05 10:58:21 +08:00
逸达
b97d01f288 遵循格式要求 2015-08-05 01:44:21 +08:00
逸达
7ba8e08b5a 加入Table 远程模式支持由外界发起请求方法 2015-08-05 01:42:37 +08:00
afc163
7d0413fbb6 修复本地模式排序头状态失效 2015-07-31 12:41:42 +08:00
afc163
988bdf09bc 空的筛选项应该返回全量数据 2015-07-31 11:54:46 +08:00
afc163
a0d416d4a1 code style 2015-07-31 11:47:00 +08:00
yiminghe
cc58965426 fix table 2015-07-31 10:40:23 +08:00
afc163
6f70303e90 Fix table, 当数据量少于每页数量时,直接设置数据 2015-07-29 14:01:15 +08:00
afc163
b6fe8021f8 render when change dataSource 2015-07-28 15:20:33 +08:00
afc163
ba61ebd54b 支持动态传入分页信息 2015-07-28 14:02:18 +08:00
afc163
fb3b16ddc2 修复本地模式的 table 分页 current 页面失效的问题 2015-07-28 12:26:54 +08:00
afc163
b7d204967d Refactor node pagination code, Add noPagination demo 2015-07-27 19:58:51 +08:00
afc163
3442cc7832 fix pagination false bug 2015-07-27 19:23:51 +08:00
afc163
ea93703efb update table pagination document 2015-07-27 15:40:30 +08:00
afc163
1954586665 修复本地模式下 pagination 为 false 时数据无法显示的问题 2015-07-27 15:38:06 +08:00
ustccjw
b34269a6b1 use es6 module import/export
convert var to const

fix bug

fix bug

fix for jshint

fix import
2015-07-24 11:22:49 +08:00
ustccjw
41c35903a4 remove use strict 2015-07-23 21:36:34 +08:00
afc163
bad047a860 typo 2015-07-21 16:53:51 +08:00
afc163
01a6c0f1e6 fix table pagination false bug 2015-07-21 16:48:00 +08:00
afc163
fa9914f34a components order 2015-07-20 12:28:36 +08:00
afc163
bd4c7d4a44 fix warning in table 2015-07-16 23:16:20 +08:00
jljsj
6c99ebb170 update radio 2015-07-16 18:26:17 +08:00
afc163
f692e62560 fix checkbox in table 2015-07-16 14:41:28 +08:00
afc163
9f1fbb9ebe selectRows 2015-07-15 20:22:56 +08:00
afc163
9e785663a8 fix onSelect argument 2015-07-15 17:55:30 +08:00
afc163
91a749a810 move ant-checkbox into ant-form-item 2015-07-15 17:22:58 +08:00
afc163
b0f3a552b6 sort params 2015-07-15 14:10:01 +08:00
afc163
fe230f7084 修复清空的问题 2015-07-15 12:16:28 +08:00
afc163
aa830e0c44 update table document 2015-07-15 11:45:43 +08:00
afc163
191235fcdc fix sort table logic, only allow one column to be sorted at a time 2015-07-15 11:43:00 +08:00
afc163
35c5ac8efa update table row-selection style 2015-07-15 11:12:17 +08:00
afc163
4cd12077cb update table demos 2015-07-15 10:47:47 +08:00
afc163
40517edaeb fix markdown table in chrome 2015-07-15 10:34:07 +08:00
afc163
41525cc19b fix table loading style 2015-07-14 21:06:39 +08:00
afc163
0ac833753c update table document 2015-07-14 20:58:54 +08:00
afc163
0e7f42937f update filter dropdown function and style 2015-07-14 20:43:27 +08:00
afc163
3f3bd52d80 small table with mini pagination 2015-07-14 20:08:45 +08:00
afc163
a6661386c4 update ajax table demo 2015-07-14 20:04:14 +08:00
afc163
4d2119c358 prepare getParams arguments, filters, pagination, sorters 2015-07-14 18:29:43 +08:00
afc163
ad04649366 ajax paging table 2015-07-14 17:58:00 +08:00
afc163
17aabfa070 update paging 2015-07-14 16:34:26 +08:00
afc163
7ea054b3ff update table API, local data mode finished 2015-07-14 15:35:17 +08:00
afc163
29068a0797 update filter.md 2015-07-13 19:47:31 +08:00
afc163
e982ab46ae improve filter 2015-07-13 18:42:08 +08:00
afc163
9440eb78b8 update sorter button click behaviours 2015-07-13 17:40:17 +08:00
afc163
d843379008 finish sort function 2015-07-13 16:22:02 +08:00
afc163
b53e76afff sort demo 2015-07-13 10:29:53 +08:00
afc163
4a53d5732f checkbox column width 2015-07-12 21:23:45 +08:00
afc163
6da3a29c07 small size table 2015-07-12 18:14:17 +08:00
afc163
ed9b0c507c load datasource in table, update API 2015-07-12 17:24:03 +08:00
afc163
c6889fa259 load datasource in table 2015-07-12 17:10:06 +08:00
afc163
5757d6cc78 operation links 2015-07-12 13:15:05 +08:00
afc163
c9237c8e62 update API 2015-07-10 17:50:48 +08:00
afc163
4d2ce026ce row selection 2015-07-10 17:47:53 +08:00
afc163
a7e7663cbb update API 2015-07-10 10:34:54 +08:00
afc163
c89a0c1441 fill demos with title 2015-07-09 20:29:26 +08:00
afc163
f47b29817a import component rc-table 2015-07-09 14:51:48 +08:00
afc163
82c110ac5d Add table demos 2015-07-09 11:41:36 +08:00
afc163
4002ab3d68 更新组件文案 2015-06-26 14:42:30 +08:00
afc163
db457cbe78 有逼格占坑 2015-06-17 20:24:42 +08:00
afc163
51ac1b3617 二期组件挖坑 2015-06-15 22:01:39 +08:00