ant-design-vue/components/vc-switch/PropTypes.js
zkwolf 6f903c3a75
feat: update switch (#2439)
* feat: update switch

* fix: avoid bind attrs to root

* test: update switch

* docs: update switch breakchange

* style: remove unused import

Co-authored-by: tangjinzhou <415800467@qq.com>
2020-06-23 15:45:30 +08:00

17 lines
527 B
JavaScript

import PropTypes from '../_util/vue-types';
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,
defaultChecked: PropTypes.bool.def(false),
autoFocus: PropTypes.bool.def(false),
loadingIcon: PropTypes.any,
};