sard-uniapp
Version:
sard-uniapp 是一套基于 Uniapp + Vue3 框架开发的兼容多端的 UI 组件库
39 lines (38 loc) • 1.13 kB
TypeScript
import { type StyleValue } from 'vue';
import { type DefaultProps } from '../config';
import { type SwiperDotProps } from '../swiper-dot';
export interface SwiperItem {
image?: string;
title?: string;
video?: string;
poster?: string;
}
export interface SwiperProps {
rootStyle?: StyleValue;
rootClass?: string;
modelValue?: number;
list: (string | SwiperItem)[];
showDot?: boolean;
dotType?: SwiperDotProps['type'];
autoplay?: boolean;
interval?: number;
duration?: number;
circular?: boolean;
previousMargin?: string;
nextMargin?: string;
displayMultipleItems?: number;
swiperItemStyle?: StyleValue;
itemStyle?: StyleValue;
dynamicItemStyle?: (index: number, activeIndex: number) => StyleValue;
}
export declare const defaultSwiperProps: () => DefaultProps<SwiperProps>;
export interface SwiperSlots {
default?(props: Record<string, never>): any;
}
export interface SwiperEmits {
(e: 'click', index: number): void;
(e: 'update:model-value', index: number): void;
(e: 'change', index: number): void;
}
export interface SwiperExpose {
}