|
@@ -48,8 +48,8 @@ export default {
|
48
|
48
|
detail: [],
|
49
|
49
|
group: [],
|
50
|
50
|
statement: '',
|
51
|
|
- row: 0,
|
52
|
|
- col: 0,
|
|
51
|
+ rowspan: 0,
|
|
52
|
+ colspan: 0,
|
53
|
53
|
func: '',
|
54
|
54
|
rowIndex: 0,
|
55
|
55
|
colIndex: 0,
|
|
@@ -102,23 +102,23 @@ export default {
|
102
|
102
|
if (i === 0) {
|
103
|
103
|
this.statement =
|
104
|
104
|
`if(this.rowIndex === ${i}){
|
105
|
|
- this.row = ${this.group[i].length},
|
106
|
|
- this.col = 1
|
|
105
|
+ this.rowspan = ${this.group[i].length},
|
|
106
|
+ this.colspan = 1
|
107
|
107
|
}`
|
108
|
108
|
} else if (i === this.group.length - 1) {
|
109
|
109
|
this.statement +=
|
110
|
110
|
`else if(this.rowIndex === ${sum(i)}){
|
111
|
|
- this.row = ${this.group[i].length},
|
112
|
|
- this.col = 1
|
|
111
|
+ this.rowspan = ${this.group[i].length},
|
|
112
|
+ this.colspan = 1
|
113
|
113
|
}else {
|
114
|
|
- this.row = 0,
|
115
|
|
- this.col = 0
|
|
114
|
+ this.rowspan = 0,
|
|
115
|
+ this.colspan = 0
|
116
|
116
|
}`
|
117
|
117
|
} else {
|
118
|
118
|
this.statement +=
|
119
|
119
|
`else if(this.rowIndex === ${sum(i)}){
|
120
|
|
- this.row = ${this.group[i].length},
|
121
|
|
- this.col = 1
|
|
120
|
+ this.rowspan = ${this.group[i].length},
|
|
121
|
+ this.colspan = 1
|
122
|
122
|
}`
|
123
|
123
|
}
|
124
|
124
|
}
|
|
@@ -139,8 +139,8 @@ export default {
|
139
|
139
|
|
140
|
140
|
this.func()
|
141
|
141
|
return {
|
142
|
|
- rowspan: this.row,
|
143
|
|
- colspan: this.col
|
|
142
|
+ rowspan: this.rowspan,
|
|
143
|
+ colspan: this.colspan
|
144
|
144
|
}
|
145
|
145
|
}
|
146
|
146
|
},
|