"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports["default"] = void 0;
var _parseData = _interopRequireDefault(require("../utils/parse-data"));
var _adaptor = require("./adaptor");
var plainData = '*Trunk\n\t-Branch\n\t\t*Branch\n\t\t\tLeaf\n\t\tLeaf\n\t*Branch\n\t\tLeaf\n\t\tLeaf';
var list = (0, _parseData["default"])(plainData).filter(function (_ref) {
  var type = _ref.type;
  return 'node' === type;
});
var keys = {
  selected: [],
  expanded: []
};
var dataSource = (0, _adaptor.createDataSource)(list, keys);
var _default = [{
  title: '树型选择控件',
  screenshot: 'https://alifd.oss-cn-hangzhou.aliyuncs.com/fusion-cool/icons/icon-light/ic_light_select.png',
  schema: {
    componentName: 'TreeSelect',
    props: {
      mode: 'single',
      hasArrow: true,
      cacheValue: true,
      visible: true,
      plainData: plainData,
      dataSource: dataSource,
      value: keys.selected
    }
  }
}];
exports["default"] = _default;