remove code

This commit is contained in:
梁灏 2018-03-23 17:11:08 +08:00
parent 1acabf7912
commit 3f14387d1a
2 changed files with 2 additions and 17 deletions

View file

@ -84,7 +84,8 @@
key: 'gender', key: 'gender',
align: 'center', align: 'center',
width: 200, width: 200,
fixed: 'right' fixed: 'right',
// fixed: 'left'
} }
], ],
columns2: [ columns2: [

View file

@ -71,7 +71,6 @@
import renderHeader from './header'; import renderHeader from './header';
import Mixin from './mixin'; import Mixin from './mixin';
import Locale from '../../mixins/locale'; import Locale from '../../mixins/locale';
import { convertColumnOrder } from './util';
export default { export default {
name: 'TableHead', name: 'TableHead',
@ -118,21 +117,6 @@
headRows () { headRows () {
const isGroup = this.columnRows.length > 1; const isGroup = this.columnRows.length > 1;
return isGroup ? this.columnRows : [this.columns]; return isGroup ? this.columnRows : [this.columns];
// if (isGroup) {
// const fixedType = this.fixed;
// if (fixedType) {
// if (fixedType === 'left') {
// return convertColumnOrder(this.columnRows, 'left');
// } else if (fixedType === 'right') {
// return convertColumnOrder(this.columnRows, 'right');
// }
// } else {
// return this.columnRows;
// }
// } else {
// return [this.columns];
// }
} }
}, },
methods: { methods: {