UNPKG

@opensig/opendesign

Version:

183 lines (182 loc) 4.98 kB
declare function __VLS_template(): { attrs: Partial<{}>; slots: { default?(_: {}): any; indicator?(_: { active: boolean; index: number; }): any; 'arrow-prev'?(_: {}): any; 'arrow-prev-icon'?(_: {}): any; 'arrow-next'?(_: {}): any; 'arrow-next-icon'?(_: {}): any; }; refs: { slidesRef: HTMLDivElement; containerRef: HTMLDivElement; }; rootEl: HTMLDivElement; }; type __VLS_TemplateResult = ReturnType<typeof __VLS_template>; declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{ activeIndex: { type: NumberConstructor; }; effect: { type: import('vue').PropType<"gallery" | "toggle">; default: string; }; autoPlay: { type: BooleanConstructor; }; interval: { type: NumberConstructor; default: number; }; arrow: { type: import('vue').PropType<"always" | "hover" | "never">; default: string; }; arrowWrapClass: { type: import('vue').PropType<string | { [k: string]: boolean; } | Array<{ [k: string]: boolean; } | string>>; }; hideIndicator: { type: BooleanConstructor; }; indicatorClick: { type: BooleanConstructor; }; indicatorWrapClass: { type: import('vue').PropType<string | { [k: string]: boolean; } | Array<{ [k: string]: boolean; } | string>>; }; clickToSwitch: { type: BooleanConstructor; }; manualInit: { type: BooleanConstructor; }; activeClass: { type: import('vue').PropType<string | { [k: string]: boolean; } | Array<{ [k: string]: boolean; } | string>>; }; pauseOnHover: { type: BooleanConstructor; }; }>, { /** * @zh-CN 初始化轮播组件 * @en-US Initialize the carousel component */ init: () => void; /** * @zh-CN 开始自动播放 * @en-US Start auto play */ play: () => void; /** * @zh-CN 暂停自动播放 * @en-US Pause auto play */ pause: () => void; /** * @zh-CN 切换到指定幻灯片 * @en-US Switch to the specified slide */ active: (index: number, resumeAutoPlay?: boolean) => Promise<void>; }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & { change: (to: number, from: number) => any; pause: (value: number) => any; "before-change": (to: number, from: number) => any; "update:activeIndex": (value: number) => any; }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{ activeIndex: { type: NumberConstructor; }; effect: { type: import('vue').PropType<"gallery" | "toggle">; default: string; }; autoPlay: { type: BooleanConstructor; }; interval: { type: NumberConstructor; default: number; }; arrow: { type: import('vue').PropType<"always" | "hover" | "never">; default: string; }; arrowWrapClass: { type: import('vue').PropType<string | { [k: string]: boolean; } | Array<{ [k: string]: boolean; } | string>>; }; hideIndicator: { type: BooleanConstructor; }; indicatorClick: { type: BooleanConstructor; }; indicatorWrapClass: { type: import('vue').PropType<string | { [k: string]: boolean; } | Array<{ [k: string]: boolean; } | string>>; }; clickToSwitch: { type: BooleanConstructor; }; manualInit: { type: BooleanConstructor; }; activeClass: { type: import('vue').PropType<string | { [k: string]: boolean; } | Array<{ [k: string]: boolean; } | string>>; }; pauseOnHover: { type: BooleanConstructor; }; }>> & Readonly<{ onChange?: ((to: number, from: number) => any) | undefined; onPause?: ((value: number) => any) | undefined; "onBefore-change"?: ((to: number, from: number) => any) | undefined; "onUpdate:activeIndex"?: ((value: number) => any) | undefined; }>, { effect: "toggle" | "gallery"; autoPlay: boolean; interval: number; arrow: "always" | "never" | "hover"; hideIndicator: boolean; indicatorClick: boolean; clickToSwitch: boolean; manualInit: boolean; pauseOnHover: boolean; }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, { slidesRef: HTMLDivElement; containerRef: HTMLDivElement; }, HTMLDivElement>; declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>; export default _default; type __VLS_WithTemplateSlots<T, S> = T & { new (): { $slots: S; }; };