@zgfe/business-lib 1.1.20 → 1.1.21-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/assets/iconfont/demo_index.html +3 -3
- package/es/assets/iconfont/iconfont.css +3 -3
- package/es/assets/iconfont/iconfont.ttf +0 -0
- package/es/assets/iconfont/iconfont.woff +0 -0
- package/es/assets/iconfont/iconfont.woff2 +0 -0
- package/es/chart/index.js +1 -1
- package/es/select/index.js +2 -0
- package/es/utils/ajax.js +3 -0
- package/es/utils/demo.d.ts +2 -0
- package/es/utils/demo.js +16 -0
- package/es/utils/type.d.ts +2 -1
- package/es/utils/type.js +1 -0
- package/package.json +2 -2
|
@@ -594,9 +594,9 @@
|
|
|
594
594
|
<pre><code class="language-css"
|
|
595
595
|
>@font-face {
|
|
596
596
|
font-family: 'bsicon';
|
|
597
|
-
src: url('iconfont.woff2?t=
|
|
598
|
-
url('iconfont.woff?t=
|
|
599
|
-
url('iconfont.ttf?t=
|
|
597
|
+
src: url('iconfont.woff2?t=1675760321752') format('woff2'),
|
|
598
|
+
url('iconfont.woff?t=1675760321752') format('woff'),
|
|
599
|
+
url('iconfont.ttf?t=1675760321752') format('truetype');
|
|
600
600
|
}
|
|
601
601
|
</code></pre>
|
|
602
602
|
<h3 id="-iconfont-">第二步:定义使用 iconfont 的样式</h3>
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
@font-face {
|
|
2
2
|
font-family: "bsicon"; /* Project id 2545884 */
|
|
3
|
-
src: url('iconfont.woff2?t=
|
|
4
|
-
url('iconfont.woff?t=
|
|
5
|
-
url('iconfont.ttf?t=
|
|
3
|
+
src: url('iconfont.woff2?t=1675760321752') format('woff2'),
|
|
4
|
+
url('iconfont.woff?t=1675760321752') format('woff'),
|
|
5
|
+
url('iconfont.ttf?t=1675760321752') format('truetype');
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
.bsicon {
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/es/chart/index.js
CHANGED
|
@@ -86,7 +86,7 @@ var BizChart = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
86
86
|
setChartOption(function () {
|
|
87
87
|
return _objectSpread({}, eOption);
|
|
88
88
|
});
|
|
89
|
-
}, [data, showAll, showList, reverseXAxis]);
|
|
89
|
+
}, [data, showAll, showList, reverseXAxis, option]);
|
|
90
90
|
useImperativeHandle(ref, function () {
|
|
91
91
|
return {
|
|
92
92
|
instance: instance
|
package/es/select/index.js
CHANGED
package/es/utils/ajax.js
CHANGED
|
@@ -73,6 +73,9 @@ function responseErrorHandler(url, apiResult, errorTitle, notifyType) {
|
|
|
73
73
|
} else if (new RegExp("".concat(ResponseStatus.notLogin)).test(apiResult.code)) {
|
|
74
74
|
flag = true;
|
|
75
75
|
message = '账户未登录或登录已失效';
|
|
76
|
+
} else if (new RegExp("".concat(ResponseStatus.noPermission)).test(apiResult.code)) {
|
|
77
|
+
window.location.href = '/webapp/app/noPermission';
|
|
78
|
+
throw new Error(apiResult.msg);
|
|
76
79
|
}
|
|
77
80
|
|
|
78
81
|
if (!flag) {
|
package/es/utils/demo.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React, { useEffect } from 'react';
|
|
2
|
+
import DemoWrapper from '../demoWrapper';
|
|
3
|
+
import ajax from './ajax';
|
|
4
|
+
export default (function () {
|
|
5
|
+
useEffect(function () {
|
|
6
|
+
ajax('/zg/web/v2/journey/list', {
|
|
7
|
+
method: 'post',
|
|
8
|
+
data: {
|
|
9
|
+
appId: 54
|
|
10
|
+
}
|
|
11
|
+
}).then(function (res) {
|
|
12
|
+
console.log(res);
|
|
13
|
+
});
|
|
14
|
+
}, []);
|
|
15
|
+
return /*#__PURE__*/React.createElement(DemoWrapper, null, /*#__PURE__*/React.createElement("div", null, "ceshi"), ";");
|
|
16
|
+
});
|
package/es/utils/type.d.ts
CHANGED
package/es/utils/type.js
CHANGED
|
@@ -17,6 +17,7 @@ export var ResponseStatus;
|
|
|
17
17
|
ResponseStatus["notLogin"] = "07";
|
|
18
18
|
ResponseStatus["delFileFail"] = "08";
|
|
19
19
|
ResponseStatus["systemError"] = "09";
|
|
20
|
+
ResponseStatus["noPermission"] = "44";
|
|
20
21
|
})(ResponseStatus || (ResponseStatus = {}));
|
|
21
22
|
|
|
22
23
|
export var ApiResult = /*#__PURE__*/_createClass(function ApiResult(code, data, message) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zgfe/business-lib",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.21-alpha.1",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"start": "dumi dev",
|
|
6
6
|
"docs:build": "dumi build",
|
|
@@ -60,5 +60,5 @@
|
|
|
60
60
|
"react": "^16.12.0 || ^17.0.0",
|
|
61
61
|
"yorkie": "^2.0.0"
|
|
62
62
|
},
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "5d0b4dc44cc531ed1899f2b53ac375f2dfcf5024"
|
|
64
64
|
}
|