gxxc-ui 1.0.38 → 1.0.39
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/ModalUI/index.js +5 -4
- package/package.json +1 -1
package/dist/ModalUI/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _excluded = ["className", "isOpen", "setIsOpen", "title", "icon", "type", "confirm", "children"];
|
|
1
|
+
var _excluded = ["className", "isOpen", "setIsOpen", "title", "icon", "type", "titleClass", "confirm", "children"];
|
|
2
2
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
3
3
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
4
4
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
@@ -12,9 +12,9 @@ import React, { useRef, useState, Fragment } from 'react';
|
|
|
12
12
|
import { Modal } from 'antd';
|
|
13
13
|
import Draggable from 'react-draggable';
|
|
14
14
|
import "./index.scss";
|
|
15
|
-
var RenderTitle = function RenderTitle(title, icon, type) {
|
|
15
|
+
var RenderTitle = function RenderTitle(title, icon, type, className) {
|
|
16
16
|
return /*#__PURE__*/React.createElement(Fragment, null, (title || icon) && /*#__PURE__*/React.createElement("div", {
|
|
17
|
-
className: "sicModalui-header"
|
|
17
|
+
className: "sicModalui-header ".concat(className !== null && className !== void 0 ? className : '')
|
|
18
18
|
}, title && /*#__PURE__*/React.createElement("div", null, title), icon && /*#__PURE__*/React.createElement("div", {
|
|
19
19
|
className: "sicModalui-header-icon ".concat(type !== null && type !== void 0 ? type : '')
|
|
20
20
|
}, icon)));
|
|
@@ -26,6 +26,7 @@ var ModalUI = function ModalUI(props) {
|
|
|
26
26
|
title = props.title,
|
|
27
27
|
icon = props.icon,
|
|
28
28
|
type = props.type,
|
|
29
|
+
titleClass = props.titleClass,
|
|
29
30
|
confirm = props.confirm,
|
|
30
31
|
children = props.children,
|
|
31
32
|
otherProps = _objectWithoutProperties(props, _excluded);
|
|
@@ -75,7 +76,7 @@ var ModalUI = function ModalUI(props) {
|
|
|
75
76
|
onMouseOut: function onMouseOut() {
|
|
76
77
|
return setDisabled(true);
|
|
77
78
|
}
|
|
78
|
-
}, RenderTitle(title, icon, type)),
|
|
79
|
+
}, RenderTitle(title, icon, type, titleClass)),
|
|
79
80
|
onCancel: function onCancel() {
|
|
80
81
|
return setIsOpen(undefined);
|
|
81
82
|
},
|