index.vue
1.35 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<template>
<div class="book-item van-hairline--bottom" @click="handle">
<van-row>
<van-col span="6">
<van-image
width="5rem"
height="5rem"
:src="item.avatar"
style="text-align: center;"
/>
</van-col>
<van-col span="18" style="padding-left: 1rem;">
<p style="font-size: 1.15rem; color: #222222; font-weight: bold;">逃家小兔绘本</p>
<div style="font-size: 0.85rem; color: #999999; margin: 0.5rem 0;" class="van-multi-ellipsis--l2">
从前有一只小兔子,总是想要离家出走。有一天,他对妈妈说如果有大灰狼怎么办,不要把门打开
</div>
<div style="font-size: 0.85rem; color: #999999; margin-top: 0.5rem;">
<van-icon :name="icon_video" />
54个作品
</div>
</van-col>
</van-row>
</div>
</template>
<script setup>
import icon_video from '@images/video.png'
import { ref, reactive, onMounted } from 'vue'
const props = defineProps({
item: Object
})
const emit = defineEmits(['on-click']);
const handle = () => {
emit('on-click', '')
}
onMounted(() => {
})
</script>
<script>
export default {
data () {
return {
}
},
mounted () {
},
methods: {
}
}
</script>
<style lang="less" scoped>
.book-item {
margin: 1rem;
padding: 1rem;
}
</style>