first commit
This commit is contained in:
37
frontend/node_modules/antd/lib/switch/index.d.ts
generated
vendored
Normal file
37
frontend/node_modules/antd/lib/switch/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
import * as React from 'react';
|
||||
import type { SwitchChangeEventHandler, SwitchClickEventHandler } from 'rc-switch';
|
||||
export type SwitchSize = 'small' | 'default';
|
||||
export type { SwitchChangeEventHandler, SwitchClickEventHandler };
|
||||
export interface SwitchProps {
|
||||
prefixCls?: string;
|
||||
size?: SwitchSize;
|
||||
className?: string;
|
||||
rootClassName?: string;
|
||||
checked?: boolean;
|
||||
defaultChecked?: boolean;
|
||||
/**
|
||||
* Alias for `checked`.
|
||||
* @since 5.12.0
|
||||
*/
|
||||
value?: boolean;
|
||||
/**
|
||||
* Alias for `defaultChecked`.
|
||||
* @since 5.12.0
|
||||
*/
|
||||
defaultValue?: boolean;
|
||||
onChange?: SwitchChangeEventHandler;
|
||||
onClick?: SwitchClickEventHandler;
|
||||
checkedChildren?: React.ReactNode;
|
||||
unCheckedChildren?: React.ReactNode;
|
||||
disabled?: boolean;
|
||||
loading?: boolean;
|
||||
autoFocus?: boolean;
|
||||
style?: React.CSSProperties;
|
||||
title?: string;
|
||||
tabIndex?: number;
|
||||
id?: string;
|
||||
}
|
||||
declare const InternalSwitch: React.ForwardRefExoticComponent<SwitchProps & React.RefAttributes<HTMLButtonElement>>;
|
||||
type CompoundedComponent = typeof InternalSwitch & {};
|
||||
declare const Switch: CompoundedComponent;
|
||||
export default Switch;
|
||||
Reference in New Issue
Block a user