This commit is contained in:
梁灏 2017-07-20 09:59:44 +08:00
parent 7c41ecb3d6
commit 835b37ff9f
2 changed files with 21 additions and 16 deletions

View file

@ -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,

View file

@ -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') {