ant-design-vue/components/button/buttonTypes.js

16 lines
618 B
JavaScript
Raw Normal View History

import PropTypes, { withUndefined } from '../_util/vue-types';
2018-01-15 09:33:34 +00:00
export default () => ({
2019-09-08 12:16:17 +00:00
prefixCls: PropTypes.string,
type: PropTypes.string,
2018-01-12 11:04:42 +00:00
htmlType: PropTypes.oneOf(['button', 'submit', 'reset']).def('button'),
2020-03-23 10:42:39 +00:00
// icon: PropTypes.string,
2019-03-13 01:38:54 +00:00
shape: PropTypes.oneOf(['circle', 'circle-outline', 'round']),
2018-01-12 11:04:42 +00:00
size: PropTypes.oneOf(['small', 'large', 'default']).def('default'),
loading: withUndefined(PropTypes.oneOfType([PropTypes.looseBool, PropTypes.object])),
disabled: PropTypes.looseBool,
ghost: PropTypes.looseBool,
block: PropTypes.looseBool,
2020-06-30 13:39:00 +00:00
icon: PropTypes.any,
2020-07-27 05:50:57 +00:00
onClick: PropTypes.func,
2019-01-12 03:33:27 +00:00
});