2***@qq.com
2***@qq.com
  • 发布:2020-09-24 15:26
  • 更新:2020-12-21 16:41
  • 阅读:1453

【报Bug】date picker在ios14展示不完整

分类:uni-app

产品分类: uniapp/小程序/微信

PC开发环境操作系统: Mac

PC开发环境操作系统版本号: macOS Catalina

HBuilderX类型: 正式

HBuilderX版本号: 2.7.14

第三方开发者工具版本号: 1.03.2009140

基础库版本号: 2.13.0

项目创建方式: HBuilderX

操作步骤:
<picker mode="date" :value="date" :start="startDate" :end="endDate" @change="bindDateChange">  
                        <span class="uni-input">{{date}}</span>  
                        <span class="iconfont icon-xiala-fill"></span>  
                    </picker>  

<script>  
export default {  
     data() {  
         const currentDate = this.getDate({  
             format: true  
         })  
         return {  
               date: currentDate,  
         }   
    },  
    computed: {  
         startDate() {  
                return this.getDate('start');  
            },  
            endDate() {  
                return this.getDate('end');  
            }  
    }  
    methods: {  
         getDate(type) {  
                const date = new Date();  
                let year = date.getFullYear();  
                let month = date.getMonth() + 1;  
                let day = date.getDate();  

                if (type === 'start') {  
                    year = year - 60;  
                } else if (type === 'end') {  
                    year = year + 2;  
                }  
                month = month > 9 ? month : '0' + month;;  
                day = day > 9 ? day : '0' + day;  
                return `${year}-${month}-${day}`;  
            }  
    }  
}  
</script>  

预期结果:

正常显示日期选择器

实际结果:

日期选择器显示不完整

bug描述:

2020-09-24 15:26 负责人:无 分享
已邀请:
DCloud_UNI_GSQ

DCloud_UNI_GSQ

已反馈给微信小程序官方开发人员,处理中

1***@163.com

1***@163.com

和你遇到了同样的问题,不知道是否解决了

  • 2***@qq.com (作者)

    找了其他的第三方插件解决了

    2020-12-31 11:33

该问题目前已经被锁定, 无法添加新回复