'use strict';

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

var vue = require('vue');
var index = require('../../../vc-resize-observer/src/index.cjs');

var MeasureCell = /* @__PURE__ */ vue.defineComponent({
  name: "MeasureCell",
  props: ["columnKey"],
  setup(props, {
    emit
  }) {
    const tdRef = vue.ref();
    vue.onMounted(() => {
      if (tdRef.value)
        emit("columnResize", props.columnKey, tdRef.value.offsetWidth);
    });
    return () => {
      return vue.createVNode(index.default, {
        "onResize": ({
          offsetWidth
        }) => {
          emit("columnResize", props.columnKey, offsetWidth);
        }
      }, {
        default: () => [vue.createVNode("td", {
          "ref": tdRef,
          "style": {
            padding: 0,
            border: 0,
            height: 0
          }
        }, [vue.createVNode("div", {
          "style": {
            height: 0,
            overflow: "hidden"
          }
        }, [vue.createTextVNode("\xA0")])])]
      });
    };
  }
});

exports.default = MeasureCell;
//# sourceMappingURL=MeasureCell.cjs.map
