orion-design 0.1.0 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/Flex/Col.d.ts +25 -0
- package/dist/components/Flex/Item.d.ts +25 -0
- package/dist/components/Flex/Row.d.ts +25 -0
- package/dist/components/Flex/index.d.ts +10 -0
- package/dist/components/Flex/index.js +151 -0
- package/dist/components/Modal/Modal.d.ts +2 -0
- package/dist/components/Space/index.d.ts +76 -0
- package/dist/components/_util/classNames.d.ts +2 -0
- package/dist/components/_util/classNames.js +31 -0
- package/dist/components/_util/isValid.d.ts +2 -0
- package/dist/components/_util/isValid.js +5 -0
- package/dist/components/_util/props-util/index.d.ts +6 -0
- package/dist/components/_util/props-util/index.js +53 -0
- package/dist/components/_util/props-util/initDefaultProps.d.ts +6 -0
- package/dist/components/_util/props-util/initDefaultProps.js +25 -0
- package/dist/components/_util/type.d.ts +62 -0
- package/dist/components/_util/type.js +66 -0
- package/dist/components/_util/util.d.ts +18 -0
- package/dist/components/_util/util.js +83 -0
- package/dist/components/_util/vue-types/index.d.ts +12 -0
- package/dist/components/_util/vue-types/index.js +473 -0
- package/dist/components/components.d.ts +4 -0
- package/dist/components/components.js +10 -0
- package/dist/components/index.d.ts +3 -0
- package/dist/components/index.js +23 -0
- package/dist/components-O4L3qYfM.js +61 -0
- package/dist/error/OrionError.js +9 -7
- package/dist/index.css +44 -0
- package/dist/index.d.ts +4 -1
- package/dist/index.js +12 -3
- package/dist/print/LodopFuncs.js +109 -140
- package/dist/print/index.js +204 -199
- package/dist/request/ErrorHandlerChain.js +13 -13
- package/dist/request/RequestFilterChain.js +13 -13
- package/dist/request/ResponseParserChain.js +13 -13
- package/dist/request/disivion/DateSerializer.js +44 -53
- package/dist/request/disivion/DivisionErrorHandler.js +42 -42
- package/dist/request/disivion/DivisionResponseParser.js +22 -18
- package/dist/request/disivion/index.d.ts +21 -1
- package/dist/request/disivion/index.js +493 -24
- package/dist/request/error/BizExceptionResponseError.js +10 -10
- package/dist/request/error/ExceptionResponseError.js +10 -10
- package/dist/request/error/ResponseError.js +11 -9
- package/dist/request/error/SessionExceptionResponseError.js +10 -10
- package/dist/request/index.d.ts +3 -0
- package/dist/request/index.js +9 -20
- package/dist/style/index.d.ts +3 -0
- package/dist/style/index.js +1 -0
- package/dist/utils/DateUtil.js +47 -52
- package/dist/utils/NumberUtil.js +5 -5
- package/dist/utils/cloneDeep.js +1 -2255
- package/dist/utils/delay.js +1 -1
- package/dist/utils/index.js +3 -4
- package/dist/utils/md5.js +218 -272
- package/dist/version/index.d.ts +2 -0
- package/dist/version/index.js +6 -0
- package/dist/version/version.d.ts +2 -0
- package/dist/version/version.js +3 -0
- package/global.d.ts +9 -0
- package/package.json +28 -10
- package/dist/_commonjsHelpers-BFTU3MAI.js +0 -7
- package/dist/bignumber-upqAL281.js +0 -2907
- package/dist/dayjs.min-CYqA_arp.js +0 -12
- package/dist/request/disivion/request.d.ts +0 -21
- package/dist/request/disivion/request.js +0 -19345
- package/dist/request/postByOpenNewWindow.d.ts +0 -1
- package/dist/request/postByOpenNewWindow.js +0 -41
@@ -1 +0,0 @@
|
|
1
|
-
export default function postByOpenNewWindow(url: string): void;
|
@@ -1,41 +0,0 @@
|
|
1
|
-
function postByOpenNewWindow(url) {
|
2
|
-
if (!url) {
|
3
|
-
throw new Error('url is null.');
|
4
|
-
}
|
5
|
-
if (!(typeof url == 'string')) {
|
6
|
-
throw new Error('url is not string.');
|
7
|
-
}
|
8
|
-
// 1. 通过原生FORM发起下载文件的请求
|
9
|
-
// a. 动态创建一个FORM并追加到body
|
10
|
-
const submitDataForm = document.createElement('FORM');
|
11
|
-
submitDataForm.method = 'POST';
|
12
|
-
document.body.appendChild(submitDataForm);
|
13
|
-
// b. 将URL中的各字段分解为FORM中的实体并追加到动态创建的FORM中
|
14
|
-
const questionMarkPos = url.indexOf('?');
|
15
|
-
let action = '';
|
16
|
-
let params = '';
|
17
|
-
if (questionMarkPos != -1) {
|
18
|
-
action = url.substring(0, questionMarkPos);
|
19
|
-
params = url.substring(questionMarkPos + 1);
|
20
|
-
const urlArray = params.split('&');
|
21
|
-
for (let i = 0; i < urlArray.length; i++) {
|
22
|
-
const [key, value] = urlArray[i].split('=');
|
23
|
-
const o = document.createElement('INPUT');
|
24
|
-
o.type = 'hidden';
|
25
|
-
o.name = key;
|
26
|
-
o.id = key;
|
27
|
-
o.value = decodeURIComponent(value);
|
28
|
-
submitDataForm.appendChild(o);
|
29
|
-
}
|
30
|
-
}
|
31
|
-
else {
|
32
|
-
action = url;
|
33
|
-
}
|
34
|
-
// c. 通过FORM的submit方法发起请求
|
35
|
-
submitDataForm.action = action;
|
36
|
-
submitDataForm.target = '_blank';
|
37
|
-
submitDataForm.submit();
|
38
|
-
submitDataForm.outerHTML = '';
|
39
|
-
}
|
40
|
-
|
41
|
-
export { postByOpenNewWindow as default };
|