mirror of
https://gitee.com/antv/g6.git
synced 2024-12-01 19:28:39 +08:00
docs: update g6 version and react-node usage (#5260)
This commit is contained in:
parent
96016b54b4
commit
151a5761db
@ -69,7 +69,7 @@ G6 concentrates on the principle of 'good by default'. In addition, the custom m
|
||||
## Installation (5.0 Alpha)
|
||||
|
||||
```bash
|
||||
$ npm install @antv/g6@5.0.0-alpha.8
|
||||
$ npm install @antv/g6@5.0.0-beta.28
|
||||
```
|
||||
|
||||
## Usage (5.0 Alpha)
|
||||
|
@ -57,7 +57,7 @@ GIF 未完整加载,[点此看原图](https://mdn.alipayobjects.com/huamei_qa8
|
||||
## 安装 (5.0 Alpha)
|
||||
|
||||
```bash
|
||||
$ npm install @antv/g6@5.0.0-alpha.8
|
||||
$ npm install @antv/g6@5.0.0-beta.28
|
||||
```
|
||||
|
||||
## 使用 (5.0 Alpha)
|
||||
|
@ -7,11 +7,22 @@ Using React Component to Define Your G6 Graph Node
|
||||
|
||||
## Usage
|
||||
|
||||
TODO
|
||||
```bash
|
||||
pnpm install @antv/g6-react-node@2.0.0-beta.1
|
||||
```
|
||||
|
||||
## Options
|
||||
```jsx
|
||||
import { createReactNode, createReactGNode } from '@antv/g6-react-node';
|
||||
|
||||
const ReactNode = createReactNode({
|
||||
// ... React Component
|
||||
});
|
||||
|
||||
const ReactGNode = createReactGNode({
|
||||
// ... JSX Component
|
||||
});
|
||||
```
|
||||
|
||||
TODO
|
||||
|
||||
## Development
|
||||
|
||||
@ -27,12 +38,6 @@ $ pnpm run build
|
||||
|
||||
# build library source code in watch mode
|
||||
$ pnpm run build:watch
|
||||
|
||||
# build docs
|
||||
$ pnpm run docs:build
|
||||
|
||||
# check your project for potential problems
|
||||
$ pnpm run doctor
|
||||
```
|
||||
|
||||
## LICENSE
|
||||
|
@ -81,7 +81,7 @@ Using G6 in vanilla HTML only requires importing the G6 JS file, as shown below:
|
||||
|
||||
```bash
|
||||
# Using npm
|
||||
npm install --save @antv/g6@5.0.0
|
||||
npm install --save @antv/g6@5.0.0-beta.28
|
||||
|
||||
# Using yarn
|
||||
yarn add @antv/g6@5.0.0
|
||||
|
@ -83,7 +83,7 @@ order: 1
|
||||
|
||||
```bash
|
||||
# 使用 npm 安装
|
||||
npm install --save @antv/g6@5.0.0
|
||||
npm install --save @antv/g6@5.0.0-beta.28
|
||||
|
||||
# 使用 yarn 安装
|
||||
yarn add @antv/g6@5.0.0
|
||||
|
Loading…
Reference in New Issue
Block a user