vuux
Version:
Vue3 Nuxt3 Nuxt4 组件库
23 lines (22 loc) • 415 B
TypeScript
/**
* Props
*/
export interface Props {
data: string[] | CarouselItem[];
duration?: number;
autoplay?: boolean;
height?: string;
width?: string;
fit?: 'fill' | 'contain' | 'cover' | 'none' | 'scale-down';
freedom?: boolean;
indicator?: boolean;
border?: boolean;
}
/**
* 数据类型
*/
export interface CarouselItem {
src: string;
url?: string;
text?: string;
}