cloud-b2b 1.1.26 → 1.1.28
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/Area/Area.js +16 -45
- package/es/Card/Card.js +3 -4
- package/es/CodeInput/CodeInput.js +30 -59
- package/es/Control/Control.js +47 -94
- package/es/Control/event.js +0 -14
- package/es/Enhance/Dialogs.js +0 -15
- package/es/Enhance/Loading.js +16 -36
- package/es/Enhance/index.js +0 -2
- package/es/Header/Header.js +3 -35
- package/es/Header/Vertical.js +1 -24
- package/es/ImageView/ImageView.js +5 -22
- package/es/Indent/Indent.js +3 -7
- package/es/InpurCascader/InputCascader.js +10 -36
- package/es/InputEditor/InputEditor.js +55 -55
- package/es/InputSearch/InputSearch.js +26 -71
- package/es/InputSelect/InputSelect.js +17 -48
- package/es/InputWriting/InputWriting.js +6 -28
- package/es/Layout/Layout.js +28 -59
- package/es/LayoutLink/LayoutLink.js +11 -20
- package/es/Link/Link.js +4 -27
- package/es/Loading/Loading.js +1 -3
- package/es/Loading2/Loading2.js +0 -2
- package/es/ModalWithDrag/ModalWithDrag.js +3 -8
- package/es/ModalWithDrag/drag.js +12 -29
- package/es/NumberInput/NumberInput.js +24 -63
- package/es/Search/Search.js +53 -149
- package/es/Sidebar/Sidebar.js +13 -34
- package/es/Sidebar2/Sidebar.js +3 -30
- package/es/SuperForm/SuperForm.js +27 -150
- package/es/SuperForm2/SuperForm.js +31 -165
- package/es/SuperIcon/SuperIcon.js +3 -6
- package/es/SuperPagination/SuperPagination.js +15 -32
- package/es/SuperTab/SuperTab.js +4 -27
- package/es/SuperTab2/SuperTab2.js +11 -33
- package/es/SuperTable/DragSortRow.js +6 -34
- package/es/SuperTable/FilterDropDown.js +10 -34
- package/es/SuperTable/SuperTable.js +91 -216
- package/es/SuperTable/fixed.js +1 -9
- package/es/SuperTable2/SuperTable2.js +104 -206
- package/es/SuperTable2/SuperTableCell.js +16 -55
- package/es/SuperTable3/FilterDropDown.js +10 -34
- package/es/SuperTable3/SuperTable.js +57 -175
- package/es/SuperTable3/fixed.js +1 -9
- package/es/SuperToolbar/SuperToolbar.js +21 -49
- package/es/SuperUpload/SuperUpload.js +73 -110
- package/es/Title/Title.js +12 -15
- package/es/Viewer/ImageViews.js +7 -60
- package/es/Viewer/Viewer.js +7 -34
- package/es/WingBlank/WingBlank.js +2 -6
- package/es/helper.js +36 -23
- package/es/history.js +3 -2
- package/lib/Area/Area.js +16 -64
- package/lib/Card/Card.js +3 -13
- package/lib/CodeInput/CodeInput.js +30 -77
- package/lib/Control/Control.js +47 -135
- package/lib/Control/event.js +0 -16
- package/lib/Enhance/Dialogs.js +0 -26
- package/lib/Enhance/Loading.js +16 -52
- package/lib/Enhance/index.js +0 -9
- package/lib/Header/Header.js +3 -48
- package/lib/Header/Vertical.js +1 -36
- package/lib/ImageView/ImageView.js +5 -30
- package/lib/Indent/Indent.js +3 -13
- package/lib/InpurCascader/InputCascader.js +11 -50
- package/lib/InputEditor/InputEditor.js +55 -64
- package/lib/InputSearch/InputSearch.js +26 -78
- package/lib/InputSelect/InputSelect.js +17 -62
- package/lib/InputWriting/InputWriting.js +6 -35
- package/lib/Layout/Layout.js +28 -76
- package/lib/LayoutLink/LayoutLink.js +11 -38
- package/lib/Link/Link.js +4 -40
- package/lib/Loading/Loading.js +1 -9
- package/lib/Loading2/Loading2.js +0 -8
- package/lib/ModalWithDrag/ModalWithDrag.js +3 -18
- package/lib/ModalWithDrag/drag.js +12 -34
- package/lib/NumberInput/NumberInput.js +24 -76
- package/lib/Search/Search.js +53 -157
- package/lib/Sidebar/Sidebar.js +13 -46
- package/lib/Sidebar2/Sidebar.js +3 -42
- package/lib/SuperForm/SuperForm.js +27 -149
- package/lib/SuperForm2/SuperForm.js +31 -160
- package/lib/SuperIcon/SuperIcon.js +3 -14
- package/lib/SuperPagination/SuperPagination.js +15 -42
- package/lib/SuperTab/SuperTab.js +4 -34
- package/lib/SuperTab2/SuperTab2.js +11 -48
- package/lib/SuperTable/DragSortRow.js +6 -42
- package/lib/SuperTable/FilterDropDown.js +10 -42
- package/lib/SuperTable/SuperTable.js +90 -210
- package/lib/SuperTable/fixed.js +1 -13
- package/lib/SuperTable2/SuperTable2.js +104 -222
- package/lib/SuperTable2/SuperTableCell.js +13 -62
- package/lib/SuperTable3/FilterDropDown.js +10 -42
- package/lib/SuperTable3/SuperTable.js +56 -169
- package/lib/SuperTable3/fixed.js +1 -13
- package/lib/SuperToolbar/SuperToolbar.js +20 -64
- package/lib/SuperUpload/SuperUpload.js +73 -140
- package/lib/Title/Title.js +12 -24
- package/lib/Viewer/ImageViews.js +7 -63
- package/lib/Viewer/Viewer.js +7 -43
- package/lib/WingBlank/WingBlank.js +2 -14
- package/lib/helper.js +36 -37
- package/lib/history.js +0 -5
- package/lib/index.js +0 -76
- package/lib/variables.js +0 -4
- package/package.json +1 -1
|
@@ -14,125 +14,99 @@ import _inherits from "@babel/runtime-corejs3/helpers/inherits";
|
|
|
14
14
|
import _possibleConstructorReturn from "@babel/runtime-corejs3/helpers/possibleConstructorReturn";
|
|
15
15
|
import _getPrototypeOf from "@babel/runtime-corejs3/helpers/getPrototypeOf";
|
|
16
16
|
import _defineProperty from "@babel/runtime-corejs3/helpers/defineProperty";
|
|
17
|
-
|
|
18
17
|
function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
19
|
-
|
|
20
18
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context2, _context3; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context2 = ownKeys(Object(source), !0)).call(_context2, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context3 = ownKeys(Object(source))).call(_context3, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
21
|
-
|
|
22
19
|
import _concatInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/concat";
|
|
23
|
-
|
|
24
20
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
25
|
-
|
|
26
21
|
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; } }
|
|
27
|
-
|
|
28
22
|
import React from 'react';
|
|
29
23
|
import PropTypes from 'prop-types';
|
|
30
24
|
import ReactDOM from 'react-dom';
|
|
31
|
-
import Control from '../Control';
|
|
25
|
+
import Control from '../Control';
|
|
26
|
+
|
|
27
|
+
// 单元格的type只能取如下值:
|
|
32
28
|
// 'text', 'number', select', 'date', 'search', 'readonly', 'textArea', 'selectSearch'
|
|
33
29
|
|
|
34
30
|
var isInRegion = function isInRegion(target, _ref) {
|
|
35
31
|
var x = _ref.x,
|
|
36
|
-
|
|
37
|
-
|
|
32
|
+
y = _ref.y;
|
|
38
33
|
var _target$getBoundingCl = target.getBoundingClientRect(),
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
34
|
+
left = _target$getBoundingCl.left,
|
|
35
|
+
right = _target$getBoundingCl.right,
|
|
36
|
+
top = _target$getBoundingCl.top,
|
|
37
|
+
bottom = _target$getBoundingCl.bottom;
|
|
44
38
|
return !(x < left || x > right || y < top || y > bottom);
|
|
45
39
|
};
|
|
46
|
-
|
|
47
40
|
var SuperTableCell = /*#__PURE__*/function (_React$Component) {
|
|
48
41
|
_inherits(SuperTableCell, _React$Component);
|
|
49
|
-
|
|
50
42
|
var _super = _createSuper(SuperTableCell);
|
|
51
|
-
|
|
52
43
|
function SuperTableCell() {
|
|
53
44
|
var _context;
|
|
54
|
-
|
|
55
45
|
var _this;
|
|
56
|
-
|
|
57
46
|
_classCallCheck(this, SuperTableCell);
|
|
58
|
-
|
|
59
47
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
60
48
|
args[_key] = arguments[_key];
|
|
61
49
|
}
|
|
62
|
-
|
|
63
50
|
_this = _super.call.apply(_super, _concatInstanceProperty(_context = [this]).call(_context, args));
|
|
64
|
-
|
|
65
51
|
_defineProperty(_assertThisInitialized(_this), "onDateBlur", function (value, event) {
|
|
66
52
|
if (!isInRegion(event.target, global.mousePos)) {
|
|
67
53
|
_this.props.onBlur();
|
|
68
54
|
}
|
|
69
55
|
});
|
|
70
|
-
|
|
71
56
|
_defineProperty(_assertThisInitialized(_this), "onOpenChange", function (open) {
|
|
72
57
|
if (!open) {
|
|
73
58
|
var targets = document.getElementsByClassName('ant-calendar-picker-container');
|
|
74
|
-
|
|
75
59
|
if (!isInRegion(targets[0], global.mousePos)) {
|
|
76
60
|
_this.props.onBlur();
|
|
77
61
|
}
|
|
78
62
|
}
|
|
79
63
|
});
|
|
80
|
-
|
|
81
64
|
_defineProperty(_assertThisInitialized(_this), "options", function () {
|
|
82
65
|
return _this.props.options || _this.props.typeRelated || [];
|
|
83
66
|
});
|
|
84
|
-
|
|
85
67
|
_defineProperty(_assertThisInitialized(_this), "getPopupContainer", function () {
|
|
86
68
|
return ReactDOM.findDOMNode(_assertThisInitialized(_this));
|
|
87
69
|
});
|
|
88
|
-
|
|
89
70
|
_defineProperty(_assertThisInitialized(_this), "toTextComponent", function (props) {
|
|
90
71
|
return /*#__PURE__*/React.createElement(Control, props);
|
|
91
72
|
});
|
|
92
|
-
|
|
93
73
|
_defineProperty(_assertThisInitialized(_this), "toTextAreaComponent", function (props) {
|
|
94
74
|
return /*#__PURE__*/React.createElement(Control, props);
|
|
95
75
|
});
|
|
96
|
-
|
|
97
76
|
_defineProperty(_assertThisInitialized(_this), "toReadonlyComponent", function (props) {
|
|
98
77
|
return /*#__PURE__*/React.createElement(Control, props);
|
|
99
78
|
});
|
|
100
|
-
|
|
101
79
|
_defineProperty(_assertThisInitialized(_this), "toNumberComponent", function (props) {
|
|
102
80
|
props.defaultValue = props.value;
|
|
103
81
|
delete props.value;
|
|
104
82
|
return /*#__PURE__*/React.createElement(Control, props);
|
|
105
83
|
});
|
|
106
|
-
|
|
107
84
|
_defineProperty(_assertThisInitialized(_this), "toDateComponent", function (props) {
|
|
108
85
|
//props.getCalendarContainer = this.getPopupContainer;
|
|
109
86
|
props.onBlur = _this.onDateBlur;
|
|
110
87
|
props.onOpenChange = _this.onOpenChange;
|
|
111
88
|
return /*#__PURE__*/React.createElement(Control, props);
|
|
112
89
|
});
|
|
113
|
-
|
|
114
90
|
_defineProperty(_assertThisInitialized(_this), "toSelectComponent", function (props) {
|
|
115
91
|
props.options = _this.options();
|
|
116
|
-
props.dropdownMatchSelectWidth = false;
|
|
117
|
-
|
|
92
|
+
props.dropdownMatchSelectWidth = false;
|
|
93
|
+
//props.getPopupContainer = this.getPopupContainer;
|
|
118
94
|
return /*#__PURE__*/React.createElement(Control, props);
|
|
119
95
|
});
|
|
120
|
-
|
|
121
96
|
_defineProperty(_assertThisInitialized(_this), "toSearchComponent", function (props) {
|
|
122
|
-
props.options = _this.options();
|
|
123
|
-
|
|
97
|
+
props.options = _this.options();
|
|
98
|
+
//props.getPopupContainer = this.getPopupContainer;
|
|
124
99
|
props.onSearch = _this.props.onSearch;
|
|
125
100
|
props.dropdownMatchSelectWidth = false;
|
|
126
101
|
return /*#__PURE__*/React.createElement(Control, props);
|
|
127
102
|
});
|
|
128
|
-
|
|
129
103
|
_defineProperty(_assertThisInitialized(_this), "controlProps", function (_ref2) {
|
|
130
104
|
var type = _ref2.type,
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
105
|
+
value = _ref2.value,
|
|
106
|
+
_ref2$props = _ref2.props,
|
|
107
|
+
props = _ref2$props === void 0 ? {} : _ref2$props;
|
|
134
108
|
var _this$props$width = _this.props.width,
|
|
135
|
-
|
|
109
|
+
width = _this$props$width === void 0 ? 100 : _this$props$width;
|
|
136
110
|
type === 'readonly' && (props = {});
|
|
137
111
|
return _objectSpread(_objectSpread({}, props), {}, {
|
|
138
112
|
type: type,
|
|
@@ -147,60 +121,48 @@ var SuperTableCell = /*#__PURE__*/function (_React$Component) {
|
|
|
147
121
|
onChange: _this.props.onChange
|
|
148
122
|
});
|
|
149
123
|
});
|
|
150
|
-
|
|
151
124
|
return _this;
|
|
152
125
|
}
|
|
153
|
-
|
|
154
126
|
_createClass(SuperTableCell, [{
|
|
155
127
|
key: "render",
|
|
156
128
|
value: function render() {
|
|
157
129
|
var props = this.controlProps(this.props);
|
|
158
130
|
var className = this.props.error ? 'has-error' : '';
|
|
159
|
-
|
|
160
131
|
switch (this.props.type) {
|
|
161
132
|
case "text":
|
|
162
133
|
return /*#__PURE__*/React.createElement("div", {
|
|
163
134
|
className: className
|
|
164
135
|
}, this.toTextComponent(props));
|
|
165
|
-
|
|
166
136
|
case "textArea":
|
|
167
137
|
return /*#__PURE__*/React.createElement("div", {
|
|
168
138
|
className: className
|
|
169
139
|
}, this.toTextAreaComponent(props));
|
|
170
|
-
|
|
171
140
|
case "number":
|
|
172
141
|
return /*#__PURE__*/React.createElement("div", {
|
|
173
142
|
className: className
|
|
174
143
|
}, this.toNumberComponent(props));
|
|
175
|
-
|
|
176
144
|
case "select":
|
|
177
145
|
return /*#__PURE__*/React.createElement("div", {
|
|
178
146
|
className: className
|
|
179
147
|
}, this.toSelectComponent(props));
|
|
180
|
-
|
|
181
148
|
case 'search':
|
|
182
149
|
case 'selectSearch':
|
|
183
150
|
return /*#__PURE__*/React.createElement("div", {
|
|
184
151
|
className: className
|
|
185
152
|
}, this.toSearchComponent(props));
|
|
186
|
-
|
|
187
153
|
case "date":
|
|
188
154
|
return /*#__PURE__*/React.createElement("div", {
|
|
189
155
|
className: className
|
|
190
156
|
}, this.toDateComponent(props));
|
|
191
|
-
|
|
192
157
|
case 'readonly':
|
|
193
158
|
return this.toReadonlyComponent(props);
|
|
194
|
-
|
|
195
159
|
default:
|
|
196
160
|
return /*#__PURE__*/React.createElement("div", null, "\"error type\"");
|
|
197
161
|
}
|
|
198
162
|
}
|
|
199
163
|
}]);
|
|
200
|
-
|
|
201
164
|
return SuperTableCell;
|
|
202
165
|
}(React.Component);
|
|
203
|
-
|
|
204
166
|
_defineProperty(SuperTableCell, "propTypes", {
|
|
205
167
|
type: PropTypes.string.isRequired,
|
|
206
168
|
value: PropTypes.any,
|
|
@@ -210,6 +172,5 @@ _defineProperty(SuperTableCell, "propTypes", {
|
|
|
210
172
|
onSearch: PropTypes.func,
|
|
211
173
|
onBlur: PropTypes.func
|
|
212
174
|
});
|
|
213
|
-
|
|
214
175
|
export default SuperTableCell;
|
|
215
176
|
export { isInRegion };
|
|
@@ -9,53 +9,39 @@ import _possibleConstructorReturn from "@babel/runtime-corejs3/helpers/possibleC
|
|
|
9
9
|
import _getPrototypeOf from "@babel/runtime-corejs3/helpers/getPrototypeOf";
|
|
10
10
|
import _defineProperty from "@babel/runtime-corejs3/helpers/defineProperty";
|
|
11
11
|
import _bindInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/bind";
|
|
12
|
-
|
|
13
12
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
14
|
-
|
|
15
13
|
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; } }
|
|
16
|
-
|
|
17
14
|
import React from 'react';
|
|
18
15
|
import PropTypes from 'prop-types';
|
|
19
16
|
import Control from "../Control/Control";
|
|
20
17
|
import variables from '../variables';
|
|
21
|
-
|
|
22
18
|
var FilterDropDown = /*#__PURE__*/function (_React$Component) {
|
|
23
19
|
_inherits(FilterDropDown, _React$Component);
|
|
24
|
-
|
|
25
20
|
var _super = _createSuper(FilterDropDown);
|
|
26
|
-
|
|
27
21
|
function FilterDropDown(_props) {
|
|
28
22
|
var _this;
|
|
29
|
-
|
|
30
23
|
_classCallCheck(this, FilterDropDown);
|
|
31
|
-
|
|
32
24
|
_this = _super.call(this, _props);
|
|
33
|
-
|
|
34
25
|
_defineProperty(_assertThisInitialized(_this), "onChange", function (e) {
|
|
35
26
|
_this.setState({
|
|
36
27
|
value: e.target.value
|
|
37
28
|
});
|
|
38
29
|
});
|
|
39
|
-
|
|
40
30
|
_defineProperty(_assertThisInitialized(_this), "onDateChange", function (key, value) {
|
|
41
31
|
_this.setState(_defineProperty({}, key, value));
|
|
42
32
|
});
|
|
43
|
-
|
|
44
33
|
_defineProperty(_assertThisInitialized(_this), "onSearch", function () {
|
|
45
34
|
var _this$props = _this.props,
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
35
|
+
onSearch = _this$props.onSearch,
|
|
36
|
+
isDateFilterByStartAndEnd = _this$props.isDateFilterByStartAndEnd;
|
|
49
37
|
if (onSearch) {
|
|
50
38
|
var value = !_this.state.start && !_this.state.end ? "" : _this.state;
|
|
51
39
|
var val = isDateFilterByStartAndEnd ? value : _this.state.value;
|
|
52
40
|
onSearch(val);
|
|
53
41
|
}
|
|
54
42
|
});
|
|
55
|
-
|
|
56
43
|
_defineProperty(_assertThisInitialized(_this), "DateInputCreator", function () {
|
|
57
44
|
var _context, _context2, _context3;
|
|
58
|
-
|
|
59
45
|
var props = _this.props.props;
|
|
60
46
|
var propsStart = {
|
|
61
47
|
type: "date",
|
|
@@ -91,7 +77,6 @@ var FilterDropDown = /*#__PURE__*/function (_React$Component) {
|
|
|
91
77
|
onClick: _bindInstanceProperty(_context3 = _this.onSearch).call(_context3, null, _this.props.type)
|
|
92
78
|
}, "\u641C\u7D22")));
|
|
93
79
|
});
|
|
94
|
-
|
|
95
80
|
_defineProperty(_assertThisInitialized(_this), "InputCreator", function () {
|
|
96
81
|
var props = {
|
|
97
82
|
size: 'small',
|
|
@@ -110,18 +95,15 @@ var FilterDropDown = /*#__PURE__*/function (_React$Component) {
|
|
|
110
95
|
type: "primary"
|
|
111
96
|
}, "\u641C\u7D22"));
|
|
112
97
|
});
|
|
113
|
-
|
|
114
98
|
_this.state = {
|
|
115
99
|
value: _props.value || ''
|
|
116
100
|
};
|
|
117
|
-
|
|
118
101
|
if (_props.isDateFilterByStartAndEnd) {
|
|
119
102
|
var _ref = _props.value || {},
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
103
|
+
_ref$start = _ref.start,
|
|
104
|
+
start = _ref$start === void 0 ? '' : _ref$start,
|
|
105
|
+
_ref$end = _ref.end,
|
|
106
|
+
end = _ref$end === void 0 ? '' : _ref$end;
|
|
125
107
|
_this.state = {
|
|
126
108
|
start: start,
|
|
127
109
|
end: end
|
|
@@ -131,20 +113,17 @@ var FilterDropDown = /*#__PURE__*/function (_React$Component) {
|
|
|
131
113
|
value: _props.value || ''
|
|
132
114
|
};
|
|
133
115
|
}
|
|
134
|
-
|
|
135
116
|
return _this;
|
|
136
117
|
}
|
|
137
|
-
|
|
138
118
|
_createClass(FilterDropDown, [{
|
|
139
119
|
key: "componentWillReceiveProps",
|
|
140
120
|
value: function componentWillReceiveProps(newProps) {
|
|
141
121
|
if (newProps.isDateFilterByStartAndEnd) {
|
|
142
122
|
var _ref2 = newProps.value || {},
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
123
|
+
_ref2$start = _ref2.start,
|
|
124
|
+
start = _ref2$start === void 0 ? '' : _ref2$start,
|
|
125
|
+
_ref2$end = _ref2.end,
|
|
126
|
+
end = _ref2$end === void 0 ? '' : _ref2$end;
|
|
148
127
|
this.setState({
|
|
149
128
|
start: start,
|
|
150
129
|
end: end
|
|
@@ -175,14 +154,11 @@ var FilterDropDown = /*#__PURE__*/function (_React$Component) {
|
|
|
175
154
|
return this.props.isDateFilterByStartAndEnd ? this.DateInputCreator() : this.InputCreator();
|
|
176
155
|
}
|
|
177
156
|
}]);
|
|
178
|
-
|
|
179
157
|
return FilterDropDown;
|
|
180
158
|
}(React.Component);
|
|
181
|
-
|
|
182
159
|
_defineProperty(FilterDropDown, "propTypes", {
|
|
183
160
|
value: PropTypes.any,
|
|
184
161
|
onSearch: PropTypes.func,
|
|
185
162
|
onClose: PropTypes.func
|
|
186
163
|
});
|
|
187
|
-
|
|
188
164
|
export default FilterDropDown;
|