12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- /// <reference types="miniprogram-api-typings" />
- import { SuperComponent, RelationsOptions } from '../common/src/index';
- export default class Tabs extends SuperComponent {
- behaviors: string[];
- externalClasses: string[];
- relations: RelationsOptions;
- properties: import("./type").TdTabsProps;
- controlledProps: {
- key: string;
- event: string;
- }[];
- observers: {
- value(name: any): void;
- animation(v: any): void;
- placement(): void;
- };
- data: {
- prefix: string;
- classPrefix: string;
- tabs: any[];
- currentIndex: number;
- trackStyle: string;
- isScrollX: boolean;
- isScrollY: boolean;
- direction: string;
- animate: {
- duration: number;
- };
- offset: number;
- };
- created(): void;
- attached(): void;
- methods: {
- adjustPlacement(): void;
- };
- updateTabs(cb: any): void;
- setCurrentIndexByName(name: any): void;
- setCurrentIndex(index: number): void;
- getCurrentName(): any;
- calcScrollOffset(containerWidth: number, targetLeft: number, targetWidth: number, offset: number, currentIndex: number): number;
- setTrack(): void;
- onTabTap(event: any): void;
- onTouchStart(event: any): void;
- onTouchMove(event: any): void;
- onTouchEnd(): void;
- onTouchScroll(event: WechatMiniprogram.CustomEvent): void;
- changeIndex(index: any): void;
- getAvailableTabIndex(deltaX: number): number;
- }
|