<uni-popup ref="popup" type="top">
<uni-datetime-picker v-model="daterange" type="daterange" />
</uni-popup>
// 显示popup,选择时间则会必现
this.$refs.popup.open();
产品分类: uniapp/小程序/微信
PC开发环境操作系统: Mac
PC开发环境操作系统版本号: mac OS 13.7.7
HBuilderX类型: 正式
HBuilderX版本号: 4.84
第三方开发者工具版本号: 2.01.2510241 RC
基础库版本号: 3.11.0
项目创建方式: HBuilderX
<uni-popup ref="popup" type="top">
<uni-datetime-picker v-model="daterange" type="daterange" />
</uni-popup>
// 显示popup,选择时间则会必现
this.$refs.popup.open();
在onReady中显示popup
this.$refs.popup.open();
与pc端保持一致
时间选择器显示不全
uni-datetime-picker组件,在popup中表现不佳,popup设置type为top时,在小程序开发工具中显示不全,取决于外层的高度,但是在PC端显示正常