@lingxiteam/assets 4.0.1-alpha.1 → 4.1.1-alpha.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 +3 -2
- package/es/error/errorDisplay/Mobile/defaultGlobalConfig.js +2 -0
- package/es/error/errorDisplay/Web/ErrorMsg/index.js +318 -307
- package/es/error/errorDisplay/Web/Notification/Notice.js +9 -3
- package/es/error/errorDisplay/Web/Notification/Notification.js +24 -7
- package/es/error/errorDisplay/Web/Notification/Notification.less +23 -0
- package/es/error/errorDisplay/Web/Notification/index.js +4 -0
- package/es/error/errorDisplay/Web/defaultGlobalConfig.js +4 -0
- package/es/index.d.ts +1 -2
- package/es/index.js +1 -2
- package/lib/error/errorDisplay/Mobile/Modal/Modal.js +3 -2
- package/lib/error/errorDisplay/Mobile/defaultGlobalConfig.js +2 -0
- package/lib/error/errorDisplay/Web/ErrorMsg/index.js +318 -307
- package/lib/error/errorDisplay/Web/Notification/Notice.js +9 -3
- package/lib/error/errorDisplay/Web/Notification/Notification.js +24 -7
- package/lib/error/errorDisplay/Web/Notification/Notification.less +23 -0
- package/lib/error/errorDisplay/Web/Notification/index.js +4 -0
- package/lib/error/errorDisplay/Web/defaultGlobalConfig.js +4 -0
- package/lib/index.d.ts +1 -2
- package/lib/index.js +0 -9
- package/package.json +1 -2
|
@@ -11,7 +11,8 @@ 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
|
|
14
|
+
cancelText = props.cancelText,
|
|
15
|
+
showErrorCode = props.showErrorCode;
|
|
15
16
|
return visible ? /*#__PURE__*/React.createElement("div", {
|
|
16
17
|
className: "lxm-modal-wraper",
|
|
17
18
|
ref: ref
|
|
@@ -28,7 +29,7 @@ var Modal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
28
29
|
alt: ""
|
|
29
30
|
})), title ? /*#__PURE__*/React.createElement("div", {
|
|
30
31
|
className: "lxm-modal-title"
|
|
31
|
-
}, title) : '', subtitle ? /*#__PURE__*/React.createElement("div", {
|
|
32
|
+
}, title) : '', showErrorCode !== false && subtitle ? /*#__PURE__*/React.createElement("div", {
|
|
32
33
|
className: "lxm-modal-subtitle"
|
|
33
34
|
}, subtitle) : '', content ? /*#__PURE__*/React.createElement("div", {
|
|
34
35
|
className: "lxm-modal-content"
|
|
@@ -6,6 +6,8 @@ export var defaultGlobalConfig = {
|
|
|
6
6
|
maxLen: null,
|
|
7
7
|
showType: 'modal',
|
|
8
8
|
maxCount: null,
|
|
9
|
+
showErrorCode: true,
|
|
10
|
+
// 在错误提示框里展示错误编码
|
|
9
11
|
resolve: process.env.LingXi_ERROR_RESOLVE || resolveRequestPath('/lcdp/error/queryErrorInfoByCodeOrMsg'),
|
|
10
12
|
okText: '查看详情',
|
|
11
13
|
cancelText: '知道了',
|