<template>
<div>
<div id="test" style="border: 1px solid #ddd">
<span>我是id为test标签</span>
</div>
<VenTeleport to="#test">
<span>我是Teleport组件内元素,传送到id为test标签内</span>
</VenTeleport>
</div>
</template>
<script>
export default {
methods: {
saveImage(data) {
console.log(data);
},
}
}
</script>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20