衣天下
衣天下
  • 发布:2021-04-26 16:20
  • 更新:2021-04-26 16:20
  • 阅读:358

【报Bug】uni.showToast 在iPad上样式错误

分类:uni-app

产品分类: uniapp/App

PC开发环境操作系统: Mac

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

HBuilderX类型: 正式

HBuilderX版本号: 3.1.11

手机系统: iOS

手机系统版本号: iOS 13.4

手机厂商: 苹果

手机机型: ipad air 2

页面类型: vue

打包方式: 离线

项目创建方式: HBuilderX

示例代码:
<template>  
    <view class="content">  
        <image class="logo" src="/static/logo.png"></image>  
        <view class="text-area">  
            <text class="title" @tap='showHandler'>消息提示框</text>  
            <text class="title" @tap='LoadHandler'>加载框</text>  
            <text class="title" @tap='modalHandler'>模态弹窗</text>  
        </view>  
    </view>  
</template>  

<script>  
    export default {  
        data() {  
            return {  
                title: 'Hello'  
            }  
        },  
        onLoad() {  

        },  
        methods: {  
            showHandler(){  
                uni.showToast({  
                    title:'消息提示框'  
                })  
            },  
            LoadHandler(){  
                uni.showLoading({  
                    title:'加载框'  
                })  
                setTimeout(()=>{  
                    uni.hideLoading()  
                },3000)  
            },  
            modalHandler(){  
                uni.showModal({  
                    title:'模态弹窗'  
                })  
            }  
        }  
    }  
</script>  

<style>  
    .content {  
        display: flex;  
        flex-direction: column;  
        align-items: center;  
        justify-content: center;  
    }  

    .logo {  
        height: 200rpx;  
        width: 200rpx;  
        margin-top: 200rpx;  
        margin-left: auto;  
        margin-right: auto;  
        margin-bottom: 50rpx;  
    }  

    .text-area {  
        display: flex;  
        flex-direction: column;  
    }  

    .title {  
        border: 1rpx solid red;  
        padding: 10rpx;  
        font-size: 36rpx;  
        color: #8f8f94;  
    }  
</style>  

操作步骤:
uni.showToast({  
    title:'消息提示框'  
})

预期结果:
uni.showToast({  
    title:'消息提示框'  
})

实际结果:
uni.showToast({  
    title:'消息提示框'  
})

bug描述:

消息提示框以及load加载框样式错乱

2021-04-26 16:20 负责人:无 分享
已邀请:

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