<template>
	<view class="bookSynopsisInfo_content">
		<view class="bookSynopsisInfo_body">
			<view class="bookSynopsisInfo_title">
				书籍简介
			</view>
			<view class="bookSynopsisInfo_box">
				<u-read-more ref="uReadMore" showHeight="200rpx" fontSize="30rpx" :toggle="true" closeText="展开"
					openText="收起" color="#FF728F">
					<u-parse :content="bookInfo.intro" @load="load"></u-parse>
				</u-read-more>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		props: {
			bookInfo: {
				type: Object,
				default: {
					intro: '',
				}
			}
		},
		data() {
			return {
				// content: '叶家小神医叶明沁带着自家二哈哥哥穿越了！开局不打怪， 不宅斗， 而是…… 逃荒！可怜叶家兄妹从小锦衣玉食， 这下没了父母留下的巨额遗产， 两兄妹相依为命， 孤苦伶仃……但是， 没了遗产， 咱有金手指， 随拿随补充的综合商城和酒窖， 兄妹俩不仅不会孤苦伶仃， 还完全可以混吃等死。'
			}
		},
		methods: {
			load() {
				this.$refs.uReadMore.init();
			}
		}
	}
</script>

<style lang="scss" scoped>
	.bookSynopsisInfo_box::v-deep.u-read-more__content__inner {
		span {
			line-height: 1.8;
		}
	}

	.bookSynopsisInfo_box::v-deep.u-read-more__toggle {
		justify-content: flex-end;
		.u-text__value {
			font-size: 26rpx !important;
		}
	}

	.bookSynopsisInfo_content {
		width: 100%;

		.bookSynopsisInfo_body {
			width: 100%;

			.bookSynopsisInfo_title {
				color: #1A1A1A;
				line-height: 1;
				font-size: 36rpx;
			}

			.bookSynopsisInfo_box {
				margin-top: 30rpx;

			}
		}
	}
</style>