import { default as EaBase } from '../../core/EaBase'; export type SegmentedSize = "large" | "default" | "small"; export type SegmentedDirection = "horizontal" | "vertical"; export type SegmentedOption = string | { label: string; value: string; disabled?: boolean; checked?: boolean; [key: string]: any; }; export type PropsConfiguration = { label: string; value: string; disabled: string; }; /** * @summary 分段选择器组件,用于在一组互斥的选项中进行选择,支持多种尺寸、方向和自定义字段映射。 * @status stable * @since 3.0 * * @csspart container - 组件根容器元素。 * @csspart item - 每个选项的容器元素。 * @csspart label - 选项标签元素。 * @csspart input - 原生 radio input 元素。 * @csspart indicator - 当前选中指示器元素。 * * @event change - 选项改变时触发,detail: `{ value: string }`。 * * @cssproperty --ea-segmented-border-radius - 组件圆角半径。 * @cssproperty --ea-segmented-bg-color - 组件背景颜色。 * @cssproperty --ea-segmented-hover-bg-color - 选项悬停背景颜色。 * @cssproperty --ea-segmented-indicator-color - 选中指示器颜色。 * @cssproperty --ea-segmented-item-checked-color - 选中项文字颜色。 * @cssproperty --ea-segmented-item-disabled-color - 禁用项文字颜色。 * @cssproperty --ea-segmented-item-disabled-bg-color - 禁用项背景颜色。 */ export declare class EaSegmented extends EaBase { private _container; private _resizeObserver?; private _resizeTimer?; options: SegmentedOption[]; propsConfiguration: PropsConfiguration; value: string; size: SegmentedSize | ""; direction: SegmentedDirection | ""; disabled: boolean; block: boolean; name: string; updateContainerClasslist(): string; html(): string; /** 获取非禁用的选项列表 */ private _getEnabledItems; /** 更新 aria-activedescendant 指向当前选中项 */ private _updateActiveDescendant; /** 渲染选项列表 */ private _renderOptions; /** 处理选项变更事件 */ private _handleChange; /** 处理键盘导航(aria-activedescendant 模式) */ private _handleKeydown; /** * 更新选中指示器位置 * @param value 当前选中值 */ private _updateIndicatorPosition; $mount(): void; $beforeUnmount(): void; } export default EaSegmented; //# sourceMappingURL=index.d.ts.map