Commit 923790ff authored by limingzhe's avatar limingzhe

fix: 无空格 分号切割

parent 5e21af85
...@@ -977,7 +977,10 @@ export class RichText extends Label { ...@@ -977,7 +977,10 @@ export class RichText extends Label {
const selfW = this.width * this.scaleX; const selfW = this.width * this.scaleX;
const chr = this.text.split(' '); let chr = this.text.split(' ');
if (chr.length <= 1) {
chr = this.text.split('');
}
let temp = ''; let temp = '';
const row = []; const row = [];
const w = selfW - this.offW * 2; const w = selfW - this.offW * 2;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment