function getColKeysByRangeColKeys({ colKey1, colKey2, colgroups }) {
    let result = null;

    const index1 = colgroups.findIndex((x) => x.key === colKey1);
    const index2 = colgroups.findIndex((x) => x.key === colKey2);

    if (index1 !== -1 && index1 !== -1) {
        const beginIndex = index1 < index2 ? index1 : index2;
        const endIndex = index1 < index2 ? index2 : index1;
        result = colgroups.slice(beginIndex, endIndex + 1).map((x) => x.key);
    }

    return result;
}
@getColKeysByRangeColKeys
@desc  get col keys by range col keys
@param {any} colKey1
@param {any} colKey2
@return Array<colKeys>