/** * 该文件为脚本自动生成文件,请勿随意修改。如需修改请联系 PMC * */ export interface TdRadioProps { /** * 是否允许取消选中 * @default false */ allowUncheck?: { type: BooleanConstructor; value?: boolean; }; /** * 是否为块级元素 * @default true */ block?: { type: BooleanConstructor; value?: boolean; }; /** * 是否选中 * @default false */ checked?: { type: BooleanConstructor; value?: boolean; }; /** * 是否选中,非受控属性 * @default false */ defaultChecked?: { type: BooleanConstructor; value?: boolean; }; /** * 单选内容 */ content?: { type: StringConstructor; value?: string; }; /** * 是否禁用组件内容(content)触发选中 * @default false */ contentDisabled?: { type: BooleanConstructor; value?: boolean; }; /** * 是否为禁用态 */ disabled?: { type: BooleanConstructor; value?: boolean; }; /** * 自定义选中图标和非选中图标。使用 Array 时表示:`[选中态图标,非选中态图标]`。使用 String 时,值为 circle 表示填充型图标、值为 line 表示描边型图标、值为 dot 表示圆点图标,值为 slot 时使用插槽 * @default 'circle' */ icon?: { type: null; value?: 'circle' | 'line' | 'dot' | Array; }; /** * 主文案 */ label?: { type: StringConstructor; value?: string; }; /** * 内容最大行数限制 * @default 5 */ maxContentRow?: { type: NumberConstructor; value?: number; }; /** * 主文案最大行数限制 * @default 3 */ maxLabelRow?: { type: NumberConstructor; value?: number; }; /** * HTML 元素原生属性 * @default '' */ name?: { type: StringConstructor; value?: string; }; /** * 复选框和内容相对位置。优先级高于 RadioGroup.placement。Radio 单独存在时,默认值为 left。如果父组件存在 RadioGroup,默认值便由 RadioGroup.placement 决定 */ placement?: { type: StringConstructor; value?: 'left' | 'right'; }; /** * 只读状态 */ readonly?: { type: BooleanConstructor; value?: boolean; }; /** * 单选按钮的值 * @default false */ value?: { type: null; value?: T; }; } export declare type RadioValue = string | number | boolean;