mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-02 03:59:01 +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 { Tree } from 'antd';
|
||||
|
||||
const { TreeNode } = Tree;
|
||||
|
||||
const treeData = [
|
||||
{
|
||||
title: '0-0',
|
||||
|
@ -16,8 +16,6 @@ The most basic usage, tell you how to use checkable, selectable, disabled, defau
|
||||
```tsx
|
||||
import { Tree } from 'antd';
|
||||
|
||||
const { TreeNode } = Tree;
|
||||
|
||||
const treeData = [
|
||||
{
|
||||
title: 'parent 1',
|
||||
|
@ -17,8 +17,6 @@ To load data asynchronously when click to expand a treeNode.
|
||||
import React, { useState } from 'react';
|
||||
import { Tree } from 'antd';
|
||||
|
||||
const { TreeNode } = Tree;
|
||||
|
||||
interface DataNode {
|
||||
title: string;
|
||||
key: string;
|
||||
|
Loading…
Reference in New Issue
Block a user