1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
| import {
| t
| } from 'uni-core/helpers/i18n'
|
| export const setClipboardData = {
| data: {
| type: String,
| required: true
| },
| showToast: {
| type: Boolean,
| default: true
| },
| beforeSuccess (res, params) {
| if (!params.showToast) return
| const title = t('uni.setClipboardData.success')
| if (title) {
| uni.showToast({
| title,
| icon: 'success',
| mask: false,
| style: {
| width: undefined
| }
| })
| }
| }
| }
|
|