(append: string)
| 234 | } |
| 235 | |
| 236 | setSrc(append: string) { |
| 237 | this.lastAppend = append; |
| 238 | const incremental = this.isIncremental; |
| 239 | if (incremental) { |
| 240 | eventBus.at("dispatch", "toast", "增量复制"); |
| 241 | } |
| 242 | if (incremental && this.text != "") { |
| 243 | //TODO 这里需要做特殊处理,中文不需要加空格 |
| 244 | if (isChinese(append)) { |
| 245 | this.text = this.text + append; |
| 246 | } else { |
| 247 | this.text = this.text + " " + append; |
| 248 | } |
| 249 | } else { |
| 250 | this.text = append; |
| 251 | } |
| 252 | if (this.incrementCounter > 0) { |
| 253 | this.handle("incrementCounter", this.incrementCounter - 1); |
| 254 | } |
| 255 | } |
| 256 | |
| 257 | get source() { |
| 258 | return this.get<Language>("sourceLanguage"); |
no test coverage detected