/** * CheckboxGroup 选项 */ import { BaseProps, OptionProps } from '.' export interface CheckboxGroupProps extends BaseProps { /** * 指定可选项,可以通过 slot="label" slot-scope="option" 定制label */ options: Array | Array | Array /** * 额外需要返回的字段 */ extraNames?: CheckGroupExtraProps } /** * 单选框组合 */ export interface RadioGroupProps extends CheckboxGroupProps { /** * RadioButton 的风格样式,目前有描边和填色两种风格 */ buttonStyle?: 'outline' | 'solid' /** * 用于设置 Radio options 类型 */ optionType?: 'default' | 'button' /** * 大小,只对按钮样式生效 */ size?: 'large' | 'default' | 'small' /** * 额外需要返回的字段 */ extraNames?: RadioGroupExtraProps } export interface RadioGroupExtraProps { // 拼接后的label label?: string // 拼接后的value value?: string // 所有选中的选项 option?: string } export interface CheckGroupExtraProps { // 拼接后的label label?: string // 拼接后的value value?: string // 所有选中的选项 options?: string }