publish 1.3.1
This commit is contained in:
parent
cf555d7b2f
commit
fd24f05025
|
@ -161,7 +161,7 @@ import multiSelect from "bee-table/build/lib/multiSelect.js"
|
|||
| 参数 | 说明 | 类型 | 默认值 |
|
||||
| ------ | ---------- | -------- | ---- |
|
||||
| sorter | 排序函数,可以自定义 | Function | 无 |
|
||||
| sorterClick | 排序钩子函数| Function | 无 |
|
||||
| sorterClick | 排序钩子函数| Function | (coloum,type) |
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -117,7 +117,7 @@ function sort(Table, Icon) {
|
|||
onClick: function onClick() {
|
||||
_this2.toggleSortOrder("ascend", column);
|
||||
if (column.sorterClick) {
|
||||
column.sorterClick(column);
|
||||
column.sorterClick(column, "up");
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -131,7 +131,7 @@ function sort(Table, Icon) {
|
|||
onClick: function onClick() {
|
||||
_this2.toggleSortOrder("descend", column);
|
||||
if (column.sorterClick) {
|
||||
column.sorterClick(column);
|
||||
column.sorterClick(column, "down");
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
@ -34,7 +34,8 @@ const columns13 = [
|
|||
width: 200,
|
||||
sumCol: true,
|
||||
sorter: (a, b) => a.c - b.c,
|
||||
sorterClick:data=>{//排序的回调函数
|
||||
sorterClick:(data,type)=>{//排序的回调函数
|
||||
//type value is up or down
|
||||
console.log("data",data);
|
||||
}
|
||||
},
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -44,7 +44,7 @@ const MultiSelectTable = multiSelect(Table, Checkbox);
|
|||
| 参数 | 说明 | 类型 | 默认值 |
|
||||
| ------ | ---------- | -------- | ---- |
|
||||
| sorter | 排序函数,可以自定义 | Function | 无 |
|
||||
| sorterClick | 排序钩子函数| Function | 无 |
|
||||
| sorterClick | 排序钩子函数| Function | (coloum,type) |
|
||||
|
||||
#### 使用
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "bee-table",
|
||||
"version": "1.3.0",
|
||||
"version": "1.3.1",
|
||||
"description": "Table ui component for react",
|
||||
"keywords": [
|
||||
"react",
|
||||
|
|
|
@ -78,7 +78,7 @@ export default function sort(Table, Icon) {
|
|||
onClick={() =>{
|
||||
this.toggleSortOrder("ascend", column);
|
||||
if(column.sorterClick){
|
||||
column.sorterClick(column);
|
||||
column.sorterClick(column,"up");
|
||||
}
|
||||
} }
|
||||
>
|
||||
|
@ -92,7 +92,7 @@ export default function sort(Table, Icon) {
|
|||
onClick={() => {
|
||||
this.toggleSortOrder("descend", column);
|
||||
if(column.sorterClick){
|
||||
column.sorterClick(column);
|
||||
column.sorterClick(column,"down");
|
||||
}
|
||||
}}
|
||||
>
|
||||
|
|
Loading…
Reference in New Issue