1 | import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
|
2 | import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
|
3 | import _inherits from 'babel-runtime/helpers/inherits';
|
4 |
|
5 | var _class, _temp;
|
6 |
|
7 | import React from 'react';
|
8 | import PropTypes from 'prop-types';
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 | var Column = (_temp = _class = function (_React$Component) {
|
15 | _inherits(Column, _React$Component);
|
16 |
|
17 | function Column() {
|
18 | _classCallCheck(this, Column);
|
19 |
|
20 | return _possibleConstructorReturn(this, _React$Component.apply(this, arguments));
|
21 | }
|
22 |
|
23 | Column.prototype.render = function render() {
|
24 | return null;
|
25 | };
|
26 |
|
27 | return Column;
|
28 | }(React.Component), _class.propTypes = {
|
29 | |
30 |
|
31 |
|
32 | dataIndex: PropTypes.string,
|
33 | |
34 |
|
35 |
|
36 |
|
37 |
|
38 | cell: PropTypes.oneOfType([PropTypes.element, PropTypes.node, PropTypes.func]),
|
39 | |
40 |
|
41 |
|
42 | title: PropTypes.oneOfType([PropTypes.element, PropTypes.node, PropTypes.func]),
|
43 | |
44 |
|
45 |
|
46 | htmlTitle: PropTypes.string,
|
47 | |
48 |
|
49 |
|
50 | sortable: PropTypes.bool,
|
51 | |
52 |
|
53 |
|
54 |
|
55 |
|
56 |
|
57 | sortDirections: PropTypes.arrayOf(PropTypes.oneOf(['desc', 'asc', 'default'])),
|
58 | |
59 |
|
60 |
|
61 | width: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
62 | |
63 |
|
64 |
|
65 | align: PropTypes.oneOf(['left', 'center', 'right']),
|
66 | |
67 |
|
68 |
|
69 | alignHeader: PropTypes.oneOf(['left', 'center', 'right']),
|
70 | |
71 |
|
72 |
|
73 | filters: PropTypes.arrayOf(PropTypes.shape({
|
74 | label: PropTypes.string,
|
75 | value: PropTypes.oneOfType([PropTypes.node, PropTypes.string])
|
76 | })),
|
77 | |
78 |
|
79 |
|
80 | filterMode: PropTypes.oneOf(['single', 'multiple']),
|
81 | |
82 |
|
83 |
|
84 |
|
85 |
|
86 | filterMenuProps: PropTypes.object,
|
87 | filterProps: PropTypes.object,
|
88 | |
89 |
|
90 |
|
91 | lock: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),
|
92 | |
93 |
|
94 |
|
95 | resizable: PropTypes.bool,
|
96 | |
97 |
|
98 |
|
99 |
|
100 | asyncResizable: PropTypes.bool,
|
101 | |
102 |
|
103 |
|
104 | colSpan: PropTypes.number,
|
105 | |
106 |
|
107 |
|
108 |
|
109 |
|
110 |
|
111 | wordBreak: PropTypes.oneOf(['all', 'word'])
|
112 | }, _class.contextTypes = {
|
113 | parent: PropTypes.any
|
114 | }, _class.defaultProps = {
|
115 | cell: function cell(value) {
|
116 | return value;
|
117 | },
|
118 | filterMode: 'multiple',
|
119 | filterMenuProps: {
|
120 | subMenuSelectable: false
|
121 | },
|
122 | filterProps: {},
|
123 | resizable: false,
|
124 | asyncResizable: false
|
125 | }, _class._typeMark = 'column', _temp);
|
126 | Column.displayName = 'Column';
|
127 | export { Column as default }; |
\ | No newline at end of file |