ant-design-vue/components/vc-switch/PropTypes.js

17 lines
527 B
JavaScript
Raw Normal View History

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,
tabindex: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
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
};