42 lines
1.0 KiB
TypeScript
42 lines
1.0 KiB
TypeScript
// 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
|
|
|
|
export declare class CheckboxGroup {
|
|
$props: {
|
|
/**
|
|
* Default selected value
|
|
* @type string[]
|
|
*/
|
|
defaultValue?: string[];
|
|
|
|
/**
|
|
* Disable all checkboxes
|
|
* @default false
|
|
* @type boolean
|
|
*/
|
|
disabled?: boolean;
|
|
|
|
/**
|
|
* Specifies options, you can customize `label` with slot = "label" slot-scope = "option"
|
|
* @type Array<string | { label: string, value: string, disabled?: boolean, onChange?: Function }>
|
|
*/
|
|
options?: Array<
|
|
string | { label: string; value: string; disabled?: boolean; onChange?: Function }
|
|
>;
|
|
|
|
/**
|
|
* Used for setting the currently selected value.
|
|
* @type string[]
|
|
*/
|
|
value: string[];
|
|
name?: string;
|
|
|
|
/**
|
|
* The callback function that is triggered when the state changes.
|
|
* @param e
|
|
*/
|
|
onChange?: (checkedValue?: any) => void;
|
|
};
|
|
}
|