提交 e2f4cb04 编写于 作者: 2 23700113@qq.com

fix(h5): 修复indicator-class设置后,如果没有使用scoped,在H5无效

上级 1e0ede43
......@@ -95,6 +95,15 @@ export default {
})
initClick(this.$el)
initScrollBounce()
let $vm = this
while ($vm) {
const scopeId = $vm.$options._scopeId
if (scopeId) {
this.$refs.indicator.setAttribute(scopeId, '')
}
$vm = $vm.$parent
}
},
methods: {
_setItemHeight (height) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册