@sl-theia/theia-canvas
TypeScript icon, indicating that this package has built-in type declarations

0.0.1-alpha.4 • Public • Published

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>
  );
}

Versions

Current Tags

Version History

Package Sidebar

Install

npm i @sl-theia/theia-canvas

Weekly Downloads

5

Version

0.0.1-alpha.4

License

MIT

Unpacked Size

44.9 kB

Total Files

26

Last publish

Collaborators

  • juzhiqiang
  • cnyballk