Skip to content

Commit

Permalink
chore(Progress): remove $slots usage
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamincanac committed Dec 24, 2024
1 parent 7f09299 commit c223281
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/runtime/components/Progress.vue
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const props = withDefaults(defineProps<ProgressProps>(), {
orientation: 'horizontal'
})
const emits = defineEmits<ProgressEmits>()
defineSlots<ProgressSlots>()
const slots = defineSlots<ProgressSlots>()

const { dir } = useLocale()

Expand Down Expand Up @@ -160,7 +160,7 @@ const ui = computed(() => progress({

<template>
<Primitive :as="as" :class="ui.root({ class: [props.class, props.ui?.root] })">
<div v-if="!isIndeterminate && (status || $slots.status)" :class="ui.status({ class: props.ui?.status })" :style="statusStyle">
<div v-if="!isIndeterminate && (status || !!slots.status)" :class="ui.status({ class: props.ui?.status })" :style="statusStyle">
<slot name="status" :percent="percent">
{{ percent }}%
</slot>
Expand Down

0 comments on commit c223281

Please sign in to comment.