mirror of
https://github.com/szrpf/DataBoardDemo.git
synced 2025-11-03 04:45:43 +00:00
Signed-off-by: szrpf <27185709@qq.com>
This commit is contained in:
@@ -99,8 +99,7 @@ export default class DataBoard extends cc.Component {
|
||||
this._customLabelString = value;
|
||||
this.customLabelStringSplit = value
|
||||
.replace(/,/g, '_~_').replace(/:/g, '_!_').replace(/ /g, '_@_')
|
||||
.replace(/([^_])\n/g, '$1_\n').replace(/([^_])\n/g, '$1_\n').replace(/\n([^_])/g, '\n_$1')
|
||||
.split('_');
|
||||
.replace(/(?<!_)\n/g, '_\n').replace(/\n(?!_)/g, '\n_').split('_');
|
||||
}
|
||||
@property
|
||||
private _customLabelOffset: cc.Vec2 = cc.v2(0, 100);
|
||||
|
||||
Reference in New Issue
Block a user