mirror of
https://gitee.com/devlive-community/datacap.git
synced 2024-12-04 21:18:22 +08:00
[Core] [Manager] Removes the default collation rule
This commit is contained in:
parent
0a1710740a
commit
8dd963c54f
@ -61,7 +61,19 @@ export default defineComponent({
|
|||||||
headerName: header,
|
headerName: header,
|
||||||
field: header,
|
field: header,
|
||||||
sort: hasSort ? hasSort.sort : null,
|
sort: hasSort ? hasSort.sort : null,
|
||||||
headerTooltip: header + ' [' + this.configure.types[index] + ']'
|
headerTooltip: header + ' [' + this.configure.types[index] + ']',
|
||||||
|
noSort: true,
|
||||||
|
comparator: () => {
|
||||||
|
if (hasSort) {
|
||||||
|
if (hasSort.sort === 'asc') {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
else if (hasSort.sort === 'desc') {
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
this.columnDefs.push(columnDef)
|
this.columnDefs.push(columnDef)
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user