From 057b80fedd3dfcd022c9e027f4fb69084d4792a4 Mon Sep 17 00:00:00 2001 From: tangjinzhou <415800467@qq.com> Date: Sun, 18 Oct 2020 21:49:37 +0800 Subject: [PATCH] fix: space not update --- components/space/index.tsx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/components/space/index.tsx b/components/space/index.tsx index 410103d5d..4806b4708 100644 --- a/components/space/index.tsx +++ b/components/space/index.tsx @@ -22,16 +22,16 @@ const Space = defineComponent({ }, setup(props, { slots }) { const configProvider = inject('configProvider', defaultConfigProvider); - const { - align, - size = 'small', - direction = 'horizontal', - prefixCls: customizePrefixCls, - } = props; - - const { getPrefixCls } = configProvider; return () => { + const { + align, + size = 'small', + direction = 'horizontal', + prefixCls: customizePrefixCls, + } = props; + + const { getPrefixCls } = configProvider; const prefixCls = getPrefixCls('space', customizePrefixCls); const items = filterEmpty(slots.default?.()); const len = items.length;