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

'use strict';

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

var helper = require('../../_chunks/dep-99705d51.js');
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
var table_editableCell = require('../editable-cell.js');
require('@babel/runtime/helpers/toConsumableArray');
require('@babel/runtime/helpers/typeof');
require('@vue/composition-api');
require('lodash/get');
require('lodash/set');
require('tdesign-icons-vue');
require('./useClassName.js');
require('../../config-provider/useConfig.js');
require('lodash/cloneDeep');
require('lodash/mergeWith');
require('../../config-provider/context.js');
require('lodash/merge');
require('../../_common/js/global-config/default-config.js');
require('../../_common/js/global-config/locale/zh_CN.js');
require('../tr.js');
require('lodash/isFunction');
require('lodash/upperFirst');
require('lodash/isString');
require('lodash/pick');
require('../utils.js');
require('lodash/isObject');
require('./useFixed.js');
require('@babel/runtime/helpers/slicedToArray');
require('../../_common/js/log/log.js');
require('../../_common/js/utils/getScrollbarWidth.js');
require('../../utils/dom.js');
require('vue');
require('raf');
require('../../utils/easing.js');
require('../ellipsis.js');
require('lodash/debounce');
require('../../utils/render-tnode.js');
require('../../popup/index.js');
require('../../popup/popup.js');
require('@popperjs/core');
require('../../config.js');
require('../../utils/classnames.js');
require('../../utils/helper.js');
require('@babel/runtime/helpers/objectWithoutProperties');
require('lodash/camelCase');
require('../../_common/js/utils/set-style.js');
require('../../popup/props.js');
require('../../popup/container.js');
require('../../utils/map-props.js');
require('../../utils/withInstall.js');
require('lodash/capitalize');
require('../base-table-props.js');
require('./useLazyLoad.js');
require('../../_common/js/utils/observe.js');
require('../../form/form-model.js');
require('@babel/runtime/helpers/asyncToGenerator');
require('@babel/runtime/regenerator');
require('../../_chunks/dep-1641a31f.js');
require('lodash/isEmpty');
require('lodash/isNumber');

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

  return {
    renderEditableCell: renderEditableCell
  };
}

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