import React from 'react'; export interface SegmentDataSourceItem { label: React.ReactNode; value: any; } export interface SegmentProps { /** * 自定义样式 */ style?: React.CSSProperties; /** * 自定义样式名 */ className?: string; /** * 按钮数据源 */ dataSource: SegmentDataSourceItem[]; /** * 选中值的回调 */ onChange?: (value: any, data: SegmentDataSourceItem) => void; /** * 受控的值 */ value?: any; /** * 默认的值 */ defaultValue?: any; /** * @default "medium" * 按钮组大小 */ size?: 'small' | 'medium' | 'large'; /** * 是否占满容器的宽度,如果为 true,下面的元素将均分展示 */ fullWidth?: boolean; /** * @default "normal" * 按钮类型 */ type?: 'normal' | 'primary' | 'secondary'; } declare const Segment: React.FC; export { Segment };