feat: 添加日期页签

This commit is contained in:
huxiaoshuang
2022-11-25 11:25:24 +08:00
parent 874e128b49
commit 9bec14d5be

View File

@@ -6,6 +6,8 @@ import {
Grid, Grid,
GridItem, GridItem,
Row, Row,
Tab,
Tabs,
Tag, Tag,
Toast, Toast,
} from "@antmjs/vantui"; } from "@antmjs/vantui";
@@ -329,7 +331,6 @@ const Home = () => {
}); });
}} }}
/> */} /> */}
</Grid> </Grid>
{/* 分割线 */} {/* 分割线 */}
@@ -349,6 +350,15 @@ const Home = () => {
</View> </View>
</View> */} </View> */}
{/* 日期页签 */}
{/* <Tabs onClick={() => {}}>
<Tab title="今天">今天</Tab>
<Tab title="明天">明天</Tab>
<Tab title="后天">后天</Tab>
<Tab title="周六">周六</Tab>
<Tab title="周日">周日</Tab>
</Tabs> */}
{/* 截取数组2个活动 */} {/* 截取数组2个活动 */}
{details.splice(0, 2).map((item: any, index: any) => { {details.splice(0, 2).map((item: any, index: any) => {
return ( return (