<template>
	<textarea type="text" v-model="myData.inputValue" />
	<button v-copy="myData.copyValue" @click="handelClik">点击复制</button>
	<button v-vPrint>点击打印</button>
</template>

<script setup lang="ts">
import { reactive } from 'vue';
const myData = reactive({
	inputValue: '我是被复制的内容 🍒🍇🍊，2023-4-21 14:02:59',
	copyValue: '',
});

const handelClik = () => {
	myData.copyValue = myData.inputValue;
};
</script>
<style scoped lang="scss">
textarea {
	width: 500px;
	height: 300px;
	outline: 1px solid #f4dde5;
}
</style>
