Skip to content

Commit dd5df85

Browse files
committed
feat: update skeleton support multiple chilren
1 parent d10ae9c commit dd5df85

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

components/skeleton/index.jsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,8 @@ const Skeleton = {
157157
</div>
158158
);
159159
}
160-
return <span>{this.$slots.default}</span>;
160+
const children = this.$slots.default;
161+
return children && children.length === 1 ? children[0] : <span>{children}</span>;
161162
},
162163
};
163164
/* istanbul ignore next */

0 commit comments

Comments
 (0)