import parseData from "../utils/parse-data";
import { createDataSource } from "./adaptor";
var plainData = 'children\n\t123\n\t*[ashbin]333\n\t-222';
var keys = {
  selected: [],
  expanded: []
};
var dataSource = createDataSource(parseData(plainData, {
  parseContent: true
}), keys);
export default [{
  title: '树形控件',
  screenshot: 'https://alifd.oss-cn-hangzhou.aliyuncs.com/fusion-cool/icons/icon-light/ic_light_tree.png',
  schema: {
    componentName: 'Tree',
    props: {
      prefix: 'next-',
      selectable: true,
      selectedKeys: keys.selected,
      defaultExpandAll: true,
      checkedStrategy: 'all',
      autoExpandParent: true,
      animation: true,
      focusable: true,
      plainData: plainData,
      dataSource: dataSource
    }
  }
}];