|
@@ -20,7 +20,7 @@ export const useSpeak = () => {
|
|
|
node.childNodes.forEach((child: any) => {
|
|
|
if (child.nodeType === Node.TEXT_NODE) {
|
|
|
// 按标点符号分割文本
|
|
|
- const sentences = child.textContent.split(/(?<=[,,;;。.])\s*/);
|
|
|
+ const sentences = child.textContent.split(/(?<=[,,;;。])\s*/);
|
|
|
sentences.forEach((sentence: any) => {
|
|
|
if (sentence.trim()) {
|
|
|
const customTag = document.createElement('label');
|
|
@@ -168,9 +168,9 @@ export const useSpeak = () => {
|
|
|
console.log(
|
|
|
false,
|
|
|
parentRect?.bottom -
|
|
|
- bottom +
|
|
|
- (showDomRect.height + fHeight / 2) +
|
|
|
- musicContent?.scrollTop
|
|
|
+ bottom +
|
|
|
+ (showDomRect.height + fHeight / 2) +
|
|
|
+ musicContent?.scrollTop
|
|
|
);
|
|
|
showDom.style.top =
|
|
|
(
|