chowa
Version:
UI component library based on React
38 lines (37 loc) • 1.28 kB
JavaScript
/**
* @license chowa v1.1.3
*
* Copyright (c) Chowa Techonlogies Co.,Ltd.(http://www.chowa.cn).
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const React = require("react");
const PropTypes = require("prop-types");
class TableColumn extends React.PureComponent {
}
TableColumn.propTypes = {
title: PropTypes.node.isRequired,
dataIndex: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).isRequired,
width: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
align: PropTypes.oneOf(['left', 'right', 'center']),
fixed: PropTypes.oneOf(['left', 'right']),
className: PropTypes.string,
children: PropTypes.array,
headerCellAttr: PropTypes.func,
filterable: PropTypes.bool,
filtered: PropTypes.bool,
filterValues: PropTypes.array,
filters: PropTypes.array,
filterMultiple: PropTypes.bool,
filterMethod: PropTypes.func,
sorted: PropTypes.bool,
sortMode: PropTypes.oneOf(['asc', 'desc']),
sortable: PropTypes.bool,
sortMethod: PropTypes.func,
cellAttr: PropTypes.func,
render: PropTypes.func
};
exports.default = TableColumn;