@lingxiteam/assets 4.1.1-alpha.1 → 4.1.1
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/error/errorDisplay/Mobile/Modal/Modal.js +2 -3
- package/es/error/errorDisplay/Mobile/defaultGlobalConfig.js +0 -2
- package/es/error/errorDisplay/Web/Notification/Notice.js +2 -3
- package/es/error/errorDisplay/Web/Notification/Notification.js +3 -1
- package/es/error/errorDisplay/Web/defaultGlobalConfig.js +0 -2
- package/lib/error/errorDisplay/Mobile/Modal/Modal.js +2 -3
- package/lib/error/errorDisplay/Mobile/defaultGlobalConfig.js +0 -2
- package/lib/error/errorDisplay/Web/Notification/Notice.js +2 -3
- package/lib/error/errorDisplay/Web/Notification/Notification.js +3 -1
- package/lib/error/errorDisplay/Web/defaultGlobalConfig.js +0 -2
- package/package.json +1 -1
|
@@ -11,8 +11,7 @@ var Modal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
11
11
|
onOk = props.onOk,
|
|
12
12
|
onCancel = props.onCancel,
|
|
13
13
|
okText = props.okText,
|
|
14
|
-
cancelText = props.cancelText
|
|
15
|
-
showErrorCode = props.showErrorCode;
|
|
14
|
+
cancelText = props.cancelText;
|
|
16
15
|
return visible ? /*#__PURE__*/React.createElement("div", {
|
|
17
16
|
className: "lxm-modal-wraper",
|
|
18
17
|
ref: ref
|
|
@@ -29,7 +28,7 @@ var Modal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
29
28
|
alt: ""
|
|
30
29
|
})), title ? /*#__PURE__*/React.createElement("div", {
|
|
31
30
|
className: "lxm-modal-title"
|
|
32
|
-
}, title) : '',
|
|
31
|
+
}, title) : '', subtitle ? /*#__PURE__*/React.createElement("div", {
|
|
33
32
|
className: "lxm-modal-subtitle"
|
|
34
33
|
}, subtitle) : '', content ? /*#__PURE__*/React.createElement("div", {
|
|
35
34
|
className: "lxm-modal-content"
|
|
@@ -6,8 +6,6 @@ export var defaultGlobalConfig = {
|
|
|
6
6
|
maxLen: null,
|
|
7
7
|
showType: 'modal',
|
|
8
8
|
maxCount: null,
|
|
9
|
-
showErrorCode: true,
|
|
10
|
-
// 在错误提示框里展示错误编码
|
|
11
9
|
resolve: process.env.LingXi_ERROR_RESOLVE || resolveRequestPath('/lcdp/error/queryErrorInfoByCodeOrMsg'),
|
|
12
10
|
okText: '查看详情',
|
|
13
11
|
cancelText: '知道了',
|
|
@@ -23,8 +23,7 @@ var Notice = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
23
23
|
maxLen = props.maxLen,
|
|
24
24
|
duration = props.duration,
|
|
25
25
|
badge = props.badge,
|
|
26
|
-
onShowStash = props.onShowStash
|
|
27
|
-
showErrorCode = props.showErrorCode;
|
|
26
|
+
onShowStash = props.onShowStash;
|
|
28
27
|
var _useState = useState(),
|
|
29
28
|
_useState2 = _slicedToArray(_useState, 2),
|
|
30
29
|
footerContent = _useState2[0],
|
|
@@ -112,7 +111,7 @@ var Notice = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
112
111
|
className: "lx-notification-notice-head-state"
|
|
113
112
|
}), /*#__PURE__*/React.createElement("div", {
|
|
114
113
|
className: "lx-notification-notice-head-title"
|
|
115
|
-
}, title,
|
|
114
|
+
}, title, isDomEle(code) ? /*#__PURE__*/React.createElement("span", {
|
|
116
115
|
className: "lx-notification-notice-head-code"
|
|
117
116
|
}, code) : ''), isDomEle(extra) ? /*#__PURE__*/React.createElement("div", {
|
|
118
117
|
className: "lx-notification-notice-head-extra"
|
|
@@ -48,7 +48,9 @@ var Notification = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
48
48
|
return item.key !== key;
|
|
49
49
|
});
|
|
50
50
|
});
|
|
51
|
-
|
|
51
|
+
if (stashOpenList.length) {
|
|
52
|
+
setStashOpenList([]);
|
|
53
|
+
}
|
|
52
54
|
};
|
|
53
55
|
var onAddNotice = function onAddNotice(config) {
|
|
54
56
|
setConfigList(function (list) {
|
|
@@ -20,8 +20,7 @@ var Modal = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
20
20
|
onOk = props.onOk,
|
|
21
21
|
onCancel = props.onCancel,
|
|
22
22
|
okText = props.okText,
|
|
23
|
-
cancelText = props.cancelText
|
|
24
|
-
showErrorCode = props.showErrorCode;
|
|
23
|
+
cancelText = props.cancelText;
|
|
25
24
|
return visible ? /*#__PURE__*/_react.default.createElement("div", {
|
|
26
25
|
className: "lxm-modal-wraper",
|
|
27
26
|
ref: ref
|
|
@@ -38,7 +37,7 @@ var Modal = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
38
37
|
alt: ""
|
|
39
38
|
})), title ? /*#__PURE__*/_react.default.createElement("div", {
|
|
40
39
|
className: "lxm-modal-title"
|
|
41
|
-
}, title) : '',
|
|
40
|
+
}, title) : '', subtitle ? /*#__PURE__*/_react.default.createElement("div", {
|
|
42
41
|
className: "lxm-modal-subtitle"
|
|
43
42
|
}, subtitle) : '', content ? /*#__PURE__*/_react.default.createElement("div", {
|
|
44
43
|
className: "lxm-modal-content"
|
|
@@ -12,8 +12,6 @@ var defaultGlobalConfig = {
|
|
|
12
12
|
maxLen: null,
|
|
13
13
|
showType: 'modal',
|
|
14
14
|
maxCount: null,
|
|
15
|
-
showErrorCode: true,
|
|
16
|
-
// 在错误提示框里展示错误编码
|
|
17
15
|
resolve: process.env.LingXi_ERROR_RESOLVE || (0, _compUtils.resolveRequestPath)('/lcdp/error/queryErrorInfoByCodeOrMsg'),
|
|
18
16
|
okText: '查看详情',
|
|
19
17
|
cancelText: '知道了',
|
|
@@ -32,8 +32,7 @@ var Notice = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
32
32
|
maxLen = props.maxLen,
|
|
33
33
|
duration = props.duration,
|
|
34
34
|
badge = props.badge,
|
|
35
|
-
onShowStash = props.onShowStash
|
|
36
|
-
showErrorCode = props.showErrorCode;
|
|
35
|
+
onShowStash = props.onShowStash;
|
|
37
36
|
var _useState = (0, _react.useState)(),
|
|
38
37
|
_useState2 = _slicedToArray(_useState, 2),
|
|
39
38
|
footerContent = _useState2[0],
|
|
@@ -121,7 +120,7 @@ var Notice = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
121
120
|
className: "lx-notification-notice-head-state"
|
|
122
121
|
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
123
122
|
className: "lx-notification-notice-head-title"
|
|
124
|
-
}, title,
|
|
123
|
+
}, title, isDomEle(code) ? /*#__PURE__*/_react.default.createElement("span", {
|
|
125
124
|
className: "lx-notification-notice-head-code"
|
|
126
125
|
}, code) : ''), isDomEle(extra) ? /*#__PURE__*/_react.default.createElement("div", {
|
|
127
126
|
className: "lx-notification-notice-head-extra"
|
|
@@ -57,7 +57,9 @@ var Notification = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
57
57
|
return item.key !== key;
|
|
58
58
|
});
|
|
59
59
|
});
|
|
60
|
-
|
|
60
|
+
if (stashOpenList.length) {
|
|
61
|
+
setStashOpenList([]);
|
|
62
|
+
}
|
|
61
63
|
};
|
|
62
64
|
var onAddNotice = function onAddNotice(config) {
|
|
63
65
|
setConfigList(function (list) {
|