画布增加图层翻转

This commit is contained in:
李志鹏
2025-11-10 14:06:48 +08:00
parent 4e1ac2985c
commit b216852f14
5 changed files with 123 additions and 36 deletions

View File

@@ -280,7 +280,8 @@ export default defineComponent({
setPageSize(rem) {
const historyTable = this.$refs.historyTable
const height = historyTable.offsetHeight
const size = Math.trunc((height - 110) / 54)
const itemHeight = historyTable.getElementsByClassName("ant-table-thead")[0]?.offsetHeight || 54;
const size = Math.trunc((height - 60 - itemHeight) / itemHeight)
this.pageSize = Math.max(1, size)
if (rem) {
this.currentPage = 1