mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-27 02:34:45 +08:00
SVGIcon class, Macro reference entity
This commit is contained in:
@@ -15,4 +15,12 @@ export default class LocalizedTextEntity extends IEntity {
|
||||
/** @type {String} */ this.key
|
||||
/** @type {String} */ this.value
|
||||
}
|
||||
|
||||
toString() {
|
||||
if (this.value.length === 0) {
|
||||
return this.value
|
||||
}
|
||||
let result = this.value
|
||||
return result.charAt(0).toLocaleUpperCase() + result.slice(1).toLocaleLowerCase()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user