wargerm 0.5.34 → 0.5.35
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/dist/index.esm.js
CHANGED
@@ -9919,19 +9919,20 @@ var Modal = /*#__PURE__*/function (_React$PureComponent) {
|
|
9919
9919
|
title = _this$props2.title,
|
9920
9920
|
onClose = _this$props2.onClose,
|
9921
9921
|
closeCb = _this$props2.closeCb,
|
9922
|
+
renderClose = _this$props2.renderClose,
|
9922
9923
|
isDrag = _this$props2.isDrag;
|
9923
9924
|
return /*#__PURE__*/React.createElement("div", {
|
9924
9925
|
className: "model-header"
|
9925
9926
|
}, /*#__PURE__*/React.createElement("div", {
|
9926
9927
|
ref: _this.titleRef,
|
9927
9928
|
className: "model-title ".concat(isDrag ? 'move' : '')
|
9928
|
-
}, title), /*#__PURE__*/React.createElement(
|
9929
|
+
}, title), /*#__PURE__*/React.createElement("div", {
|
9929
9930
|
className: "model-closeIcon",
|
9930
9931
|
onClick: function onClick() {
|
9931
9932
|
onClose && onClose();
|
9932
9933
|
closeCb && closeCb();
|
9933
9934
|
}
|
9934
|
-
}));
|
9935
|
+
}, renderClose ? renderClose : /*#__PURE__*/React.createElement(CloseCircleOutlined, null)));
|
9935
9936
|
};
|
9936
9937
|
|
9937
9938
|
_this.renderContent = function () {
|
@@ -10221,17 +10222,18 @@ var Modal$1 = /*#__PURE__*/function (_React$PureComponent) {
|
|
10221
10222
|
_this.renderTop = function () {
|
10222
10223
|
var _this$props2 = _this.props,
|
10223
10224
|
title = _this$props2.title,
|
10224
|
-
onClose = _this$props2.onClose
|
10225
|
+
onClose = _this$props2.onClose,
|
10226
|
+
renderClose = _this$props2.renderClose;
|
10225
10227
|
return /*#__PURE__*/React.createElement("div", {
|
10226
10228
|
className: "model-header-tips"
|
10227
10229
|
}, /*#__PURE__*/React.createElement("div", {
|
10228
10230
|
className: "model-title-tips"
|
10229
|
-
}, title), /*#__PURE__*/React.createElement(
|
10231
|
+
}, title), /*#__PURE__*/React.createElement("div", {
|
10230
10232
|
className: "model-closeIcon-tips",
|
10231
10233
|
onClick: function onClick() {
|
10232
10234
|
return onClose && onClose();
|
10233
10235
|
}
|
10234
|
-
}));
|
10236
|
+
}, renderClose ? renderClose : /*#__PURE__*/React.createElement(CloseCircleOutlined, null)));
|
10235
10237
|
};
|
10236
10238
|
|
10237
10239
|
_this.renderContent = function () {
|
package/dist/index.js
CHANGED
@@ -9981,19 +9981,20 @@ var Modal = /*#__PURE__*/function (_React$PureComponent) {
|
|
9981
9981
|
title = _this$props2.title,
|
9982
9982
|
onClose = _this$props2.onClose,
|
9983
9983
|
closeCb = _this$props2.closeCb,
|
9984
|
+
renderClose = _this$props2.renderClose,
|
9984
9985
|
isDrag = _this$props2.isDrag;
|
9985
9986
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
9986
9987
|
className: "model-header"
|
9987
9988
|
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
9988
9989
|
ref: _this.titleRef,
|
9989
9990
|
className: "model-title ".concat(isDrag ? 'move' : '')
|
9990
|
-
}, title), /*#__PURE__*/React__default['default'].createElement(
|
9991
|
+
}, title), /*#__PURE__*/React__default['default'].createElement("div", {
|
9991
9992
|
className: "model-closeIcon",
|
9992
9993
|
onClick: function onClick() {
|
9993
9994
|
onClose && onClose();
|
9994
9995
|
closeCb && closeCb();
|
9995
9996
|
}
|
9996
|
-
}));
|
9997
|
+
}, renderClose ? renderClose : /*#__PURE__*/React__default['default'].createElement(icons.CloseCircleOutlined, null)));
|
9997
9998
|
};
|
9998
9999
|
|
9999
10000
|
_this.renderContent = function () {
|
@@ -10283,17 +10284,18 @@ var Modal$1 = /*#__PURE__*/function (_React$PureComponent) {
|
|
10283
10284
|
_this.renderTop = function () {
|
10284
10285
|
var _this$props2 = _this.props,
|
10285
10286
|
title = _this$props2.title,
|
10286
|
-
onClose = _this$props2.onClose
|
10287
|
+
onClose = _this$props2.onClose,
|
10288
|
+
renderClose = _this$props2.renderClose;
|
10287
10289
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
10288
10290
|
className: "model-header-tips"
|
10289
10291
|
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
10290
10292
|
className: "model-title-tips"
|
10291
|
-
}, title), /*#__PURE__*/React__default['default'].createElement(
|
10293
|
+
}, title), /*#__PURE__*/React__default['default'].createElement("div", {
|
10292
10294
|
className: "model-closeIcon-tips",
|
10293
10295
|
onClick: function onClick() {
|
10294
10296
|
return onClose && onClose();
|
10295
10297
|
}
|
10296
|
-
}));
|
10298
|
+
}, renderClose ? renderClose : /*#__PURE__*/React__default['default'].createElement(icons.CloseCircleOutlined, null)));
|
10297
10299
|
};
|
10298
10300
|
|
10299
10301
|
_this.renderContent = function () {
|