【修改】JTable规范代码

This commit is contained in:
dusicong
2021-03-22 10:50:46 +08:00
parent 679aa8399c
commit 49bda883e8
3 changed files with 62 additions and 85 deletions
+20 -20
View File
@@ -83,7 +83,12 @@
key: 'name',
width: 200,
slots: {
title: '姓名'
title: '姓名',
// 冻结列头的参数
// 1为左侧冻结
// 2为右侧冻结
// 3为不冻结或解冻
fixedValue: 3
}
},
{
@@ -92,7 +97,8 @@
key: 'age',
width: 200,
slots: {
title: '年龄'
title: '年龄',
fixedValue: 3
}
},
{
@@ -101,7 +107,8 @@
key: 'address',
width: 200,
slots: {
title: '住址'
title: '住址',
fixedValue: 3
}
},
{
@@ -110,7 +117,8 @@
key: 'address1',
width: 200,
slots: {
title: '住址1'
title: '住址1',
fixedValue: 3
}
},
{
@@ -119,7 +127,8 @@
key: 'address2',
width: 200,
slots: {
title: '住址2'
title: '住址2',
fixedValue: 3
}
},
{
@@ -128,7 +137,8 @@
key: 'address3',
width: 200,
slots: {
title: '住址3'
title: '住址3',
fixedValue: 3
}
},
{
@@ -137,7 +147,8 @@
key: 'address4',
width: 200,
slots: {
title: '住址4'
title: '住址4',
fixedValue: 3
}
},
{
@@ -145,22 +156,11 @@
dataIndex: 'address5',
key: 'address5',
slots: {
title: '住址5'
title: '住址5',
fixedValue: 3
}
},
],
// TODO 此处放分页组件的意义?分页组件不是通过参数去操控table组件来进行显隐吗
pagination: {
current: 1,
pageSize: 5,
pageSizeOptions: ['5', '10', '20'],
showTotal: (total, range) => {
return range[0] + "-" + range[1] + "" + total + ""
},
showQuickJumper: true,
showSizeChanger: true,
total: 0
}
}
},
mounted() {