2019-01-12 03:33:27 +00:00
|
|
|
import PropTypes 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: PropTypes.oneOfType([PropTypes.bool, PropTypes.object]),
|
|
|
|
disabled: PropTypes.bool,
|
|
|
|
ghost: PropTypes.bool,
|
2018-09-05 13:28:54 +00:00
|
|
|
block: PropTypes.bool,
|
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
|
|
|
});
|