diff --git a/packages/vantui/src/calendar/components/longSpan/index.tsx b/packages/vantui/src/calendar/components/longSpan/index.tsx index 6eee9276e..d6c75e137 100644 --- a/packages/vantui/src/calendar/components/longSpan/index.tsx +++ b/packages/vantui/src/calendar/components/longSpan/index.tsx @@ -1,5 +1,5 @@ import { useState, useEffect, useMemo } from 'react' -import { View } from '@tarojs/components' +import { ScrollView, View } from '@tarojs/components' import { Button } from '../../../button' type IProps = { @@ -70,45 +70,46 @@ export function LongSpan(props: IProps) { return ( 切换年月 - - 年份选择 - - {data.map((item, index) => ( - - ))} - - 月选择 - - {monthData.map((item) => ( - - ))} - + + 年份选择 + + {data.map((item, index) => ( + + ))} + + 月选择 + + {monthData.map((item) => ( + + ))} + +