MCPcopy
hub / github.com/alibaba/lowcode-engine / getWebviewPlugin

Function getWebviewPlugin

packages/workspace/src/inner-plugins/webview.tsx:26–49  ·  view source on GitHub ↗
(url: string, viewName: string)

Source from the content-addressed store, hash-verified

24}
25
26export function getWebviewPlugin(url: string, viewName: string) {
27 function webviewPlugin(ctx: IPublicModelPluginContext) {
28 const { skeleton } = ctx;
29 return {
30 init() {
31 skeleton.add({
32 area: 'mainArea',
33 name: 'designer',
34 type: 'Widget',
35 content: DesignerView,
36 contentProps: {
37 ctx,
38 url,
39 viewName,
40 },
41 });
42 },
43 };
44 }
45
46 webviewPlugin.pluginName = '___webview_plugin___';
47
48 return webviewPlugin;
49}

Callers 1

ContextClass · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…