You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
532 B
34 lines
532 B
<!--
|
|
* @Author: ch
|
|
* @Date: 2022-04-21 17:27:16
|
|
* @LastEditors: ch
|
|
* @LastEditTime: 2022-04-21 17:35:17
|
|
* @Description: file content
|
|
-->
|
|
<template>
|
|
<text @click="copy" class="ui-copy">复制</text>
|
|
</template>
|
|
<script>
|
|
export default {
|
|
props : {
|
|
value : {
|
|
type : String | Number,
|
|
default : ''
|
|
}
|
|
},
|
|
methods : {
|
|
copy(){
|
|
uni.setClipboardData({
|
|
data : this.value,
|
|
showToast : true
|
|
})
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
<style lang="scss" scoped>
|
|
.ui-copy{
|
|
color: $color-yellow4;
|
|
font-size: $font-size-sm;
|
|
}
|
|
</style> |