feat: add getContainer api

This commit is contained in:
Hufe921
2023-10-11 21:16:57 +08:00
parent 760f06ba1c
commit c944872ae7
4 changed files with 26 additions and 0 deletions
+2
View File
@@ -99,6 +99,7 @@ export class Command {
public getLocale: CommandAdapt['getLocale']
public getGroupIds: CommandAdapt['getGroupIds']
public getControlValue: CommandAdapt['getControlValue']
public getContainer: CommandAdapt['getContainer']
constructor(adapt: CommandAdapt) {
// 全局命令
@@ -205,6 +206,7 @@ export class Command {
this.getSearchNavigateInfo = adapt.getSearchNavigateInfo.bind(adapt)
this.getLocale = adapt.getLocale.bind(adapt)
this.getGroupIds = adapt.getGroupIds.bind(adapt)
this.getContainer = adapt.getContainer.bind(adapt)
// 控件
this.executeSetControlValue = adapt.setControlValue.bind(adapt)
this.getControlValue = adapt.getControlValue.bind(adapt)
+4
View File
@@ -2082,4 +2082,8 @@ export class CommandAdapt {
if (isReadonly) return
this.draw.getControl().setValueByConceptId(payload)
}
public getContainer(): HTMLDivElement {
return this.draw.getContainer()
}
}