|
@@ -127,7 +127,7 @@ export default {
|
|
|
})
|
|
|
}
|
|
|
</tr>);
|
|
|
- if (this.store.isRowExpanded(row)) {
|
|
|
+ if (this.hasExpandColumn && this.store.isRowExpanded(row)) {
|
|
|
return [
|
|
|
tr,
|
|
|
<tr>
|
|
@@ -185,6 +185,10 @@ export default {
|
|
|
return this.store.states.columns;
|
|
|
},
|
|
|
|
|
|
+ hasExpandColumn() {
|
|
|
+ return this.columns.some(({ type }) => type === 'expand');
|
|
|
+ },
|
|
|
+
|
|
|
firstDefaultColumnIndex() {
|
|
|
for (let index = 0; index < this.columns.length; index++) {
|
|
|
if (this.columns[index].type === 'default') {
|