cloud-b2b 1.1.85 → 1.1.87

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.
Files changed (82) hide show
  1. package/es/Area/Area.js +48 -23
  2. package/es/CodeInput/CodeInput.js +16 -19
  3. package/es/Enhance/Dialogs.js +11 -14
  4. package/es/Enhance/Loading.js +15 -18
  5. package/es/Header/Header.js +17 -20
  6. package/es/Header/Vertical.js +11 -14
  7. package/es/ImageView/ImageView.js +10 -13
  8. package/es/InpurCascader/InputCascader.js +11 -14
  9. package/es/InputEditor/InputEditor.js +16 -18
  10. package/es/InputSearch/InputSearch.js +20 -23
  11. package/es/InputSelect/InputSelect.js +14 -17
  12. package/es/InputTreeSelect/InputTreeSelect.js +10 -13
  13. package/es/InputWriting/InputWriting.js +12 -15
  14. package/es/Layout/Layout.js +14 -17
  15. package/es/Link/Link.js +7 -10
  16. package/es/NumberInput/NumberInput.js +13 -16
  17. package/es/Search/Search.js +52 -55
  18. package/es/Search2/Search.js +83 -86
  19. package/es/Search2/Search.less +64 -64
  20. package/es/Search2/package.json +6 -6
  21. package/es/Sidebar/Sidebar.js +11 -14
  22. package/es/Sidebar2/Sidebar.js +13 -16
  23. package/es/SuperForm/SuperForm.js +74 -79
  24. package/es/SuperForm2/SuperForm.js +112 -114
  25. package/es/SuperPagination/SuperPagination.js +8 -11
  26. package/es/SuperTab/SuperTab.js +12 -15
  27. package/es/SuperTab2/SuperTab2.js +13 -16
  28. package/es/SuperTable/DragSortRow.js +12 -15
  29. package/es/SuperTable/FilterDropDown.js +11 -14
  30. package/es/SuperTable/SuperTable.js +139 -94
  31. package/es/SuperTable/SuperTable.less +11 -0
  32. package/es/SuperTable2/SuperTable2.js +89 -92
  33. package/es/SuperTable2/SuperTableCell.js +27 -30
  34. package/es/SuperTable3/FilterDropDown.js +11 -14
  35. package/es/SuperTable3/SuperTable.js +58 -61
  36. package/es/SuperToolbar/SuperToolbar.js +12 -15
  37. package/es/SuperUpload/SuperUpload.js +38 -38
  38. package/es/Viewer/ImageViews.js +16 -19
  39. package/es/Viewer/Viewer.js +11 -14
  40. package/es/helper.js +18 -17
  41. package/lib/Area/Area.js +49 -25
  42. package/lib/CodeInput/CodeInput.js +16 -19
  43. package/lib/Enhance/Dialogs.js +11 -14
  44. package/lib/Enhance/Loading.js +15 -18
  45. package/lib/Header/Header.js +17 -20
  46. package/lib/Header/Vertical.js +11 -14
  47. package/lib/ImageView/ImageView.js +10 -13
  48. package/lib/InpurCascader/InputCascader.js +11 -14
  49. package/lib/InputEditor/InputEditor.js +16 -18
  50. package/lib/InputSearch/InputSearch.js +20 -23
  51. package/lib/InputSelect/InputSelect.js +14 -17
  52. package/lib/InputTreeSelect/InputTreeSelect.js +10 -13
  53. package/lib/InputWriting/InputWriting.js +12 -15
  54. package/lib/Layout/Layout.js +14 -17
  55. package/lib/LayoutLink/LayoutLink.js +1 -2
  56. package/lib/Link/Link.js +7 -10
  57. package/lib/NumberInput/NumberInput.js +13 -16
  58. package/lib/Search/Search.js +53 -57
  59. package/lib/Search2/Search.js +84 -88
  60. package/lib/Search2/Search.less +64 -64
  61. package/lib/Search2/package.json +6 -6
  62. package/lib/Sidebar/Sidebar.js +11 -14
  63. package/lib/Sidebar2/Sidebar.js +13 -16
  64. package/lib/SuperForm/SuperForm.js +75 -81
  65. package/lib/SuperForm2/SuperForm.js +113 -116
  66. package/lib/SuperPagination/SuperPagination.js +8 -11
  67. package/lib/SuperTab/SuperTab.js +12 -15
  68. package/lib/SuperTab2/SuperTab2.js +13 -16
  69. package/lib/SuperTable/DragSortRow.js +12 -15
  70. package/lib/SuperTable/FilterDropDown.js +11 -14
  71. package/lib/SuperTable/SuperTable.js +139 -94
  72. package/lib/SuperTable/SuperTable.less +11 -0
  73. package/lib/SuperTable2/SuperTable2.js +90 -94
  74. package/lib/SuperTable2/SuperTableCell.js +27 -30
  75. package/lib/SuperTable3/FilterDropDown.js +11 -14
  76. package/lib/SuperTable3/SuperTable.js +58 -61
  77. package/lib/SuperToolbar/SuperToolbar.js +12 -15
  78. package/lib/SuperUpload/SuperUpload.js +39 -40
  79. package/lib/Viewer/ImageViews.js +16 -19
  80. package/lib/Viewer/Viewer.js +11 -14
  81. package/lib/helper.js +18 -17
  82. package/package.json +1 -1
