Commit 3f14387d1a1eeac3f234ba57bf6ff02787c0399c

Authored by 梁灏
1 parent 1acabf79

remove code

examples/routers/table.vue
@@ -84,7 +84,8 @@ @@ -84,7 +84,8 @@
84 key: 'gender', 84 key: 'gender',
85 align: 'center', 85 align: 'center',
86 width: 200, 86 width: 200,
87 - fixed: 'right' 87 + fixed: 'right',
  88 + // fixed: 'left'
88 } 89 }
89 ], 90 ],
90 columns2: [ 91 columns2: [
src/components/table/table-head.vue
@@ -71,7 +71,6 @@ @@ -71,7 +71,6 @@
71 import renderHeader from './header'; 71 import renderHeader from './header';
72 import Mixin from './mixin'; 72 import Mixin from './mixin';
73 import Locale from '../../mixins/locale'; 73 import Locale from '../../mixins/locale';
74 - import { convertColumnOrder } from './util';  
75 74
76 export default { 75 export default {
77 name: 'TableHead', 76 name: 'TableHead',
@@ -118,21 +117,6 @@ @@ -118,21 +117,6 @@
118 headRows () { 117 headRows () {
119 const isGroup = this.columnRows.length > 1; 118 const isGroup = this.columnRows.length > 1;
120 return isGroup ? this.columnRows : [this.columns]; 119 return isGroup ? this.columnRows : [this.columns];
121 -  
122 -// if (isGroup) {  
123 -// const fixedType = this.fixed;  
124 -// if (fixedType) {  
125 -// if (fixedType === 'left') {  
126 -// return convertColumnOrder(this.columnRows, 'left');  
127 -// } else if (fixedType === 'right') {  
128 -// return convertColumnOrder(this.columnRows, 'right');  
129 -// }  
130 -// } else {  
131 -// return this.columnRows;  
132 -// }  
133 -// } else {  
134 -// return [this.columns];  
135 -// }  
136 } 120 }
137 }, 121 },
138 methods: { 122 methods: {