private metadataViewWidget: MetadataViewWidget | null | undefined;
private async renderCustomView(model: string, viewName: string, slotName?: string) {
const view = await ViewCache.get(model, viewName);
if (!view) {
return;
}
if (this.metadataViewWidget) {
this.metadataViewWidget.dispose();
this.metadataViewWidget = null;
}
const metadataViewWidget = this.createWidget(MetadataViewWidget, slotName, {
metadataHandle: this.metadataHandle,
rootHandle: this.rootHandle,
internal: true,
inline: true,
automatic: true
});
this.metadataViewWidget = metadataViewWidget;
metadataViewWidget.initContextByView(view);
this.forceUpdate();
}
Oinone社区 作者:张博昊原创文章,如若转载,请注明出处:https://doc.oinone.top/frontend/20602.html
访问Oinone官网:https://www.oinone.top获取数式Oinone低代码应用平台体验