@@ -9,15 +9,14 @@ import _Object$defineProperty from "@babel/runtime-corejs3/core-js-stable/object
9
9
  import _TreeSelect from "antd/es/tree-select";
10
10
  import _classCallCheck from "@babel/runtime-corejs3/helpers/classCallCheck";
11
11
  import _createClass from "@babel/runtime-corejs3/helpers/createClass";
12
- import _assertThisInitialized from "@babel/runtime-corejs3/helpers/assertThisInitialized";
13
- import _inherits from "@babel/runtime-corejs3/helpers/inherits";
14
12
  import _possibleConstructorReturn from "@babel/runtime-corejs3/helpers/possibleConstructorReturn";
15
13
  import _getPrototypeOf from "@babel/runtime-corejs3/helpers/getPrototypeOf";
14
+ import _inherits from "@babel/runtime-corejs3/helpers/inherits";
16
15
  import _defineProperty from "@babel/runtime-corejs3/helpers/defineProperty";
17
16
  function ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
18
17
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
19
- 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); }; }
20
- 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; } }
18
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? _Reflect$construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
19
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
21
20
  import _Object$keys from "@babel/runtime-corejs3/core-js-stable/object/keys";
22
21
  import _mapInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/map";
23
22
  import _Object$assign from "@babel/runtime-corejs3/core-js-stable/object/assign";
@@ -48,21 +47,19 @@ var PROPS = {
48
47
  };
49
48
  var PROPS_KEYS = _Object$keys(PROPS);
