b2nil / taro-ui-vue3

采用 Vue 3.0 重写的 Taro UI 组件库
https://b2nil.github.io/taro-ui-vue3/
MIT License
160 stars 51 forks source link

AtProgress 的进度设置为 0 时,进度条显示满格 #5

Closed b2nil closed 4 years ago

b2nil commented 4 years ago

进度设为 0 时,进度条计算样式的宽度始终为 width: 0, 而非 width: "0%", 从而导致进度条显示为满格。

const progressStyle = computed(() => ({
    width: percent?.value && `${+percent?.value}%`,
    ...
}))