Skip to content

Commit

Permalink
fix: add dependencies for x6-devtools (#3381)
Browse files Browse the repository at this point in the history
* fix: add dependencies for x6-devtools

* docs: add tips for react-shape
  • Loading branch information
NewByVector authored Mar 15, 2023
1 parent efc45f6 commit 37515c4
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/x6-devtool/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"antd": "4.18.3",
"react": "17.0.2",
"react-dom": "17.0.2",
"react-json-view": "1.21.3"
"react-json-view": "1.21.3",
"@ant-design/icons": "^5.0.1"
},
"devDependencies": {
"@babel/core": "^7.16.7",
Expand Down
4 changes: 4 additions & 0 deletions sites/x6-sites/docs/tutorial/intermediate/angular.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ redirect_from:

我们提供了一个独立的包 `@antv/x6-angular-shape` 以支持将 Angular 的组件/模板作为节点进行渲染。

:::warning{title=注意:}
需要注意的是,x6@1.x 需要搭配使用 x6-angular-shape@1.xx6@2.x 需要搭配使用 x6-angular-shape@2.x
:::

### Component 渲染

```ts
Expand Down
5 changes: 5 additions & 0 deletions sites/x6-sites/docs/tutorial/intermediate/react.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ redirect_from:

我们提供了一个独立的包 `@antv/x6-react-shape` 来使用 React 渲染节点。

:::warning{title=注意:}
需要注意的是,x6@1.x 需要搭配使用 x6-react-shape@1.xx6@2.x 需要搭配使用 x6-react-shape@2.x
:::


```ts
import { register } from "@antv/x6-react-shape";

Expand Down
5 changes: 5 additions & 0 deletions sites/x6-sites/docs/tutorial/intermediate/vue.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ redirect_from:

我们提供了一个独立的包 `@antv/x6-vue-shape` 来使用 Vue 组件渲染节点。

:::warning{title=注意:}
需要注意的是,x6@1.x 需要搭配使用 x6-vue-shape@1.xx6@2.x 需要搭配使用 x6-vue-shape@2.x
:::


```html
<template>
<div class="app-content">
Expand Down

0 comments on commit 37515c4

Please sign in to comment.