微信小程序给wx.showToast 更换图标 icon 种类

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_39702981/article/details/86707520

icon

图标。

属性名 类型 默认值 说明
type String   icon的类型,有效值:success, success_no_circle, info, warn, waiting, cancel, download, search, clear
size Number / String 23px icon的大小,单位px(2.4.0起支持rpx)
color Color   icon的颜色,同css的color
aria-label String   无障碍访问,(属性)元素的额外描述 2.5.0
wx.showToast({
    title: '上传图片不能大于1M!',  //标题
    icon: 'none',  
    duration: 2000
})

icon

猜你喜欢

转载自blog.csdn.net/qq_39702981/article/details/86707520