From e2f4cb04ef3db994e1678a512440ff0e2dbdb3f3 Mon Sep 17 00:00:00 2001 From: "23700113@qq.com" <283700113@qq.com> Date: Fri, 4 Dec 2020 15:38:30 +0800 Subject: [PATCH] =?UTF-8?q?fix(h5):=20=E4=BF=AE=E5=A4=8Dindicator-class?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E5=90=8E=EF=BC=8C=E5=A6=82=E6=9E=9C=E6=B2=A1?= =?UTF-8?q?=E6=9C=89=E4=BD=BF=E7=94=A8scoped=EF=BC=8C=E5=9C=A8H5=E6=97=A0?= =?UTF-8?q?=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/view/components/picker-view-column/index.vue | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/core/view/components/picker-view-column/index.vue b/src/core/view/components/picker-view-column/index.vue index f0711bfb30..b45852676c 100644 --- a/src/core/view/components/picker-view-column/index.vue +++ b/src/core/view/components/picker-view-column/index.vue @@ -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) { -- GitLab