NuclearDispersionSystem/ant-design-vue-jeecg/node_modules/ant-design-vue/lib/vc-util/Dom/contains.js
2023-09-14 14:47:11 +08:00

17 lines
273 B
Java

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = contains;
function contains(root, n) {
var node = n;
while (node) {
if (node === root) {
return true;
}
node = node.parentNode;
}
return false;
}