2018-01-12 19:04:42 +08:00
|
|
|
import PropTypes from '../_util/vue-types'
|
2018-01-15 17:33:34 +08:00
|
|
|
export default () => ({
|
2018-01-12 19:04:42 +08:00
|
|
|
prefixCls: PropTypes.string.def('ant-btn'),
|
|
|
|
type: PropTypes.oneOf(['primary', 'danger', 'dashed', 'ghost', 'default']).def('default'),
|
|
|
|
htmlType: PropTypes.oneOf(['button', 'submit', 'reset']).def('button'),
|
|
|
|
icon: PropTypes.string,
|
|
|
|
shape: PropTypes.oneOf(['circle', 'circle-outline']),
|
|
|
|
size: PropTypes.oneOf(['small', 'large', 'default']).def('default'),
|
|
|
|
loading: PropTypes.oneOfType([PropTypes.bool, PropTypes.object]),
|
|
|
|
disabled: PropTypes.bool,
|
|
|
|
ghost: PropTypes.bool,
|
2018-01-15 17:33:34 +08:00
|
|
|
})
|