【精讲vue】框架 vant左右联动组件 h5页面

 具体模板如下:

<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
        <title>基于Vant商品分类左右联动</title>
        <!-- 引入样式文件 -->
        <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/lib/index.css" />
    </head>
    <body>
        <div id="app">
            <div>
                <van-tabs v-model="active" scrollspy>
                    <van-tab v-for="index in 8" :title="'选项选项'+index">
                        <div style="height: 150px;">
                            内容 {

猜你喜欢

转载自blog.csdn.net/m0_59505309/article/details/127016970