<!--
 * @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>