my-item.vue
829 字节
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<template>
<view class="item-wrap">
<view class="my-item" v-for="item in myList" :key="item">
<image src="/static/logo.png" mode=""></image> {{item.name}}
</view>
</view>
</template>
<script setup>
import { myList } from '@/data/formDataList.js'
const emits = defineEmits(['toDifPages'])
const props = defineProps({
itemData: {
type: Object,
default: () => ({})
}
})
const toDifPages = (pageUrl) => {
emits('toDifPages', pageUrl)
}
</script>
<style lang="scss">
.item-wrap {
width: 702rpx;
height: 564rpx;
border-radius: 16rpx;
background: #ffffff;
padding: 0 24rpx;
box-sizing: border-box;
.my-item {
@include flexcenter();
height: 110rpx;
font-size: 30rpx;
font-weight: 700;
image {
width: 44rpx;
height: 44rpx;
margin-right: 24rpx;
}
}
}
</style>