Merge branch 'feat/device-mapper' into 'release/1.0.37'

feat: add deviceMapper to adaptor different components lib

RT

See merge request !1172493
This commit is contained in:
力皓 2021-03-02 13:31:45 +08:00
commit fdea551617

View File

@ -195,6 +195,9 @@ export class BuiltinSimulatorHost implements ISimulatorHost<BuiltinSimulatorProp
}
get(key: string): any {
if (key === 'device') {
return this.designer?.editor?.get('deviceMapper')?.transform?.(this._props.device) || this._props.device
}
return this._props[key];
}