Skip to content

Commit 7d597e7

Browse files
committed
Update review.
1 parent 3176a01 commit 7d597e7

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

index.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -194,15 +194,14 @@
194194

195195
if (typeof this.variable === 'function') {
196196
return this.variable(index) || 0
197-
} else if (typeof this.variable === 'boolean') {
197+
} else {
198198
var slot = this.$slots.default[index]
199-
var calcStyle = slot && slot.data && slot.data.style
200-
if (calcStyle && calcStyle.height) {
201-
var mc = calcStyle.height.match(/^(.*)px$/)
199+
var style = slot && slot.data && slot.data.style
200+
if (style && style.height) {
201+
var mc = style.height.match(/^(.*)px$/)
202202
return (mc && +mc[1]) || 0
203203
}
204204
}
205-
206205
return 0
207206
},
208207

0 commit comments

Comments
 (0)