14 lines
498 B
TypeScript
14 lines
498 B
TypeScript
import type { SwitchProps } from 'antd';
|
|
import React from 'react';
|
|
import type { ProFormFieldItemProps } from '../../typing';
|
|
export type ProFormSwitchProps = Omit<ProFormFieldItemProps<SwitchProps, HTMLElement>, 'emptyText'> & {
|
|
checkedChildren?: SwitchProps['checkedChildren'];
|
|
unCheckedChildren?: SwitchProps['unCheckedChildren'];
|
|
};
|
|
/**
|
|
* @zh-cn 单选 Switch
|
|
* @en-us Single Choice Switch
|
|
*/
|
|
declare const ProFormSwitch: React.FC<ProFormSwitchProps>;
|
|
export default ProFormSwitch;
|