Closed b2nil closed 4 years ago
进度设为 0 时,进度条计算样式的宽度始终为 width: 0, 而非 width: "0%", 从而导致进度条显示为满格。
width: 0
width: "0%"
const progressStyle = computed(() => ({ width: percent?.value && `${+percent?.value}%`, ... }))
进度设为 0 时,进度条计算样式的宽度始终为
width: 0
, 而非width: "0%"
, 从而导致进度条显示为满格。