50
49
  var InputTreeSelect = /*#__PURE__*/function (_React$Component) {
51
- _inherits(InputTreeSelect, _React$Component);
52
- var _super = _createSuper(InputTreeSelect);
53
50
  function InputTreeSelect(_props) {
54
51
  var _this;
55
52
  _classCallCheck(this, InputTreeSelect);
56
- _this = _super.call(this, _props);
57
- _defineProperty(_assertThisInitialized(_this), "onChange", function (value) {
53
+ _this = _callSuper(this, InputTreeSelect, [_props]);
54
+ _defineProperty(_this, "onChange", function (value) {
58
55
  var onChange = _this.props.onChange;
59
56
  onChange && onChange(value);
60
57
  });
61
- _defineProperty(_assertThisInitialized(_this), "loadData", function (selectedOptions) {
58
+ _defineProperty(_this, "loadData", function (selectedOptions) {
62
59
  var onSearch = _this.props.onSearch;
63
60
  onSearch && onSearch(selectedOptions[0]);
64
61
  });
65
- _defineProperty(_assertThisInitialized(_this), "getOptions", function (options) {
62
+ _defineProperty(_this, "getOptions", function (options) {
66
63
  return _mapInstanceProperty(options).call(options, function (option) {
67
64
  var obj = _objectSpread(_objectSpread({}, option), {}, {
68
65
  label: option.title
@@ -73,7 +70,7 @@ var InputTreeSelect = /*#__PURE__*/function (_React$Component) {
73
70
  return obj;
74
71
  });
75
72
  });
76
- _defineProperty(_assertThisInitialized(_this), "getProps", function () {
73
+ _defineProperty(_this, "getProps", function () {
77
74
  var _this$props = _this.props,
78
75
  _this$props$options = _this$props.options,
79
76
  options = _this$props$options === void 0 ? [] : _this$props$options,
@@ -109,13 +106,13 @@ var InputTreeSelect = /*#__PURE__*/function (_React$Component) {
109
106
  });
110
107
  return _this;
111
108
  }
112
- _createClass(InputTreeSelect, [{
109
+ _inherits(InputTreeSelect, _React$Component);
110
+ return _createClass(InputTreeSelect, [{
113
111
  key: "render",
114
112
  value: function render() {
115
113
  return /*#__PURE__*/React.createElement(_TreeSelect, this.getProps());
116
114
  }
117
115
  }]);
118
- return InputTreeSelect;
119
116
  }(React.Component);
120
117
  _defineProperty(InputTreeSelect, "propTypes", PROPS);
121
118
  export default InputTreeSelect;
@@ -2,21 +2,18 @@ import _Reflect$construct from "@babel/runtime-corejs3/core-js-stable/reflect/co
2
2
  import _extends from "@babel/runtime-corejs3/helpers/extends";
3
3
  import _classCallCheck from "@babel/runtime-corejs3/helpers/classCallCheck";
4
4
  import _createClass from "@babel/runtime-corejs3/helpers/createClass";
5
- import _assertThisInitialized from "@babel/runtime-corejs3/helpers/assertThisInitialized";
6
- import _inherits from "@babel/runtime-corejs3/helpers/inherits";
7
5
  import _possibleConstructorReturn from "@babel/runtime-corejs3/helpers/possibleConstructorReturn";
8
6
  import _getPrototypeOf from "@babel/runtime-corejs3/helpers/getPrototypeOf";
7
+ import _inherits from "@babel/runtime-corejs3/helpers/inherits";
9
8
  import _defineProperty from "@babel/runtime-corejs3/helpers/defineProperty";
10
9
  import _Select from "antd/es/select";
11
10
  import _concatInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/concat";
12
11
  import _indexOfInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/index-of";
13
- 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
- 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; } }
12
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? _Reflect$construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
13
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
15
14
  import React from 'react';
16
15
  var Option = _Select.Option;
17
16
  var InputWriting = /*#__PURE__*/function (_React$Component) {
18
- _inherits(InputWriting, _React$Component);
19
- var _super = _createSuper(InputWriting);
20
17
  function InputWriting() {
21
18
  var _context;
22
19
  var _this;
@@ -24,13 +21,13 @@ var InputWriting = /*#__PURE__*/function (_React$Component) {
24
21
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
25
22
  args[_key] = arguments[_key];
26
23
  }
27
- _this = _super.call.apply(_super, _concatInstanceProperty(_context = [this]).call(_context, args));
28
- _defineProperty(_assertThisInitialized(_this), "state", {
24
+ _this = _callSuper(this, InputWriting, _concatInstanceProperty(_context = []).call(_context, args));
25
+ _defineProperty(_this, "state", {
29
26
  options: [],
30
27
  value: [],
31
28
  fetching: false
32
29
  });
33
- _defineProperty(_assertThisInitialized(_this), "onClick", function (e) {
30
+ _defineProperty(_this, "onClick", function (e) {
34
31
  var _this$props = _this.props,
35
32
  _this$props$options = _this$props.options,
36
33
  options = _this$props$options === void 0 ? [] : _this$props$options,
@@ -40,21 +37,21 @@ var InputWriting = /*#__PURE__*/function (_React$Component) {
40
37
  onSearch(e.target.value);
41
38
  }
42
39
  });
43
- _defineProperty(_assertThisInitialized(_this), "onSearch", function (value) {
40
+ _defineProperty(_this, "onSearch", function (value) {
44
41
  var onSearch = _this.props.onSearch;
45
42
  onSearch && onSearch(value);
46
43
  });
47
- _defineProperty(_assertThisInitialized(_this), "isMatch", function (inputValue, option) {
44
+ _defineProperty(_this, "isMatch", function (inputValue, option) {
48
45
  var _context2;
49
46
  return _indexOfInstanceProperty(_context2 = option.props.children).call(_context2, inputValue) !== -1;
50
47
  });
51
- _defineProperty(_assertThisInitialized(_this), "toOption", function (option, index) {
48
+ _defineProperty(_this, "toOption", function (option, index) {
52
49
  return /*#__PURE__*/React.createElement(SelectOption, {
53
50
  key: index,
54
51
  value: String(option.value)
55
52
  }, option.title);
56
53
  });
57
- _defineProperty(_assertThisInitialized(_this), "onChange", function (keyValue) {
54
+ _defineProperty(_this, "onChange", function (keyValue) {
58
55
  var _this$props2 = _this.props,
59
56
  onChange = _this$props2.onChange,
60
57
  value = _this$props2.value;
@@ -62,7 +59,8 @@ var InputWriting = /*#__PURE__*/function (_React$Component) {
62
59
  });
63
60
  return _this;
64
61
  }
65
- _createClass(InputWriting, [{
62
+ _inherits(InputWriting, _React$Component);
63
+ return _createClass(InputWriting, [{
66
64
  key: "render",
67
65
  value: function render() {
68
66
  var value = this.props.value;
@@ -85,6 +83,5 @@ var InputWriting = /*#__PURE__*/function (_React$Component) {
85
83
  })));
86
84
  }
87
85
  }]);
88
- return InputWriting;
89
86
  }(React.Component);
90
87
  export default InputWriting;
@@ -2,13 +2,12 @@ import _Reflect$construct from "@babel/runtime-corejs3/core-js-stable/reflect/co
2
2
  import _Button from "antd/es/button";
3
3
  import _classCallCheck from "@babel/runtime-corejs3/helpers/classCallCheck";
4
4
  import _createClass from "@babel/runtime-corejs3/helpers/createClass";
5
- import _assertThisInitialized from "@babel/runtime-corejs3/helpers/assertThisInitialized";
6
- import _inherits from "@babel/runtime-corejs3/helpers/inherits";
7
5
  import _possibleConstructorReturn from "@babel/runtime-corejs3/helpers/possibleConstructorReturn";
8
6
  import _getPrototypeOf from "@babel/runtime-corejs3/helpers/getPrototypeOf";
7
+ import _inherits from "@babel/runtime-corejs3/helpers/inherits";
9
8
  import _defineProperty from "@babel/runtime-corejs3/helpers/defineProperty";
10
- 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); }; }
11
- 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; } }
9
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? _Reflect$construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
10
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
12
11
  import _Object$keys2 from "@babel/runtime-corejs3/core-js-stable/object/keys";
13
12
  import _someInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/some";
14
13
  import _filterInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/filter";
@@ -42,19 +41,17 @@ var getCurrentSideKey = function getCurrentSideKey() {
42
41
  }
43
42
  };
44
43
  var Layout = /*#__PURE__*/function (_React$Component) {
45
- _inherits(Layout, _React$Component);
46
- var _super = _createSuper(Layout);
47
44
  function Layout(props) {
48
45
  var _this;
49
46
  _classCallCheck(this, Layout);
50
- _this = _super.call(this, props);
51
- _defineProperty(_assertThisInitialized(_this), "onOpenChange", function (sideKey, openKeys) {
47
+ _this = _callSuper(this, Layout, [props]);
48
+ _defineProperty(_this, "onOpenChange", function (sideKey, openKeys) {
52
49
  var onOpenChange = _this.props.onOpenChange;
53
50
  if (onOpenChange) {
54
51
  onOpenChange(sideKey, openKeys);
55
52
  }
56
53
  });
57
- _defineProperty(_assertThisInitialized(_this), "getSidebarProps", function (sideKey) {
54
+ _defineProperty(_this, "getSidebarProps", function (sideKey) {
58
55
  var _context3;
59
56
  var _this$props = _this.props,
60
57
  sidebars = _this$props.sidebars,
@@ -71,7 +68,7 @@ var Layout = /*#__PURE__*/function (_React$Component) {
71
68
  activeKey: nav2,
72
69
  items: sides,
73
70
  openKeys: openKeys[sideKey] || [],
74
- onOpenChange: _bindInstanceProperty(_context3 = _this.onOpenChange).call(_context3, _assertThisInitialized(_this), sideKey),
71
+ onOpenChange: _bindInstanceProperty(_context3 = _this.onOpenChange).call(_context3, _this, sideKey),
75
72
  onModeChange: function onModeChange(mode) {
76
73
  return _this.setState({
77
74
  mode: mode
@@ -79,7 +76,7 @@ var Layout = /*#__PURE__*/function (_React$Component) {
79
76
  }
80
77
  };
81
78
  });
82
- _defineProperty(_assertThisInitialized(_this), "toSidebar", function (sideKey) {
79
+ _defineProperty(_this, "toSidebar", function (sideKey) {
83
80
  var hasHeaderV = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
84
81
  if (!sideKey) {
85
82
  return null;
@@ -91,7 +88,7 @@ var Layout = /*#__PURE__*/function (_React$Component) {
91
88
  }, /*#__PURE__*/React.createElement(Sidebar, _this.getSidebarProps(sideKey)));
92
89
  }
93
90
  });
94
- _defineProperty(_assertThisInitialized(_this), "toHeader", function () {
91
+ _defineProperty(_this, "toHeader", function () {
95
92
  var _context4, _context5;
96
93
  var _this$props2 = _this.props,
97
94
  loading = _this$props2.loading,
@@ -123,7 +120,7 @@ var Layout = /*#__PURE__*/function (_React$Component) {
123
120
  onLogout: onLogout
124
121
  });
125
122
  });
126
- _defineProperty(_assertThisInitialized(_this), "headerVProps", function (selectKey) {
123
+ _defineProperty(_this, "headerVProps", function (selectKey) {
127
124
  var _context6;
128
125
  var keys = ['setting', 'message'];
129
126
  return {
@@ -140,7 +137,8 @@ var Layout = /*#__PURE__*/function (_React$Component) {
140
137
  };
141
138
  return _this;
142
139
  }
143
- _createClass(Layout, [{
140
+ _inherits(Layout, _React$Component);
141
+ return _createClass(Layout, [{
144
142
  key: "componentWillReceiveProps",
145
143
  value: function componentWillReceiveProps(props) {
146
144
  if (!props.loading) {
@@ -153,7 +151,7 @@ var Layout = /*#__PURE__*/function (_React$Component) {
153
151
  }, {
154
152
  key: "render",
155
153
  value: function render() {
156
- var _context10;
154
+ var _context0;
157
155
  var _this$props3 = this.props,
158
156
  loading = _this$props3.loading,
159
157
  sidebars = _this$props3.sidebars,
@@ -169,7 +167,7 @@ var Layout = /*#__PURE__*/function (_React$Component) {
169
167
  var _context9;
170
168
  return !_includesInstanceProperty(_context9 = ['setting', 'message']).call(_context9, item.key);
171
169
  }).length > 1;
172
- var sideKey = loading || !nav2 ? '' : getCurrentSideKey(sidebars, _concatInstanceProperty(_context10 = "/".concat(nav1, "/")).call(_context10, nav2));
170
+ var sideKey = loading || !nav2 ? '' : getCurrentSideKey(sidebars, _concatInstanceProperty(_context0 = "/".concat(nav1, "/")).call(_context0, nav2));
173
171
  return noPrivilege ? /*#__PURE__*/React.createElement("div", {
174
172
  style: {
175
173
  textAlign: 'center'
@@ -188,7 +186,6 @@ var Layout = /*#__PURE__*/function (_React$Component) {
188
186
  }, this.toHeader(sideKey), loading ? /*#__PURE__*/React.createElement(Loading, null) : /*#__PURE__*/React.createElement("div", null, hasV ? /*#__PURE__*/React.createElement(HeaderV, this.headerVProps(sideKey)) : null, this.toSidebar(sideKey, hasV), /*#__PURE__*/React.createElement("section", null, children)));
189
187
  }
190
188
  }]);
191
- return Layout;
192
189
  }(React.Component);
193
190
  _defineProperty(Layout, "propTypes", {
194
191
  children: PropTypes.node.isRequired,
package/es/Link/Link.js CHANGED
@@ -3,15 +3,14 @@ import _extends from "@babel/runtime-corejs3/helpers/extends";
3
3
  import _objectWithoutProperties from "@babel/runtime-corejs3/helpers/objectWithoutProperties";
4
4
  import _classCallCheck from "@babel/runtime-corejs3/helpers/classCallCheck";
5
5
  import _createClass from "@babel/runtime-corejs3/helpers/createClass";
6
- import _assertThisInitialized from "@babel/runtime-corejs3/helpers/assertThisInitialized";
7
- import _inherits from "@babel/runtime-corejs3/helpers/inherits";
8
6
  import _possibleConstructorReturn from "@babel/runtime-corejs3/helpers/possibleConstructorReturn";
9
7
  import _getPrototypeOf from "@babel/runtime-corejs3/helpers/getPrototypeOf";
8
+ import _inherits from "@babel/runtime-corejs3/helpers/inherits";
10
9
  import _defineProperty from "@babel/runtime-corejs3/helpers/defineProperty";
11
10
  var _excluded = ["to", "children", "disabled"];
12
11
  import _concatInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/concat";
13
- 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
- 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; } }
12
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? _Reflect$construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
13
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
15
14
  import React from 'react';
16
15
  import PropTypes from 'prop-types';
17
16
  import history from '../history';
@@ -29,8 +28,6 @@ function jump(url) {
29
28
  }
30
29
  }
31
30
  var Link = /*#__PURE__*/function (_React$Component) {
32
- _inherits(Link, _React$Component);
33
- var _super = _createSuper(Link);
34
31
  function Link() {
35
32
  var _context;
36
33
  var _this;
@@ -38,8 +35,8 @@ var Link = /*#__PURE__*/function (_React$Component) {
38
35
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
39
36
  args[_key] = arguments[_key];
40
37
  }
41
- _this = _super.call.apply(_super, _concatInstanceProperty(_context = [this]).call(_context, args));
42
- _defineProperty(_assertThisInitialized(_this), "handleClick", function (event) {
38
+ _this = _callSuper(this, Link, _concatInstanceProperty(_context = []).call(_context, args));
39
+ _defineProperty(_this, "handleClick", function (event) {
43
40
  if (_this.props.onClick) {
44
41
  _this.props.onClick(event);
45
42
  }
@@ -54,7 +51,8 @@ var Link = /*#__PURE__*/function (_React$Component) {
54
51
  });
55
52
  return _this;
56
53
  }
57
- _createClass(Link, [{
54
+ _inherits(Link, _React$Component);
55
+ return _createClass(Link, [{
58
56
  key: "render",
59
57
  value: function render() {
60
58
  var _this$props = this.props,
@@ -73,7 +71,6 @@ var Link = /*#__PURE__*/function (_React$Component) {
73
71
  }
74
72
  }
75
73
  }]);
76
- return Link;
77
74
  }(React.Component);
78
75
  _defineProperty(Link, "propTypes", {
79
76
  to: PropTypes.string,
@@ -10,15 +10,14 @@ import _Input from "antd/es/input";
10
10
  import _extends from "@babel/runtime-corejs3/helpers/extends";
11
11
  import _classCallCheck from "@babel/runtime-corejs3/helpers/classCallCheck";
12
12
  import _createClass from "@babel/runtime-corejs3/helpers/createClass";
13
- import _assertThisInitialized from "@babel/runtime-corejs3/helpers/assertThisInitialized";
14
- import _inherits from "@babel/runtime-corejs3/helpers/inherits";
15
13
  import _possibleConstructorReturn from "@babel/runtime-corejs3/helpers/possibleConstructorReturn";
16
14
  import _getPrototypeOf from "@babel/runtime-corejs3/helpers/getPrototypeOf";
15
+ import _inherits from "@babel/runtime-corejs3/helpers/inherits";
17
16
  import _defineProperty from "@babel/runtime-corejs3/helpers/defineProperty";
18
17
  function ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
19
18
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context3, _context4; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context3 = ownKeys(Object(t), !0)).call(_context3, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context4 = ownKeys(Object(t))).call(_context4, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
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); }; }
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; } }
19
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? _Reflect$construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
20
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
22
21
  import _includesInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/includes";
23
22
  import _Object$keys from "@babel/runtime-corejs3/core-js-stable/object/keys";
24
23
  import _concatInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/concat";
@@ -101,8 +100,6 @@ var PROPS = {
101
100
  };
102
101
  var PROPS_KEYS = _Object$keys(PROPS);
103
102
  var NumberInput = /*#__PURE__*/function (_React$Component) {
104
- _inherits(NumberInput, _React$Component);
105
- var _super = _createSuper(NumberInput);
106
103
  function NumberInput() {
107
104
  var _context2;
108
105
  var _this;
@@ -110,12 +107,12 @@ var NumberInput = /*#__PURE__*/function (_React$Component) {
110
107
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
111
108
  args[_key] = arguments[_key];
112
109
  }
113
- _this = _super.call.apply(_super, _concatInstanceProperty(_context2 = [this]).call(_context2, args));
114
- _defineProperty(_assertThisInitialized(_this), "state", {
110
+ _this = _callSuper(this, NumberInput, _concatInstanceProperty(_context2 = []).call(_context2, args));
111
+ _defineProperty(_this, "state", {
115
112
  typo: false,
116
113
  value: ''
117
114
  });
118
- _defineProperty(_assertThisInitialized(_this), "onChange", function (event) {
115
+ _defineProperty(_this, "onChange", function (event) {
119
116
  var value = event.target.value;
120
117
  if (!_this.hasSpecialChar(value)) {
121
118
  _this.setState({
@@ -124,7 +121,7 @@ var NumberInput = /*#__PURE__*/function (_React$Component) {
124
121
  });
125
122
  }
126
123
  });
127
- _defineProperty(_assertThisInitialized(_this), "onBlur", function (event) {
124
+ _defineProperty(_this, "onBlur", function (event) {
128
125
  var _this$props = _this.props,
129
126
  onBlur = _this$props.onBlur,
130
127
  onChange = _this$props.onChange,
@@ -143,7 +140,7 @@ var NumberInput = /*#__PURE__*/function (_React$Component) {
143
140
  onBlur && onBlur(event); //有输入才触发外部失去焦点事件,避免非必要请求
144
141
  }
145
142
  });
146
- _defineProperty(_assertThisInitialized(_this), "hasSpecialChar", function (value) {
143
+ _defineProperty(_this, "hasSpecialChar", function (value) {
147
144
  if (_includesInstanceProperty(value).call(value, '+')) {
148
145
  return true;
149
146
  } else if (!_this.props.sign && _includesInstanceProperty(value).call(value, '-')) {
@@ -152,7 +149,7 @@ var NumberInput = /*#__PURE__*/function (_React$Component) {
152
149
  return !_this.props.real && _includesInstanceProperty(value).call(value, '.');
153
150
  }
154
151
  });
155
- _defineProperty(_assertThisInitialized(_this), "format", function (value, fixed) {
152
+ _defineProperty(_this, "format", function (value, fixed) {
156
153
  var _this$props2 = _this.props,
157
154
  real = _this$props2.real,
158
155
  sign = _this$props2.sign,
@@ -168,7 +165,7 @@ var NumberInput = /*#__PURE__*/function (_React$Component) {
168
165
  big: big
169
166
  });
170
167
  });
171
- _defineProperty(_assertThisInitialized(_this), "getShowValue", function () {
168
+ _defineProperty(_this, "getShowValue", function () {
172
169
  if (_this.state.typo) {
173
170
  // 处于输入状态从state中取值
174
171
  return _this.state.value;
@@ -177,7 +174,7 @@ var NumberInput = /*#__PURE__*/function (_React$Component) {
177
174
  return _this.format(_this.props.defaultValue, _this.props.fixed).value;
178
175
  }
179
176
  });
180
- _defineProperty(_assertThisInitialized(_this), "getProps", function () {
177
+ _defineProperty(_this, "getProps", function () {
181
178
  var props = getObjectExclude(_this.props, PROPS_KEYS);
182
179
  return _objectSpread(_objectSpread({}, props), {}, {
183
180
  type: 'text',
@@ -189,7 +186,8 @@ var NumberInput = /*#__PURE__*/function (_React$Component) {
189
186
  });
190
187
  return _this;
191
188
  }
192
- _createClass(NumberInput, [{
189
+ _inherits(NumberInput, _React$Component);
190
+ return _createClass(NumberInput, [{
193
191
  key: "render",
194
192
  value: function render() {
195
193
  return /*#__PURE__*/React.createElement(_Input, _extends({}, this.getProps(), {
@@ -199,7 +197,6 @@ var NumberInput = /*#__PURE__*/function (_React$Component) {
199
197
  }));
200
198
  }
201
199
  }]);
202
- return NumberInput;
203
200
  }(React.Component);
204
201
  _defineProperty(NumberInput, "propTypes", PROPS);
205
202
  export default NumberInput;