代码示例:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/vant@2.10/lib/index.css">
</head>
<style>
img {
width: 100%;
height: 100%;
}
.my-swipe .van-swipe-item {
color: #fff;
font-size: 20px;
line-height: 150px;
text-align: center;
background-color: #39a9ed;
}
</style>
<body>
<div class="app">
<!-- <div class="img" v-for="(item,index) in imgList" :key="index">
<img v-lazy="item">
</div> -->
<div id="menu" style="display: flex;flex-direction: row;">
<van-dropdown-menu style="width: 50%;">
<van-dropdown-item v-model="value" :options="option" />
</van-dropdown-menu>
<van-dropdown-menu style="width: 50%;">
<van-dropdown-item title="筛选" ref="item">
<van-cell