choerodon-ui
Version:
An enterprise-class UI design language and React-based implementation
72 lines (57 loc) • 1.98 kB
JavaScript
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
import _inherits from "@babel/runtime/helpers/inherits";
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
import _defineProperty from "@babel/runtime/helpers/defineProperty";
function _createSuper(Derived) {
function isNativeReflectConstruct() {
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
if (Reflect.construct.sham) return false;
if (typeof Proxy === "function") return true;
try {
Date.prototype.toString.call(Reflect.construct(Date, [], function () {}));
return true;
} catch (e) {
return false;
}
}
return function () {
var Super = _getPrototypeOf(Derived),
result;
if (isNativeReflectConstruct()) {
var NewTarget = _getPrototypeOf(this).constructor;
result = Reflect.construct(Super, arguments, NewTarget);
} else {
result = Super.apply(this, arguments);
}
return _possibleConstructorReturn(this, result);
};
}
import { Component } from 'react';
import PropTypes from 'prop-types';
var Column =
/*#__PURE__*/
function (_Component) {
_inherits(Column, _Component);
var _super = _createSuper(Column);
function Column() {
_classCallCheck(this, Column);
return _super.apply(this, arguments);
}
return Column;
}(Component);
_defineProperty(Column, "propTypes", {
className: PropTypes.string,
colSpan: PropTypes.number,
title: PropTypes.node,
footer: PropTypes.oneOfType([PropTypes.func, PropTypes.node]),
dataIndex: PropTypes.string,
width: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
fixed: PropTypes.oneOf([true, 'left', 'right']),
render: PropTypes.func,
onCellClick: PropTypes.func,
onCell: PropTypes.func,
onHeaderCell: PropTypes.func
});
export { Column as default };
//# sourceMappingURL=Column.js.map