解决贴地图片修改文字不生效的问题

This commit is contained in:
zh
2025-08-14 15:54:14 +08:00
parent d7ecd6d865
commit e022aa5ef1

View File

@ -81,6 +81,16 @@ class GroundImage extends Base {
this.create() this.create()
} }
get name() {
return this.options.name
}
set name(v) {
super.name = v
this.options.label.text = this.options.name
this.entity && (this.entity.label.text = this.options.label.text)
}
get mode() { get mode() {
return this.options.mode return this.options.mode
} }