@vuesax-alpha/nightly
Version:
A Component Library for Vue 3
20 lines (15 loc) • 554 B
JavaScript
;
Object.defineProperty(exports, '__esModule', { value: true });
var dom = require('../../utils/dom.js');
function isComponentPublicInstance(target) {
return target != null && Object.prototype.hasOwnProperty.call(target, "$el");
}
function unwrapElement(target) {
if (isComponentPublicInstance(target)) {
const element = target.$el;
return dom.isNode(element) && dom.getNodeName(element) === "#comment" ? null : element;
}
return target;
}
exports.unwrapElement = unwrapElement;
//# sourceMappingURL=unwrap-element.js.map