This commit is contained in:
szrpf 2023-05-27 22:46:05 +08:00
parent 2a9cda65a4
commit ff57cedfd7
4 changed files with 8 additions and 8 deletions

View File

@ -96,7 +96,7 @@ export default class DataBoard extends cc.Component {
private set customLabelString(value: string) { private set customLabelString(value: string) {
this._customLabelString = value; this._customLabelString = value;
this.customLabelStringSplit = value this.customLabelStringSplit = value
.replace(/,|/g, '_~_').replace(/:|/g, '_!_').replace(/ |\t/g, '_@_') .replace(/,|/g, '_~_').replace(/:|/g, '_!_').replace(/ /g, '_@_')
.replace(/_*\n_*/g, '_\n_').split('_'); .replace(/_*\n_*/g, '_\n_').split('_');
} }
@property @property

View File

@ -154,7 +154,7 @@ var DataBoard = /** @class */ (function (_super) {
set: function (value) { set: function (value) {
this._customLabelString = value; this._customLabelString = value;
this.customLabelStringSplit = value this.customLabelStringSplit = value
.replace(/,|/g, '_~_').replace(/:|/g, '_!_').replace(/ |\t/g, '_@_') .replace(/,|/g, '_~_').replace(/:|/g, '_!_').replace(/ /g, '_@_')
.replace(/_*\n_*/g, '_\n_').split('_'); .replace(/_*\n_*/g, '_\n_').split('_');
}, },
enumerable: false, enumerable: false,

File diff suppressed because one or more lines are too long

View File

@ -534,14 +534,14 @@
"meta": 1685194622776, "meta": 1685194622776,
"relativePath": "Texture\\zhizhuxia.png" "relativePath": "Texture\\zhizhuxia.png"
}, },
"1c1526d4-850a-49e8-9d63-1a14155187fc": {
"asset": 1685198389728,
"meta": 1685198397873,
"relativePath": "Script\\DataBoard.ts"
},
"9285e338-6210-4984-bf3e-0b9ebd5f6f78": { "9285e338-6210-4984-bf3e-0b9ebd5f6f78": {
"asset": 1685198371101, "asset": 1685198371101,
"meta": 1685198397889, "meta": 1685198397889,
"relativePath": "Script\\Hero.ts" "relativePath": "Script\\Hero.ts"
},
"1c1526d4-850a-49e8-9d63-1a14155187fc": {
"asset": 1685198725140,
"meta": 1685198735447,
"relativePath": "Script\\DataBoard.ts"
} }
} }