cloud-b2b 1.1.80 → 1.1.81
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 +13 -10
- package/es/CodeInput/CodeInput.js +19 -16
- package/es/Enhance/Dialogs.js +14 -11
- package/es/Enhance/Loading.js +18 -15
- package/es/Header/Header.js +20 -17
- package/es/Header/Vertical.js +14 -11
- package/es/ImageView/ImageView.js +13 -10
- package/es/InpurCascader/InputCascader.js +14 -11
- package/es/InputEditor/InputEditor.js +18 -16
- package/es/InputSearch/InputSearch.js +23 -20
- package/es/InputSelect/InputSelect.js +17 -14
- package/es/InputTreeSelect/InputTreeSelect.js +13 -10
- package/es/InputWriting/InputWriting.js +15 -12
- package/es/Layout/Layout.js +17 -14
- package/es/Link/Link.js +10 -7
- package/es/NumberInput/NumberInput.js +16 -13
- package/es/Search/Search.js +55 -52
- package/es/Search2/Search.js +86 -83
- package/es/Search2/Search.less +64 -64
- package/es/Search2/package.json +6 -6
- package/es/Sidebar/Sidebar.js +14 -11
- package/es/Sidebar2/Sidebar.js +16 -13
- package/es/SuperForm/SuperForm.js +79 -74
- package/es/SuperForm2/SuperForm.js +114 -108
- package/es/SuperPagination/SuperPagination.js +11 -8
- package/es/SuperTab/SuperTab.js +15 -12
- package/es/SuperTab2/SuperTab2.js +16 -13
- package/es/SuperTable/DragSortRow.js +15 -12
- package/es/SuperTable/FilterDropDown.js +14 -11
- package/es/SuperTable/SuperTable.js +73 -70
- package/es/SuperTable2/SuperTable2.js +92 -89
- package/es/SuperTable2/SuperTableCell.js +30 -27
- package/es/SuperTable3/FilterDropDown.js +14 -11
- package/es/SuperTable3/SuperTable.js +61 -58
- package/es/SuperToolbar/SuperToolbar.js +15 -12
- package/es/SuperUpload/SuperUpload.js +38 -38
- package/es/Viewer/ImageViews.js +19 -16
- package/es/Viewer/Viewer.js +14 -11
- package/es/helper.js +17 -18
- package/lib/Area/Area.js +13 -10
- package/lib/CodeInput/CodeInput.js +19 -16
- package/lib/Enhance/Dialogs.js +14 -11
- package/lib/Enhance/Loading.js +18 -15
- package/lib/Header/Header.js +20 -17
- package/lib/Header/Vertical.js +14 -11
- package/lib/ImageView/ImageView.js +13 -10
- package/lib/InpurCascader/InputCascader.js +14 -11
- package/lib/InputEditor/InputEditor.js +18 -16
- package/lib/InputSearch/InputSearch.js +23 -20
- package/lib/InputSelect/InputSelect.js +17 -14
- package/lib/InputTreeSelect/InputTreeSelect.js +13 -10
- package/lib/InputWriting/InputWriting.js +15 -12
- package/lib/Layout/Layout.js +17 -14
- package/lib/LayoutLink/LayoutLink.js +2 -1
- package/lib/Link/Link.js +10 -7
- package/lib/NumberInput/NumberInput.js +16 -13
- package/lib/Search/Search.js +57 -53
- package/lib/Search2/Search.js +88 -84
- package/lib/Search2/Search.less +64 -64
- package/lib/Search2/package.json +6 -6
- package/lib/Sidebar/Sidebar.js +14 -11
- package/lib/Sidebar2/Sidebar.js +16 -13
- package/lib/SuperForm/SuperForm.js +81 -75
- package/lib/SuperForm2/SuperForm.js +116 -109
- package/lib/SuperPagination/SuperPagination.js +11 -8
- package/lib/SuperTab/SuperTab.js +15 -12
- package/lib/SuperTab2/SuperTab2.js +16 -13
- package/lib/SuperTable/DragSortRow.js +15 -12
- package/lib/SuperTable/FilterDropDown.js +14 -11
- package/lib/SuperTable/SuperTable.js +73 -70
- package/lib/SuperTable2/SuperTable2.js +94 -90
- package/lib/SuperTable2/SuperTableCell.js +30 -27
- package/lib/SuperTable3/FilterDropDown.js +14 -11
- package/lib/SuperTable3/SuperTable.js +61 -58
- package/lib/SuperToolbar/SuperToolbar.js +15 -12
- package/lib/SuperUpload/SuperUpload.js +40 -39
- package/lib/Viewer/ImageViews.js +19 -16
- package/lib/Viewer/Viewer.js +14 -11
- package/lib/helper.js +17 -18
- package/package.json +1 -1
|
@@ -2,14 +2,15 @@ import _Reflect$construct from "@babel/runtime-corejs3/core-js-stable/reflect/co
|
|
|
2
2
|
import _Pagination from "antd/es/pagination";
|
|
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";
|
|
5
7
|
import _possibleConstructorReturn from "@babel/runtime-corejs3/helpers/possibleConstructorReturn";
|
|
6
8
|
import _getPrototypeOf from "@babel/runtime-corejs3/helpers/getPrototypeOf";
|
|
7
|
-
import _inherits from "@babel/runtime-corejs3/helpers/inherits";
|
|
8
9
|
import _defineProperty from "@babel/runtime-corejs3/helpers/defineProperty";
|
|
9
10
|
import _concatInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/concat";
|
|
10
11
|
import _Object$assign from "@babel/runtime-corejs3/core-js-stable/object/assign";
|
|
11
|
-
function
|
|
12
|
-
function _isNativeReflectConstruct() {
|
|
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); }; }
|
|
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; } }
|
|
13
14
|
import React from 'react';
|
|
14
15
|
import PropTypes from 'prop-types';
|
|
15
16
|
/**
|
|
@@ -24,6 +25,8 @@ import PropTypes from 'prop-types';
|
|
|
24
25
|
* onPageSizeChange: 页大小改变时触发,原型func(pageSize, pageNumber)
|
|
25
26
|
*/
|
|
26
27
|
var SuperPagination = /*#__PURE__*/function (_React$Component) {
|
|
28
|
+
_inherits(SuperPagination, _React$Component);
|
|
29
|
+
var _super = _createSuper(SuperPagination);
|
|
27
30
|
function SuperPagination() {
|
|
28
31
|
var _context;
|
|
29
32
|
var _this;
|
|
@@ -31,14 +34,14 @@ var SuperPagination = /*#__PURE__*/function (_React$Component) {
|
|
|
31
34
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
32
35
|
args[_key] = arguments[_key];
|
|
33
36
|
}
|
|
34
|
-
_this =
|
|
35
|
-
_defineProperty(_this, "onChange", function (page) {
|
|
37
|
+
_this = _super.call.apply(_super, _concatInstanceProperty(_context = [this]).call(_context, args));
|
|
38
|
+
_defineProperty(_assertThisInitialized(_this), "onChange", function (page) {
|
|
36
39
|
var _this$props$callback = _this.props.callback,
|
|
37
40
|
callback = _this$props$callback === void 0 ? {} : _this$props$callback;
|
|
38
41
|
var onPageNumberChange = _this.props.onPageNumberChange || callback.onPageNumberChange;
|
|
39
42
|
onPageNumberChange && onPageNumberChange(page);
|
|
40
43
|
});
|
|
41
|
-
_defineProperty(_this, "onShowSizeChange", function (current, size) {
|
|
44
|
+
_defineProperty(_assertThisInitialized(_this), "onShowSizeChange", function (current, size) {
|
|
42
45
|
var _this$props$callback2 = _this.props.callback,
|
|
43
46
|
callback = _this$props$callback2 === void 0 ? {} : _this$props$callback2;
|
|
44
47
|
var onPageSizeChange = _this.props.onPageSizeChange || callback.onPageSizeChange;
|
|
@@ -46,8 +49,7 @@ var SuperPagination = /*#__PURE__*/function (_React$Component) {
|
|
|
46
49
|
});
|
|
47
50
|
return _this;
|
|
48
51
|
}
|
|
49
|
-
|
|
50
|
-
return _createClass(SuperPagination, [{
|
|
52
|
+
_createClass(SuperPagination, [{
|
|
51
53
|
key: "render",
|
|
52
54
|
value: function render() {
|
|
53
55
|
var _this$props = this.props,
|
|
@@ -90,6 +92,7 @@ var SuperPagination = /*#__PURE__*/function (_React$Component) {
|
|
|
90
92
|
}, /*#__PURE__*/React.createElement(_Pagination, props));
|
|
91
93
|
}
|
|
92
94
|
}]);
|
|
95
|
+
return SuperPagination;
|
|
93
96
|
}(React.Component);
|
|
94
97
|
_defineProperty(SuperPagination, "propTypes", {
|
|
95
98
|
maxRecords: PropTypes.number,
|
package/es/SuperTab/SuperTab.js
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import _Reflect$construct from "@babel/runtime-corejs3/core-js-stable/reflect/construct";
|
|
2
2
|
import _classCallCheck from "@babel/runtime-corejs3/helpers/classCallCheck";
|
|
3
3
|
import _createClass from "@babel/runtime-corejs3/helpers/createClass";
|
|
4
|
+
import _assertThisInitialized from "@babel/runtime-corejs3/helpers/assertThisInitialized";
|
|
5
|
+
import _inherits from "@babel/runtime-corejs3/helpers/inherits";
|
|
4
6
|
import _possibleConstructorReturn from "@babel/runtime-corejs3/helpers/possibleConstructorReturn";
|
|
5
7
|
import _getPrototypeOf from "@babel/runtime-corejs3/helpers/getPrototypeOf";
|
|
6
|
-
import _inherits from "@babel/runtime-corejs3/helpers/inherits";
|
|
7
8
|
import _defineProperty from "@babel/runtime-corejs3/helpers/defineProperty";
|
|
8
9
|
import _Tabs from "antd/es/tabs";
|
|
9
10
|
import _concatInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/concat";
|
|
10
11
|
import _mapInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/map";
|
|
11
|
-
function
|
|
12
|
-
function _isNativeReflectConstruct() {
|
|
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); }; }
|
|
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; } }
|
|
13
14
|
import React from 'react';
|
|
14
15
|
import PropTypes from 'prop-types';
|
|
15
16
|
import variables from '../variables';
|
|
@@ -32,6 +33,8 @@ var TabType = {
|
|
|
32
33
|
* onTabClose: 关闭选项卡时触发,原型为funtion(key)
|
|
33
34
|
*/
|
|
34
35
|
var SuperTab = /*#__PURE__*/function (_React$Component) {
|
|
36
|
+
_inherits(SuperTab, _React$Component);
|
|
37
|
+
var _super = _createSuper(SuperTab);
|
|
35
38
|
function SuperTab() {
|
|
36
39
|
var _context;
|
|
37
40
|
var _this;
|
|
@@ -39,8 +42,8 @@ var SuperTab = /*#__PURE__*/function (_React$Component) {
|
|
|
39
42
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
40
43
|
args[_key] = arguments[_key];
|
|
41
44
|
}
|
|
42
|
-
_this =
|
|
43
|
-
_defineProperty(_this, "getEvent", function (name) {
|
|
45
|
+
_this = _super.call.apply(_super, _concatInstanceProperty(_context = [this]).call(_context, args));
|
|
46
|
+
_defineProperty(_assertThisInitialized(_this), "getEvent", function (name) {
|
|
44
47
|
if (_this.props[name]) {
|
|
45
48
|
return _this.props[name];
|
|
46
49
|
} else if (_this.props.callback) {
|
|
@@ -49,21 +52,21 @@ var SuperTab = /*#__PURE__*/function (_React$Component) {
|
|
|
49
52
|
return null;
|
|
50
53
|
}
|
|
51
54
|
});
|
|
52
|
-
_defineProperty(_this, "callEvent", function (name, key) {
|
|
55
|
+
_defineProperty(_assertThisInitialized(_this), "callEvent", function (name, key) {
|
|
53
56
|
var onEvent = _this.getEvent(name);
|
|
54
57
|
if (onEvent) {
|
|
55
58
|
onEvent(key);
|
|
56
59
|
}
|
|
57
60
|
});
|
|
58
|
-
_defineProperty(_this, "onEdit", function (key, action) {
|
|
61
|
+
_defineProperty(_assertThisInitialized(_this), "onEdit", function (key, action) {
|
|
59
62
|
if (action === 'remove') {
|
|
60
63
|
_this.callEvent('onTabClose', key);
|
|
61
64
|
}
|
|
62
65
|
});
|
|
63
|
-
_defineProperty(_this, "onChange", function (key) {
|
|
66
|
+
_defineProperty(_assertThisInitialized(_this), "onChange", function (key) {
|
|
64
67
|
_this.callEvent('onTabChange', key);
|
|
65
68
|
});
|
|
66
|
-
_defineProperty(_this, "toTab", function (_ref) {
|
|
69
|
+
_defineProperty(_assertThisInitialized(_this), "toTab", function (_ref) {
|
|
67
70
|
var key = _ref.key,
|
|
68
71
|
title = _ref.title,
|
|
69
72
|
close = _ref.close;
|
|
@@ -73,7 +76,7 @@ var SuperTab = /*#__PURE__*/function (_React$Component) {
|
|
|
73
76
|
closable: close
|
|
74
77
|
});
|
|
75
78
|
});
|
|
76
|
-
_defineProperty(_this, "getTabsProps", function () {
|
|
79
|
+
_defineProperty(_assertThisInitialized(_this), "getTabsProps", function () {
|
|
77
80
|
return {
|
|
78
81
|
className: variables('SuperTab'),
|
|
79
82
|
activeKey: _this.props.activeKey,
|
|
@@ -85,14 +88,14 @@ var SuperTab = /*#__PURE__*/function (_React$Component) {
|
|
|
85
88
|
});
|
|
86
89
|
return _this;
|
|
87
90
|
}
|
|
88
|
-
|
|
89
|
-
return _createClass(SuperTab, [{
|
|
91
|
+
_createClass(SuperTab, [{
|
|
90
92
|
key: "render",
|
|
91
93
|
value: function render() {
|
|
92
94
|
var _context2;
|
|
93
95
|
return /*#__PURE__*/React.createElement(_Tabs, this.getTabsProps(), _mapInstanceProperty(_context2 = this.props.tabs).call(_context2, this.toTab));
|
|
94
96
|
}
|
|
95
97
|
}]);
|
|
98
|
+
return SuperTab;
|
|
96
99
|
}(React.Component);
|
|
97
100
|
_defineProperty(SuperTab, "propTypes", {
|
|
98
101
|
activeKey: PropTypes.string.isRequired,
|
|
@@ -4,17 +4,18 @@ import _Icon from "antd/es/icon";
|
|
|
4
4
|
import _Tooltip from "antd/es/tooltip";
|
|
5
5
|
import _classCallCheck from "@babel/runtime-corejs3/helpers/classCallCheck";
|
|
6
6
|
import _createClass from "@babel/runtime-corejs3/helpers/createClass";
|
|
7
|
+
import _assertThisInitialized from "@babel/runtime-corejs3/helpers/assertThisInitialized";
|
|
8
|
+
import _inherits from "@babel/runtime-corejs3/helpers/inherits";
|
|
7
9
|
import _possibleConstructorReturn from "@babel/runtime-corejs3/helpers/possibleConstructorReturn";
|
|
8
10
|
import _getPrototypeOf from "@babel/runtime-corejs3/helpers/getPrototypeOf";
|
|
9
|
-
import _inherits from "@babel/runtime-corejs3/helpers/inherits";
|
|
10
11
|
import _defineProperty from "@babel/runtime-corejs3/helpers/defineProperty";
|
|
11
12
|
import _Menu from "antd/es/menu";
|
|
12
13
|
import _Tabs from "antd/es/tabs";
|
|
13
14
|
import _concatInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/concat";
|
|
14
15
|
import _mapInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/map";
|
|
15
16
|
import _bindInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/bind";
|
|
16
|
-
function
|
|
17
|
-
function _isNativeReflectConstruct() {
|
|
17
|
+
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); }; }
|
|
18
|
+
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
19
|
import React from 'react';
|
|
19
20
|
import PropTypes from 'prop-types';
|
|
20
21
|
import ReactDOM from 'react-dom';
|
|
@@ -37,6 +38,8 @@ var TabType = {
|
|
|
37
38
|
* onTabChange: 切换选项卡时触发,原型为function(key)
|
|
38
39
|
*/
|
|
39
40
|
var SuperTab2 = /*#__PURE__*/function (_React$Component) {
|
|
41
|
+
_inherits(SuperTab2, _React$Component);
|
|
42
|
+
var _super = _createSuper(SuperTab2);
|
|
40
43
|
function SuperTab2() {
|
|
41
44
|
var _context;
|
|
42
45
|
var _this;
|
|
@@ -44,8 +47,8 @@ var SuperTab2 = /*#__PURE__*/function (_React$Component) {
|
|
|
44
47
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
45
48
|
args[_key] = arguments[_key];
|
|
46
49
|
}
|
|
47
|
-
_this =
|
|
48
|
-
_defineProperty(_this, "onTabChange", function (key) {
|
|
50
|
+
_this = _super.call.apply(_super, _concatInstanceProperty(_context = [this]).call(_context, args));
|
|
51
|
+
_defineProperty(_assertThisInitialized(_this), "onTabChange", function (key) {
|
|
49
52
|
var _this$props = _this.props,
|
|
50
53
|
onTabChange = _this$props.onTabChange,
|
|
51
54
|
_this$props$callback = _this$props.callback,
|
|
@@ -57,13 +60,13 @@ var SuperTab2 = /*#__PURE__*/function (_React$Component) {
|
|
|
57
60
|
callback.onTabChange(key);
|
|
58
61
|
}
|
|
59
62
|
});
|
|
60
|
-
_defineProperty(_this, "toTab", function (tab) {
|
|
63
|
+
_defineProperty(_assertThisInitialized(_this), "toTab", function (tab) {
|
|
61
64
|
return /*#__PURE__*/React.createElement(TabPane, {
|
|
62
65
|
key: tab.key,
|
|
63
66
|
tab: tab.title
|
|
64
67
|
});
|
|
65
68
|
});
|
|
66
|
-
_defineProperty(_this, "toMenu", function () {
|
|
69
|
+
_defineProperty(_assertThisInitialized(_this), "toMenu", function () {
|
|
67
70
|
var _this$props2 = _this.props,
|
|
68
71
|
tabs = _this$props2.tabs,
|
|
69
72
|
activeKey = _this$props2.activeKey;
|
|
@@ -83,17 +86,17 @@ var SuperTab2 = /*#__PURE__*/function (_React$Component) {
|
|
|
83
86
|
placement: "leftTop",
|
|
84
87
|
title: tab.tip
|
|
85
88
|
}, /*#__PURE__*/React.createElement("a", {
|
|
86
|
-
onClick: _bindInstanceProperty(_context2 = _this.onTabChange).call(_context2, _this, tab.key),
|
|
89
|
+
onClick: _bindInstanceProperty(_context2 = _this.onTabChange).call(_context2, _assertThisInitialized(_this), tab.key),
|
|
87
90
|
style: style
|
|
88
91
|
}, tab.title))) : /*#__PURE__*/React.createElement(MenuItem, {
|
|
89
92
|
key: tab.key
|
|
90
93
|
}, /*#__PURE__*/React.createElement("a", {
|
|
91
|
-
onClick: _bindInstanceProperty(_context3 = _this.onTabChange).call(_context3, _this, tab.key),
|
|
94
|
+
onClick: _bindInstanceProperty(_context3 = _this.onTabChange).call(_context3, _assertThisInitialized(_this), tab.key),
|
|
92
95
|
style: style
|
|
93
96
|
}, tab.title));
|
|
94
97
|
}));
|
|
95
98
|
});
|
|
96
|
-
_defineProperty(_this, "getPopupContainer", function () {
|
|
99
|
+
_defineProperty(_assertThisInitialized(_this), "getPopupContainer", function () {
|
|
97
100
|
var container = _this.props.container;
|
|
98
101
|
if (typeof container === 'undefined') {
|
|
99
102
|
return document.body;
|
|
@@ -101,7 +104,7 @@ var SuperTab2 = /*#__PURE__*/function (_React$Component) {
|
|
|
101
104
|
return ReactDOM.findDOMNode(container);
|
|
102
105
|
}
|
|
103
106
|
});
|
|
104
|
-
_defineProperty(_this, "toDropdown", function () {
|
|
107
|
+
_defineProperty(_assertThisInitialized(_this), "toDropdown", function () {
|
|
105
108
|
return /*#__PURE__*/React.createElement(_Dropdown, {
|
|
106
109
|
overlay: _this.toMenu(),
|
|
107
110
|
getPopupContainer: _this.getPopupContainer
|
|
@@ -115,8 +118,7 @@ var SuperTab2 = /*#__PURE__*/function (_React$Component) {
|
|
|
115
118
|
});
|
|
116
119
|
return _this;
|
|
117
120
|
}
|
|
118
|
-
|
|
119
|
-
return _createClass(SuperTab2, [{
|
|
121
|
+
_createClass(SuperTab2, [{
|
|
120
122
|
key: "render",
|
|
121
123
|
value: function render() {
|
|
122
124
|
var _this$props3 = this.props,
|
|
@@ -132,6 +134,7 @@ var SuperTab2 = /*#__PURE__*/function (_React$Component) {
|
|
|
132
134
|
}, _mapInstanceProperty(tabs).call(tabs, this.toTab));
|
|
133
135
|
}
|
|
134
136
|
}]);
|
|
137
|
+
return SuperTab2;
|
|
135
138
|
}(React.Component);
|
|
136
139
|
_defineProperty(SuperTab2, "propTypes", {
|
|
137
140
|
activeKey: PropTypes.string.isRequired,
|
|
@@ -2,19 +2,22 @@ import _Reflect$construct from "@babel/runtime-corejs3/core-js-stable/reflect/co
|
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime-corejs3/helpers/objectWithoutProperties";
|
|
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";
|
|
5
7
|
import _possibleConstructorReturn from "@babel/runtime-corejs3/helpers/possibleConstructorReturn";
|
|
6
8
|
import _getPrototypeOf from "@babel/runtime-corejs3/helpers/getPrototypeOf";
|
|
7
|
-
import _inherits from "@babel/runtime-corejs3/helpers/inherits";
|
|
8
9
|
import _defineProperty from "@babel/runtime-corejs3/helpers/defineProperty";
|
|
9
10
|
var _excluded = ["onMoveRow", "index", "className"];
|
|
10
11
|
import _concatInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/concat";
|
|
11
12
|
import _includesInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/includes";
|
|
12
|
-
function
|
|
13
|
-
function _isNativeReflectConstruct() {
|
|
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; } }
|
|
14
15
|
import React from 'react';
|
|
15
16
|
import variables from '../variables';
|
|
16
17
|
var dragIndex = -1;
|
|
17
18
|
var DragSortRow = /*#__PURE__*/function (_React$Component) {
|
|
19
|
+
_inherits(DragSortRow, _React$Component);
|
|
20
|
+
var _super = _createSuper(DragSortRow);
|
|
18
21
|
function DragSortRow() {
|
|
19
22
|
var _context, _context2;
|
|
20
23
|
var _this;
|
|
@@ -22,22 +25,22 @@ var DragSortRow = /*#__PURE__*/function (_React$Component) {
|
|
|
22
25
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
23
26
|
args[_key] = arguments[_key];
|
|
24
27
|
}
|
|
25
|
-
_this =
|
|
26
|
-
_defineProperty(_this, "state", {
|
|
28
|
+
_this = _super.call.apply(_super, _concatInstanceProperty(_context = [this]).call(_context, args));
|
|
29
|
+
_defineProperty(_assertThisInitialized(_this), "state", {
|
|
27
30
|
dragIndex: -1,
|
|
28
31
|
firefox: _includesInstanceProperty(_context2 = navigator.userAgent).call(_context2, 'Firefox')
|
|
29
32
|
});
|
|
30
|
-
_defineProperty(_this, "onDragStart", function (e) {
|
|
33
|
+
_defineProperty(_assertThisInitialized(_this), "onDragStart", function (e) {
|
|
31
34
|
dragIndex = _this.props.index;
|
|
32
35
|
if (_this.state.firefox) {
|
|
33
36
|
// 火狐浏览器必须调用setData
|
|
34
37
|
e.dataTransfer.setData('text/plain', 'DragSortRow');
|
|
35
38
|
}
|
|
36
39
|
});
|
|
37
|
-
_defineProperty(_this, "onDragEnd", function () {
|
|
40
|
+
_defineProperty(_assertThisInitialized(_this), "onDragEnd", function () {
|
|
38
41
|
dragIndex = -1;
|
|
39
42
|
});
|
|
40
|
-
_defineProperty(_this, "onDragOver", function (e) {
|
|
43
|
+
_defineProperty(_assertThisInitialized(_this), "onDragOver", function (e) {
|
|
41
44
|
if (dragIndex > -1 && dragIndex !== _this.props.index) {
|
|
42
45
|
e.preventDefault();
|
|
43
46
|
if (_this.state.dragIndex !== dragIndex) {
|
|
@@ -47,12 +50,12 @@ var DragSortRow = /*#__PURE__*/function (_React$Component) {
|
|
|
47
50
|
}
|
|
48
51
|
}
|
|
49
52
|
});
|
|
50
|
-
_defineProperty(_this, "onDragLeave", function () {
|
|
53
|
+
_defineProperty(_assertThisInitialized(_this), "onDragLeave", function () {
|
|
51
54
|
_this.setState({
|
|
52
55
|
dragIndex: -1
|
|
53
56
|
});
|
|
54
57
|
});
|
|
55
|
-
_defineProperty(_this, "onDrop", function (e) {
|
|
58
|
+
_defineProperty(_assertThisInitialized(_this), "onDrop", function (e) {
|
|
56
59
|
var dragIndex = _this.state.dragIndex;
|
|
57
60
|
_this.setState({
|
|
58
61
|
dragIndex: -1
|
|
@@ -66,8 +69,7 @@ var DragSortRow = /*#__PURE__*/function (_React$Component) {
|
|
|
66
69
|
});
|
|
67
70
|
return _this;
|
|
68
71
|
}
|
|
69
|
-
|
|
70
|
-
return _createClass(DragSortRow, [{
|
|
72
|
+
_createClass(DragSortRow, [{
|
|
71
73
|
key: "render",
|
|
72
74
|
value: function render() {
|
|
73
75
|
var _context3;
|
|
@@ -90,5 +92,6 @@ var DragSortRow = /*#__PURE__*/function (_React$Component) {
|
|
|
90
92
|
return /*#__PURE__*/React.createElement("tr", restProps);
|
|
91
93
|
}
|
|
92
94
|
}]);
|
|
95
|
+
return DragSortRow;
|
|
93
96
|
}(React.Component);
|
|
94
97
|
export default DragSortRow;
|
|
@@ -3,31 +3,34 @@ import _Input from "antd/es/input";
|
|
|
3
3
|
import _Button from "antd/es/button";
|
|
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";
|
|
6
8
|
import _possibleConstructorReturn from "@babel/runtime-corejs3/helpers/possibleConstructorReturn";
|
|
7
9
|
import _getPrototypeOf from "@babel/runtime-corejs3/helpers/getPrototypeOf";
|
|
8
|
-
import _inherits from "@babel/runtime-corejs3/helpers/inherits";
|
|
9
10
|
import _defineProperty from "@babel/runtime-corejs3/helpers/defineProperty";
|
|
10
11
|
import _bindInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/bind";
|
|
11
|
-
function
|
|
12
|
-
function _isNativeReflectConstruct() {
|
|
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); }; }
|
|
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; } }
|
|
13
14
|
import React from 'react';
|
|
14
15
|
import PropTypes from 'prop-types';
|
|
15
16
|
import Control from "../Control/Control";
|
|
16
17
|
import variables from '../variables';
|
|
17
18
|
var FilterDropDown = /*#__PURE__*/function (_React$Component) {
|
|
19
|
+
_inherits(FilterDropDown, _React$Component);
|
|
20
|
+
var _super = _createSuper(FilterDropDown);
|
|
18
21
|
function FilterDropDown(_props) {
|
|
19
22
|
var _this;
|
|
20
23
|
_classCallCheck(this, FilterDropDown);
|
|
21
|
-
_this =
|
|
22
|
-
_defineProperty(_this, "onChange", function (e) {
|
|
24
|
+
_this = _super.call(this, _props);
|
|
25
|
+
_defineProperty(_assertThisInitialized(_this), "onChange", function (e) {
|
|
23
26
|
_this.setState({
|
|
24
27
|
value: e.target.value
|
|
25
28
|
});
|
|
26
29
|
});
|
|
27
|
-
_defineProperty(_this, "onDateChange", function (key, value) {
|
|
30
|
+
_defineProperty(_assertThisInitialized(_this), "onDateChange", function (key, value) {
|
|
28
31
|
_this.setState(_defineProperty({}, key, value));
|
|
29
32
|
});
|
|
30
|
-
_defineProperty(_this, "onSearch", function () {
|
|
33
|
+
_defineProperty(_assertThisInitialized(_this), "onSearch", function () {
|
|
31
34
|
var _this$props = _this.props,
|
|
32
35
|
onSearch = _this$props.onSearch,
|
|
33
36
|
isDateFilterByStartAndEnd = _this$props.isDateFilterByStartAndEnd;
|
|
@@ -37,7 +40,7 @@ var FilterDropDown = /*#__PURE__*/function (_React$Component) {
|
|
|
37
40
|
onSearch(val);
|
|
38
41
|
}
|
|
39
42
|
});
|
|
40
|
-
_defineProperty(_this, "DateInputCreator", function () {
|
|
43
|
+
_defineProperty(_assertThisInitialized(_this), "DateInputCreator", function () {
|
|
41
44
|
var _context, _context2, _context3;
|
|
42
45
|
var props = _this.props.props;
|
|
43
46
|
var propsStart = {
|
|
@@ -74,7 +77,7 @@ var FilterDropDown = /*#__PURE__*/function (_React$Component) {
|
|
|
74
77
|
onClick: _bindInstanceProperty(_context3 = _this.onSearch).call(_context3, null, _this.props.type)
|
|
75
78
|
}, "\u641C\u7D22")));
|
|
76
79
|
});
|
|
77
|
-
_defineProperty(_this, "InputCreator", function () {
|
|
80
|
+
_defineProperty(_assertThisInitialized(_this), "InputCreator", function () {
|
|
78
81
|
var props = {
|
|
79
82
|
size: 'small',
|
|
80
83
|
value: _this.state.value,
|
|
@@ -112,8 +115,7 @@ var FilterDropDown = /*#__PURE__*/function (_React$Component) {
|
|
|
112
115
|
}
|
|
113
116
|
return _this;
|
|
114
117
|
}
|
|
115
|
-
|
|
116
|
-
return _createClass(FilterDropDown, [{
|
|
118
|
+
_createClass(FilterDropDown, [{
|
|
117
119
|
key: "componentWillReceiveProps",
|
|
118
120
|
value: function componentWillReceiveProps(newProps) {
|
|
119
121
|
if (newProps.isDateFilterByStartAndEnd) {
|
|
@@ -152,6 +154,7 @@ var FilterDropDown = /*#__PURE__*/function (_React$Component) {
|
|
|
152
154
|
return this.props.isDateFilterByStartAndEnd ? this.DateInputCreator() : this.InputCreator();
|
|
153
155
|
}
|
|
154
156
|
}]);
|
|
157
|
+
return FilterDropDown;
|
|
155
158
|
}(React.Component);
|
|
156
159
|
_defineProperty(FilterDropDown, "propTypes", {
|
|
157
160
|
value: PropTypes.any,
|