UNPKG

@tplc/wot

Version:

55 lines (54 loc) 1.45 kB
import { type InjectionKey } from 'vue' import type { RadioShape } from '../wd-radio/types' export type RadioGroupProvide = { props: { modelValue?: string | number | boolean shape?: RadioShape checkedColor?: string disabled?: boolean cell?: boolean size?: string inline?: boolean } updateValue: (value: string | number | boolean) => void } export declare const RADIO_GROUP_KEY: InjectionKey<RadioGroupProvide> export declare const radioGroupProps: { /** 会自动选中value对应的单选框 */ modelValue: (NumberConstructor | StringConstructor | BooleanConstructor)[] /** 单选框形状,可选值为 dot / button / check,默认为 check */ shape: { type: import('vue').PropType<RadioShape> default: RadioShape } /** 选中的颜色,默认为 #4D80F0 */ checkedColor: StringConstructor /** 是否禁用,默认为 false */ disabled: { type: BooleanConstructor default: boolean } /** 表单模式,默认为 false */ cell: { type: BooleanConstructor default: boolean } /** 设置大小,默认为空 */ size: { type: import('vue').PropType<string> default: string } /** 同行展示,默认为 false */ inline: { type: BooleanConstructor default: boolean } customStyle: { type: import('vue').PropType<string> default: string } customClass: { type: import('vue').PropType<string> default: string } }