Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: fix react demo label #2269

Merged
merged 3 commits into from
Aug 22, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions docs/assets/guide/en/custom_define/react-custom-component.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ In order to facilitate users to quickly implement customized cell content, React

#### Tag

```js livedemo template=vtable
```javascript livedemo template=vtable-react
const { useCallback, useRef, useState } = React;
const { ListTable, ListColumn, Group, Tag } = ReactVTable;

Expand Down Expand Up @@ -232,7 +232,7 @@ API

#### Radio

```js livedemo template=vtable
```javascript livedemo template=vtable-react
const { useCallback, useRef, useState, useEffect } = React;
const { ListTable, ListColumn, Group, Radio } = ReactVTable;

Expand Down Expand Up @@ -360,7 +360,7 @@ API

#### Checkbox

```js livedemo template=vtable
```javascript livedemo template=vtable-react
const { useCallback, useRef, useState, useEffect } = React;
const { ListTable, ListColumn, Group, Checkbox } = ReactVTable;

Expand Down Expand Up @@ -443,7 +443,7 @@ API

#### Button

```js livedemo template=vtable
```javascript livedemo template=vtable-react
const { useCallback, useRef, useState, useEffect } = React;
const { ListTable, ListColumn, Group, Button } = ReactVTable;

Expand Down Expand Up @@ -516,7 +516,7 @@ API

#### Link

```js livedemo template=vtable
```javascript livedemo template=vtable-react
const { useCallback, useRef, useState, useEffect } = React;
const { ListTable, ListColumn, Group, Link } = ReactVTable;

Expand Down Expand Up @@ -592,7 +592,7 @@ API

#### Avatar

```js livedemo template=vtable
```javascript livedemo template=vtable-react
const { useCallback, useRef, useState, useEffect } = React;
const { ListTable, ListColumn, Group, Avatar, Image } = ReactVTable;

Expand Down Expand Up @@ -669,7 +669,7 @@ API

#### Popover

```js livedemo template=vtable
```javascript livedemo template=vtable-react
const { useCallback, useRef, useState, useEffect } = React;
const { ListTable, ListColumn, Group, Avatar, Popover } = ReactVTable;

Expand Down
14 changes: 7 additions & 7 deletions docs/assets/guide/zh/custom_define/react-custom-component.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ const CustomLayoutComponent = (props: CustomLayoutFunctionArg & { text: string }

文字标签

```js livedemo template=vtable
```javascript livedemo template=vtable-react
const { useCallback, useRef, useState } = React;
const { ListTable, ListColumn, Group, Tag } = ReactVTable;

Expand Down Expand Up @@ -236,7 +236,7 @@ API

单选框

```js livedemo template=vtable
```javascript livedemo template=vtable-react
const { useCallback, useRef, useState, useEffect } = React;
const { ListTable, ListColumn, Group, Radio } = ReactVTable;

Expand Down Expand Up @@ -366,7 +366,7 @@ API

复选框

```js livedemo template=vtable
```javascript livedemo template=vtable-react
const { useCallback, useRef, useState, useEffect } = React;
const { ListTable, ListColumn, Group, Checkbox } = ReactVTable;

Expand Down Expand Up @@ -456,7 +456,7 @@ API

按钮

```js livedemo template=vtable
```javascript livedemo template=vtable-react
const { useCallback, useRef, useState, useEffect } = React;
const { ListTable, ListColumn, Group, Button } = ReactVTable;

Expand Down Expand Up @@ -531,7 +531,7 @@ API

链接

```js livedemo template=vtable
```javascript livedemo template=vtable-react
const { useCallback, useRef, useState, useEffect } = React;
const { ListTable, ListColumn, Group, Link } = ReactVTable;

Expand Down Expand Up @@ -609,7 +609,7 @@ API

头像

```js livedemo template=vtable
```javascript livedemo template=vtable-react
const { useCallback, useRef, useState, useEffect } = React;
const { ListTable, ListColumn, Group, Avatar, Image } = ReactVTable;

Expand Down Expand Up @@ -688,7 +688,7 @@ API

气泡卡片

```js livedemo template=vtable
```javascript livedemo template=vtable-react
const { useCallback, useRef, useState, useEffect } = React;
const { ListTable, ListColumn, Group, Avatar, Popover } = ReactVTable;

Expand Down
6 changes: 3 additions & 3 deletions packages/vtable/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export * from './render/jsx';
export { getTargetCell } from './event/util';

// export * as VRender from './vrender';
import * as VRender from './vrender';
// import * as VRender from './vrender';

export const version = __VERSION__;
/**
Expand Down Expand Up @@ -104,8 +104,8 @@ export {
renderChart,
graphicUtil,
setCustomAlphabetCharSet,
restoreMeasureText,
VRender
restoreMeasureText
// VRender // should use import {xxx} from '@visactor/vtable/es/vrender'
};

/** @private */
Expand Down
Loading