diff --git a/package/component/src/component/scroll/index.vue b/package/component/src/component/scroll/index.vue index f322db4b..0578fb03 100644 --- a/package/component/src/component/scroll/index.vue +++ b/package/component/src/component/scroll/index.vue @@ -12,7 +12,7 @@ ref="barRef" class="layui-scroll-track" :style="{ - backgroundColor: heightPre == 1 ? 'rgba(0,0,0,0)' : slotColor, + backgroundColor: data.heightPre == 1 ? 'rgba(0,0,0,0)' : slotColor, }" >