fix: space not update

feat-dayjs
tangjinzhou 2020-10-18 21:49:37 +08:00
parent 2c36bf0323
commit 057b80fedd
1 changed files with 8 additions and 8 deletions

View File

@ -22,6 +22,8 @@ const Space = defineComponent({
},
setup(props, { slots }) {
const configProvider = inject('configProvider', defaultConfigProvider);
return () => {
const {
align,
size = 'small',
@ -30,8 +32,6 @@ const Space = defineComponent({
} = props;
const { getPrefixCls } = configProvider;
return () => {
const prefixCls = getPrefixCls('space', customizePrefixCls);
const items = filterEmpty(slots.default?.());
const len = items.length;