/**
 * tdesign v0.32.0
 * (c) 2021 tdesign
 * @license MIT
 */

'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var helper = require('../../_chunks/dep-44e6bdf6.js');
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
var table_baseTableProps = require('../base-table-props.js');
var table_primaryTableProps = require('../primary-table-props.js');
var table_enhancedTableProps = require('../enhanced-table-props.js');
var table_primaryTable_index = require('../primary-table/index.js');
var utils_mixins = require('../../utils/mixins.js');
var table_enhancedTable_tree = require('./tree.js');
var table_enhancedTable_treeSelect = require('./tree-select.js');
require('@babel/runtime/helpers/toConsumableArray');
require('../base-table/index.js');
require('lodash/throttle');
require('../../config-provider/config-receiver.js');
require('vue');
require('../../config-provider/zh_CN_config.js');
require('../../config.js');
require('../util/props-util.js');
require('../base-table/table-body.js');
require('lodash/get');
require('../../utils/event.js');
require('../../utils/helper.js');
require('@babel/runtime/helpers/objectWithoutProperties');
require('@babel/runtime/helpers/slicedToArray');
require('lodash/camelCase');
require('../base-table/table-row.js');
require('../base-table/table-cell.js');
require('../../popup/index.js');
require('../../popup/popup.js');
require('@babel/runtime/helpers/typeof');
require('@popperjs/core');
require('../../_chunks/dep-939cdc39.js');
require('../../utils/classnames.js');
require('../../utils/dom.js');
require('raf');
require('lodash/isString');
require('../../utils/easing.js');
require('../../popup/props.js');
require('../../utils/render-tnode.js');
require('../../utils/set-style.js');
require('../../utils/map-props.js');
require('../../utils/withInstall.js');
require('lodash/capitalize');
require('../util/common.js');
require('lodash/isFunction');
require('../base-table/table-header.js');
require('../base-table/col-group.js');
require('../../pagination/index.js');
require('../../pagination/pagination.js');
require('tdesign-icons-vue');
require('../../input-number/index.js');
require('../../input-number/input-number.js');
require('@babel/runtime/helpers/asyncToGenerator');
require('@babel/runtime/regenerator');
require('../../button/index.js');
require('../../button/button.js');
require('../../loading/index.js');
require('../../loading/loading.js');
require('../../loading/icon/gradient.js');
require('../../utils/transfer-dom.js');
require('../../loading/props.js');
require('../../loading/plugin.js');
require('../../button/props.js');
require('../../utils/ripple.js');
require('../../input-number/props.js');
require('../../select/index.js');
require('../../select/select.js');
require('lodash/debounce');
require('lodash/set');
require('../../input/index.js');
require('../../input/addon.js');
require('../../input/input.js');
require('../../input/props.js');
require('../../input/input-group.js');
require('../../tag/index.js');
require('../../tag/tag.js');
require('../../tag/props.js');
require('../../tag/check-tag.js');
require('../../tag/check-tag-props.js');
require('../../common-components/fake-arrow.js');
require('../../select/option.js');
require('../../select/option-props.js');
require('../../checkbox/index.js');
require('../../checkbox/group.js');
require('lodash/intersection');
require('../../checkbox/checkbox.js');
require('../../checkbox/props.js');
require('../../checkbox/checkbox-group-props.js');
require('../../select/props.js');
require('../../select/optionGroup.js');
require('../../select/option-group-props.js');
require('../../pagination/props.js');
require('../util/interface.js');
require('../primary-table/mixins/expand.js');
require('../primary-table/expand-box.js');
require('../primary-table/mixins/select.js');
require('../primary-table/select-box.js');
require('../../radio/index.js');
require('../../radio/radio.js');
require('../../radio/props.js');
require('../../radio/group.js');
require('lodash/isNumber');
require('../../radio/radio-group-props.js');
require('../../radio/radio-button.js');
require('../primary-table/mixins/sort.js');
require('../primary-table/sorter-button.js');
require('../../tooltip/index.js');
require('../../tooltip/tooltip.js');
require('../../tooltip/props.js');
require('../primary-table/mixins/row-draggable.js');
require('../primary-table/mixins/filter.js');
require('../primary-table/mixins/show-columns.js');
require('../../dialog/index.js');
require('../../dialog/dialog.js');
require('../../dialog/actions.js');
require('lodash/isObject');
require('../../dialog/props.js');
require('../../dialog/plugin.js');
require('../primary-table/mixins/async-loading.js');
require('lodash/cloneDeep');
require('./tree-store.js');
require('@babel/runtime/helpers/classCallCheck');
require('@babel/runtime/helpers/createClass');

function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }

var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty);

function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
var _EnhancedTable = utils_mixins["default"](table_enhancedTable_tree["default"], table_enhancedTable_treeSelect["default"]).extend({
  name: "TEnhancedTable",
  props: _objectSpread(_objectSpread(_objectSpread({}, table_baseTableProps["default"]), table_primaryTableProps["default"]), table_enhancedTableProps["default"]),
  data: function data() {
    return {
      dataSource: []
    };
  },
  computed: {
    childrenKey: function childrenKey() {
      var _this$tree;

      return ((_this$tree = this.tree) === null || _this$tree === void 0 ? void 0 : _this$tree.childrenKey) || "children";
    }
  },
  render: function render() {
    var h = arguments[0];
    var options = {
      props: _objectSpread(_objectSpread({}, this.$props), {}, {
        data: this.dataSource,
        columns: this.columnsSource
      }),
      on: _objectSpread(_objectSpread({}, this.$listeners), {}, {
        "select-change": this.onInnerSelectChange
      }),
      scopedSlots: _objectSpread({}, this.$scopedSlots)
    };
    return h(table_primaryTable_index["default"], helper.helper([{}, options]));
  }
});

exports["default"] = _EnhancedTable;
//# sourceMappingURL=index.js.map
