UNPKG

vant

Version:

Mobile UI Components built on Vue

40 lines (39 loc) 1.8 kB
import { type PropType, type InjectionKey, type ExtractPropTypes } from 'vue'; import type { RadioShape } from '../radio'; import type { CheckerDirection } from '../checkbox/Checker'; export type RadioGroupDirection = CheckerDirection; export declare const radioGroupProps: { shape: PropType<RadioShape>; disabled: BooleanConstructor; iconSize: (NumberConstructor | StringConstructor)[]; direction: PropType<CheckerDirection>; modelValue: PropType<unknown>; checkedColor: StringConstructor; }; export type RadioGroupProps = ExtractPropTypes<typeof radioGroupProps>; export type RadioGroupProvide = { props: RadioGroupProps; updateValue: (value: unknown) => void; }; export declare const RADIO_KEY: InjectionKey<RadioGroupProvide>; declare const _default: import("vue").DefineComponent<{ shape: PropType<RadioShape>; disabled: BooleanConstructor; iconSize: (NumberConstructor | StringConstructor)[]; direction: PropType<CheckerDirection>; modelValue: PropType<unknown>; checkedColor: StringConstructor; }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{ shape: PropType<RadioShape>; disabled: BooleanConstructor; iconSize: (NumberConstructor | StringConstructor)[]; direction: PropType<CheckerDirection>; modelValue: PropType<unknown>; checkedColor: StringConstructor; }>> & { onChange?: ((...args: any[]) => any) | undefined; "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined; }, { disabled: boolean; }, {}>; export default _default;