easy3wui 1.5.64-beta.12 → 1.5.64-beta.13
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/lib/Easy3wModal/index.js +17 -17
- package/package.json +1 -1
package/lib/Easy3wModal/index.js
CHANGED
|
@@ -53,16 +53,12 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'd
|
|
|
53
53
|
var Easy3wModal = function (_Component) {
|
|
54
54
|
(0, _inherits3['default'])(Easy3wModal, _Component);
|
|
55
55
|
|
|
56
|
-
function Easy3wModal() {
|
|
57
|
-
var _temp, _this, _ret;
|
|
58
|
-
|
|
56
|
+
function Easy3wModal(props) {
|
|
59
57
|
(0, _classCallCheck3['default'])(this, Easy3wModal);
|
|
60
58
|
|
|
61
|
-
|
|
62
|
-
args[_key] = arguments[_key];
|
|
63
|
-
}
|
|
59
|
+
var _this = (0, _possibleConstructorReturn3['default'])(this, _Component.call(this, props));
|
|
64
60
|
|
|
65
|
-
|
|
61
|
+
_this.onClickFunc = function (e, func) {
|
|
66
62
|
var globalLoading = _this.props.loadingFlag.global;
|
|
67
63
|
if (globalLoading) {
|
|
68
64
|
_notification3['default'].warning({
|
|
@@ -73,7 +69,9 @@ var Easy3wModal = function (_Component) {
|
|
|
73
69
|
} else {
|
|
74
70
|
func(e);
|
|
75
71
|
}
|
|
76
|
-
}
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
_this.getOneBtnObj = function (obj) {
|
|
77
75
|
return _react2['default'].createElement(
|
|
78
76
|
_button2['default'],
|
|
79
77
|
{
|
|
@@ -86,7 +84,9 @@ var Easy3wModal = function (_Component) {
|
|
|
86
84
|
},
|
|
87
85
|
obj.cName
|
|
88
86
|
);
|
|
89
|
-
}
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
_this.getBtnObj = function () {
|
|
90
90
|
var footBtnArr = _this.props.footBtnArr;
|
|
91
91
|
|
|
92
92
|
var allBtn = footBtnArr.map(function (btn) {
|
|
@@ -97,15 +97,16 @@ var Easy3wModal = function (_Component) {
|
|
|
97
97
|
{ style: { textAlign: 'center' } },
|
|
98
98
|
allBtn
|
|
99
99
|
);
|
|
100
|
-
}
|
|
101
|
-
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
var bidPureComponent = _this.props.bidPureComponent;
|
|
102
103
|
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
if (this.modalRef.current) {
|
|
106
|
-
document.body.style.overflow = '';
|
|
104
|
+
if (bidPureComponent && typeof bidPureComponent === 'function') {
|
|
105
|
+
bidPureComponent(_this);
|
|
107
106
|
}
|
|
108
|
-
|
|
107
|
+
_this.state = {};
|
|
108
|
+
return _this;
|
|
109
|
+
}
|
|
109
110
|
|
|
110
111
|
Easy3wModal.prototype.render = function render() {
|
|
111
112
|
var _props = this.props,
|
|
@@ -121,7 +122,6 @@ var Easy3wModal = function (_Component) {
|
|
|
121
122
|
return _react2['default'].createElement(
|
|
122
123
|
_modal2['default'],
|
|
123
124
|
(0, _extends3['default'])({
|
|
124
|
-
ref: this.modalRef,
|
|
125
125
|
title: title,
|
|
126
126
|
visible: visible,
|
|
127
127
|
confirmLoading: loadingFlag,
|