import React, { useState, useRef } from 'react';
import { TreePanel } from '@zhst/biz';
import { boxDataSource } from './mock'

const demo = () => {

  return (
    <div style={{ padding: '12px', width: '240px', border: '1px solid #09f' }}>
      <TreePanel
        data={boxDataSource}
        treeType='normal'
        showSelectBar
        filterSelectProps={{
          placeholder: '请输入',
          options: [
            { label: '测试', key: '123', value: 'test' }
          ]
        }}
      />
    </div>
  );
};

export default demo;
