chore(Layout): improve span

This commit is contained in:
chenjiahan
2020-08-25 15:29:19 +08:00
parent 25cbdecf25
commit a00e6f3474
2 changed files with 3 additions and 6 deletions
+2 -2
View File
@@ -27,8 +27,8 @@ export default createComponent({
const groups = [[]];
let totalSpan = 0;
children.value.forEach((item, index) => {
totalSpan += Number(item.value);
children.value.forEach((getSpan, index) => {
totalSpan += getSpan();
if (totalSpan > 24) {
groups.push([index]);