import { Ref, ModelRef } from 'vue'; import { PickNotRequiredUnion } from '../types'; /** * 父组件参数 */ export interface RadioGroupContext { name: string; currentValue: Ref; onChange: (name: string | number) => void; } /** * emits */ export interface Emits { (event: 'click'): void; } /** * props */ export interface Props { /** * 单选框索引名称 */ name?: string | number; /** * 图标形状 */ shape?: 'square' | 'round'; /** * 自定义图标 */ icon?: string; /** * 自定义选中图标 */ iconSelect?: string; /** * 图标大小 */ iconSize?: string; /** * 选中状态颜色 */ checkedColor?: string; /** * 禁用状态 */ disabled?: boolean; } /** * hook */ export type PropsHookParam = PickNotRequiredUnion; /** * useHandler */ export declare namespace USEHandler { interface Option { props: Readonly; emit: Emits; isChecked: ModelRef; } }