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: '年龄', title: '年龄',
key: 'age', key: 'age',
sortable: true, sortable: true,
// sortType: 'asc',
width: 200 width: 200
}, },
{ {
@ -81,22 +82,22 @@
// } // }
], ],
data3: [ data3: [
// { {
// name: '', name: '王小明',
// age: 18, age: 18,
// address: '', address: '北京市朝阳区芍药居',
// province: '', province: '北京市',
// city: '', city: '朝阳区',
// zip: 100000 zip: 100000
// }, },
// { {
// name: '', name: '张小刚',
// age: 25, age: 25,
// address: '西', address: '北京市海淀区西二旗',
// province: '', province: '北京市',
// city: '', city: '海淀区',
// zip: 100000 zip: 100000
// }, },
// { // {
// name: '', // name: '',
// age: 30, // age: 30,

View file

@ -660,6 +660,10 @@
column._isFiltered = true; column._isFiltered = true;
} }
if ('sortType' in column) {
column._sortType = column.sortType;
}
if (column.fixed && column.fixed === 'left') { if (column.fixed && column.fixed === 'left') {
left.push(column); left.push(column);
} else if (column.fixed && column.fixed === 'right') { } else if (column.fixed && column.fixed === 'right') {