feat: add deviceMapper to adaptor different components lib

This commit is contained in:
mark.ck 2021-02-06 17:15:12 +08:00
parent 3bcf34926d
commit b807597be9

View File

@ -194,6 +194,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];
}