element-plus
Version:
A Component Library for Vue3.0
118 lines (117 loc) • 3.38 kB
TypeScript
/// <reference types="node" />
/// <reference types="lodash" />
import { ICarouselProps } from './carousel';
declare const _default: import("vue").DefineComponent<{
initialIndex: {
type: NumberConstructor;
default: number;
};
height: {
type: StringConstructor;
default: string;
};
trigger: {
type: StringConstructor;
default: string;
};
autoplay: {
type: BooleanConstructor;
default: boolean;
};
interval: {
type: NumberConstructor;
default: number;
};
indicatorPosition: {
type: StringConstructor;
default: string;
};
indicator: {
type: BooleanConstructor;
default: boolean;
};
arrow: {
type: StringConstructor;
default: string;
};
type: {
type: StringConstructor;
default: string;
};
loop: {
type: BooleanConstructor;
default: boolean;
};
direction: {
type: StringConstructor;
default: string;
validator(val: string): boolean;
};
}, {
data: {
activeIndex: number;
containerWidth: number;
timer: {
hasRef: () => boolean;
refresh: () => NodeJS.Timeout;
ref: () => NodeJS.Timeout;
unref: () => NodeJS.Timeout;
};
hover: boolean;
};
props: ICarouselProps;
items: import("vue").Ref<{
uid: number;
translateItem: (index: number, activeIndex: number, oldIndex: number) => void;
name: string;
label: string | number;
key: string;
hover: boolean;
translate: number;
scale: number;
active: boolean;
ready: boolean;
inStage: boolean;
animating: boolean;
}[]>;
arrowDisplay: import("vue").ComputedRef<boolean>;
carouselClasses: import("vue").ComputedRef<string[]>;
indicatorsClasses: import("vue").ComputedRef<string[]>;
hasLabel: import("vue").ComputedRef<boolean>;
handleMouseEnter: () => void;
handleMouseLeave: () => void;
handleIndicatorClick: (index: any) => void;
throttledArrowClick: import("lodash").DebouncedFunc<(index: any) => void>;
throttledIndicatorHover: import("lodash").DebouncedFunc<(index: any) => void>;
handleButtonEnter: (arrow: any) => void;
handleButtonLeave: () => void;
prev: () => void;
next: () => void;
setActiveItem: (index: any) => void;
root: any;
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
initialIndex: number;
height: string;
trigger: string;
autoplay: boolean;
interval: number;
indicatorPosition: string;
indicator: boolean;
arrow: string;
type: string;
loop: boolean;
direction: string;
} & {}>, {
initialIndex: number;
height: string;
trigger: string;
autoplay: boolean;
interval: number;
indicatorPosition: string;
indicator: boolean;
arrow: string;
type: string;
loop: boolean;
direction: string;
}>;
export default _default;