bugfix: clip_to_clipboard
This commit is contained in:
parent
5fc9b3ef1c
commit
53e3aff7b0
10
unitool.js
10
unitool.js
@ -469,7 +469,7 @@ export default {
|
|||||||
}
|
}
|
||||||
// #ifdef APP-PLUS
|
// #ifdef APP-PLUS
|
||||||
uni.showToast({ icon: 'none', title, duration, ...rest })
|
uni.showToast({ icon: 'none', title, duration, ...rest })
|
||||||
// plus.nativeUI.toast( title, { align: center/left/right, verticalAlign: bottom/center/top, duration:long/short, icon, iconWidth, iconHeight, style: block/inline }) 对应 plus.nativeUI.closeToast()
|
// plus.nativeUI.toast( title, { align: center/left/right, verticalAlign: bottom/center/top, duration:long/short, icon, iconWidth, iconHeight, style: block/inline, type:text/richtext })
|
||||||
// #endif
|
// #endif
|
||||||
// #ifndef APP-PLUS
|
// #ifndef APP-PLUS
|
||||||
uni.showToast({ icon: 'none', image, title, duration, ...rest })
|
uni.showToast({ icon: 'none', image, title, duration, ...rest })
|
||||||
@ -619,11 +619,15 @@ export default {
|
|||||||
data: text,
|
data: text,
|
||||||
success: () => {
|
success: () => {
|
||||||
uni.hideToast()
|
uni.hideToast()
|
||||||
if (!hidePrompt)
|
if (!hidePrompt) {
|
||||||
|
if (text.length > promptLength) {
|
||||||
|
text = String(text).substring(0, promptLength) + ' ...'
|
||||||
|
}
|
||||||
wo?.tt?.showToast?.({
|
wo?.tt?.showToast?.({
|
||||||
type: 'success',
|
type: 'success',
|
||||||
title: `${wo?.ll?.({ zhCN: '已成功拷贝', enUS: 'Successfully copied' })}\n${String(text).substring(0, promptLength)}`,
|
title: `${wo?.ll?.({ zhCN: '已成功拷贝', enUS: 'Successfully copied' })}\n${text}`,
|
||||||
})
|
})
|
||||||
|
}
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user