cnhis-design-vue 3.4.0-beta.70 → 3.4.0-beta.72
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/components/button-print/index.d.ts +4 -0
- package/es/components/button-print/src/ButtonPrint.vue.d.ts +4 -0
- package/es/components/button-print/src/components/NewPrintComponent.vue.d.ts +4 -0
- package/es/components/button-print/src/components/NewPrintComponent.vue2.js +52 -45
- package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogramChart.js +5 -3
- package/es/shared/package.json.js +1 -1
- package/package.json +2 -2
|
@@ -374,6 +374,7 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<import("
|
|
|
374
374
|
showMaxHeight: null;
|
|
375
375
|
initLoadPrintParams: boolean;
|
|
376
376
|
showPreviewDataList: boolean;
|
|
377
|
+
noShowOutSettingText: boolean;
|
|
377
378
|
};
|
|
378
379
|
};
|
|
379
380
|
svrUpdateIp: {
|
|
@@ -505,6 +506,7 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<import("
|
|
|
505
506
|
showMaxHeight: null;
|
|
506
507
|
initLoadPrintParams: boolean;
|
|
507
508
|
showPreviewDataList: boolean;
|
|
509
|
+
noShowOutSettingText: boolean;
|
|
508
510
|
};
|
|
509
511
|
};
|
|
510
512
|
svrUpdateIp: {
|
|
@@ -548,6 +550,7 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<import("
|
|
|
548
550
|
printAllFormatIds: import("vue").ComputedRef<any>;
|
|
549
551
|
positionElement: import("vue").ComputedRef<any>;
|
|
550
552
|
showPreviewDataList: import("vue").ComputedRef<any>;
|
|
553
|
+
noShowOutSettingText: import("vue").ComputedRef<any>;
|
|
551
554
|
printAllShortcut: import("vue").ComputedRef<any>;
|
|
552
555
|
showSettingItems: import("vue").ComputedRef<import("../../shared/types").AnyObject[]>;
|
|
553
556
|
isSelectedAll: import("vue").WritableComputedRef<boolean, boolean>;
|
|
@@ -942,6 +945,7 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<import("
|
|
|
942
945
|
showMaxHeight: null;
|
|
943
946
|
initLoadPrintParams: boolean;
|
|
944
947
|
showPreviewDataList: boolean;
|
|
948
|
+
noShowOutSettingText: boolean;
|
|
945
949
|
};
|
|
946
950
|
};
|
|
947
951
|
svrUpdateIp: {
|
|
@@ -380,6 +380,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
380
380
|
showMaxHeight: null;
|
|
381
381
|
initLoadPrintParams: boolean;
|
|
382
382
|
showPreviewDataList: boolean;
|
|
383
|
+
noShowOutSettingText: boolean;
|
|
383
384
|
};
|
|
384
385
|
};
|
|
385
386
|
svrUpdateIp: {
|
|
@@ -511,6 +512,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
511
512
|
showMaxHeight: null;
|
|
512
513
|
initLoadPrintParams: boolean;
|
|
513
514
|
showPreviewDataList: boolean;
|
|
515
|
+
noShowOutSettingText: boolean;
|
|
514
516
|
};
|
|
515
517
|
};
|
|
516
518
|
svrUpdateIp: {
|
|
@@ -554,6 +556,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
554
556
|
printAllFormatIds: import("vue").ComputedRef<any>;
|
|
555
557
|
positionElement: import("vue").ComputedRef<any>;
|
|
556
558
|
showPreviewDataList: import("vue").ComputedRef<any>;
|
|
559
|
+
noShowOutSettingText: import("vue").ComputedRef<any>;
|
|
557
560
|
printAllShortcut: import("vue").ComputedRef<any>;
|
|
558
561
|
showSettingItems: import("vue").ComputedRef<AnyObject[]>;
|
|
559
562
|
isSelectedAll: import("vue").WritableComputedRef<boolean, boolean>;
|
|
@@ -948,6 +951,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
948
951
|
showMaxHeight: null;
|
|
949
952
|
initLoadPrintParams: boolean;
|
|
950
953
|
showPreviewDataList: boolean;
|
|
954
|
+
noShowOutSettingText: boolean;
|
|
951
955
|
};
|
|
952
956
|
};
|
|
953
957
|
svrUpdateIp: {
|
|
@@ -111,6 +111,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
111
111
|
showMaxHeight: null;
|
|
112
112
|
initLoadPrintParams: boolean;
|
|
113
113
|
showPreviewDataList: boolean;
|
|
114
|
+
noShowOutSettingText: boolean;
|
|
114
115
|
};
|
|
115
116
|
};
|
|
116
117
|
svrUpdateIp: {
|
|
@@ -245,6 +246,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
245
246
|
showMaxHeight: null;
|
|
246
247
|
initLoadPrintParams: boolean;
|
|
247
248
|
showPreviewDataList: boolean;
|
|
249
|
+
noShowOutSettingText: boolean;
|
|
248
250
|
};
|
|
249
251
|
};
|
|
250
252
|
svrUpdateIp: {
|
|
@@ -288,6 +290,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
288
290
|
printAllFormatIds: import("vue").ComputedRef<any>;
|
|
289
291
|
positionElement: import("vue").ComputedRef<any>;
|
|
290
292
|
showPreviewDataList: import("vue").ComputedRef<any>;
|
|
293
|
+
noShowOutSettingText: import("vue").ComputedRef<any>;
|
|
291
294
|
printAllShortcut: import("vue").ComputedRef<any>;
|
|
292
295
|
showSettingItems: import("vue").ComputedRef<AnyObject[]>;
|
|
293
296
|
isSelectedAll: import("vue").WritableComputedRef<boolean, boolean>;
|
|
@@ -685,6 +688,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
685
688
|
showMaxHeight: null;
|
|
686
689
|
initLoadPrintParams: boolean;
|
|
687
690
|
showPreviewDataList: boolean;
|
|
691
|
+
noShowOutSettingText: boolean;
|
|
688
692
|
};
|
|
689
693
|
};
|
|
690
694
|
svrUpdateIp: {
|
|
@@ -22,70 +22,77 @@ const _hoisted_2 = {
|
|
|
22
22
|
class: "newprint-button-outer__shortcut"
|
|
23
23
|
};
|
|
24
24
|
const _hoisted_3 = {
|
|
25
|
-
|
|
25
|
+
key: 0,
|
|
26
|
+
class: "label bold",
|
|
27
|
+
style: {
|
|
28
|
+
"margin-right": "8px"
|
|
29
|
+
}
|
|
26
30
|
};
|
|
27
31
|
const _hoisted_4 = {
|
|
28
|
-
class: "
|
|
32
|
+
class: "print-lite"
|
|
29
33
|
};
|
|
30
34
|
const _hoisted_5 = {
|
|
31
|
-
class: "
|
|
35
|
+
class: "label bold"
|
|
32
36
|
};
|
|
33
37
|
const _hoisted_6 = {
|
|
34
|
-
class: "print-
|
|
38
|
+
class: "print-li"
|
|
35
39
|
};
|
|
36
40
|
const _hoisted_7 = {
|
|
41
|
+
class: "print-lite"
|
|
42
|
+
};
|
|
43
|
+
const _hoisted_8 = {
|
|
37
44
|
key: 0,
|
|
38
45
|
class: "newprint-button-outer__shortcut"
|
|
39
46
|
};
|
|
40
|
-
const
|
|
41
|
-
const
|
|
47
|
+
const _hoisted_9 = ["onMouseenter", "onClick"];
|
|
48
|
+
const _hoisted_10 = {
|
|
42
49
|
class: "label bold"
|
|
43
50
|
};
|
|
44
|
-
const
|
|
51
|
+
const _hoisted_11 = {
|
|
45
52
|
class: "print-lite",
|
|
46
53
|
style: {
|
|
47
54
|
"background": "transparent"
|
|
48
55
|
}
|
|
49
56
|
};
|
|
50
|
-
const
|
|
57
|
+
const _hoisted_12 = {
|
|
51
58
|
class: "label bold"
|
|
52
59
|
};
|
|
53
|
-
const
|
|
60
|
+
const _hoisted_13 = {
|
|
54
61
|
class: "print-li"
|
|
55
62
|
};
|
|
56
|
-
const
|
|
63
|
+
const _hoisted_14 = {
|
|
57
64
|
class: "print-lite",
|
|
58
65
|
style: {
|
|
59
66
|
"background": "transparent"
|
|
60
67
|
}
|
|
61
68
|
};
|
|
62
|
-
const
|
|
63
|
-
const
|
|
69
|
+
const _hoisted_15 = ["onClick"];
|
|
70
|
+
const _hoisted_16 = {
|
|
64
71
|
key: 0,
|
|
65
72
|
class: "newprint-button-outer__shortcut"
|
|
66
73
|
};
|
|
67
|
-
const
|
|
74
|
+
const _hoisted_17 = {
|
|
68
75
|
class: "newprint-button-poperOver"
|
|
69
76
|
};
|
|
70
|
-
const
|
|
71
|
-
const
|
|
77
|
+
const _hoisted_18 = ["onMouseenter"];
|
|
78
|
+
const _hoisted_19 = {
|
|
72
79
|
class: "print-lite",
|
|
73
80
|
style: {
|
|
74
81
|
"background": "transparent"
|
|
75
82
|
}
|
|
76
83
|
};
|
|
77
|
-
const
|
|
84
|
+
const _hoisted_20 = {
|
|
78
85
|
class: "label"
|
|
79
86
|
};
|
|
80
|
-
const
|
|
81
|
-
const
|
|
87
|
+
const _hoisted_21 = ["onClick"];
|
|
88
|
+
const _hoisted_22 = {
|
|
82
89
|
key: 1,
|
|
83
90
|
class: "print-lite",
|
|
84
91
|
style: {
|
|
85
92
|
"background": "transparent"
|
|
86
93
|
}
|
|
87
94
|
};
|
|
88
|
-
const
|
|
95
|
+
const _hoisted_23 = ["onClick"];
|
|
89
96
|
const downloadPdfCode = "RY7.2.21.1.M2.G94181E";
|
|
90
97
|
const formatEditTextCode = "RY7.2.21.1.M2.G33633A";
|
|
91
98
|
const resetPrintButtonCode = "RY7.2.21.1.M2.G99314S";
|
|
@@ -193,7 +200,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
193
200
|
buttonProps: {},
|
|
194
201
|
showMaxHeight: null,
|
|
195
202
|
initLoadPrintParams: false,
|
|
196
|
-
showPreviewDataList: false
|
|
203
|
+
showPreviewDataList: false,
|
|
204
|
+
noShowOutSettingText: false
|
|
197
205
|
})
|
|
198
206
|
},
|
|
199
207
|
svrUpdateIp: {
|
|
@@ -341,6 +349,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
341
349
|
var _a;
|
|
342
350
|
return (_a = props.newPrintSetting) == null ? void 0 : _a.showPreviewDataList;
|
|
343
351
|
});
|
|
352
|
+
const noShowOutSettingText = computed(() => {
|
|
353
|
+
var _a;
|
|
354
|
+
return (_a = props.newPrintSetting) == null ? void 0 : _a.noShowOutSettingText;
|
|
355
|
+
});
|
|
344
356
|
const printAllShortcut = computed(() => {
|
|
345
357
|
var _a, _b;
|
|
346
358
|
const keys = Object.keys(shortcutSettings.value);
|
|
@@ -1315,12 +1327,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1315
1327
|
class: outerPrintItems.value.length > 0 ? "printAllLeftCls" : "",
|
|
1316
1328
|
onClick: _cache[0] || (_cache[0] = ($event) => handleTwoShow("isOutSetting"))
|
|
1317
1329
|
}), {
|
|
1318
|
-
default: withCtx(() => [
|
|
1319
|
-
class: "label bold"
|
|
1320
|
-
}, i18n("10010.1.473", "\u5916\u663E\u8BBE\u7F6E"), -1)), createVNode(unref(NIcon), {
|
|
1321
|
-
style: {
|
|
1322
|
-
"margin-left": "8px"
|
|
1323
|
-
},
|
|
1330
|
+
default: withCtx(() => [!noShowOutSettingText.value ? (openBlock(), createElementBlock("span", _hoisted_3, i18n("10010.1.473", "\u5916\u663E\u8BBE\u7F6E"))) : createCommentVNode("v-if", true), createVNode(unref(NIcon), {
|
|
1324
1331
|
component: unref(SettingsOutline),
|
|
1325
1332
|
size: "18"
|
|
1326
1333
|
}, null, 8, ["component"])]),
|
|
@@ -1335,26 +1342,26 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1335
1342
|
return openBlock(), createElementBlock("div", {
|
|
1336
1343
|
class: "print-li",
|
|
1337
1344
|
key: sItem.key
|
|
1338
|
-
}, [createElementVNode("div",
|
|
1345
|
+
}, [createElementVNode("div", _hoisted_4, [createElementVNode("span", _hoisted_5, toDisplayString(sItem.label), 1), createVNode(unref(NCheckbox), {
|
|
1339
1346
|
checked: sItem.selected,
|
|
1340
1347
|
"onUpdate:checked": ($event) => sItem.selected = $event
|
|
1341
1348
|
}, {
|
|
1342
|
-
default: withCtx(() => [..._cache[
|
|
1349
|
+
default: withCtx(() => [..._cache[12] || (_cache[12] = [createTextVNode(i18n("10010.1.474", "\u5916\u663E"), -1)])]),
|
|
1343
1350
|
_: 2
|
|
1344
1351
|
}, 1032, ["checked", "onUpdate:checked"])])]);
|
|
1345
|
-
}), 128)), createElementVNode("div",
|
|
1352
|
+
}), 128)), createElementVNode("div", _hoisted_6, [createVNode(unref(NDivider)), createElementVNode("div", _hoisted_7, [createVNode(unref(NButton), {
|
|
1346
1353
|
type: "primary",
|
|
1347
1354
|
size: "small",
|
|
1348
1355
|
onClick: savePrintOutSetting
|
|
1349
1356
|
}, {
|
|
1350
|
-
default: withCtx(() => [..._cache[
|
|
1357
|
+
default: withCtx(() => [..._cache[13] || (_cache[13] = [createTextVNode(i18n("10010.1.244", "\u4FDD\u5B58"), -1)])]),
|
|
1351
1358
|
_: 1
|
|
1352
1359
|
}), showSettingItems.value && showSettingItems.value.length > 1 ? (openBlock(), createBlock(unref(NCheckbox), {
|
|
1353
1360
|
key: 0,
|
|
1354
1361
|
checked: isSelectedAll.value,
|
|
1355
1362
|
"onUpdate:checked": _cache[1] || (_cache[1] = ($event) => isSelectedAll.value = $event)
|
|
1356
1363
|
}, {
|
|
1357
|
-
default: withCtx(() => [..._cache[
|
|
1364
|
+
default: withCtx(() => [..._cache[14] || (_cache[14] = [createTextVNode(i18n("10010.1.37", "\u5168\u9009"), -1)])]),
|
|
1358
1365
|
_: 1
|
|
1359
1366
|
}, 8, ["checked"])) : createCommentVNode("v-if", true)])])], 4)]),
|
|
1360
1367
|
_: 1
|
|
@@ -1388,7 +1395,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1388
1395
|
component: unref(PrintOutline),
|
|
1389
1396
|
size: "18"
|
|
1390
1397
|
}, null, 8, ["component"])]),
|
|
1391
|
-
default: withCtx(() => [createTextVNode(" " + toDisplayString(!isShowPrintAllBtn.value || isPrintAllType.value == 3 || isPrintAllType.value == 4 ? __props.btnText : i18n("10010.1.475", "\u6253\u5370\u5168\u90E8")) + " ", 1), printAllShortcut.value ? (openBlock(), createElementBlock("span",
|
|
1398
|
+
default: withCtx(() => [createTextVNode(" " + toDisplayString(!isShowPrintAllBtn.value || isPrintAllType.value == 3 || isPrintAllType.value == 4 ? __props.btnText : i18n("10010.1.475", "\u6253\u5370\u5168\u90E8")) + " ", 1), printAllShortcut.value ? (openBlock(), createElementBlock("span", _hoisted_8, toDisplayString(printAllShortcut.value), 1)) : createCommentVNode("v-if", true)]),
|
|
1392
1399
|
_: 1
|
|
1393
1400
|
}, 16, ["loading", "class"]), createCommentVNode(" \u53EA\u6709\u4E0B\u62C9\u6846\u6709\u9879\uFF0C\u624D\u5C55\u793A\u56FE\u6807\u6309\u94AE "), createVNode(unref(NButton), mergeProps({
|
|
1394
1401
|
class: "icon-select"
|
|
@@ -1428,7 +1435,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1428
1435
|
trigger: withCtx(() => [createElementVNode("div", {
|
|
1429
1436
|
class: "print-lite",
|
|
1430
1437
|
onClick: _cache[5] || (_cache[5] = ($event) => handleTwoShow("isOutSetting"))
|
|
1431
|
-
}, [createElementVNode("span",
|
|
1438
|
+
}, [createElementVNode("span", _hoisted_10, toDisplayString(option.label), 1), createVNode(unref(NIcon), {
|
|
1432
1439
|
class: "print-li-icon",
|
|
1433
1440
|
color: outerPrintItems.value.length > 0 ? "#2563F4" : "",
|
|
1434
1441
|
component: unref(SettingsOutline),
|
|
@@ -1443,26 +1450,26 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1443
1450
|
return openBlock(), createElementBlock("div", {
|
|
1444
1451
|
class: "print-li",
|
|
1445
1452
|
key: sItem.key
|
|
1446
|
-
}, [createElementVNode("div",
|
|
1453
|
+
}, [createElementVNode("div", _hoisted_11, [createElementVNode("span", _hoisted_12, toDisplayString(sItem.label), 1), createVNode(unref(NCheckbox), {
|
|
1447
1454
|
checked: sItem.selected,
|
|
1448
1455
|
"onUpdate:checked": ($event) => sItem.selected = $event
|
|
1449
1456
|
}, {
|
|
1450
|
-
default: withCtx(() => [..._cache[
|
|
1457
|
+
default: withCtx(() => [..._cache[15] || (_cache[15] = [createTextVNode(i18n("10010.1.474", "\u5916\u663E"), -1)])]),
|
|
1451
1458
|
_: 2
|
|
1452
1459
|
}, 1032, ["checked", "onUpdate:checked"])])]);
|
|
1453
|
-
}), 128)), createElementVNode("div",
|
|
1460
|
+
}), 128)), createElementVNode("div", _hoisted_13, [createVNode(unref(NDivider)), createElementVNode("div", _hoisted_14, [createVNode(unref(NButton), {
|
|
1454
1461
|
type: "primary",
|
|
1455
1462
|
size: "small",
|
|
1456
1463
|
onClick: savePrintOutSetting
|
|
1457
1464
|
}, {
|
|
1458
|
-
default: withCtx(() => [..._cache[
|
|
1465
|
+
default: withCtx(() => [..._cache[16] || (_cache[16] = [createTextVNode(i18n("10010.1.244", "\u4FDD\u5B58"), -1)])]),
|
|
1459
1466
|
_: 1
|
|
1460
1467
|
}), showSettingItems.value && showSettingItems.value.length > 1 ? (openBlock(), createBlock(unref(NCheckbox), {
|
|
1461
1468
|
key: 0,
|
|
1462
1469
|
checked: isSelectedAll.value,
|
|
1463
1470
|
"onUpdate:checked": _cache[6] || (_cache[6] = ($event) => isSelectedAll.value = $event)
|
|
1464
1471
|
}, {
|
|
1465
|
-
default: withCtx(() => [..._cache[
|
|
1472
|
+
default: withCtx(() => [..._cache[17] || (_cache[17] = [createTextVNode(i18n("10010.1.37", "\u5168\u9009"), -1)])]),
|
|
1466
1473
|
_: 1
|
|
1467
1474
|
}, 8, ["checked"])) : createCommentVNode("v-if", true)])])], 4)]),
|
|
1468
1475
|
_: 2
|
|
@@ -1476,7 +1483,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1476
1483
|
}, [createElementVNode("span", {
|
|
1477
1484
|
class: "label bold",
|
|
1478
1485
|
onClick: ($event) => handleOneTypePrint(option.templateCode, option.templateId, option.key, false)
|
|
1479
|
-
}, [createTextVNode(toDisplayString(option.label) + " ", 1), option.shortcutLabel ? (openBlock(), createElementBlock("span",
|
|
1486
|
+
}, [createTextVNode(toDisplayString(option.label) + " ", 1), option.shortcutLabel ? (openBlock(), createElementBlock("span", _hoisted_16, toDisplayString(option.shortcutLabel), 1)) : createCommentVNode("v-if", true)], 8, _hoisted_15), state.printParams[option.templateCode] ? (openBlock(), createBlock(unref(NPopover), {
|
|
1480
1487
|
key: 0,
|
|
1481
1488
|
trigger: "click",
|
|
1482
1489
|
"show-arrow": false,
|
|
@@ -1491,7 +1498,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1491
1498
|
size: "18",
|
|
1492
1499
|
onClick: ($event) => handleTwoShow(option.key)
|
|
1493
1500
|
}, null, 8, ["component", "onClick"])]),
|
|
1494
|
-
default: withCtx(() => [createElementVNode("div",
|
|
1501
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_17, [(openBlock(true), createElementBlock(Fragment, null, renderList(getDownList(unref(operations), option), (operation) => {
|
|
1495
1502
|
return openBlock(), createElementBlock("div", {
|
|
1496
1503
|
class: normalizeClass(["print-li", downlistOperation.twoMouseType == operation.key ? "active" : ""]),
|
|
1497
1504
|
key: operation.key,
|
|
@@ -1505,7 +1512,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1505
1512
|
placement: "right-start",
|
|
1506
1513
|
show: downlistPopover[operation.key]
|
|
1507
1514
|
}, {
|
|
1508
|
-
trigger: withCtx(() => [createElementVNode("div",
|
|
1515
|
+
trigger: withCtx(() => [createElementVNode("div", _hoisted_19, [createElementVNode("span", _hoisted_20, toDisplayString(operation.label), 1), createVNode(unref(NIcon), {
|
|
1509
1516
|
component: unref(ArrowForward),
|
|
1510
1517
|
size: "18"
|
|
1511
1518
|
}, null, 8, ["component"])])]),
|
|
@@ -1519,16 +1526,16 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1519
1526
|
"background": "transparent"
|
|
1520
1527
|
},
|
|
1521
1528
|
onClick: ($event) => handleSelect(previewBtn.key, option, false)
|
|
1522
|
-
}, toDisplayString(previewBtn.label), 9,
|
|
1529
|
+
}, toDisplayString(previewBtn.label), 9, _hoisted_21)]);
|
|
1523
1530
|
}), 128))]),
|
|
1524
1531
|
_: 2
|
|
1525
|
-
}, 1032, ["show"])) : (openBlock(), createElementBlock("div",
|
|
1532
|
+
}, 1032, ["show"])) : (openBlock(), createElementBlock("div", _hoisted_22, [createElementVNode("span", {
|
|
1526
1533
|
class: "label",
|
|
1527
1534
|
onClick: ($event) => handleSelect(operation.key, option, false)
|
|
1528
|
-
}, toDisplayString(operation.label), 9,
|
|
1535
|
+
}, toDisplayString(operation.label), 9, _hoisted_23)]))], 42, _hoisted_18);
|
|
1529
1536
|
}), 128))])]),
|
|
1530
1537
|
_: 2
|
|
1531
|
-
}, 1032, ["show", "onClickoutside"])) : createCommentVNode("v-if", true)], 2)], 2112))], 42,
|
|
1538
|
+
}, 1032, ["show", "onClickoutside"])) : createCommentVNode("v-if", true)], 2)], 2112))], 42, _hoisted_9);
|
|
1532
1539
|
}), 128))], 4)]),
|
|
1533
1540
|
_: 3
|
|
1534
1541
|
}, 8, ["to", "show"])], 2112))]), createVNode(IdentityVerification, mergeProps(_ctx.$attrs, {
|
|
@@ -2,8 +2,8 @@ import { reactive, watch, toRefs } from 'vue';
|
|
|
2
2
|
import { defaultBorderStyle, defaultLineStyle, defaultTextStyle } from '../useDraw.js';
|
|
3
3
|
import '../../../../../shared/utils/fabricjs/index.js';
|
|
4
4
|
import 'date-fns';
|
|
5
|
+
import { getRoundNumber } from '../../utils/index.js';
|
|
5
6
|
import { cloneDeep, last, isNumber } from 'lodash-es';
|
|
6
|
-
import '../../utils/eventBus.js';
|
|
7
7
|
import '../useEvent.js';
|
|
8
8
|
import '../useShadow.js';
|
|
9
9
|
import '../useCommon.js';
|
|
@@ -51,7 +51,8 @@ function useElectrocardiogramChart(canvas, props, emits, canvasRef, pointTipProp
|
|
|
51
51
|
const event = ((_e = props.data.grid) == null ? void 0 : _e.event) || { selectable: true, evented: true };
|
|
52
52
|
const columnNumber = +(props.data.columnNumber || 2);
|
|
53
53
|
const rowNumber = Math.ceil(list.length / columnNumber);
|
|
54
|
-
const
|
|
54
|
+
const dataRowNumber = rowNumber + (totalLineLength === maxLineNumber ? 1 : 0);
|
|
55
|
+
const rowSpace = props.data.isFullyCovered ? getRoundNumber((gridYNumber - 2) / dataRowNumber, 100) : ~~(gridYNumber / dataRowNumber);
|
|
55
56
|
const columnWidth = props.data.width / columnNumber;
|
|
56
57
|
const baseYCellNumber = Math.ceil(rowSpace / 2);
|
|
57
58
|
function getFirstRowLineMaxHeight() {
|
|
@@ -73,7 +74,8 @@ function useElectrocardiogramChart(canvas, props, emits, canvasRef, pointTipProp
|
|
|
73
74
|
}
|
|
74
75
|
const firstRowLineMaxHeight = getFirstRowLineMaxHeight();
|
|
75
76
|
const _baseY = yCellHeight * baseYCellNumber;
|
|
76
|
-
const
|
|
77
|
+
const baseYNumber = props.data.isFullyCovered ? getRoundNumber(firstRowLineMaxHeight / yCellHeight, 100) : Math.ceil(firstRowLineMaxHeight / yCellHeight);
|
|
78
|
+
const baseY = columnNumber === 1 || _baseY < firstRowLineMaxHeight ? yCellHeight * baseYNumber : _baseY;
|
|
77
79
|
const baseX = xCellWidth;
|
|
78
80
|
const derivedDataList = __dataList.map((item, idx) => {
|
|
79
81
|
const isLastLine = maxLineNumber === totalLineLength && idx === totalLineLength - 1;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cnhis-design-vue",
|
|
3
|
-
"version": "3.4.0-beta.
|
|
3
|
+
"version": "3.4.0-beta.72",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"module": "./es/components/index.js",
|
|
6
6
|
"main": "./es/components/index.js",
|
|
@@ -73,5 +73,5 @@
|
|
|
73
73
|
"iOS 7",
|
|
74
74
|
"last 3 iOS versions"
|
|
75
75
|
],
|
|
76
|
-
"gitHead": "
|
|
76
|
+
"gitHead": "f60e0cbb204dc3b2a704e7194847e58030dde448"
|
|
77
77
|
}
|