el-table-infinite-scroll
Version:
Infinite scroll for el-table.
24 lines (20 loc) • 434 B
JavaScript
/*!
* el-table-infinite-scroll v3.0.7
* (c) 2019-2025 yujinpan
*/
;
/**
* sync element attrs
*/
function syncAttrs(sourceElem, targetElem, attrsKeys) {
var value;
attrsKeys.forEach(function (name) {
value = sourceElem.getAttribute(name);
if (value !== null) {
targetElem.setAttribute(name, value);
} else {
targetElem.removeAttribute(name);
}
});
}
exports.syncAttrs = syncAttrs;