diff --git a/components/space/index.jsx b/components/space/index.jsx index 914c3cfe0..1faf605d7 100644 --- a/components/space/index.jsx +++ b/components/space/index.jsx @@ -21,7 +21,7 @@ export const SpaceProps = { align: PropTypes.oneOf(['start', 'end', 'center', 'baseline']), }; -const ASpace = (props, { slots }) => { +const Space = (props, { slots }) => { const configProvider = inject('configProvider', ConfigConsumerProps); const { align, size, direction, prefixCls: customizePrefixCls } = props; @@ -67,13 +67,13 @@ const ASpace = (props, { slots }) => { ); }; -ASpace.props = initDefaultProps(SpaceProps, { +Space.props = initDefaultProps(SpaceProps, { size: 'small', direction: 'horizontal', }); /* istanbul ignore next */ -ASpace.install = function(app) { - app.component(ASpace.name, ASpace); +Space.install = function(app) { + app.component('ASpace', Space); }; -export default ASpace; +export default Space;