2019-01-12 11:33:27 +08:00
|
|
|
import PropTypes from '../_util/vue-types';
|
2018-02-27 12:14:29 +08:00
|
|
|
|
|
|
|
export const switchPropTypes = {
|
|
|
|
prefixCls: PropTypes.string,
|
|
|
|
disabled: PropTypes.bool.def(false),
|
|
|
|
checkedChildren: PropTypes.any,
|
|
|
|
unCheckedChildren: PropTypes.any,
|
|
|
|
// onChange: PropTypes.func,
|
|
|
|
// onMouseUp: PropTypes.func,
|
|
|
|
// onClick: PropTypes.func,
|
2020-07-17 17:13:30 +08:00
|
|
|
tabindex: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
2020-06-23 15:45:30 +08:00
|
|
|
checked: PropTypes.bool,
|
2018-02-27 12:14:29 +08:00
|
|
|
defaultChecked: PropTypes.bool.def(false),
|
2020-07-17 17:36:58 +08:00
|
|
|
autofocus: PropTypes.bool.def(false),
|
2018-10-31 19:28:53 +08:00
|
|
|
loadingIcon: PropTypes.any,
|
2019-01-12 11:33:27 +08:00
|
|
|
};
|