import React from 'react'
import { DataNode, Icon,Tree } from "@alicloud/console-components"
const dataSource: DataNode[] = [
  {
    label: '服装',
    key: '1',
    className: 'k-1',
    icon: 'cry',
    children: [
      {
        label: '男装',
        key: '2',
        className: 'k-2',
        disabled: true,
        icon: <Icon type="smile" />,
        children: [
          {
            label: '外套',
            className: 'k-4',
            selectable: false,
            key: '4',
          },
          {
            label: '夹克',
            className: 'k-5',
            key: '5',
          },
        ],
      },
      {
        label: '女装',
        className: 'k-3',
        key: '3',
        children: [
          {
            label: '裙子',
            className: 'k-6',
            key: '6',
          },
        ],
      },
    ],
  },
];
export default () => {  
  return <Tree showLine defaultExpandedKeys={['1']} dataSource={dataSource} />
}