We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3176a01 commit 7d597e7Copy full SHA for 7d597e7
index.js
@@ -194,15 +194,14 @@
194
195
if (typeof this.variable === 'function') {
196
return this.variable(index) || 0
197
- } else if (typeof this.variable === 'boolean') {
+ } else {
198
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$/)
+ var style = slot && slot.data && slot.data.style
+ if (style && style.height) {
+ var mc = style.height.match(/^(.*)px$/)
202
return (mc && +mc[1]) || 0
203
}
204
205
-
206
return 0
207
},
208
0 commit comments