mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-05-22 14:17:30 +08:00
Minor refactoring and fixes
This commit is contained in:
@@ -93,7 +93,6 @@ export default class IElement extends LitElement {
|
||||
|
||||
setup() {
|
||||
this.template.setup()
|
||||
this.template.inputSetup()
|
||||
this.isSetup = true
|
||||
}
|
||||
|
||||
@@ -122,6 +121,7 @@ export default class IElement extends LitElement {
|
||||
firstUpdated(changedProperties) {
|
||||
super.firstUpdated(changedProperties)
|
||||
this.template.firstUpdated(changedProperties)
|
||||
this.template.inputSetup()
|
||||
}
|
||||
|
||||
/** @param {PropertyValues} changedProperties */
|
||||
|
||||
@@ -43,6 +43,12 @@ export default class WindowElement extends IDraggableElement {
|
||||
super.initialize(entity, template)
|
||||
}
|
||||
|
||||
setup() {
|
||||
super.setup()
|
||||
this.locationX = this.blueprint.mousePosition[0]
|
||||
this.locationY = this.blueprint.mousePosition[1]
|
||||
}
|
||||
|
||||
cleanup() {
|
||||
super.cleanup()
|
||||
this.acknowledgeClose()
|
||||
|
||||
Reference in New Issue
Block a user