|
@@ -2055,7 +2055,7 @@ export default {
|
|
|
/\[表格\|style=(.*?)\|class=(.*?)\]\n([\s\S]*?)(?=\[|$)/g,
|
|
|
(match, tableStyle, tableClass, tableContent) => {
|
|
|
const rows = tableContent.trim().split('\n')
|
|
|
- let tableHtml = `<table style="${tableStyle}" class="${tableClass}">`
|
|
|
+ let tableHtml = `<table style="${tableStyle};background-color:#ffff00;" class="${tableClass}">`
|
|
|
|
|
|
rows.forEach((row) => {
|
|
|
tableHtml += '<tr>'
|
|
@@ -2299,7 +2299,7 @@ export default {
|
|
|
class="replacement-content"
|
|
|
data-code="${currentCode}"
|
|
|
title="${chineseDescription}"
|
|
|
- style="background-color: #ffff00; padding: 2px 4px; border-radius: 2px; display: inline-block;"
|
|
|
+ style="background-color: #ffff00 !important; padding: 2px 4px; border-radius: 2px; display: inline-block;"
|
|
|
>${cleanContent}${chineseDescription ? `<span class="chinese-desc" style="color: #67c23a; margin-left: 4px; font-size: 0.9em;">(${chineseDescription})</span>` : ''}</span>`.trim()
|
|
|
|
|
|
// 处理表格和其他内容
|
|
@@ -2377,6 +2377,7 @@ export default {
|
|
|
if (tableElement) {
|
|
|
// 添加自适应行高样式
|
|
|
tableElement.style.borderCollapse = 'collapse'
|
|
|
+ tableElement.style.backgoroundColor='#ffff00'
|
|
|
|
|
|
// 处理表格行和单元格
|
|
|
tableElement.querySelectorAll('tr').forEach(row => {
|