This commit is contained in:
2024-09-25 10:59:56 +08:00
parent cf87e0c28a
commit 2f5407d7b3
4 changed files with 7 additions and 1 deletions

View File

@@ -40323,6 +40323,7 @@ const _sfc_main$D = defineComponent({
e.target.parentNode.setAttribute("lay-sort", "");
tableDataSource.value = [...props.dataSource];
} else {
console.log("\u6392\u5E8F\u4E86");
e.target.parentNode.setAttribute("lay-sort", "desc");
tableDataSource.value.sort((x, y) => {
if (x[key] < y[key])
@@ -40338,6 +40339,7 @@ const _sfc_main$D = defineComponent({
e.target.parentNode.setAttribute("lay-sort", "");
tableDataSource.value = [...props.dataSource];
} else {
console.log("\u6392\u5E8F\u4E86");
e.target.parentNode.setAttribute("lay-sort", "asc");
tableDataSource.value.sort((x, y) => {
if (x[key] < y[key])