UNPKG

1.07 kBTypeScriptView Raw
1import { Emitter } from '@mantou/gem/lib/decorators';
2import { GemElement, TemplateResult } from '@mantou/gem/lib/element';
3import { DuoyunScrollBaseElement } from './base/scroll';
4import './use';
5import './compartment';
6import './divider';
7export interface TabItem<T = any> {
8 tab: string | TemplateResult;
9 value?: T;
10 icon?: string | Element | DocumentFragment;
11 getContent?: () => string | TemplateResult;
12}
13/**
14 * @customElement dy-tabs
15 */
16export declare class DuoyunTabsElement extends GemElement {
17 #private;
18 static tabs: string;
19 static tab: string;
20 static currentTab: string;
21 static icon: string;
22 static marker: string;
23 static divider: string;
24 center: boolean;
25 orientation: 'horizontal' | 'vertical';
26 data?: TabItem[];
27 value?: any;
28 change: Emitter<any>;
29 constructor();
30 render: () => TemplateResult;
31}
32/**
33 * @customElement dy-tab-panel
34 */
35export declare class DuoyunTabPanelElement extends DuoyunScrollBaseElement {
36 vertical: boolean;
37 constructor();
38}
39//# sourceMappingURL=tabs.d.ts.map
\No newline at end of file