UNPKG

1.85 kBTypeScriptView Raw
1import { type PropType, type InjectionKey, type ExtractPropTypes } from 'vue';
2import type { RadioShape } from '../radio';
3import type { CheckerDirection } from '../checkbox/Checker';
4export type RadioGroupDirection = CheckerDirection;
5export declare const radioGroupProps: {
6 shape: PropType<RadioShape>;
7 disabled: BooleanConstructor;
8 iconSize: (NumberConstructor | StringConstructor)[];
9 direction: PropType<RadioGroupDirection>;
10 modelValue: PropType<unknown>;
11 checkedColor: StringConstructor;
12};
13export type RadioGroupProps = ExtractPropTypes<typeof radioGroupProps>;
14export type RadioGroupProvide = {
15 props: RadioGroupProps;
16 updateValue: (value: unknown) => void;
17};
18export declare const RADIO_KEY: InjectionKey<RadioGroupProvide>;
19declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
20 shape: PropType<RadioShape>;
21 disabled: BooleanConstructor;
22 iconSize: (NumberConstructor | StringConstructor)[];
23 direction: PropType<RadioGroupDirection>;
24 modelValue: PropType<unknown>;
25 checkedColor: StringConstructor;
26}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").PublicProps, Readonly<ExtractPropTypes<{
27 shape: PropType<RadioShape>;
28 disabled: BooleanConstructor;
29 iconSize: (NumberConstructor | StringConstructor)[];
30 direction: PropType<RadioGroupDirection>;
31 modelValue: PropType<unknown>;
32 checkedColor: StringConstructor;
33}>> & Readonly<{
34 onChange?: ((...args: any[]) => any) | undefined;
35 "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
36}>, {
37 disabled: boolean;
38}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
39export default _default;
40
\No newline at end of file