perf : onCopy 方法提取到 mainMixinFun.js文件
This commit is contained in:
@@ -90,6 +90,11 @@ export default {
|
||||
const format = fmt || localStorage.getItem('nz-default-dateFormat')
|
||||
const date = moment.tz(str, format, offset).valueOf()
|
||||
return date
|
||||
},
|
||||
onCopy (txt) {
|
||||
this.$copyText(txt).then(() => {
|
||||
this.$message.success({ message: this.$t('overall.copySuccess') })
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user