/**
 * ldesign v0.4.6
 * (c) 2023 ldesign
 * @license MIT
 */

import Vue from 'vue';
import { observeResize } from './utils.js';
import '../utils/dom.js';
import 'raf';
import 'lodash/isString';
import '../utils/easing.js';

var Trigger = Vue.extend({
  data: function data() {
    return {
      contentRect: null
    };
  },
  mounted: function mounted() {
    var _process$env,
      _this = this;
    if (!this.$el || typeof process !== "undefined" && ((_process$env = process.env) === null || _process$env === void 0 ? void 0 : _process$env.NODE_ENV) === "test") return;
    this.$on("hook:destroyed", observeResize(this.$el, function (ev) {
      _this.$emit("resize", ev);
    }));
  },
  render: function render() {
    var _children$;
    var h = arguments[0];
    var children = this.$slots["default"] || [];
    if (children.length > 1 || !((_children$ = children[0]) !== null && _children$ !== void 0 && _children$.tag)) return h("span", [children]);
    return children[0];
  }
});

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