mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 12:14:41 +01:00
chore(Progress): remove $slots usage
This commit is contained in:
@@ -58,7 +58,7 @@ const props = withDefaults(defineProps<ProgressProps>(), {
|
||||
orientation: 'horizontal'
|
||||
})
|
||||
const emits = defineEmits<ProgressEmits>()
|
||||
defineSlots<ProgressSlots>()
|
||||
const slots = defineSlots<ProgressSlots>()
|
||||
|
||||
const { dir } = useLocale()
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user