1👍
It looks like you need to set the "value" attribute using v-bind:
(or the shorthand :
), as in:
<progress max="100" :value="percent"></progress>
Omitting the :
would set the attribute to the string "percent"
, rather than the value of the percent
property.
- [Vuejs]-How can I define props?
- [Vuejs]-How to call a function exposed via defineExpose when that component is rendered multiple times inside a v-for
Source:stackexchange.com