orion-design 0.1.1 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (67) hide show
  1. package/dist/components/Flex/Col.d.ts +25 -0
  2. package/dist/components/Flex/Item.d.ts +25 -0
  3. package/dist/components/Flex/Row.d.ts +25 -0
  4. package/dist/components/Flex/index.d.ts +10 -0
  5. package/dist/components/Flex/index.js +151 -0
  6. package/dist/components/Modal/index.d.ts +15 -0
  7. package/dist/components/Modal/useModal.d.ts +3 -0
  8. package/dist/components/Modal/useModal.js +8 -0
  9. package/dist/components/Space/index.d.ts +76 -0
  10. package/dist/components/_util/classNames.d.ts +2 -0
  11. package/dist/components/_util/classNames.js +31 -0
  12. package/dist/components/_util/isValid.d.ts +2 -0
  13. package/dist/components/_util/isValid.js +5 -0
  14. package/dist/components/_util/props-util/index.d.ts +6 -0
  15. package/dist/components/_util/props-util/index.js +53 -0
  16. package/dist/components/_util/props-util/initDefaultProps.d.ts +6 -0
  17. package/dist/components/_util/props-util/initDefaultProps.js +25 -0
  18. package/dist/components/_util/type.d.ts +62 -0
  19. package/dist/components/_util/type.js +66 -0
  20. package/dist/components/_util/util.d.ts +18 -0
  21. package/dist/components/_util/util.js +83 -0
  22. package/dist/components/_util/vue-types/index.d.ts +12 -0
  23. package/dist/components/_util/vue-types/index.js +473 -0
  24. package/dist/components/components.d.ts +6 -0
  25. package/dist/components/components.js +12 -0
  26. package/dist/components/index.d.ts +3 -0
  27. package/dist/components/index.js +25 -0
  28. package/dist/components-DhjIbmR3.js +128 -0
  29. package/dist/error/OrionError.js +9 -7
  30. package/dist/index.css +44 -0
  31. package/dist/index.d.ts +3 -0
  32. package/dist/index.js +13 -0
  33. package/dist/print/LodopFuncs.js +109 -140
  34. package/dist/print/index.js +204 -199
  35. package/dist/request/ErrorHandlerChain.js +13 -13
  36. package/dist/request/RequestFilterChain.js +13 -13
  37. package/dist/request/ResponseParserChain.js +13 -13
  38. package/dist/request/disivion/DateSerializer.js +43 -51
  39. package/dist/request/disivion/DivisionErrorHandler.js +42 -42
  40. package/dist/request/disivion/DivisionResponseParser.js +22 -18
  41. package/dist/request/disivion/index.d.ts +21 -1
  42. package/dist/request/disivion/index.js +174 -153
  43. package/dist/request/error/BizExceptionResponseError.js +10 -10
  44. package/dist/request/error/ExceptionResponseError.js +10 -10
  45. package/dist/request/error/ResponseError.js +11 -9
  46. package/dist/request/error/SessionExceptionResponseError.js +10 -10
  47. package/dist/request/index.d.ts +3 -0
  48. package/dist/request/index.js +3 -2
  49. package/dist/style/index.d.ts +3 -0
  50. package/dist/style/index.js +1 -0
  51. package/dist/utils/DateUtil.js +46 -50
  52. package/dist/utils/NumberUtil.js +5 -5
  53. package/dist/utils/cloneDeep.js +1 -2255
  54. package/dist/utils/delay.js +1 -1
  55. package/dist/utils/index.js +2 -2
  56. package/dist/utils/md5.js +215 -271
  57. package/dist/version/index.d.ts +2 -0
  58. package/dist/version/index.js +6 -0
  59. package/dist/version/version.d.ts +2 -0
  60. package/dist/version/version.js +3 -0
  61. package/global.d.ts +10 -0
  62. package/package.json +25 -9
  63. package/dist/bignumber-upqAL281.js +0 -2907
  64. package/dist/request/disivion/request.d.ts +0 -21
  65. package/dist/request/disivion/request.js +0 -476
  66. package/dist/request/postByOpenNewWindow.d.ts +0 -1
  67. package/dist/request/postByOpenNewWindow.js +0 -41
