二三维文本框

This commit is contained in:
zh
2025-08-26 13:34:38 +08:00
parent 838f39ba40
commit 0c4c956868
2 changed files with 10 additions and 1 deletions

View File

@ -157,7 +157,12 @@ async function syncData2(sdk, id, entityId) {
if (that.showView == 3) {
options.show = false
}
let newObject = await new that.constructor(sdk2D, options)
let callback
if(that.type === 'TextBox') {
callback = that.callback
}
let newObject = await new that.constructor(sdk2D, options, callback)
newObject.onClick = that.onClick
newObject.onRightClick = that.onRightClick
newObject.onMouseMove = that.onMouseMove