import { ModuleName } from './utils'; import { CSSProperties, DefineComponent, ExtractPropTypes, Ref, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, PropType } from 'vue'; import { SwiperItem } from './types'; export interface HSwiperProps { /** 动态模块配置 */ modules?: ModuleName[]; /** 轮播数据 */ data?: SwiperItem[]; /** 高度 */ height?: string; /** Swiper 样式类 */ swiperClass?: string; /** 幻灯片样式 */ slideStyle?: CSSProperties; /** 是否显示阴影 */ showShadow?: boolean; /** Swiper 配置选项 */ options?: Record; /** 空状态文本 */ emptyText?: string; /** 加载中 */ loading?: boolean; /** 是否显示空状态 */ isEmpty?: boolean; } export interface HSwiperEmits { 'slide-click': [item: SwiperItem, index: number]; } declare const _default: __VLS_WithTemplateSlots< DefineComponent, { modules: () => string[]; height: string; data: () => never[]; slideStyle: () => { cursor: string; }; showShadow: boolean; options: () => {}; emptyText: string; loading: boolean; isEmpty: boolean; }>>, { swiperRef: Ref; }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, { "slide-click": (item: SwiperItem, index: number) => void; }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps, { modules: () => string[]; height: string; data: () => never[]; slideStyle: () => { cursor: string; }; showShadow: boolean; options: () => {}; emptyText: string; loading: boolean; isEmpty: boolean; }>>> & Readonly<{ "onSlide-click"?: ((item: SwiperItem, index: number) => any) | undefined; }>, { data: SwiperItem[]; loading: boolean; height: string; options: Record; isEmpty: boolean; emptyText: string; modules: ("Scrollbar" | "History" | "A11y" | "Autoplay" | "Controller" | "EffectCards" | "EffectCoverflow" | "EffectCreative" | "EffectCube" | "EffectFade" | "EffectFlip" | "FreeMode" | "Grid" | "HashNavigation" | "Keyboard" | "Manipulation" | "Mousewheel" | "Navigation" | "Pagination" | "Parallax" | "Thumbs" | "Virtual" | "Zoom")[]; slideStyle: CSSProperties; showShadow: boolean; }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, { default?(_: {}): any; slide?(_: { item: SwiperItem; index: number; }): any; pagination?(_: {}): any; navigation?(_: {}): any; scrollbar?(_: {}): any; extra?(_: {}): any; }>; export default _default; type __VLS_NonUndefinedable = T extends undefined ? never : T; type __VLS_TypePropsToRuntimeProps = { [K in keyof T]-?: {} extends Pick ? { type: PropType<__VLS_NonUndefinedable>; } : { type: PropType; required: true; }; }; type __VLS_WithDefaults = { [K in keyof Pick]: K extends keyof D ? __VLS_Prettify : P[K]; }; type __VLS_Prettify = { [K in keyof T]: T[K]; } & {}; type __VLS_WithTemplateSlots = T & { new (): { $slots: S; }; };