mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
chore(Row): remove todo (#8213)
This commit is contained in:
parent
97e0414a8f
commit
f746775a0d
@ -1,5 +1,5 @@
|
|||||||
import { computed, PropType, ComputedRef } from 'vue';
|
import { computed, PropType, ComputedRef } from 'vue';
|
||||||
import { createNamespace } from '../utils';
|
import { createNamespace, ComponentInstance } from '../utils';
|
||||||
import { useChildren } from '@vant/use';
|
import { useChildren } from '@vant/use';
|
||||||
|
|
||||||
const [createComponent, bem] = createNamespace('row');
|
const [createComponent, bem] = createNamespace('row');
|
||||||
@ -36,15 +36,13 @@ export default createComponent({
|
|||||||
},
|
},
|
||||||
|
|
||||||
setup(props, { slots }) {
|
setup(props, { slots }) {
|
||||||
const { children, linkChildren } = useChildren(ROW_KEY);
|
const { children, linkChildren } = useChildren<ComponentInstance>(ROW_KEY);
|
||||||
|
|
||||||
const groups = computed(() => {
|
const groups = computed(() => {
|
||||||
const groups: number[][] = [[]];
|
const groups: number[][] = [[]];
|
||||||
|
|
||||||
let totalSpan = 0;
|
let totalSpan = 0;
|
||||||
children.forEach((child, index) => {
|
children.forEach((child, index) => {
|
||||||
// TODO
|
|
||||||
// @ts-ignore
|
|
||||||
totalSpan += Number(child.span);
|
totalSpan += Number(child.span);
|
||||||
|
|
||||||
if (totalSpan > 24) {
|
if (totalSpan > 24) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user