choerodon-ui
Version:
An enterprise-class UI design language and React-based implementation
14 lines (11 loc) • 503 B
JavaScript
import intersection from 'lodash/intersection';
export default function shouldShowRowByExpanded() {
var expandedRowKeys = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
var parentKeys = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
var intersectionKeys = intersection(expandedRowKeys, parentKeys);
if (intersectionKeys.length === parentKeys.length) {
return true;
}
return false;
}
//# sourceMappingURL=shouldShowRowByExpanded.js.map