scrollBar.vue 子组件
<template>
<!-- 进度条组件 -->
<div class="scrollBar" :style="{ width: scrollWidth }">
<div class="scrollBar_process" :style="{ width: width + '%' }">
<div
class="process"
:class="[
backgroundColor == 0
? 'process_ative'
: backgroundColor == 1
? 'process_ative2'
: backgroundColor == 2
? 'process_ative3'
: '',
]"
></div>
<div
class="dot"
v-if="width != 0"
:class="[
backgroundColor == 0
? 'dot_ative'
: backgroundColor == 1
? 'dot_ative2'
: backgroundColor == 2