@sl-theia/theia-canvas
v0.0.1-alpha.4
Published
theiaUtils
Downloads
5
Readme
theia-canvas
特性
- 接入简单
- 学习成本低
- 沙箱隔离
快速开始
基座应用以 vue 框架为例
1、安装依赖
yarn add @sl-theia/theia-canvas
2、在入口处引入依赖
import theiaCanvasApplication from '@sl-theia/theia-canvas';
4、在页面中使用组件
export default function IndexPage(props) {
console.log(props);
return (
<div>
<h1 className={styles.title}>Canvas A</h1>
<theia-canvas url="http://localhost:8001/" name="canvas-a " />
</div>
);
}