hookehuyr

✨ feat(组件): 新增跳转我的页面组件

1 +<template>
2 + <div @click="handle">
3 + <img
4 + class="icon-me"
5 + referrerpolicy="no-referrer"
6 + :src="icon_me"
7 + />
8 + </div>
9 +</template>
10 +
11 +<script setup>
12 +import icon_me from '@images/me.png'
13 +import { ref, reactive, onMounted } from 'vue'
14 +const props = defineProps({
15 + type: String
16 +})
17 +const emit = defineEmits(['on-click']);
18 +const handle = () => {
19 + emit('on-click', '')
20 +}
21 + onMounted(() => {
22 +
23 + })
24 +</script>
25 +
26 +<script>
27 +export default {
28 + data () {
29 + return {
30 +
31 + }
32 + },
33 + mounted () {
34 +
35 + },
36 + methods: {
37 +
38 + }
39 +}
40 +</script>
41 +
42 +<style lang="less" scoped>
43 + .icon-me {
44 + z-index: 169;
45 + position: fixed;
46 + right: 2rem;
47 + bottom: 10rem;
48 + width: 44px;
49 + height: 44px;
50 + }
51 +</style>
...\ No newline at end of file ...\ No newline at end of file