|
@@ -246,6 +246,7 @@
|
|
|
: pItem.matchNotesObj.con && pItem.matchNotesObj.notesColor
|
|
: pItem.matchNotesObj.con && pItem.matchNotesObj.notesColor
|
|
|
? pItem.matchNotesObj.notesColor
|
|
? pItem.matchNotesObj.notesColor
|
|
|
: pItem.config.color,
|
|
: pItem.config.color,
|
|
|
|
|
+ whiteSpace: pItem.chs.trim() === '' ? 'pre' : '', // 保留空白分词
|
|
|
}"
|
|
}"
|
|
|
@click.stop="viewNotes($event, pItem.words ? pItem.words : pItem.chs, pItem)"
|
|
@click.stop="viewNotes($event, pItem.words ? pItem.words : pItem.chs, pItem)"
|
|
|
>{{ convertText(pItem.chs) }}</span
|
|
>{{ convertText(pItem.chs) }}</span
|
|
@@ -280,6 +281,7 @@
|
|
|
: pItem.matchNotesObj.con && pItem.matchNotesObj.notesColor
|
|
: pItem.matchNotesObj.con && pItem.matchNotesObj.notesColor
|
|
|
? pItem.matchNotesObj.notesColor
|
|
? pItem.matchNotesObj.notesColor
|
|
|
: pItem.config.color,
|
|
: pItem.config.color,
|
|
|
|
|
+ whiteSpace: pItem.chs.trim() === '' ? 'pre' : '', // 保留空白分词
|
|
|
}"
|
|
}"
|
|
|
@click.stop="viewNotes($event, pItem.words ? pItem.words : pItem.chs, pItem)"
|
|
@click.stop="viewNotes($event, pItem.words ? pItem.words : pItem.chs, pItem)"
|
|
|
>{{ convertText(pItem.chs) }}</span
|
|
>{{ convertText(pItem.chs) }}</span
|
|
@@ -372,6 +374,7 @@
|
|
|
item.wordsList[pIndex + 1].matchNotesObj.notesColor
|
|
item.wordsList[pIndex + 1].matchNotesObj.notesColor
|
|
|
? item.wordsList[pIndex + 1].matchNotesObj.notesColor
|
|
? item.wordsList[pIndex + 1].matchNotesObj.notesColor
|
|
|
: item.wordsList[pIndex + 1].config.color,
|
|
: item.wordsList[pIndex + 1].config.color,
|
|
|
|
|
+ whiteSpace: item.wordsList[pIndex + 1].chs.trim() === '' ? 'pre' : '', // 保留空白分词
|
|
|
}"
|
|
}"
|
|
|
@click.stop="
|
|
@click.stop="
|
|
|
viewNotes(
|
|
viewNotes(
|
|
@@ -418,6 +421,7 @@
|
|
|
item.wordsList[pIndex + 1].matchNotesObj.notesColor
|
|
item.wordsList[pIndex + 1].matchNotesObj.notesColor
|
|
|
? item.wordsList[pIndex + 1].matchNotesObj.notesColor
|
|
? item.wordsList[pIndex + 1].matchNotesObj.notesColor
|
|
|
: item.wordsList[pIndex + 1].config.color,
|
|
: item.wordsList[pIndex + 1].config.color,
|
|
|
|
|
+ whiteSpace: item.wordsList[pIndex + 1].chs.trim() === '' ? 'pre' : '', // 保留空白分词
|
|
|
}"
|
|
}"
|
|
|
@click.stop="
|
|
@click.stop="
|
|
|
viewNotes(
|
|
viewNotes(
|
|
@@ -539,6 +543,7 @@
|
|
|
item.wordsList[pIndex + 2].matchNotesObj.notesColor
|
|
item.wordsList[pIndex + 2].matchNotesObj.notesColor
|
|
|
? item.wordsList[pIndex + 2].matchNotesObj.notesColor
|
|
? item.wordsList[pIndex + 2].matchNotesObj.notesColor
|
|
|
: item.wordsList[pIndex + 2].config.color,
|
|
: item.wordsList[pIndex + 2].config.color,
|
|
|
|
|
+ whiteSpace: item.wordsList[pIndex + 2].chs.trim() === '' ? 'pre' : '', // 保留空白分词
|
|
|
}"
|
|
}"
|
|
|
@click.stop="
|
|
@click.stop="
|
|
|
viewNotes(
|
|
viewNotes(
|
|
@@ -592,6 +597,7 @@
|
|
|
item.wordsList[pIndex + 2].matchNotesObj.notesColor
|
|
item.wordsList[pIndex + 2].matchNotesObj.notesColor
|
|
|
? item.wordsList[pIndex + 2].matchNotesObj.notesColor
|
|
? item.wordsList[pIndex + 2].matchNotesObj.notesColor
|
|
|
: item.wordsList[pIndex + 2].config.color,
|
|
: item.wordsList[pIndex + 2].config.color,
|
|
|
|
|
+ whiteSpace: item.wordsList[pIndex + 2].chs.trim() === '' ? 'pre' : '', // 保留空白分词
|
|
|
}"
|
|
}"
|
|
|
@click.stop="
|
|
@click.stop="
|
|
|
viewNotes(
|
|
viewNotes(
|
|
@@ -694,6 +700,7 @@
|
|
|
: pItem.matchNotesObj.con && pItem.matchNotesObj.notesColor
|
|
: pItem.matchNotesObj.con && pItem.matchNotesObj.notesColor
|
|
|
? pItem.matchNotesObj.notesColor
|
|
? pItem.matchNotesObj.notesColor
|
|
|
: pItem.config.color,
|
|
: pItem.config.color,
|
|
|
|
|
+ whiteSpace: pItem.chs.trim() === '' ? 'pre' : '', // 保留空白分词
|
|
|
}"
|
|
}"
|
|
|
@click.stop="viewNotes($event, pItem.words ? pItem.words : pItem.chs, pItem)"
|
|
@click.stop="viewNotes($event, pItem.words ? pItem.words : pItem.chs, pItem)"
|
|
|
>{{ convertText(pItem.chs) }}</span
|
|
>{{ convertText(pItem.chs) }}</span
|
|
@@ -730,6 +737,7 @@
|
|
|
: pItem.matchNotesObj.con && pItem.matchNotesObj.notesColor
|
|
: pItem.matchNotesObj.con && pItem.matchNotesObj.notesColor
|
|
|
? pItem.matchNotesObj.notesColor
|
|
? pItem.matchNotesObj.notesColor
|
|
|
: pItem.config.color,
|
|
: pItem.config.color,
|
|
|
|
|
+ whiteSpace: pItem.chs.trim() === '' ? 'pre' : '', // 保留空白分词
|
|
|
}"
|
|
}"
|
|
|
@click.stop="viewNotes($event, pItem.words ? pItem.words : pItem.chs, pItem)"
|
|
@click.stop="viewNotes($event, pItem.words ? pItem.words : pItem.chs, pItem)"
|
|
|
>{{ convertText(pItem.chs) }}</span
|
|
>{{ convertText(pItem.chs) }}</span
|