qiushang 1 年之前
父節點
當前提交
5055765538
共有 1 個文件被更改,包括 7 次插入7 次删除
  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>