index.vue 548 字节
Newer Older
东方怂天's avatar
东方怂天 已提交
1 2
<template>
	<view class="content">
东方怂天's avatar
Newly  
东方怂天 已提交
3 4
		<view class="BookShelf">
			<BookCard v-for="i in 5" :key="i" :BookName="BookName"></BookCard>
东方怂天's avatar
东方怂天 已提交
5 6 7 8 9 10 11 12 13 14 15 16
		</view>
	</view>
</template>

<script>
	import BookCard from "../../components/BookCard.vue"
	export default {
		components: {
			BookCard
		},
		data() {
			return {
东方怂天's avatar
Newly  
东方怂天 已提交
17
				BookName: "这是一段测试书名"
东方怂天's avatar
东方怂天 已提交
18 19 20 21 22 23 24 25 26 27 28
			}
		},
		onLoad() {

		},
		methods: {

		}
	}
</script>

东方怂天's avatar
东方怂天 已提交
29
<style scoped>
东方怂天's avatar
Newly  
东方怂天 已提交
30 31
	.content,
	.BookShelf {
东方怂天's avatar
东方怂天 已提交
32 33 34 35 36 37
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}
</style>