fixed #1403
This commit is contained in:
parent
7c41ecb3d6
commit
835b37ff9f
2 changed files with 21 additions and 16 deletions
|
@ -46,6 +46,7 @@
|
|||
title: '年龄',
|
||||
key: 'age',
|
||||
sortable: true,
|
||||
// sortType: 'asc',
|
||||
width: 200
|
||||
},
|
||||
{
|
||||
|
@ -81,22 +82,22 @@
|
|||
// }
|
||||
],
|
||||
data3: [
|
||||
// {
|
||||
// name: '王小明',
|
||||
// age: 18,
|
||||
// address: '北京市朝阳区芍药居',
|
||||
// province: '北京市',
|
||||
// city: '朝阳区',
|
||||
// zip: 100000
|
||||
// },
|
||||
// {
|
||||
// name: '张小刚',
|
||||
// age: 25,
|
||||
// address: '北京市海淀区西二旗',
|
||||
// province: '北京市',
|
||||
// city: '海淀区',
|
||||
// zip: 100000
|
||||
// },
|
||||
{
|
||||
name: '王小明',
|
||||
age: 18,
|
||||
address: '北京市朝阳区芍药居',
|
||||
province: '北京市',
|
||||
city: '朝阳区',
|
||||
zip: 100000
|
||||
},
|
||||
{
|
||||
name: '张小刚',
|
||||
age: 25,
|
||||
address: '北京市海淀区西二旗',
|
||||
province: '北京市',
|
||||
city: '海淀区',
|
||||
zip: 100000
|
||||
},
|
||||
// {
|
||||
// name: '李小红',
|
||||
// age: 30,
|
||||
|
|
|
@ -660,6 +660,10 @@
|
|||
column._isFiltered = true;
|
||||
}
|
||||
|
||||
if ('sortType' in column) {
|
||||
column._sortType = column.sortType;
|
||||
}
|
||||
|
||||
if (column.fixed && column.fixed === 'left') {
|
||||
left.push(column);
|
||||
} else if (column.fixed && column.fixed === 'right') {
|
||||
|
|
Loading…
Add table
Reference in a new issue