import { SizeEnum, TNode } from '../common'; export interface TdSpaceProps { /** * 对齐方式 */ align?: 'start' | 'end' | 'center' | 'baseline'; /** * 是否自动换行,仅在 horizontal 时有效 * @default false */ breakLine?: boolean; /** * 间距方向 * @default horizontal */ direction?: 'vertical' | 'horizontal'; /** * 分隔符 */ separator?: TNode; /** * 间距大小 * @default 'medium' */ size?: SpaceSize | SpaceSize[]; /** * 内容 */ children?: TNode; } export type SpaceSize = number | string | SizeEnum;