不等比缩放

This commit is contained in:
X1627315083
2024-05-28 11:22:16 +08:00
parent 89b485048b
commit 6b4c52c645
7 changed files with 68 additions and 24 deletions

View File

@@ -34,6 +34,7 @@
<div class="admin_table_content" ref="historyTable">
<a-table
@resizeColumn="handleResizeColumn"
:columns="columns"
:data-source="dataList"
:scroll="{ y: historyTableHeight }"
@@ -146,6 +147,10 @@ export default defineComponent({
title: 'Create Time',
align: "center",
ellipsis: true,
// width: 150,
// minWidth: 100,
// maxWidth: 200,
// resizable: true,
dataIndex: "createTime",
key: "createTime",
},
@@ -153,6 +158,10 @@ export default defineComponent({
title: 'Occupation',
align: "center",
ellipsis: true,
// width: 150,
// minWidth: 100,
// maxWidth: 200,
// resizable: true,
dataIndex: "occupation",
key: "occupation",
},
@@ -160,6 +169,8 @@ export default defineComponent({
title: 'Trial Order Id',
align: "center",
ellipsis: true,
// width: 150,
// resizable: true,
dataIndex: "trialOrderId",
key: "trialOrderId",
},
@@ -202,6 +213,9 @@ export default defineComponent({
pageSize: 10,
total: 0,
historyTableHeight: 0,
handleResizeColumn: (w:any, col:any) => {
col.width = w;
},
};
},
mounted() {