|
@@ -36,8 +36,27 @@ onMounted(()=>{
|
|
<td v-for="(col,colIndex) in row"
|
|
<td v-for="(col,colIndex) in row"
|
|
:key="colIndex"
|
|
:key="colIndex"
|
|
:rowspan="col.mc.rs===0?1:col.mc.rs"
|
|
:rowspan="col.mc.rs===0?1:col.mc.rs"
|
|
- :colspan="col.mc.cs===0?1:col.mc.cs">
|
|
|
|
- <div>{{col.m}}</div>
|
|
|
|
|
|
+ :colspan="col.mc.cs===0?1:col.mc.cs"
|
|
|
|
+ :style="`
|
|
|
|
+ color: ${col.fc};
|
|
|
|
+ font-weight: ${col.bl ? 'bold' : 'normal'};
|
|
|
|
+ font-style: ${col.it ? 'italic' : 'normal'};
|
|
|
|
+ background: ${col.bg||'transparent'};
|
|
|
|
+ `"
|
|
|
|
+ >
|
|
|
|
+ <!-- 单元格拆分 -->
|
|
|
|
+ <div class="split-word" v-if="col.ct.s">
|
|
|
|
+ <span
|
|
|
|
+ v-for="(word,word_index) in col.ct.s"
|
|
|
|
+ :key="`${rowIndex}_${colIndex}_${word_index}`"
|
|
|
|
+ :style="`
|
|
|
|
+ color: ${word.fc};
|
|
|
|
+ font-weight: ${word.bl ? 'bold' : 'normal'};
|
|
|
|
+ font-style: ${word.it ? 'italic' : 'normal'};
|
|
|
|
+ `"
|
|
|
|
+ >{{word.v}}</span>
|
|
|
|
+ </div>
|
|
|
|
+ <div v-else>{{col.m}}</div>
|
|
</td>
|
|
</td>
|
|
</tr>
|
|
</tr>
|
|
</tbody>
|
|
</tbody>
|