You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
527 B

'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var resizeEvent = require('../../utils/resize-event.js');
const Resize = {
beforeMount(el, binding) {
el._handleResize = () => {
var _a;
el && ((_a = binding.value) == null ? void 0 : _a.call(binding, el));
};
resizeEvent.addResizeListener(el, el._handleResize);
},
beforeUnmount(el) {
resizeEvent.removeResizeListener(el, el._handleResize);
}
};
exports["default"] = Resize;
//# sourceMappingURL=index.js.map