2019-01-01 04:13:51 +00:00
|
|
|
// Project: https://github.com/vueComponent/ant-design-vue
|
|
|
|
// Definitions by: akki-jat <https://github.com/akki-jat>
|
|
|
|
// Definitions: https://github.com/vueComponent/ant-design-vue/types
|
|
|
|
|
2019-01-12 03:33:27 +00:00
|
|
|
import { AntdComponent } from '../component';
|
2019-01-01 04:13:51 +00:00
|
|
|
|
|
|
|
export declare class RadioGroup extends AntdComponent {
|
2020-08-18 02:12:57 +00:00
|
|
|
$props: {
|
|
|
|
/**
|
2020-08-30 14:59:47 +00:00
|
|
|
* Specifies the initial state: whether or not the radio is selected.
|
|
|
|
* @type boolean
|
|
|
|
*/
|
2020-08-18 02:12:57 +00:00
|
|
|
defaultValue?: any;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Disable radio
|
|
|
|
* @default false
|
|
|
|
* @type boolean
|
|
|
|
*/
|
|
|
|
disabled?: boolean;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The name property of all input[type="radio"] children
|
|
|
|
* @type string
|
|
|
|
*/
|
|
|
|
name?: string;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* set children optional
|
|
|
|
* @type Array<string | { label: string, value: string, disabled?: boolean }>
|
|
|
|
*/
|
|
|
|
options?: Array<string | { label: string; value: string; disabled?: boolean }>;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* size for radio button style
|
|
|
|
* @default 'default'
|
|
|
|
* @type String
|
|
|
|
*/
|
|
|
|
size?: 'large' | 'default' | 'small';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Used for setting the currently selected value.
|
|
|
|
* @type any
|
|
|
|
*/
|
|
|
|
value?: any;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* style type of radio button
|
|
|
|
* @default 'outline'
|
|
|
|
* @type string
|
|
|
|
*/
|
|
|
|
buttonStyle?: 'outline' | 'solid';
|
|
|
|
/**
|
|
|
|
* The callback function that is triggered when the state changes.
|
|
|
|
*/
|
2020-08-30 14:59:47 +00:00
|
|
|
onChange?: (e: Event) => void;
|
|
|
|
};
|
2019-01-01 04:13:51 +00:00
|
|
|
}
|