publish 0.9.9-rc-5
Table sortable support Safari、IE、Edge
This commit is contained in:
parent
a81dc06c7d
commit
89670198f3
4 changed files with 77 additions and 32 deletions
|
@ -368,7 +368,11 @@
|
|||
if (this.cloneColumns[index].sortMethod) {
|
||||
return this.cloneColumns[index].sortMethod(a, b);
|
||||
} else {
|
||||
return type === 'asc' ? a[key] > b[key] : a[key] < b[key];
|
||||
if (type === 'asc') {
|
||||
return a[key] > b[key] ? 1 : -1;
|
||||
} else if (type === 'desc') {
|
||||
return a[key] < b[key] ? 1 : -1;
|
||||
}
|
||||
}
|
||||
});
|
||||
return data;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue