export function fetchKey(source, keyList) {
  var result = {};
  keyList.forEach(function (k) {
    var v = source[k];
    if (typeof v !== "undefined") {
      result[k] = v;
    }
  });
  return result;
}
export var tableProps = ['clsPrefix', 'loading', 'device', 'locale', 'data', 'children', 'size', 'hasBorder', 'isZebra', 'noPadding', 'useVirtual', 'dataSource', 'onLoadData', 'onFetchData', 'columns', 'openRowKeys', 'onFilter', 'actionBar', 'isPagination', 'pagination', 'actionColumn', 'showMiniPager', 'sort', 'sortIcons', 'onColumnsChange', 'primaryKey', 'theme', 'hasHeader', 'fixedHeader', 'maxBodyHeight', 'stickyHeader', 'isTree', 'indent', 'onRowClick', 'onRowMouseEnter', 'onRowMouseLeave', 'onResizeChange', 'width', 'height', 'loadingComponent', 'hasExpandedRowCtrl', 'expandedRowRender', 'onRowOpen', 'expandedRowIndent', 'showRowSelector', 'onSelect', 'onSelectAll', 'isRowSelectorDisabled', 'rowSelector', 'actionHidden', 'actionColumn', 'actionTitle', 'actionType', 'actionFixed', 'actionWidth', 'maxWebShownActionCount', 'rowSelection', 'cellProps', 'rowProps', 'offsetTop', 'showActionBar', 'actionBar', 'showSearch', 'showCustomColumn', 'searchBarPlaceholder', 'showLinkBar', 'linkBar', "rowOrder", "customBarItem", 'onCellDataChange', 'expandedIndexSimulate', 'onEditRow', 'onSaveRow', 'onResetRow', 'setEmptyContent', 'emptyContent'];
export var paginationProps = ['size', 'type', 'shape', 'pageShowCount', 'pageSize', 'pageSizeSelector', 'pageSizeList', 'pageNumberRender', 'pageSizePosition', 'useFloatLayout', 'hideOnlyOnePage', 'showJump', 'link', 'popupProps', 'paginationPosition'];