@@ -0,0 +1,128 @@
1
+ import { defineComponent, computed, createVNode, ref, shallowRef, provide, Fragment } from 'vue';
2
+ import { filterEmpty } from './components/_util/props-util/index.js';
3
+ import { withInstall, anyType } from './components/_util/type.js';
4
+ import { Colflex, Flexitem, Rowflex } from './components/Flex/index.js';
5
+ import { ElDialog } from 'element-plus';
6
+ import useModal from './components/Modal/useModal.js';
7
+
8
+ const spaceProps = () => ({
9
+ gutter: anyType(),
10
+ vertical: anyType()
11
+ });
12
+ const Space = defineComponent({
13
+ name: 'OSpace',
14
+ inheritAttrs: false,
15
+ props: spaceProps(),
16
+ slots: Object,
17
+ setup(props, {
18
+ slots,
19
+ attrs,
20
+ emit,
21
+ expose
22
+ }) {
23
+ const classes = computed(() => {
24
+ const {
25
+ vertical
26
+ } = props;
27
+ return ['orion-space', {
28
+ [`vertical`]: vertical === true || vertical === ''
29
+ }];
30
+ });
31
+ return () => {
32
+ const children = slots.default?.();
33
+ const items = filterEmpty(children);
34
+ const len = items.length;
35
+ if (len === 0) {
36
+ return null;
37
+ }
38
+ const gapStyle = {};
39
+ if (typeof props.gutter == 'string' && props.gutter) {
40
+ gapStyle.gap = props.gutter;
41
+ }
42
+ return createVNode("div", {
43
+ "class": [classes.value, attrs.class],
44
+ "style": [gapStyle, attrs.style]
45
+ }, [items.map(child => {
46
+ return createVNode("div", {
47
+ "class": ['orion-space-item']
48
+ }, [child]);
49
+ })]);
50
+ };
51
+ }
52
+ });
53
+ var index$1 = withInstall(Space);
54
+
55
+ const Modal = defineComponent({
56
+ name: 'OModal',
57
+ setup(props, {
58
+ slots,
59
+ attrs,
60
+ emit,
61
+ expose
62
+ }) {
63
+ const show = ref(false);
64
+ const title = ref();
65
+ const content = shallowRef();
66
+ const params = ref();
67
+ const width = ref();
68
+ const __resolve = ref();
69
+ const _open = async options => {
70
+ show.value = true;
71
+ title.value = options.title;
72
+ content.value = options.content;
73
+ if (options.params) {
74
+ params.value = options.params;
75
+ } else {
76
+ params.value = {};
77
+ }
78
+ if (options.width) {
79
+ width.value = options.width;
80
+ }
81
+ const promise = new Promise((resolve, reject) => {
82
+ __resolve.value = resolve;
83
+ });
84
+ return promise;
85
+ };
86
+ expose({
87
+ open: _open
88
+ });
89
+ const _close = options => {
90
+ const resolve = __resolve.value;
91
+ show.value = false;
92
+ title.value = undefined;
93
+ content.value = undefined;
94
+ params.value = undefined;
95
+ width.value = undefined;
96
+ __resolve.value = undefined;
97
+ resolve && resolve(options);
98
+ };
99
+ provide('$$Modal', {
100
+ close: _close
101
+ });
102
+ return () => {
103
+ const Children = content.value;
104
+ return show.value ? createVNode(ElDialog, {
105
+ "title": title.value,
106
+ "width": width.value,
107
+ "modelValue": show.value,
108
+ "beforeClose": _close,
109
+ "draggable": true
110
+ }, {
111
+ default: () => [createVNode(Children, params.value, null)]
112
+ }) : createVNode(Fragment, null, null);
113
+ };
114
+ }
115
+ });
116
+ var index = withInstall(Modal);
117
+
118
+ var components = /*#__PURE__*/Object.freeze({
119
+ __proto__: null,
120
+ Colflex: Colflex,
121
+ Flexitem: Flexitem,
122
+ Modal: index,
123
+ Rowflex: Rowflex,
124
+ Space: index$1,
125
+ useOModal: useModal
126
+ });
127
+
128
+ export { index as a, components as c, index$1 as i };
@@ -1,12 +1,14 @@
1
1
  class OrionError extends Error {
2
- constructor(message, cause) {
3
- super(message, { cause });
4
- // Maintains proper stack trace for where our error was thrown (only available on V8)
5
- if (Error.captureStackTrace) {
6
- Error.captureStackTrace(this, OrionError);
7
- }
8
- this.name = 'OrionError';
2
+ constructor(message, cause) {
3
+ super(message, {
4
+ cause
5
+ });
6
+ // Maintains proper stack trace for where our error was thrown (only available on V8)
7
+ if (Error.captureStackTrace) {
8
+ Error.captureStackTrace(this, OrionError);
9
9
  }
10
+ this.name = 'OrionError';
11
+ }
10
12
  }
11
13
 
12
14
  export { OrionError as default };
package/dist/index.css ADDED
@@ -0,0 +1,44 @@
1
+ :root {
2
+ --orion-flex-gutter: 8px;
3
+ --orion-space-gutter: 8px;
4
+ }/* flexbox */
5
+ .orion-flex {
6
+ display: flex;
7
+ outline: none;
8
+ }
9
+ .orion-flex-row {
10
+ flex-direction: row;
11
+ width: 100%;
12
+ overflow: auto;
13
+ }
14
+ .orion-flex-justify-start {
15
+ justify-content: start;
16
+ }
17
+ .orion-flex-column {
18
+ width: 100%;
19
+ flex-direction: column;
20
+ overflow: auto;
21
+ }
22
+ .orion-flex > .orion-flexitem {
23
+ overflow: auto;
24
+ outline: none;
25
+ }
26
+ .orion-flex > .orion-flexitem-auto {
27
+ flex: 0 0 auto;
28
+ }
29
+ .orion-flex > .orion-flexitem-fixed {
30
+ flex: none;
31
+ }
32
+ .orion-flex > .orion-flexitem-fill {
33
+ flex: 1 1 0px;
34
+ }.orion-space {
35
+ display: inline-flex;
36
+ align-items: center;
37
+ gap: var(--orion-space-gutter);
38
+ }
39
+ .orion-space.vertical {
40
+ display: flex;
41
+ flex-direction: column;
42
+ align-items: center;
43
+ gap: var(--orion-space-gutter);
44
+ }
package/dist/index.d.ts CHANGED
@@ -1 +1,4 @@
1
1
  export { default as OrionError } from './error/OrionError';
2
+ export * from './components';
3
+ import { default as version } from './version';
4
+ export { version };
package/dist/index.js CHANGED
@@ -1 +1,14 @@
1
1
  export { default as OrionError } from './error/OrionError.js';
2
+ export { install } from './components/index.js';
3
+ export { default as version } from './version/version.js';
4
+ export { default as useOModal } from './components/Modal/useModal.js';
5
+ export { a as Modal, i as Space } from './components-DhjIbmR3.js';
6
+ export { Colflex, Flexitem, Rowflex } from './components/Flex/index.js';
7
+ import 'vue';
8
+ import './components/_util/props-util/index.js';
9
+ import './components/_util/isValid.js';
10
+ import './components/_util/props-util/initDefaultProps.js';
11
+ import './components/_util/type.js';
12
+ import 'element-plus';
13
+ import './components/_util/classNames.js';
14
+ import './components/_util/util.js';
@@ -3,157 +3,126 @@
3
3
  var CreatedOKLodopObject, CLodopIsLocal;
4
4
  //==判断是否需要CLodop(那些不支持插件的浏览器):==
5
5
  function needCLodop() {
6
- try {
7
- var ua = navigator.userAgent;
8
- if (ua.match(/Windows\sPhone/i))
9
- return true;
10
- if (ua.match(/iPhone|iPod|iPad/i))
11
- return true;
12
- if (ua.match(/Android/i))
13
- return true;
14
- if (ua.match(/Edge\D?\d+/i))
15
- return true;
16
- var verTrident = ua.match(/Trident\D?\d+/i);
17
- var verIE = ua.match(/MSIE\D?\d+/i);
18
- var verOPR = ua.match(/OPR\D?\d+/i);
19
- var verFF = ua.match(/Firefox\D?\d+/i);
20
- var x64 = ua.match(/x64/i);
21
- if (!verTrident && !verIE && x64)
22
- return true;
23
- else if (verFF) {
24
- verFF = verFF[0].match(/\d+/);
25
- if (verFF[0] >= 41 || x64)
26
- return true;
27
- }
28
- else if (verOPR) {
29
- verOPR = verOPR[0].match(/\d+/);
30
- if (verOPR[0] >= 32)
31
- return true;
32
- }
33
- else if (!verTrident && !verIE) {
34
- var verChrome = ua.match(/Chrome\D?\d+/i);
35
- if (verChrome) {
36
- verChrome = verChrome[0].match(/\d+/);
37
- if (verChrome[0] >= 41)
38
- return true;
39
- }
40
- }
41
- return false;
42
- }
43
- catch (err) {
44
- return true;
6
+ try {
7
+ var ua = navigator.userAgent;
8
+ if (ua.match(/Windows\sPhone/i)) return true;
9
+ if (ua.match(/iPhone|iPod|iPad/i)) return true;
10
+ if (ua.match(/Android/i)) return true;
11
+ if (ua.match(/Edge\D?\d+/i)) return true;
12
+ var verTrident = ua.match(/Trident\D?\d+/i);
13
+ var verIE = ua.match(/MSIE\D?\d+/i);
14
+ var verOPR = ua.match(/OPR\D?\d+/i);
15
+ var verFF = ua.match(/Firefox\D?\d+/i);
16
+ var x64 = ua.match(/x64/i);
17
+ if (!verTrident && !verIE && x64) return true;else if (verFF) {
18
+ verFF = verFF[0].match(/\d+/);
19
+ if (verFF[0] >= 41 || x64) return true;
20
+ } else if (verOPR) {
21
+ verOPR = verOPR[0].match(/\d+/);
22
+ if (verOPR[0] >= 32) return true;
23
+ } else if (!verTrident && !verIE) {
24
+ var verChrome = ua.match(/Chrome\D?\d+/i);
25
+ if (verChrome) {
26
+ verChrome = verChrome[0].match(/\d+/);
27
+ if (verChrome[0] >= 41) return true;
28
+ }
45
29
  }
30
+ return false;
31
+ } catch (err) {
32
+ return true;
33
+ }
46
34
  }
47
35
  //==引用CLodop的主JS,用双端口8000和18000(以防其中一个被占):==
48
36
  if (needCLodop()) {
49
- var head = document.head || document.getElementsByTagName('head')[0] || document.documentElement;
50
- var JS1 = document.createElement('script');
51
- JS1.src = 'http://localhost:8000/CLodopfuncs.js?priority=1';
52
- JS1.async = true;
53
- JS1.defer = true;
54
- head.insertBefore(JS1, head.firstChild);
55
- var JS2 = document.createElement('script');
56
- JS2.async = true;
57
- JS2.defer = true;
58
- JS2.src = 'http://localhost:18000/CLodopfuncs.js?priority=0';
59
- head.insertBefore(JS2, head.firstChild);
60
- CLodopIsLocal = !!(JS1.src + JS2.src).match(/\/\/localho|\/\/127.0.0./i);
61
- if (JS1.attachEvent) {
62
- var onChange = function () {
63
- if (window.event.srcElement.readyState == 'loaded')
64
- ;
65
- };
66
- JS1.attachEvent('onreadystatechange', onChange);
67
- JS2.attachEvent('onreadystatechange', onChange);
68
- }
37
+ var head = document.head || document.getElementsByTagName('head')[0] || document.documentElement;
38
+ var JS1 = document.createElement('script');
39
+ JS1.src = 'http://localhost:8000/CLodopfuncs.js?priority=1';
40
+ JS1.async = true;
41
+ JS1.defer = true;
42
+ head.insertBefore(JS1, head.firstChild);
43
+ var JS2 = document.createElement('script');
44
+ JS2.async = true;
45
+ JS2.defer = true;
46
+ JS2.src = 'http://localhost:18000/CLodopfuncs.js?priority=0';
47
+ head.insertBefore(JS2, head.firstChild);
48
+ CLodopIsLocal = !!(JS1.src + JS2.src).match(/\/\/localho|\/\/127.0.0./i);
49
+ if (JS1.attachEvent) {
50
+ var onChange = function () {
51
+ if (window.event.srcElement.readyState == 'loaded') ;
52
+ };
53
+ JS1.attachEvent('onreadystatechange', onChange);
54
+ JS2.attachEvent('onreadystatechange', onChange);
55
+ }
69
56
  }
70
57
  //==获取LODOP对象主过程,判断是否安装、需否升级:==
71
58
  function getLodop(oOBJECT, oEMBED) {
72
- // dareway
73
- var strHtmInstall = "<br><font color='#FF00FF'>打印控件未安装!安装后请刷新页面或重新进入。</font>";
74
- var strHtmUpdate = "<br><font color='#FF00FF'>打印控件需要升级!升级后请重新进入。</font>";
75
- var strHtm64_Install = "<br><font color='#FF00FF'>打印控件未安装!安装后请刷新页面或重新进入。</font>";
76
- var strHtm64_Update = "<br><font color='#FF00FF'>打印控件需要升级!升级后请重新进入。</font>";
77
- var strHtmFireFox = "<br><br><font color='#FF00FF'>(注意:如曾安装过Lodop旧版附件npActiveXPLugin,请在【工具】->【附加组件】->【扩展】中先卸它)</font>";
78
- var strHtmChrome = "<br><br><font color='#FF00FF'>(如果此前正常,仅因浏览器升级或重安装而出问题,需重新执行以上安装)</font>";
79
- var strCLodopInstall_1 = "<br><font color='#FF00FF'>Web打印服务CLodop未安装启动";
80
- var strCLodopInstall_2 = '<br>(若此前已安装过,请确认是否打开)';
81
- var strCLodopInstall_3 = ',成功后请刷新本页面。</font>';
82
- var strCLodopUpdate = "<br><font color='#FF00FF'>Web打印服务CLodop需升级!升级后请刷新页面。</font>";
83
- // dareway
84
- var LODOP;
85
- try {
86
- var ua = navigator.userAgent;
87
- var isIE = !!ua.match(/MSIE/i) || !!ua.match(/Trident/i);
88
- if (needCLodop()) {
89
- try {
90
- LODOP = getCLodop();
91
- }
92
- catch (err) { }
93
- if (!LODOP /* && (document.readyState !== "complete" || (isIE && CLodopJsState == "loading"))*/) {
94
- console.log('lodop控件加载失败,请检查lodop控件是否已经安装并启动,如未启动可以在系统托盘中【右键->启动智慧医院打印服务】手动启动。');
95
- return;
96
- }
97
- if (!LODOP) {
98
- document.body.innerHTML = strCLodopInstall_1 + (CLodopIsLocal ? strCLodopInstall_2 : '') + strCLodopInstall_3 + document.body.innerHTML;
99
- return;
100
- }
101
- else {
102
- if (CLODOP.CVERSION < '4.0.8.8') {
103
- document.body.innerHTML = strCLodopUpdate + document.body.innerHTML;
104
- }
105
- if (oEMBED && oEMBED.parentNode)
106
- oEMBED.parentNode.removeChild(oEMBED);
107
- if (oOBJECT && oOBJECT.parentNode)
108
- oOBJECT.parentNode.removeChild(oOBJECT);
109
- }
110
- }
111
- else {
112
- var is64IE = isIE && !!ua.match(/x64/i);
113
- //==如果页面有Lodop就直接使用,否则新建:==
114
- if (oOBJECT || oEMBED) {
115
- if (isIE)
116
- LODOP = oOBJECT;
117
- else
118
- LODOP = oEMBED;
119
- }
120
- else if (!CreatedOKLodopObject) {
121
- LODOP = document.createElement('object');
122
- LODOP.setAttribute('width', 0);
123
- LODOP.setAttribute('height', 0);
124
- LODOP.setAttribute('style', 'position:absolute;left:0px;top:-100px;width:0px;height:0px;');
125
- if (isIE)
126
- LODOP.setAttribute('classid', 'clsid:2105C259-1E0C-4534-8141-A753534CB4CA');
127
- else
128
- LODOP.setAttribute('type', 'application/x-print-lodop');
129
- document.documentElement.appendChild(LODOP);
130
- CreatedOKLodopObject = LODOP;
131
- }
132
- else
133
- LODOP = CreatedOKLodopObject;
134
- //==Lodop插件未安装时提示下载地址:==
135
- if (!LODOP || !LODOP.VERSION) {
136
- if (ua.indexOf('Chrome') >= 0)
137
- document.body.innerHTML = strHtmChrome + document.body.innerHTML;
138
- if (ua.indexOf('Firefox') >= 0)
139
- document.body.innerHTML = strHtmFireFox + document.body.innerHTML;
140
- document.body.innerHTML = (is64IE ? strHtm64_Install : strHtmInstall) + document.body.innerHTML;
141
- return LODOP;
142
- }
143
- }
144
- if (LODOP.VERSION < '6.2.2.6') {
145
- if (!needCLodop())
146
- document.body.innerHTML = (is64IE ? strHtm64_Update : strHtmUpdate) + document.body.innerHTML;
59
+ // dareway
60
+ var strHtmInstall = "<br><font color='#FF00FF'>打印控件未安装!安装后请刷新页面或重新进入。</font>";
61
+ var strHtmUpdate = "<br><font color='#FF00FF'>打印控件需要升级!升级后请重新进入。</font>";
62
+ var strHtm64_Install = "<br><font color='#FF00FF'>打印控件未安装!安装后请刷新页面或重新进入。</font>";
63
+ var strHtm64_Update = "<br><font color='#FF00FF'>打印控件需要升级!升级后请重新进入。</font>";
64
+ var strHtmFireFox = "<br><br><font color='#FF00FF'>(注意:如曾安装过Lodop旧版附件npActiveXPLugin,请在【工具】->【附加组件】->【扩展】中先卸它)</font>";
65
+ var strHtmChrome = "<br><br><font color='#FF00FF'>(如果此前正常,仅因浏览器升级或重安装而出问题,需重新执行以上安装)</font>";
66
+ var strCLodopInstall_1 = "<br><font color='#FF00FF'>Web打印服务CLodop未安装启动";
67
+ var strCLodopInstall_2 = '<br>(若此前已安装过,请确认是否打开)';
68
+ var strCLodopInstall_3 = ',成功后请刷新本页面。</font>';
69
+ var strCLodopUpdate = "<br><font color='#FF00FF'>Web打印服务CLodop需升级!升级后请刷新页面。</font>";
70
+ // dareway
71
+ var LODOP;
72
+ try {
73
+ var ua = navigator.userAgent;
74
+ var isIE = !!ua.match(/MSIE/i) || !!ua.match(/Trident/i);
75
+ if (needCLodop()) {
76
+ try {
77
+ LODOP = getCLodop();
78
+ } catch (err) {}
79
+ if (!LODOP /* && (document.readyState !== "complete" || (isIE && CLodopJsState == "loading"))*/) {
80
+ console.log('lodop控件加载失败,请检查lodop控件是否已经安装并启动,如未启动可以在系统托盘中【右键->启动智慧医院打印服务】手动启动。');
81
+ return;
82
+ }
83
+ if (!LODOP) {
84
+ document.body.innerHTML = strCLodopInstall_1 + (CLodopIsLocal ? strCLodopInstall_2 : '') + strCLodopInstall_3 + document.body.innerHTML;
85
+ return;
86
+ } else {
87
+ if (CLODOP.CVERSION < '4.0.8.8') {
88
+ document.body.innerHTML = strCLodopUpdate + document.body.innerHTML;
147
89
  }
148
- //===如下空白位置适合调用统一功能(如注册语句、语言选择等):==
149
- LODOP.SET_LICENSES('山大地纬软件股份有限公司', 'CC9365E1BB34FA000175B357CD91F188454', '山大地緯軟件股份有限公司', '82F5D8E72ECF427F20ADD7E937E13D817E1');
150
- LODOP.SET_LICENSES('THIRD LICENSE', '', 'Shanda DareWay Software Co., Ltd', '1485033B74404D944BEA7FFAFB213175AF4');
151
- //=======================================================
90
+ if (oEMBED && oEMBED.parentNode) oEMBED.parentNode.removeChild(oEMBED);
91
+ if (oOBJECT && oOBJECT.parentNode) oOBJECT.parentNode.removeChild(oOBJECT);
92
+ }
93
+ } else {
94
+ var is64IE = isIE && !!ua.match(/x64/i);
95
+ //==如果页面有Lodop就直接使用,否则新建:==
96
+ if (oOBJECT || oEMBED) {
97
+ if (isIE) LODOP = oOBJECT;else LODOP = oEMBED;
98
+ } else if (!CreatedOKLodopObject) {
99
+ LODOP = document.createElement('object');
100
+ LODOP.setAttribute('width', 0);
101
+ LODOP.setAttribute('height', 0);
102
+ LODOP.setAttribute('style', 'position:absolute;left:0px;top:-100px;width:0px;height:0px;');
103
+ if (isIE) LODOP.setAttribute('classid', 'clsid:2105C259-1E0C-4534-8141-A753534CB4CA');else LODOP.setAttribute('type', 'application/x-print-lodop');
104
+ document.documentElement.appendChild(LODOP);
105
+ CreatedOKLodopObject = LODOP;
106
+ } else LODOP = CreatedOKLodopObject;
107
+ //==Lodop插件未安装时提示下载地址:==
108
+ if (!LODOP || !LODOP.VERSION) {
109
+ if (ua.indexOf('Chrome') >= 0) document.body.innerHTML = strHtmChrome + document.body.innerHTML;
110
+ if (ua.indexOf('Firefox') >= 0) document.body.innerHTML = strHtmFireFox + document.body.innerHTML;
111
+ document.body.innerHTML = (is64IE ? strHtm64_Install : strHtmInstall) + document.body.innerHTML;
152
112
  return LODOP;
113
+ }
153
114
  }
154
- catch (err) {
155
- alert('getLodop出错:' + err);
115
+ if (LODOP.VERSION < '6.2.2.6') {
116
+ if (!needCLodop()) document.body.innerHTML = (is64IE ? strHtm64_Update : strHtmUpdate) + document.body.innerHTML;
156
117
  }
118
+ //===如下空白位置适合调用统一功能(如注册语句、语言选择等):==
119
+ LODOP.SET_LICENSES('山大地纬软件股份有限公司', 'CC9365E1BB34FA000175B357CD91F188454', '山大地緯軟件股份有限公司', '82F5D8E72ECF427F20ADD7E937E13D817E1');
120
+ LODOP.SET_LICENSES('THIRD LICENSE', '', 'Shanda DareWay Software Co., Ltd', '1485033B74404D944BEA7FFAFB213175AF4');
121
+ //=======================================================
122
+ return LODOP;
123
+ } catch (err) {
124
+ alert('getLodop出错:' + err);
125
+ }
157
126
  }
158
127
 
159
128
  export { getLodop };