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

17 lines
538 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,
2019-08-30 12:55:45 +08:00
tabIndex: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
2018-02-27 12:14:29 +08:00
checked: PropTypes.bool.def(false),
defaultChecked: PropTypes.bool.def(false),
autoFocus: PropTypes.bool.def(false),
2018-10-31 19:28:53 +08:00
loadingIcon: PropTypes.any,
2019-01-12 11:33:27 +08:00
};