提交 aafa79ac 编写于 作者: Q qiang

fix: 解决 iOS uni.showToast 部分情况文本显示不全的问题

上级 1c55a219
......@@ -37,10 +37,8 @@ export function showToast ({
waiting.close()
}
if (~['top', 'center', 'bottom'].indexOf(position)) {
const richText = `<span>${title}</span>`
plus.nativeUI.toast(richText, {
plus.nativeUI.toast(title, {
verticalAlign: position,
type: 'richtext'
})
toast = true
toastTimeout = setTimeout(() => {
......@@ -134,7 +132,7 @@ export function showModal ({
cancelColor = '#000000',
confirmText = '确定',
confirmColor = '#3CC51F'
} = {}, callbackId) {
} = {}, callbackId) {
content = content || ' '
plus.nativeUI.confirm(content, (e) => {
if (showCancel) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册