import { VNode, Component } from 'vue'; export interface YcSegmentedOption { /** 文字 */ label?: string | (() => VNode | Component); /** 图标组件 */ icon?: Component; /** 值 */ value?: any; /** 是否禁用 */ disabled?: boolean; /** tooltip 提示 */ tip?: string; } export interface YcSegmentedProps { /** 选项列表 */ options?: YcSegmentedOption[]; /** 当前选中值(索引或值) */ modelValue?: number | string; /** 将宽度调整为父元素宽度 */ block?: boolean; /** 控件尺寸 */ size?: 'small' | 'default' | 'large'; /** 是否全局禁用 */ disabled?: boolean; /** 当内容发生变化时,设置 resize 可使其自适应容器位置 */ resize?: boolean; }