UNPKG

es-grid-template

Version:

es-grid-template

45 lines (41 loc) 1.27 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.TableContext = void 0; var _react = require("react"); const TableContext = exports.TableContext = /*#__PURE__*/(0, _react.createContext)({ prefix: 'ui-rc', id: '', isDataTree: false, rowKey: 'rowId', dataSource: [], originData: [], expanded: {}, windowSize: { innerHeight: 0, innerWidth: 0 }, // triggerFilter: () => { }, setIsSelectionChange: () => {}, setSorterChange: () => {}, setFilterChange: () => {}, setExpanded: () => {}, handleCellClick: () => {} // startCellRef: { current: undefined } as React.MutableRefObject<IPositionCell | undefined>, // endCellRef: { current: undefined } as React.MutableRefObject<IPositionCell | undefined>, // focusedCellRef: { current: undefined } as React.MutableRefObject<IPositionCell | undefined>, // isSelectingRef: { current: false } as React.MutableRefObject<boolean>, // rangeStateRef: { // current: { // startRowIndex: undefined, // endRowIndex: undefined, // startColIndex: undefined, // endColIndex: undefined, // rowIds: [], // colIds: [], // colRange: [], // rowRange: [] // } // } as React.MutableRefObject<RangeState> });