qiushang 1 year ago
parent
commit
5055765538
1 changed files with 7 additions and 7 deletions
  1. 7 7
      src/renderer/components/home.vue

+ 7 - 7
src/renderer/components/home.vue

@@ -413,8 +413,6 @@
 								this.$message({message: '该文件已经在队列中 - ' + file, type: 'warning'});
 							}
 						}
-					
-
 					}
 				})
 			},
@@ -422,7 +420,13 @@
 			inputChange(val){
 				this.pinSetting.separator = this.separator == '' ? ' ' : this.separator;
 				if(this.pinBuild == 1){ // 上下结构
-					this.txtHtml = html(val, {toneType : this.pinSetting.toneType, wrapNonChinese: true});
+					this.txtHtml = '';
+					let htmls = html(val, {toneType : this.pinSetting.toneType, wrapNonChinese: true});
+					htmls = htmls.replace(/m"> <\/s/g, 'm">&nbsp;</s');
+					htmls = htmls.replace(/m">\n<\/span>/g, 'm">\n</span><br>');
+					// htmls = htmls.replace(/rp/g, 'span');
+					// htmls = htmls.replace(/rt/g, 'span');
+					this.txtHtml = htmls;
 				}else{
 					this.txtHtml = pinyin(val, this.pinSetting);
 				}
@@ -824,8 +828,4 @@
 			background-color: #4851a415; 
 		}
 	}
-	
-	.py-non-chinese-item{
-		// white-space: pre;
-	}
 </style>