From f746775a0d7fc1e2a3b34e016b0418aee1829a7d Mon Sep 17 00:00:00 2001 From: neverland Date: Thu, 25 Feb 2021 10:01:32 +0800 Subject: [PATCH] chore(Row): remove todo (#8213) --- src/row/index.tsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/row/index.tsx b/src/row/index.tsx index c5c864b4b..8b5e694cf 100644 --- a/src/row/index.tsx +++ b/src/row/index.tsx @@ -1,5 +1,5 @@ import { computed, PropType, ComputedRef } from 'vue'; -import { createNamespace } from '../utils'; +import { createNamespace, ComponentInstance } from '../utils'; import { useChildren } from '@vant/use'; const [createComponent, bem] = createNamespace('row'); @@ -36,15 +36,13 @@ export default createComponent({ }, setup(props, { slots }) { - const { children, linkChildren } = useChildren(ROW_KEY); + const { children, linkChildren } = useChildren(ROW_KEY); const groups = computed(() => { const groups: number[][] = [[]]; let totalSpan = 0; children.forEach((child, index) => { - // TODO - // @ts-ignore totalSpan += Number(child.span); if (totalSpan > 24) {