import * as _angular_core from '@angular/core'; import { OnInit, TemplateRef } from '@angular/core'; import * as i1 from '@angular/common'; import * as i2 from 'ngx-tethys/icon'; import * as i3 from 'ngx-tethys/nav'; /** * 选项卡的选项组件 * @name thy-tab */ declare class ThyTab implements OnInit { /** * 自定义选项标题的模板 * @type TemplateRef */ readonly titleTemplateRef: _angular_core.Signal | undefined>; content: TemplateRef; /** * 选项标题 */ readonly thyTitle: _angular_core.InputSignal; /** * 选项的唯一标识 */ readonly id: _angular_core.InputSignal; /** * 是否禁用选项 * @default false */ readonly thyDisabled: _angular_core.InputSignalWithTransform; constructor(); ngOnInit(): void; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵcmp: _angular_core.ɵɵComponentDeclaration; } type ThyActiveTabValue = string | number; type ThyTabActiveEvent = ThyActiveTabValue; type ThyTabsSize = 'lg' | 'md' | 'sm'; type ThyTabsVariant = 'pulled' | 'tabs' | 'pills' | 'lite' | 'card'; /** @deprecated use ThyTabsVariant, will be removed in v23 */ type ThyTabsType = ThyTabsVariant; type ThyTabsPosition = 'top' | 'left'; /** * 选项卡切换组件 * @name thy-tabs */ declare class ThyTabs implements OnInit { private cd; private el; private readonly destroyRef; readonly tabs: _angular_core.Signal; /** * 标签形态 * @type pulled | tabs | pills | lite | card * @default tabs */ readonly thyVariant: _angular_core.InputSignal; /** * 标签类型(已废弃,将在 v23 中移除),请使用 thyVariant * @deprecated please use thyVariant, will be removed in v23 * @type pulled | tabs | pills | lite | card * @default tabs */ readonly thyType: _angular_core.InputSignal; readonly variant: _angular_core.Signal; /** * 选项卡的大小 * @type 'lg' | 'md' | 'sm' */ readonly thySize: _angular_core.InputSignal; /** * 激活的项,支持传入 tab id 或索引 */ readonly thyActiveTab: _angular_core.ModelSignal; /** * 附加操作 */ readonly thyExtra: _angular_core.InputSignal | undefined>; /** * 选项卡的位置 * @type 'top' | 'left' */ readonly thyPosition: _angular_core.InputSignal; /** * 是否使用动画切换 Tabs */ readonly thyAnimated: _angular_core.InputSignalWithTransform; /** * 响应式,自动计算宽度存放 thyNavItem,并添加更多弹框 */ readonly thyResponsive: _angular_core.InputSignalWithTransform; readonly activeTabIndex: _angular_core.Signal; transitionStarted: boolean; ngOnInit(): void; get tabPaneAnimated(): boolean; getTabContentMarginLeft(): string; activeTab(tab: ThyTab, index: number): void; private getTabActiveValue; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵcmp: _angular_core.ɵɵComponentDeclaration; } /** * @private */ declare class ThyTabContent { readonly content: _angular_core.InputSignal | null>; readonly active: _angular_core.InputSignalWithTransform; readonly tabPaneAnimated: _angular_core.InputSignalWithTransform; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵcmp: _angular_core.ɵɵComponentDeclaration; } declare class ThyTabsModule { static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵmod: _angular_core.ɵɵNgModuleDeclaration; static ɵinj: _angular_core.ɵɵInjectorDeclaration; } export { ThyTab, ThyTabs, ThyTabsModule }; export type { ThyActiveTabValue, ThyTabActiveEvent, ThyTabsPosition, ThyTabsSize, ThyTabsType, ThyTabsVariant };