"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.makeBuildTreeTransform = makeBuildTreeTransform;
var _utils = require("../utils");
var _warnTransformsDeprecated = require("./warnTransformsDeprecated");
/** @deprecated transform 用法已经过时，请使用 pipeline 来对表格进行拓展 */
function makeBuildTreeTransform(idProp, parentIdProp) {
  (0, _warnTransformsDeprecated.warnTransformsDeprecated)('makeBuildTreeTransform');
  return function (_ref) {
    var columns = _ref.columns,
      dataSource = _ref.dataSource;
    return {
      columns: columns,
      dataSource: (0, _utils.buildTree)(idProp, parentIdProp, dataSource)
    };
  };
}