fix(Skeleton): row为字符串数字时不能创建多行 (#10172)

This commit is contained in:
精武陈真 2022-01-11 09:21:14 +08:00 committed by GitHub
parent 216ee2945d
commit b0fbff0646
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -78,7 +78,7 @@ export default defineComponent({
};
const renderRows = () =>
Array(props.row)
Array(+props.row)
.fill('')
.map((_, i) => (
<div class={bem('row')} style={{ width: addUnit(getRowWidth(i)) }} />