<template>
<view class="u-p-30">
<u-divider>{
{year}}年{
{month}}月{
{day}}日</u-divider>
<picker-view :indicator-style="`height:88rpx;`" :value="value" @change="change" class="picker-view">
<picker-view-column>
<view class="item" v-for="(item,index) in years" :key="index">{
{item}}年</view>
</picker-view-column>
<picker-view-column>
<view class="item" v-for="(item,index) in months" :key="index">{
{item}}月</view>
</picker-view-column>
<picker-view-column>
<view class
uni-app picker-view picker-view-column 选择日期的一个例子
最新推荐文章于 2024-06-20 18:01:35 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)