|
@@ -7,7 +7,7 @@
|
|
|
/>
|
|
/>
|
|
|
|
|
|
|
|
<!-- 新规则:使用 richTextList -->
|
|
<!-- 新规则:使用 richTextList -->
|
|
|
- <div v-if="richTextList && richTextList.length > 0" class="rich-text-container">
|
|
|
|
|
|
|
+ <div v-if="richTextList && richTextList.length > 0" class="rich-text-container" :style="bodyStyles">
|
|
|
<template v-for="(block, index) in parsedBlocks">
|
|
<template v-for="(block, index) in parsedBlocks">
|
|
|
<!-- 文字块:包含 word_list -->
|
|
<!-- 文字块:包含 word_list -->
|
|
|
<span
|
|
<span
|
|
@@ -107,7 +107,7 @@
|
|
|
|
|
|
|
|
<!-- 老规则:使用 paragraphList -->
|
|
<!-- 老规则:使用 paragraphList -->
|
|
|
<template v-else-if="paragraphList && paragraphList.length > 0">
|
|
<template v-else-if="paragraphList && paragraphList.length > 0">
|
|
|
- <div v-for="(paragraph, pIndex) in paragraphList" :key="pIndex" class="pinyin-paragraph">
|
|
|
|
|
|
|
+ <div v-for="(paragraph, pIndex) in paragraphList" :key="pIndex" class="pinyin-paragraph" :style="bodyStyles">
|
|
|
<div
|
|
<div
|
|
|
v-for="(sentence, sIndex) in paragraph"
|
|
v-for="(sentence, sIndex) in paragraph"
|
|
|
:key="sIndex"
|
|
:key="sIndex"
|
|
@@ -236,6 +236,10 @@ export default {
|
|
|
type: String,
|
|
type: String,
|
|
|
default: '0px 0px 0px 0px',
|
|
default: '0px 0px 0px 0px',
|
|
|
},
|
|
},
|
|
|
|
|
+ bodyStyles: {
|
|
|
|
|
+ type: Object,
|
|
|
|
|
+ default: () => ({}),
|
|
|
|
|
+ },
|
|
|
},
|
|
},
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|