✨(component): 创建 CarouselItemProps 类型
This commit is contained in:
parent
8fb2897d19
commit
909ddcb9ec
@ -14,9 +14,11 @@ import {
|
|||||||
WritableComputedRef,
|
WritableComputedRef,
|
||||||
} from "vue";
|
} from "vue";
|
||||||
|
|
||||||
const props = defineProps<{
|
export interface CarouselItemProps {
|
||||||
id: string;
|
id: string;
|
||||||
}>();
|
}
|
||||||
|
|
||||||
|
const props = defineProps<CarouselItemProps>();
|
||||||
|
|
||||||
const active = inject("active") as WritableComputedRef<string>;
|
const active = inject("active") as WritableComputedRef<string>;
|
||||||
const slotsChange: Ref<boolean> = inject("slotsChange") as Ref<boolean>;
|
const slotsChange: Ref<boolean> = inject("slotsChange") as Ref<boolean>;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user