amis-rpc-design/node_modules/antd/lib/table/Table.js
2023-10-07 19:42:30 +08:00

36 lines
1.5 KiB
JavaScript

"use strict";
"use client";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _rcTable = require("rc-table");
var React = _interopRequireWildcard(require("react"));
var _Column = _interopRequireDefault(require("./Column"));
var _ColumnGroup = _interopRequireDefault(require("./ColumnGroup"));
var _InternalTable = _interopRequireDefault(require("./InternalTable"));
var _useSelection = require("./hooks/useSelection");
const Table = (props, ref) => {
const renderTimesRef = React.useRef(0);
renderTimesRef.current += 1;
return /*#__PURE__*/React.createElement(_InternalTable.default, Object.assign({}, props, {
ref: ref,
_renderTimes: renderTimesRef.current
}));
};
const ForwardTable = /*#__PURE__*/React.forwardRef(Table);
ForwardTable.SELECTION_COLUMN = _useSelection.SELECTION_COLUMN;
ForwardTable.EXPAND_COLUMN = _rcTable.EXPAND_COLUMN;
ForwardTable.SELECTION_ALL = _useSelection.SELECTION_ALL;
ForwardTable.SELECTION_INVERT = _useSelection.SELECTION_INVERT;
ForwardTable.SELECTION_NONE = _useSelection.SELECTION_NONE;
ForwardTable.Column = _Column.default;
ForwardTable.ColumnGroup = _ColumnGroup.default;
ForwardTable.Summary = _rcTable.Summary;
if (process.env.NODE_ENV !== 'production') {
ForwardTable.displayName = 'Table';
}
var _default = exports.default = ForwardTable;