cnhis-design-vue 3.3.1-beta.59 → 3.3.1-beta.60

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.
@@ -15,7 +15,10 @@ function useCumputedPoint(propItems) {
15
15
  function computedYCell(type) {
16
16
  let yScaleCell = 0;
17
17
  const item = left.yScaleValue.find((v) => v.type === type);
18
- const list = (item == null ? void 0 : item.list) || [];
18
+ const {
19
+ list = [],
20
+ sinkNumber = 0
21
+ } = item || {};
19
22
  if (!list.length)
20
23
  return {
21
24
  yScaleCell,
@@ -24,7 +27,8 @@ function useCumputedPoint(propItems) {
24
27
  yScaleCell = yCellHeight / ((list[1] - list[0]) / item.spaceGridNumber);
25
28
  return {
26
29
  yScaleCell,
27
- list
30
+ list,
31
+ sinkNumber
28
32
  };
29
33
  }
30
34
  function computedX(value, setAllCenter = false) {
@@ -44,11 +48,12 @@ function useCumputedPoint(propItems) {
44
48
  function computedY(type, value) {
45
49
  const {
46
50
  yScaleCell,
47
- list
51
+ list,
52
+ sinkNumber
48
53
  } = computedYCell(type);
49
54
  const yCellUnit = +value - Math.min(...list);
50
55
  const newEndY = type === "pain" ? painOriginY.endY : vitalSignsOriginY.endY;
51
- return newEndY - yScaleCell * yCellUnit;
56
+ return newEndY - (yScaleCell * yCellUnit - yCellHeight * sinkNumber);
52
57
  }
53
58
  function getXValue(pointX) {
54
59
  const index = xScaleList.findIndex((v) => v.left + xCellWidth >= pointX);
@@ -63,11 +68,12 @@ function useCumputedPoint(propItems) {
63
68
  function getYValue(type, pointY) {
64
69
  const {
65
70
  yScaleCell,
66
- list
71
+ list,
72
+ sinkNumber
67
73
  } = computedYCell(type);
68
74
  const minVal = list.length ? Math.min(...list) : 0;
69
75
  const newEndY = type === "pain" ? painOriginY.endY : vitalSignsOriginY.endY;
70
- const y = (newEndY - pointY) / yScaleCell + minVal;
76
+ const y = (newEndY - pointY + yCellHeight * sinkNumber) / yScaleCell + minVal;
71
77
  const decimal = type === "temperature" ? 10 : 1;
72
78
  return getRoundNumber(y, decimal);
73
79
  }
@@ -534,9 +534,9 @@ declare const _default: import("vue").DefineComponent<{
534
534
  }>;
535
535
  developMode: boolean;
536
536
  draggable: boolean;
537
+ isHighlightRow: boolean;
537
538
  idx: number;
538
539
  isHighlight: boolean;
539
- isHighlightRow: boolean;
540
540
  isFieldSet: boolean;
541
541
  fieldDescribeMode: "column" | "tooltip";
542
542
  hideExpressionOption: AnyObject[];
@@ -563,9 +563,9 @@ declare const _default: import("vue").DefineComponent<{
563
563
  }>;
564
564
  developMode: boolean;
565
565
  draggable: boolean;
566
+ isHighlightRow: boolean;
566
567
  idx: number;
567
568
  isHighlight: boolean;
568
- isHighlightRow: boolean;
569
569
  isFieldSet: boolean;
570
570
  fieldDescribeMode: "column" | "tooltip";
571
571
  hideExpressionOption: AnyObject[];
@@ -722,9 +722,9 @@ declare const _default: import("vue").DefineComponent<{
722
722
  }>;
723
723
  developMode: boolean;
724
724
  draggable: boolean;
725
+ isHighlightRow: boolean;
725
726
  idx: number;
726
727
  isHighlight: boolean;
727
- isHighlightRow: boolean;
728
728
  isFieldSet: boolean;
729
729
  fieldDescribeMode: "column" | "tooltip";
730
730
  hideExpressionOption: AnyObject[];
@@ -383,9 +383,9 @@ declare const _default: import("vue").DefineComponent<{
383
383
  }>;
384
384
  developMode: boolean;
385
385
  draggable: boolean;
386
+ isHighlightRow: boolean;
386
387
  idx: number;
387
388
  isHighlight: boolean;
388
- isHighlightRow: boolean;
389
389
  isFieldSet: boolean;
390
390
  fieldDescribeMode: "column" | "tooltip";
391
391
  hideExpressionOption: AnyObject[];
@@ -1,5 +1,5 @@
1
1
  var name = "@cnhis-design-vue/shared";
2
- var version = "3.3.1-beta.59";
2
+ var version = "3.3.1-beta.60";
3
3
  var main = "index.ts";
4
4
  var peerDependencies = {
5
5
  "naive-ui": "^2.30.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cnhis-design-vue",
3
- "version": "3.3.1-beta.59",
3
+ "version": "3.3.1-beta.60",
4
4
  "license": "ISC",
5
5
  "module": "./es/components/index.js",
6
6
  "main": "./es/components/index.js",