mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-11 11:32:52 +08:00
docs: remove unseless TreeNode in Tree demo (#25578)
This commit is contained in:
parent
ba3f84f5c5
commit
12beeff3d6
@ -17,8 +17,6 @@ Controlled mode lets parent nodes reflect the status of child nodes more intelli
|
|||||||
import React, { useState } from 'react';
|
import React, { useState } from 'react';
|
||||||
import { Tree } from 'antd';
|
import { Tree } from 'antd';
|
||||||
|
|
||||||
const { TreeNode } = Tree;
|
|
||||||
|
|
||||||
const treeData = [
|
const treeData = [
|
||||||
{
|
{
|
||||||
title: '0-0',
|
title: '0-0',
|
||||||
|
@ -16,8 +16,6 @@ The most basic usage, tell you how to use checkable, selectable, disabled, defau
|
|||||||
```tsx
|
```tsx
|
||||||
import { Tree } from 'antd';
|
import { Tree } from 'antd';
|
||||||
|
|
||||||
const { TreeNode } = Tree;
|
|
||||||
|
|
||||||
const treeData = [
|
const treeData = [
|
||||||
{
|
{
|
||||||
title: 'parent 1',
|
title: 'parent 1',
|
||||||
|
@ -17,8 +17,6 @@ To load data asynchronously when click to expand a treeNode.
|
|||||||
import React, { useState } from 'react';
|
import React, { useState } from 'react';
|
||||||
import { Tree } from 'antd';
|
import { Tree } from 'antd';
|
||||||
|
|
||||||
const { TreeNode } = Tree;
|
|
||||||
|
|
||||||
interface DataNode {
|
interface DataNode {
|
||||||
title: string;
|
title: string;
|
||||||
key: string;
|
key: string;
|
||||||
|
Loading…
Reference in New Issue
Block a user