hongluan-ui
Version:
Hongluan Component Library for Vue 3
61 lines (60 loc) • 1.77 kB
TypeScript
import type { ExtractPropTypes, PropType } from 'vue';
import type Radio from './radio.vue';
export declare const radioProps: {
/**
* @description binding value
*/
modelValue: {
type: (BooleanConstructor | StringConstructor | NumberConstructor)[];
default: any;
};
/**
* @description the value of Radio
*/
value: {
type: (BooleanConstructor | StringConstructor | NumberConstructor)[];
default: any;
};
/**
* @description the value of Radio
*/
label: {
type: (BooleanConstructor | StringConstructor | NumberConstructor)[];
default: any;
};
/**
* @description whether Radio is disabled
*/
disabled: BooleanConstructor;
fill: BooleanConstructor;
custom: BooleanConstructor;
/**
* @description native `name` attribute
*/
name: {
type: StringConstructor;
default: any;
};
type: {
type: PropType<"success" | "info" | "warning" | "danger" | "link" | "primary">;
validator: (val: string) => boolean;
};
/**
* @description size of the Radio
*/
size: {
type: PropType<"xxxs" | "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | "xxxl">;
validator: (val: string) => boolean;
};
showLabel: {
type: BooleanConstructor;
default: boolean;
};
};
export declare const radioEmits: {
"update:modelValue": (val: string | number | boolean | undefined) => boolean;
change: (val: string | number | boolean | undefined) => boolean;
};
export declare type RadioProps = ExtractPropTypes<typeof radioProps>;
export declare type RadioEmits = typeof radioEmits;
export declare type RadioInstance = InstanceType<typeof Radio>;