cloud-b2b 1.1.58 → 1.1.60
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/Search2/Search.js +597 -0
- package/es/Search2/Search.less +65 -0
- package/es/Search2/package.json +6 -0
- package/es/SuperTable2/SuperTable2.js +3 -3
- package/es/SuperTable2/SuperTableCell.js +9 -0
- package/es/index.js +2 -1
- package/lib/Search2/Search.js +609 -0
- package/lib/Search2/Search.less +65 -0
- package/lib/Search2/package.json +6 -0
- package/lib/SuperTable2/SuperTable2.js +3 -3
- package/lib/SuperTable2/SuperTableCell.js +9 -0
- package/lib/index.js +8 -1
- package/lib/index.less +1 -0
- package/package.json +1 -1
|
@@ -257,7 +257,7 @@ var SuperTable2 = /*#__PURE__*/function (_React$Component) {
|
|
|
257
257
|
onChange: function onChange(e) {
|
|
258
258
|
_this.onChange(key, index)(e.target.value);
|
|
259
259
|
},
|
|
260
|
-
value: value
|
|
260
|
+
value: String(value)
|
|
261
261
|
};
|
|
262
262
|
return /*#__PURE__*/React.createElement(RadioGroup, radioGroupProps, _mapInstanceProperty(options).call(options, _this.toRadio));
|
|
263
263
|
});
|
|
@@ -473,8 +473,8 @@ var SuperTable2 = /*#__PURE__*/function (_React$Component) {
|
|
|
473
473
|
type: col.bsStyle
|
|
474
474
|
}, record[col.key] || col.typeRelated);
|
|
475
475
|
}
|
|
476
|
-
case 'radioGroup':
|
|
477
|
-
|
|
476
|
+
// case 'radioGroup':
|
|
477
|
+
// return this.renderRadioGroup(col, value, record.key);
|
|
478
478
|
case 'switch':
|
|
479
479
|
return typeof value === 'string' ? /*#__PURE__*/React.createElement("div", null, value) : /*#__PURE__*/React.createElement(_Switch, {
|
|
480
480
|
checkedChildren: col.props.checkedChildren || '',
|
|
@@ -127,6 +127,11 @@ var SuperTableCell = /*#__PURE__*/function (_React$Component) {
|
|
|
127
127
|
_defineProperty(_assertThisInitialized(_this), "toSelectWriting", function (props) {
|
|
128
128
|
return /*#__PURE__*/React.createElement(Control, props);
|
|
129
129
|
});
|
|
130
|
+
_defineProperty(_assertThisInitialized(_this), "toRadioGroup", function (props) {
|
|
131
|
+
console.log(props);
|
|
132
|
+
props.options = _this.options();
|
|
133
|
+
return /*#__PURE__*/React.createElement(Control, props);
|
|
134
|
+
});
|
|
130
135
|
// 确保value的值为字符串(包含value和title的对象除外)
|
|
131
136
|
_defineProperty(_assertThisInitialized(_this), "makeString", function (value) {
|
|
132
137
|
if (value === null || typeof value === 'undefined') {
|
|
@@ -201,6 +206,10 @@ var SuperTableCell = /*#__PURE__*/function (_React$Component) {
|
|
|
201
206
|
return /*#__PURE__*/React.createElement("div", {
|
|
202
207
|
className: className
|
|
203
208
|
}, this.toSelectWriting(props));
|
|
209
|
+
case 'radioGroup':
|
|
210
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
211
|
+
className: className
|
|
212
|
+
}, this.toRadioGroup(props));
|
|
204
213
|
case 'double':
|
|
205
214
|
return /*#__PURE__*/React.createElement("div", {
|
|
206
215
|
className: className
|
package/es/index.js
CHANGED
|
@@ -34,4 +34,5 @@ export { default as SuperTable } from './SuperTable';
|
|
|
34
34
|
export { default as SuperPagination } from './SuperPagination';
|
|
35
35
|
export { default as SuperTab } from './SuperTab';
|
|
36
36
|
export { default as SuperTab2 } from './SuperTab2';
|
|
37
|
-
export { default as Indent } from './Indent';
|
|
37
|
+
export { default as Indent } from './Indent';
|
|
38
|
+
export { default as Search2 } from './Search2';
|
|
@@ -0,0 +1,609 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _typeof = require("@babel/runtime-corejs3/helpers/typeof");
|
|
4
|
+
var _Reflect$construct = require("@babel/runtime-corejs3/core-js-stable/reflect/construct");
|
|
5
|
+
var _Object$keys2 = require("@babel/runtime-corejs3/core-js-stable/object/keys");
|
|
6
|
+
var _Object$getOwnPropertySymbols = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols");
|
|
7
|
+
var _filterInstanceProperty2 = require("@babel/runtime-corejs3/core-js-stable/instance/filter");
|
|
8
|
+
var _Object$getOwnPropertyDescriptor = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor");
|
|
9
|
+
var _forEachInstanceProperty = require("@babel/runtime-corejs3/core-js-stable/instance/for-each");
|
|
10
|
+
var _Object$getOwnPropertyDescriptors = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors");
|
|
11
|
+
var _Object$defineProperties = require("@babel/runtime-corejs3/core-js-stable/object/define-properties");
|
|
12
|
+
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
|
|
13
|
+
var _WeakMap = require("@babel/runtime-corejs3/core-js-stable/weak-map");
|
|
14
|
+
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
15
|
+
_Object$defineProperty(exports, "__esModule", {
|
|
16
|
+
value: true
|
|
17
|
+
});
|
|
18
|
+
exports["default"] = void 0;
|
|
19
|
+
var _regenerator = _interopRequireDefault(require("@babel/runtime-corejs3/regenerator"));
|
|
20
|
+
var _concat = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/concat"));
|
|
21
|
+
var _reduce = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/reduce"));
|
|
22
|
+
var _keys = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/object/keys"));
|
|
23
|
+
var _map = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/map"));
|
|
24
|
+
var _filter = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/filter"));
|
|
25
|
+
var _includes = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/includes"));
|
|
26
|
+
var _bind = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/bind"));
|
|
27
|
+
var _sort = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/sort"));
|
|
28
|
+
var _isArray = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/array/is-array"));
|
|
29
|
+
var _stringify = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/json/stringify"));
|
|
30
|
+
var _splice = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/splice"));
|
|
31
|
+
var _row = _interopRequireDefault(require("antd/lib/row"));
|
|
32
|
+
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/toConsumableArray"));
|
|
33
|
+
var _col = _interopRequireDefault(require("antd/lib/col"));
|
|
34
|
+
var _icon = _interopRequireDefault(require("antd/lib/icon"));
|
|
35
|
+
var _button = _interopRequireDefault(require("antd/lib/button"));
|
|
36
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/extends"));
|
|
37
|
+
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/asyncToGenerator"));
|
|
38
|
+
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/classCallCheck"));
|
|
39
|
+
var _createClass2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/createClass"));
|
|
40
|
+
var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/assertThisInitialized"));
|
|
41
|
+
var _inherits2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/inherits"));
|
|
42
|
+
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/possibleConstructorReturn"));
|
|
43
|
+
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/getPrototypeOf"));
|
|
44
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/defineProperty"));
|
|
45
|
+
var _form = _interopRequireDefault(require("antd/lib/form"));
|
|
46
|
+
var _react = _interopRequireDefault(require("react"));
|
|
47
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
48
|
+
var _reactDom = _interopRequireDefault(require("react-dom"));
|
|
49
|
+
var _withStyles = _interopRequireDefault(require("isomorphic-style-loader/withStyles"));
|
|
50
|
+
var _Control = _interopRequireWildcard(require("../Control"));
|
|
51
|
+
var _helper = require("../helper");
|
|
52
|
+
var _variables = _interopRequireDefault(require("../variables"));
|
|
53
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof _WeakMap) return null; var r = new _WeakMap(), t = new _WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
54
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = _Object$defineProperty && _Object$getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? _Object$getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? _Object$defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
55
|
+
function ownKeys(e, r) { var t = _Object$keys2(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty2(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
56
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context21, _context22; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context21 = ownKeys(Object(t), !0)).call(_context21, function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context22 = ownKeys(Object(t))).call(_context22, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
57
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; }
|
|
58
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } // import helper from '../../common/common';
|
|
59
|
+
// import s from './Search.less';
|
|
60
|
+
// import showAddDialog from './AddDialog';
|
|
61
|
+
// import showDeleteDialog from './DeleteDialog';
|
|
62
|
+
var FormItem = _form["default"].Item;
|
|
63
|
+
var defaultSize = 'small';
|
|
64
|
+
var defaultColNum = 6;
|
|
65
|
+
var insertTimeKeyMap = {
|
|
66
|
+
from: ["insertTimeTo", "insertTimeFrom"],
|
|
67
|
+
start: ["insertTimeStart", "insertTimeEnd"]
|
|
68
|
+
};
|
|
69
|
+
var TYPE = ['text', 'search', 'searchText', 'select', 'number', 'date', 'readonly', 'selectSearch', 'cascader' //级联选择下拉
|
|
70
|
+
];
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* search: 搜索按钮的标题
|
|
74
|
+
* more:更多按钮的标题
|
|
75
|
+
* reset:重置按钮的标题
|
|
76
|
+
* sort:排序按钮的标题
|
|
77
|
+
*/
|
|
78
|
+
var ConfigType = {
|
|
79
|
+
search: _propTypes["default"].string.isRequired,
|
|
80
|
+
reset: _propTypes["default"].string,
|
|
81
|
+
sort: _propTypes["default"].string,
|
|
82
|
+
more: _propTypes["default"].string
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* key: 唯一标识一个表单元素
|
|
87
|
+
* title:表单元素旁边的标题
|
|
88
|
+
* type:表单元素的类型
|
|
89
|
+
* props:传递给表单元素的额外属性
|
|
90
|
+
*/
|
|
91
|
+
var FilterType = {
|
|
92
|
+
key: _propTypes["default"].string.isRequired,
|
|
93
|
+
title: _propTypes["default"].string.isRequired,
|
|
94
|
+
type: _propTypes["default"].oneOf(TYPE).isRequired,
|
|
95
|
+
options: _propTypes["default"].array,
|
|
96
|
+
props: _propTypes["default"].object
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* data:传递给filters的默认值,为key:value的形式,此处的key为FilterType中的key
|
|
101
|
+
* isSort:是否需要排序按钮,默认false,当设置为true时,onClick函数需要实现key为sort的响应函数
|
|
102
|
+
* options: 作用同FilterType.options类似,但优先级高于它
|
|
103
|
+
* onClick:按钮点击事件,原型为func(key)
|
|
104
|
+
* onChange:表单控件内容改变时触发,原型为func(key, value)
|
|
105
|
+
* onSearch:search控件发出的事件,原型为func(key, value)
|
|
106
|
+
* displayRow:折叠时需要展示的行数,整数,默认为2
|
|
107
|
+
*/
|
|
108
|
+
var Search2 = /*#__PURE__*/function (_React$Component) {
|
|
109
|
+
(0, _inherits2["default"])(Search2, _React$Component);
|
|
110
|
+
var _super = _createSuper(Search2);
|
|
111
|
+
function Search2() {
|
|
112
|
+
var _context;
|
|
113
|
+
var _this;
|
|
114
|
+
(0, _classCallCheck2["default"])(this, Search2);
|
|
115
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
116
|
+
args[_key] = arguments[_key];
|
|
117
|
+
}
|
|
118
|
+
_this = _super.call.apply(_super, (0, _concat["default"])(_context = [this]).call(_context, args));
|
|
119
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "state", {
|
|
120
|
+
more: false
|
|
121
|
+
});
|
|
122
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "getPathFun", /*#__PURE__*/function () {
|
|
123
|
+
var _ref = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(key) {
|
|
124
|
+
var _context2, _context8;
|
|
125
|
+
var pathArr, _global$store$getStat, sidebars, navigation, title, body, url;
|
|
126
|
+
return _regenerator["default"].wrap(function _callee$(_context9) {
|
|
127
|
+
while (1) switch (_context9.prev = _context9.next) {
|
|
128
|
+
case 0:
|
|
129
|
+
pathArr = global.location.pathname.split('/');
|
|
130
|
+
_global$store$getStat = global.store.getState().layout, sidebars = _global$store$getStat.sidebars, navigation = _global$store$getStat.navigation;
|
|
131
|
+
title = (0, _reduce["default"])(_context2 = (0, _keys["default"])(sidebars)).call(_context2, function (t, i) {
|
|
132
|
+
var _context3;
|
|
133
|
+
(0, _map["default"])(_context3 = sidebars[i]).call(_context3, function (item) {
|
|
134
|
+
if (item.children) {
|
|
135
|
+
var _context4;
|
|
136
|
+
var filterArr = (0, _filter["default"])(_context4 = item.children).call(_context4, function (c) {
|
|
137
|
+
return c.href === global.location.pathname;
|
|
138
|
+
});
|
|
139
|
+
if (filterArr.length !== 0) {
|
|
140
|
+
var _context5, _context6;
|
|
141
|
+
t = (0, _concat["default"])(_context5 = (0, _filter["default"])(navigation).call(navigation, function (n) {
|
|
142
|
+
return n.key === i;
|
|
143
|
+
})[0].title).call(_context5, (0, _concat["default"])(_context6 = "-".concat(item.title, "-")).call(_context6, filterArr[0].title));
|
|
144
|
+
}
|
|
145
|
+
} else {
|
|
146
|
+
if (item.href === global.location.pathname) {
|
|
147
|
+
var _context7;
|
|
148
|
+
t = (0, _concat["default"])(_context7 = (0, _filter["default"])(navigation).call(navigation, function (n) {
|
|
149
|
+
return n.key === i;
|
|
150
|
+
})[0].title).call(_context7, "-".concat(item.title));
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
return item;
|
|
154
|
+
});
|
|
155
|
+
return t;
|
|
156
|
+
}, '');
|
|
157
|
+
body = {
|
|
158
|
+
action: (0, _concat["default"])(_context8 = "".concat(pathArr[pathArr.length - 1], "_")).call(_context8, key),
|
|
159
|
+
actionName: "".concat(title, "-\u641C\u7D22"),
|
|
160
|
+
menuName: title
|
|
161
|
+
};
|
|
162
|
+
url = '/api/standard/log'; // await helper.fetchJson(url, helper.postOption(body))
|
|
163
|
+
case 5:
|
|
164
|
+
case "end":
|
|
165
|
+
return _context9.stop();
|
|
166
|
+
}
|
|
167
|
+
}, _callee);
|
|
168
|
+
}));
|
|
169
|
+
return function (_x) {
|
|
170
|
+
return _ref.apply(this, arguments);
|
|
171
|
+
};
|
|
172
|
+
}());
|
|
173
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "onClick", function (key) {
|
|
174
|
+
var onClick = _this.props.onClick;
|
|
175
|
+
if (key === 'search') {
|
|
176
|
+
// this.getPathFun(key);
|
|
177
|
+
}
|
|
178
|
+
onClick && onClick(key);
|
|
179
|
+
});
|
|
180
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "onMore", function () {
|
|
181
|
+
var onHeightChange = _this.props.onHeightChange;
|
|
182
|
+
_this.setState({
|
|
183
|
+
more: !_this.state.more
|
|
184
|
+
});
|
|
185
|
+
onHeightChange && onHeightChange(_this.calHeight(!_this.state.more));
|
|
186
|
+
});
|
|
187
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "onChange", function (dictionary, key, value) {
|
|
188
|
+
var _context10, _context11;
|
|
189
|
+
var onChange = _this.props.onChange;
|
|
190
|
+
if (value && key === 'queryGroup' && dictionary && global.dictionary && global.dictionary[dictionary] && !(0, _includes["default"])(_context10 = (0, _map["default"])(_context11 = global.dictionary[dictionary]).call(_context11, function (item) {
|
|
191
|
+
return item.value;
|
|
192
|
+
})).call(_context10, value)) {
|
|
193
|
+
var _context12;
|
|
194
|
+
var realValue = JSON.parse(value);
|
|
195
|
+
_this.onClick('reset');
|
|
196
|
+
(0, _map["default"])(_context12 = (0, _keys["default"])(realValue)).call(_context12, function (objectKey) {
|
|
197
|
+
onChange && objectKey !== 'queryId' && onChange(objectKey, realValue[objectKey]);
|
|
198
|
+
});
|
|
199
|
+
}
|
|
200
|
+
onChange && onChange(key, value);
|
|
201
|
+
});
|
|
202
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "onPressEnter", function () {
|
|
203
|
+
_reactDom["default"].findDOMNode(_this.refs.search).click();
|
|
204
|
+
});
|
|
205
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "toButton", function (key) {
|
|
206
|
+
var _context13;
|
|
207
|
+
var props = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
208
|
+
var config = _this.props.config;
|
|
209
|
+
var onClick = (0, _bind["default"])(_context13 = _this.onClick).call(_context13, (0, _assertThisInitialized2["default"])(_this), key);
|
|
210
|
+
return /*#__PURE__*/_react["default"].createElement(_button["default"], (0, _extends2["default"])({
|
|
211
|
+
size: defaultSize,
|
|
212
|
+
onClick: onClick
|
|
213
|
+
}, props), config[key]);
|
|
214
|
+
});
|
|
215
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "toMore", function () {
|
|
216
|
+
return /*#__PURE__*/_react["default"].createElement("a", {
|
|
217
|
+
role: "more",
|
|
218
|
+
onClick: _this.onMore
|
|
219
|
+
}, _this.props.config.more, /*#__PURE__*/_react["default"].createElement(_icon["default"], {
|
|
220
|
+
type: "down",
|
|
221
|
+
"data-status": !_this.state.more ? 'down' : 'up'
|
|
222
|
+
}));
|
|
223
|
+
});
|
|
224
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "toButtons", function () {
|
|
225
|
+
var config = _this.props.config;
|
|
226
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
227
|
+
role: "buttons"
|
|
228
|
+
}, _this.toButton('search', {
|
|
229
|
+
ref: 'search',
|
|
230
|
+
type: 'primary'
|
|
231
|
+
}), config.reset ? _this.toButton('reset') : null, _this.isSort() ? _this.toButton('sort') : null, _this.isMore() ? _this.toMore() : null);
|
|
232
|
+
});
|
|
233
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "isSort", function () {
|
|
234
|
+
var _this$props = _this.props,
|
|
235
|
+
config = _this$props.config,
|
|
236
|
+
_this$props$colNum = _this$props.colNum,
|
|
237
|
+
colNum = _this$props$colNum === void 0 ? defaultColNum : _this$props$colNum,
|
|
238
|
+
filters = _this$props.filters,
|
|
239
|
+
_this$props$isSort = _this$props.isSort,
|
|
240
|
+
isSort = _this$props$isSort === void 0 ? false : _this$props$isSort;
|
|
241
|
+
return isSort && (0, _sort["default"])(config) && filters.length > colNum;
|
|
242
|
+
});
|
|
243
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "isMore", function () {
|
|
244
|
+
var _this$props2 = _this.props,
|
|
245
|
+
config = _this$props2.config,
|
|
246
|
+
_this$props2$colNum = _this$props2.colNum,
|
|
247
|
+
colNum = _this$props2$colNum === void 0 ? defaultColNum : _this$props2$colNum,
|
|
248
|
+
filters = _this$props2.filters,
|
|
249
|
+
_this$props2$displayR = _this$props2.displayRow,
|
|
250
|
+
displayRow = _this$props2$displayR === void 0 ? filters.length > 4 ? 2 : 1 : _this$props2$displayR;
|
|
251
|
+
return config.more && (0, _filter["default"])(filters).call(filters, function (item) {
|
|
252
|
+
return !item.hide;
|
|
253
|
+
}).length > colNum * displayRow;
|
|
254
|
+
});
|
|
255
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "getOptions", function (filter) {
|
|
256
|
+
var options = _this.props.options;
|
|
257
|
+
if (options && (0, _isArray["default"])(options[filter.key])) {
|
|
258
|
+
return options[filter.key];
|
|
259
|
+
} else {
|
|
260
|
+
return filter.options || filter.typeRelated || [];
|
|
261
|
+
}
|
|
262
|
+
});
|
|
263
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "getContainer", function () {
|
|
264
|
+
return _this.props.getContainer;
|
|
265
|
+
});
|
|
266
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "getControlProps", function (control) {
|
|
267
|
+
var _context14;
|
|
268
|
+
var _this$props$data = _this.props.data,
|
|
269
|
+
data = _this$props$data === void 0 ? {} : _this$props$data;
|
|
270
|
+
return _objectSpread(_objectSpread({}, control.props || {}), {}, {
|
|
271
|
+
size: defaultSize,
|
|
272
|
+
type: control.type,
|
|
273
|
+
value: (0, _Control.makeString)(data[control.key]),
|
|
274
|
+
onChange: (0, _bind["default"])(_context14 = _this.onChange).call(_context14, (0, _assertThisInitialized2["default"])(_this), control.dictionary, control.key)
|
|
275
|
+
});
|
|
276
|
+
});
|
|
277
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "validDate", function (_ref2) {
|
|
278
|
+
var key = _ref2.key,
|
|
279
|
+
type = _ref2.type;
|
|
280
|
+
return function (date) {
|
|
281
|
+
var _this$props$data2 = _this.props.data,
|
|
282
|
+
data = _this$props$data2 === void 0 ? {} : _this$props$data2;
|
|
283
|
+
if (!date || !data[key]) {
|
|
284
|
+
return false;
|
|
285
|
+
} else {
|
|
286
|
+
if (type === '>') {
|
|
287
|
+
return date.format('YYYY-MM-DD HH:mm:ss') <= data[key].valueOf();
|
|
288
|
+
} else if (type === '<') {
|
|
289
|
+
return date.format('YYYY-MM-DD HH:mm:ss') >= data[key].valueOf();
|
|
290
|
+
} else {
|
|
291
|
+
return false;
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
};
|
|
295
|
+
});
|
|
296
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "toText", function (props) {
|
|
297
|
+
props.onPressEnter = _this.onPressEnter;
|
|
298
|
+
return /*#__PURE__*/_react["default"].createElement(_Control["default"], props);
|
|
299
|
+
});
|
|
300
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "toNumber", function (props) {
|
|
301
|
+
props.defaultValue = props.value;
|
|
302
|
+
delete props.value;
|
|
303
|
+
return /*#__PURE__*/_react["default"].createElement(_Control["default"], props);
|
|
304
|
+
});
|
|
305
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "getQueryGroupOptions", function (_ref3) {
|
|
306
|
+
var dictionary = _ref3.dictionary,
|
|
307
|
+
_ref3$configCode = _ref3.configCode,
|
|
308
|
+
configCode = _ref3$configCode === void 0 ? 'unknown' : _ref3$configCode;
|
|
309
|
+
var realOptions = [];
|
|
310
|
+
if (dictionary && global.dictionary) {
|
|
311
|
+
var dicOptions = global.dictionary[dictionary] || [];
|
|
312
|
+
realOptions = (0, _concat["default"])(realOptions).call(realOptions, dicOptions);
|
|
313
|
+
}
|
|
314
|
+
var state = global.store.getState();
|
|
315
|
+
var path = ['layout', 'tableColsSetting', configCode];
|
|
316
|
+
var _ref4 = (0, _helper.getPathValue)(state, path) || {},
|
|
317
|
+
_ref4$queryList = _ref4.queryList,
|
|
318
|
+
queryList = _ref4$queryList === void 0 ? [] : _ref4$queryList;
|
|
319
|
+
return (0, _concat["default"])(realOptions).call(realOptions, (0, _map["default"])(queryList).call(queryList, function (item) {
|
|
320
|
+
return {
|
|
321
|
+
title: item.name,
|
|
322
|
+
value: (0, _stringify["default"])(item.query)
|
|
323
|
+
};
|
|
324
|
+
}));
|
|
325
|
+
});
|
|
326
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "toSelect", function (props, filter) {
|
|
327
|
+
var container = _this.getContainer();
|
|
328
|
+
container && (props.getPopupContainer = container);
|
|
329
|
+
props.options = filter.key === 'queryGroup' ? _this.getQueryGroupOptions(filter) : _this.getOptions(filter);
|
|
330
|
+
props.dropdownMatchSelectWidth = false;
|
|
331
|
+
return /*#__PURE__*/_react["default"].createElement(_Control["default"], props);
|
|
332
|
+
});
|
|
333
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "createSearchEvent", function (filter) {
|
|
334
|
+
if (_this.props.onSearch) {
|
|
335
|
+
return function (value) {
|
|
336
|
+
return _this.props.onSearch(filter.key, value, filter);
|
|
337
|
+
};
|
|
338
|
+
} else {
|
|
339
|
+
return null;
|
|
340
|
+
}
|
|
341
|
+
});
|
|
342
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "toSearch", function (props, filter) {
|
|
343
|
+
var container = _this.getContainer();
|
|
344
|
+
container && (props.getPopupContainer = container);
|
|
345
|
+
props.options = _this.getOptions(filter);
|
|
346
|
+
props.onSearch = _this.createSearchEvent(filter);
|
|
347
|
+
props.dropdownMatchSelectWidth = false;
|
|
348
|
+
return /*#__PURE__*/_react["default"].createElement(_Control["default"], props);
|
|
349
|
+
});
|
|
350
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "selectSearch", function (props, filter) {
|
|
351
|
+
var container = _this.getContainer();
|
|
352
|
+
container && (props.getPopupContainer = container);
|
|
353
|
+
props.options = _this.getOptions(filter);
|
|
354
|
+
props.onSearch = _this.createSearchEvent(filter);
|
|
355
|
+
props.dropdownMatchSelectWidth = false;
|
|
356
|
+
return /*#__PURE__*/_react["default"].createElement(_Control["default"], props);
|
|
357
|
+
});
|
|
358
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "toDate", function (props, _ref5) {
|
|
359
|
+
var rule = _ref5.rule;
|
|
360
|
+
var container = _this.getContainer();
|
|
361
|
+
container && (props.getCalendarContainer = container);
|
|
362
|
+
rule && (props.disabledDate = _this.validDate(rule));
|
|
363
|
+
props.style = {
|
|
364
|
+
width: '100%'
|
|
365
|
+
};
|
|
366
|
+
return /*#__PURE__*/_react["default"].createElement(_Control["default"], props);
|
|
367
|
+
});
|
|
368
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "toReadonly", function (props, filter) {
|
|
369
|
+
props.value = (0, _Control.getTitle)(props.value, _this.getOptions(filter));
|
|
370
|
+
return /*#__PURE__*/_react["default"].createElement(_Control["default"], props);
|
|
371
|
+
});
|
|
372
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "toCascader", function (props, filter) {
|
|
373
|
+
var container = _this.getContainer();
|
|
374
|
+
container && (props.getPopupContainer = container);
|
|
375
|
+
props.options = _this.getOptions(filter);
|
|
376
|
+
props.onSearch = _this.createSearchEvent(filter);
|
|
377
|
+
props.placeholder = filter.placeholder || '';
|
|
378
|
+
return /*#__PURE__*/_react["default"].createElement(_Control["default"], props);
|
|
379
|
+
});
|
|
380
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "toControl", function (control) {
|
|
381
|
+
var props = _this.getControlProps(control);
|
|
382
|
+
switch (control.type) {
|
|
383
|
+
case 'text':
|
|
384
|
+
return _this.toText(props, control);
|
|
385
|
+
case 'number':
|
|
386
|
+
return _this.toNumber(props, control);
|
|
387
|
+
case 'select':
|
|
388
|
+
return _this.toSelect(props, control);
|
|
389
|
+
case 'selectSearch':
|
|
390
|
+
return _this.selectSearch(props, control);
|
|
391
|
+
case 'search':
|
|
392
|
+
case 'searchText':
|
|
393
|
+
return _this.toSearch(props, control);
|
|
394
|
+
case 'date':
|
|
395
|
+
return _this.toDate(props, control);
|
|
396
|
+
case 'readonly':
|
|
397
|
+
return _this.toReadonly(props, control);
|
|
398
|
+
case 'cascader':
|
|
399
|
+
return _this.toCascader(props, control);
|
|
400
|
+
default:
|
|
401
|
+
return 'type error';
|
|
402
|
+
}
|
|
403
|
+
});
|
|
404
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "toLabel", function (_ref6) {
|
|
405
|
+
var title = _ref6.title,
|
|
406
|
+
key = _ref6.key,
|
|
407
|
+
dictionary = _ref6.dictionary,
|
|
408
|
+
_ref6$configCode = _ref6.configCode,
|
|
409
|
+
configCode = _ref6$configCode === void 0 ? 'unknown' : _ref6$configCode;
|
|
410
|
+
if (key === 'queryGroup') {
|
|
411
|
+
var _context15, _context16;
|
|
412
|
+
//查询组合
|
|
413
|
+
return /*#__PURE__*/_react["default"].createElement("span", null, title, /*#__PURE__*/_react["default"].createElement(_icon["default"], {
|
|
414
|
+
role: "icon",
|
|
415
|
+
type: "plus-circle-o",
|
|
416
|
+
onClick: (0, _bind["default"])(_context15 = _this.onAddQueryGroup).call(_context15, (0, _assertThisInitialized2["default"])(_this), configCode, _this.props.data, dictionary)
|
|
417
|
+
}), /*#__PURE__*/_react["default"].createElement(_icon["default"], {
|
|
418
|
+
role: "icon",
|
|
419
|
+
type: "minus-circle-o",
|
|
420
|
+
onClick: (0, _bind["default"])(_context16 = _this.onDelQueryGroup).call(_context16, (0, _assertThisInitialized2["default"])(_this), configCode, _this.props.data, dictionary)
|
|
421
|
+
}));
|
|
422
|
+
} else {
|
|
423
|
+
return title;
|
|
424
|
+
}
|
|
425
|
+
});
|
|
426
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "toCol", function (span, control, more) {
|
|
427
|
+
var factor = control.span || 1;
|
|
428
|
+
return /*#__PURE__*/_react["default"].createElement(_col["default"], {
|
|
429
|
+
span: span * factor,
|
|
430
|
+
key: control.key,
|
|
431
|
+
onFocus: more ? function () {
|
|
432
|
+
_this.setState({
|
|
433
|
+
more: true
|
|
434
|
+
});
|
|
435
|
+
} : undefined
|
|
436
|
+
}, /*#__PURE__*/_react["default"].createElement(FormItem, {
|
|
437
|
+
label: _this.toLabel(control),
|
|
438
|
+
required: control.required
|
|
439
|
+
}, _this.toControl(control)));
|
|
440
|
+
});
|
|
441
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "toCols", function () {
|
|
442
|
+
var _this$props3 = _this.props,
|
|
443
|
+
_this$props3$insertTi = _this$props3.insertTimeKey,
|
|
444
|
+
insertTimeKey = _this$props3$insertTi === void 0 ? 'from' : _this$props3$insertTi,
|
|
445
|
+
_this$props3$colNum = _this$props3.colNum,
|
|
446
|
+
colNum = _this$props3$colNum === void 0 ? defaultColNum : _this$props3$colNum,
|
|
447
|
+
filters = _this$props3.filters,
|
|
448
|
+
_this$props3$displayR = _this$props3.displayRow,
|
|
449
|
+
displayRow = _this$props3$displayR === void 0 ? filters.length > defaultColNum ? 2 : 1 : _this$props3$displayR;
|
|
450
|
+
var span = 24 / Math.min(colNum, (0, _filter["default"])(filters).call(filters, function (item) {
|
|
451
|
+
return !item.hide;
|
|
452
|
+
}).length);
|
|
453
|
+
var newFilters = (0, _filter["default"])(filters).call(filters, function (item) {
|
|
454
|
+
return !item.hide;
|
|
455
|
+
});
|
|
456
|
+
var insertKeys = insertTimeKeyMap[insertTimeKey];
|
|
457
|
+
var insertTimeCols = (0, _filter["default"])(newFilters).call(newFilters, function (x) {
|
|
458
|
+
return (0, _includes["default"])(insertKeys).call(insertKeys, x.key);
|
|
459
|
+
});
|
|
460
|
+
var otherCols = (0, _filter["default"])(newFilters).call(newFilters, function (x) {
|
|
461
|
+
return !(0, _includes["default"])(insertKeys).call(insertKeys, x.key);
|
|
462
|
+
});
|
|
463
|
+
if (insertTimeCols.length > 0) {
|
|
464
|
+
if (otherCols.length >= defaultColNum) {
|
|
465
|
+
var _context17;
|
|
466
|
+
(0, _splice["default"])(otherCols).apply(otherCols, (0, _concat["default"])(_context17 = [6, 0]).call(_context17, (0, _toConsumableArray2["default"])(insertTimeCols)));
|
|
467
|
+
newFilters = otherCols;
|
|
468
|
+
} else {
|
|
469
|
+
newFilters = (0, _concat["default"])(otherCols).call(otherCols, insertTimeCols);
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
if (span == 4.8) {
|
|
473
|
+
//特殊处理filters为5的时候,span不能为小数
|
|
474
|
+
return (0, _map["default"])(newFilters).call(newFilters, function (control, index) {
|
|
475
|
+
return _this.toCol(index == 0 ? 4 : 5, control, index >= colNum * displayRow);
|
|
476
|
+
});
|
|
477
|
+
} else {
|
|
478
|
+
return (0, _map["default"])(newFilters).call(newFilters, function (control, index) {
|
|
479
|
+
return _this.toCol(span, control, index >= colNum * displayRow);
|
|
480
|
+
});
|
|
481
|
+
}
|
|
482
|
+
});
|
|
483
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "calWidth", function () {
|
|
484
|
+
var _this$props4 = _this.props,
|
|
485
|
+
_this$props4$colNum = _this$props4.colNum,
|
|
486
|
+
colNum = _this$props4$colNum === void 0 ? defaultColNum : _this$props4$colNum,
|
|
487
|
+
filters = _this$props4.filters;
|
|
488
|
+
var length = (0, _filter["default"])(filters).call(filters, function (item) {
|
|
489
|
+
return !item.hide;
|
|
490
|
+
}).length;
|
|
491
|
+
if (length < colNum) {
|
|
492
|
+
return "".concat(length * 13.6, "%");
|
|
493
|
+
} else {
|
|
494
|
+
return "".concat(defaultColNum * 13.6, "%");
|
|
495
|
+
}
|
|
496
|
+
});
|
|
497
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "calHeight", function (more) {
|
|
498
|
+
var _this$props5 = _this.props,
|
|
499
|
+
_this$props5$colNum = _this$props5.colNum,
|
|
500
|
+
colNum = _this$props5$colNum === void 0 ? defaultColNum : _this$props5$colNum,
|
|
501
|
+
filters = _this$props5.filters,
|
|
502
|
+
_this$props5$displayR = _this$props5.displayRow,
|
|
503
|
+
displayRow = _this$props5$displayR === void 0 ? filters.length > defaultColNum ? 2 : 1 : _this$props5$displayR;
|
|
504
|
+
if (more) {
|
|
505
|
+
var row = Math.ceil((0, _filter["default"])(filters).call(filters, function (item) {
|
|
506
|
+
return !item.hide;
|
|
507
|
+
}).length / colNum);
|
|
508
|
+
return row * 36 + (row - 1) * 10;
|
|
509
|
+
} else {
|
|
510
|
+
return displayRow * 36 + (displayRow - 1) * 10;
|
|
511
|
+
}
|
|
512
|
+
});
|
|
513
|
+
return _this;
|
|
514
|
+
}
|
|
515
|
+
(0, _createClass2["default"])(Search2, [{
|
|
516
|
+
key: "onAddQueryGroup",
|
|
517
|
+
value: function () {
|
|
518
|
+
var _onAddQueryGroup = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee2(configCode, searchData, dictionary) {
|
|
519
|
+
var _context18;
|
|
520
|
+
var filter, dicOptionNameArr, dicOptions;
|
|
521
|
+
return _regenerator["default"].wrap(function _callee2$(_context19) {
|
|
522
|
+
while (1) switch (_context19.prev = _context19.next) {
|
|
523
|
+
case 0:
|
|
524
|
+
filter = (0, _reduce["default"])(_context18 = (0, _keys["default"])(searchData)).call(_context18, function (state, key) {
|
|
525
|
+
if (searchData[key] && key !== 'queryGroup') {
|
|
526
|
+
state[key] = searchData[key];
|
|
527
|
+
}
|
|
528
|
+
return state;
|
|
529
|
+
}, {}); // if (Object.keys(filter).length < 1) return helper.showError(`查询条件不能为空`);
|
|
530
|
+
dicOptionNameArr = [];
|
|
531
|
+
if (dictionary && global.dictionary) {
|
|
532
|
+
dicOptions = global.dictionary[dictionary] || [];
|
|
533
|
+
dicOptionNameArr = (0, _map["default"])(dicOptions).call(dicOptions, function (item) {
|
|
534
|
+
return item.title;
|
|
535
|
+
});
|
|
536
|
+
}
|
|
537
|
+
// if (true === await showAddDialog(configCode, filter, dicOptionNameArr)) {
|
|
538
|
+
// this.onChange(undefined, 'queryGroup', '');
|
|
539
|
+
// }
|
|
540
|
+
case 3:
|
|
541
|
+
case "end":
|
|
542
|
+
return _context19.stop();
|
|
543
|
+
}
|
|
544
|
+
}, _callee2);
|
|
545
|
+
}));
|
|
546
|
+
function onAddQueryGroup(_x2, _x3, _x4) {
|
|
547
|
+
return _onAddQueryGroup.apply(this, arguments);
|
|
548
|
+
}
|
|
549
|
+
return onAddQueryGroup;
|
|
550
|
+
}()
|
|
551
|
+
}, {
|
|
552
|
+
key: "onDelQueryGroup",
|
|
553
|
+
value: function () {
|
|
554
|
+
var _onDelQueryGroup = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee3(configCode, searchData, dictionary) {
|
|
555
|
+
var queryGroup, dicOptions, _JSON$parse, queryId;
|
|
556
|
+
return _regenerator["default"].wrap(function _callee3$(_context20) {
|
|
557
|
+
while (1) switch (_context20.prev = _context20.next) {
|
|
558
|
+
case 0:
|
|
559
|
+
queryGroup = searchData.queryGroup; // if (!queryGroup) return helper.showError(`请先选择要删除的查询组合`);
|
|
560
|
+
if (dictionary && global.dictionary) {
|
|
561
|
+
dicOptions = global.dictionary[dictionary] || []; // if (dicOptions.map(item => item.value).includes(queryGroup)) return helper.showError(`系统固定查询组合不允许删除`);
|
|
562
|
+
}
|
|
563
|
+
_JSON$parse = JSON.parse(queryGroup), queryId = _JSON$parse.queryId; // if(true === await showDeleteDialog(configCode, queryId)) {
|
|
564
|
+
// this.onClick('reset');
|
|
565
|
+
// }
|
|
566
|
+
case 3:
|
|
567
|
+
case "end":
|
|
568
|
+
return _context20.stop();
|
|
569
|
+
}
|
|
570
|
+
}, _callee3);
|
|
571
|
+
}));
|
|
572
|
+
function onDelQueryGroup(_x5, _x6, _x7) {
|
|
573
|
+
return _onDelQueryGroup.apply(this, arguments);
|
|
574
|
+
}
|
|
575
|
+
return onDelQueryGroup;
|
|
576
|
+
}()
|
|
577
|
+
}, {
|
|
578
|
+
key: "render",
|
|
579
|
+
value: function render() {
|
|
580
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
581
|
+
className: (0, _variables["default"])('Search2'),
|
|
582
|
+
style: {
|
|
583
|
+
height: this.calHeight(this.state.more)
|
|
584
|
+
}
|
|
585
|
+
}, /*#__PURE__*/_react["default"].createElement(_form["default"], {
|
|
586
|
+
layout: "vertical",
|
|
587
|
+
style: {
|
|
588
|
+
width: this.calWidth()
|
|
589
|
+
}
|
|
590
|
+
}, /*#__PURE__*/_react["default"].createElement(_row["default"], {
|
|
591
|
+
gutter: 20
|
|
592
|
+
}, this.toCols())), this.toButtons());
|
|
593
|
+
}
|
|
594
|
+
}]);
|
|
595
|
+
return Search2;
|
|
596
|
+
}(_react["default"].Component);
|
|
597
|
+
(0, _defineProperty2["default"])(Search2, "propTypes", {
|
|
598
|
+
config: _propTypes["default"].shape(ConfigType).isRequired,
|
|
599
|
+
filters: _propTypes["default"].arrayOf(_propTypes["default"].shape(FilterType)).isRequired,
|
|
600
|
+
data: _propTypes["default"].object,
|
|
601
|
+
options: _propTypes["default"].object,
|
|
602
|
+
getContainer: _propTypes["default"].func,
|
|
603
|
+
onClick: _propTypes["default"].func,
|
|
604
|
+
onChange: _propTypes["default"].func,
|
|
605
|
+
onSearch: _propTypes["default"].func,
|
|
606
|
+
onHeightChange: _propTypes["default"].func,
|
|
607
|
+
displayRow: _propTypes["default"].number
|
|
608
|
+
});
|
|
609
|
+
var _default = exports["default"] = Search2;
|