/**
 * tdesign v0.41.7
 * (c) 2022 tdesign
 * @license MIT
 */

import { h as helper } from '../../_chunks/dep-37d5b9c4.js';
import _defineProperty from '@babel/runtime/helpers/defineProperty';
import EditableCell from '../editable-cell.js';
import '@babel/runtime/helpers/toConsumableArray';
import '@babel/runtime/helpers/typeof';
import '@vue/composition-api';
import 'lodash/get';
import 'lodash/set';
import 'tdesign-icons-vue';
import './useClassName.js';
import '../../config-provider/useConfig.js';
import 'lodash/cloneDeep';
import 'lodash/mergeWith';
import '../../config-provider/context.js';
import 'lodash/merge';
import '../../_common/js/global-config/default-config.js';
import '../../_common/js/global-config/locale/zh_CN.js';
import '../../config-provider/type.js';
import '../tr.js';
import 'lodash/isFunction';
import 'lodash/upperFirst';
import 'lodash/isString';
import 'lodash/pick';
import '../utils.js';
import 'lodash/isObject';
import './useFixed.js';
import '@babel/runtime/helpers/slicedToArray';
import '../../_common/js/log/index.js';
import '../../_common/js/log/log.js';
import '../../_common/js/utils/getScrollbarWidth.js';
import '../../utils/dom.js';
import 'vue';
import 'raf';
import '../../utils/easing.js';
import '../ellipsis.js';
import 'lodash/debounce';
import '../../utils/render-tnode.js';
import '../../popup/index.js';
import '../../popup/popup.js';
import '@popperjs/core';
import '../../config.js';
import '../../utils/classnames.js';
import '../../utils/helper.js';
import '@babel/runtime/helpers/objectWithoutProperties';
import 'lodash/camelCase';
import '../../_common/js/utils/set-style.js';
import '../../popup/props.js';
import '../../popup/container.js';
import '../../utils/map-props.js';
import '../../utils/withInstall.js';
import 'lodash/capitalize';
import './style/index.js';
import '../../popup/type.js';
import '../base-table-props.js';
import './useLazyLoad.js';
import '../../_common/js/utils/observe.js';
import '../../form/form-model.js';
import '@babel/runtime/helpers/asyncToGenerator';
import '@babel/runtime/regenerator';
import '../../_chunks/dep-8600dc2e.js';
import 'lodash/isEmpty';
import 'lodash/isNumber';

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(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; }
function useEditableCell(props, context) {
  var renderEditableCell = function renderEditableCell(h, p, oldCell) {
    return h(EditableCell, helper([{}, {
      "props": _objectSpread({}, p)
    }, {
      "attrs": {
        "oldCell": oldCell
      },
      "scopedSlots": context.slots
    }]));
  };

  return {
    renderEditableCell: renderEditableCell
  };
}

export { useEditableCell as default };
//# sourceMappingURL=useEditableCell.js.map
