publish 0.9.9-rc-5

Table sortable support Safari、IE、Edge
This commit is contained in:
梁灏 2016-12-01 16:11:14 +08:00
parent a81dc06c7d
commit 89670198f3
4 changed files with 77 additions and 32 deletions

View file

@ -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;