max support on Progress
Take the max property into consideration when updating the ProgressIndicator
This commit is contained in:
parent
4fef932f2c
commit
e6ca60eea4
|
|
@ -33,7 +33,7 @@ const delegatedProps = computed(() => {
|
|||
>
|
||||
<ProgressIndicator
|
||||
class="h-full w-full flex-1 bg-primary transition-all"
|
||||
:style="`transform: translateX(-${100 - (props.modelValue ?? 0)}%);`"
|
||||
:style="`transform: translateX(-${100 - (props.modelValue ?? 0) * 100 / (props.max ?? 100)}%);`"
|
||||
/>
|
||||
</ProgressRoot>
|
||||
</template>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user