fix: space not work

pull/2717/head^2
tanjinzhou 2020-08-19 15:23:50 +08:00
parent 8ed937344a
commit c5c822f467
1 changed files with 5 additions and 5 deletions

View File

@ -21,7 +21,7 @@ export const SpaceProps = {
align: PropTypes.oneOf(['start', 'end', 'center', 'baseline']), align: PropTypes.oneOf(['start', 'end', 'center', 'baseline']),
}; };
const ASpace = (props, { slots }) => { const Space = (props, { slots }) => {
const configProvider = inject('configProvider', ConfigConsumerProps); const configProvider = inject('configProvider', ConfigConsumerProps);
const { align, size, direction, prefixCls: customizePrefixCls } = props; const { align, size, direction, prefixCls: customizePrefixCls } = props;
@ -67,13 +67,13 @@ const ASpace = (props, { slots }) => {
</div> </div>
); );
}; };
ASpace.props = initDefaultProps(SpaceProps, { Space.props = initDefaultProps(SpaceProps, {
size: 'small', size: 'small',
direction: 'horizontal', direction: 'horizontal',
}); });
/* istanbul ignore next */ /* istanbul ignore next */
ASpace.install = function(app) { Space.install = function(app) {
app.component(ASpace.name, ASpace); app.component('ASpace', Space);
}; };
export default ASpace; export default Space;