chore: update type switch (#2695)
parent
f34a5d962f
commit
203e8c6b92
|
@ -3,62 +3,64 @@
|
||||||
// Definitions: https://github.com/vueComponent/ant-design-vue/types
|
// Definitions: https://github.com/vueComponent/ant-design-vue/types
|
||||||
|
|
||||||
import { AntdComponent } from './component';
|
import { AntdComponent } from './component';
|
||||||
|
import { VNodeChild } from 'vue';
|
||||||
export declare class Switch extends AntdComponent {
|
export declare class Switch extends AntdComponent {
|
||||||
/**
|
$props: {
|
||||||
|
/**
|
||||||
* get focus when component mounted
|
* get focus when component mounted
|
||||||
* @default false
|
* @default false
|
||||||
* @type boolean
|
* @type boolean
|
||||||
*/
|
*/
|
||||||
autofocus: boolean;
|
autofocus?: boolean;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* determine whether the Switch is checked
|
* determine whether the Switch is checked
|
||||||
* @default false
|
* @default false
|
||||||
* @type boolean
|
* @type boolean
|
||||||
*/
|
*/
|
||||||
checked: boolean;
|
checked?: boolean;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* content to be shown when the state is checked
|
* content to be shown when the state is checked
|
||||||
* @type any (string | slot)
|
* @type any (string | slot)
|
||||||
*/
|
*/
|
||||||
checkedChildren: any;
|
checkedChildren?: VNodeChild | JSX.Element;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* to set the initial state
|
* to set the initial state
|
||||||
* @default false
|
* @default false
|
||||||
* @type boolean
|
* @type boolean
|
||||||
*/
|
*/
|
||||||
defaultChecked: boolean;
|
defaultChecked?: boolean;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Disable switch
|
* Disable switch
|
||||||
* @default false
|
* @default false
|
||||||
* @type boolean
|
* @type boolean
|
||||||
*/
|
*/
|
||||||
disabled: boolean;
|
disabled?: boolean;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* loading state of switch
|
* loading state of switch
|
||||||
* @default false
|
* @default false
|
||||||
* @type boolean
|
* @type boolean
|
||||||
*/
|
*/
|
||||||
loading: boolean;
|
loading?: boolean;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* the size of the Switch, options: default small
|
* the size of the Switch, options: default small
|
||||||
* @default 'default'
|
* @default 'default'
|
||||||
* @type string
|
* @type string
|
||||||
*/
|
*/
|
||||||
size: 'small' | 'default' | 'large';
|
size?: 'small' | 'default' | 'large';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* content to be shown when the state is unchecked
|
* content to be shown when the state is unchecked
|
||||||
* @type any (string | slot)
|
* @type any (string | slot)
|
||||||
*/
|
*/
|
||||||
unCheckedChildren: any;
|
unCheckedChildren?: VNodeChild | JSX.Element;
|
||||||
|
|
||||||
|
}
|
||||||
/**
|
/**
|
||||||
* remove focus
|
* remove focus
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue