|
|
|
@@ -12,6 +12,15 @@ export default async function initClipboard() { |
|
|
|
e.trigger.setAttribute('data-content', e.trigger.getAttribute('data-success')); |
|
|
|
$(`#${e.trigger.getAttribute('id')}`).popup('show'); |
|
|
|
e.trigger.setAttribute('data-content', e.trigger.getAttribute('data-original')); |
|
|
|
$('body') |
|
|
|
.toast({ |
|
|
|
message: '复制成功!', |
|
|
|
showProgress: 'bottom', |
|
|
|
showIcon:'check circle', |
|
|
|
class: 'success', |
|
|
|
position: 'top right', |
|
|
|
compact:false, |
|
|
|
}) |
|
|
|
}); |
|
|
|
|
|
|
|
clipboard.on('error', (e) => { |
|
|
|
|