(component): 创建 CarouselItemProps 类型

This commit is contained in:
就眠儀式 2022-10-16 15:42:06 +08:00
parent 8fb2897d19
commit 909ddcb9ec

View File

@ -14,9 +14,11 @@ import {
WritableComputedRef,
} from "vue";
const props = defineProps<{
export interface CarouselItemProps {
id: string;
}>();
}
const props = defineProps<CarouselItemProps>();
const active = inject("active") as WritableComputedRef<string>;
const slotsChange: Ref<boolean> = inject("slotsChange") as Ref<boolean>;