cnhis-design-vue 3.1.20 → 3.1.21-beta.0

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.
@@ -1464,7 +1464,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
1464
1464
  checked: setChecked,
1465
1465
  row,
1466
1466
  index: $rowIndex,
1467
- records: checkedRow
1467
+ records: table.getCheckboxRecords()
1468
1468
  });
1469
1469
  setChecked && emit("handlerClickRow", row, $rowIndex);
1470
1470
  };
@@ -45,10 +45,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
45
45
  return ((_a = top.operationDays) == null ? void 0 : _a.show) && (top.operationDays.height || defaultHeight) || 0;
46
46
  });
47
47
  const xScalevalueHeight = computed(() => {
48
- var _a, _b;
48
+ var _a, _b, _c;
49
49
  const { top } = props.data;
50
50
  const height = ((_a = top.xScalevalue) == null ? void 0 : _a.show) && (top.xScalevalue.height || defaultHeight) || 0;
51
- const dayHeight = ((_b = top.xScalevalue) == null ? void 0 : _b.show) ? top.dayHeight || 0 : 0;
51
+ const dayHeight = ((_b = top.xScalevalue) == null ? void 0 : _b.show) ? (_c = top.dayHeight) != null ? _c : 0 : 0;
52
52
  return height + dayHeight;
53
53
  });
54
54
  const breathingHeight = computed(() => {
@@ -89,8 +89,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
89
89
  return height - endHeight;
90
90
  });
91
91
  const originY = computed(() => {
92
+ var _a;
92
93
  const { top } = props.data;
93
- const dayHeight = top.xScalevalue.show && (top.dayHeight || defaultHeight) || 0;
94
+ const dayHeight = top.xScalevalue.show && ((_a = top.dayHeight) != null ? _a : 0) || 0;
94
95
  const xScaleHeight = top.xScalevalue.show && (top.xScalevalue.height || defaultHeight) || 0;
95
96
  const topHeight = dateHeight.value + dayHeight + xScaleHeight + hospitalDaysHeight.value + operationDaysHeight.value;
96
97
  return topHeight;
@@ -281,14 +281,17 @@ function useLeft(canvas, propItems, emits, setPopup, pointTipProps, getXValue, g
281
281
  }
282
282
  onMounted(() => {
283
283
  nextTick(() => {
284
- var _a;
284
+ var _a, _b;
285
285
  iconsWidth && drawIcons();
286
- const yScaleValueList = left.yScaleValue.filter((v) => v.layout === "left" && v.type !== "pain");
287
- if ((right == null ? void 0 : right.width) && ((_a = right == null ? void 0 : right.yScaleValue) == null ? void 0 : _a.layout) === "left") {
286
+ const yScaleValueList = left.yScaleValue.filter((v) => v.layout === "left" && v.type !== "pain" && v.show);
287
+ if ((right == null ? void 0 : right.width) && ((_a = right == null ? void 0 : right.yScaleValue) == null ? void 0 : _a.layout) === "left" && ((_b = right == null ? void 0 : right.yScaleValue) == null ? void 0 : _b.show)) {
288
288
  yScaleValueList.push(getRightInfo);
289
289
  }
290
- painIndex == 0 && left.yScaleValue.length > 1 && yScaleValueList.unshift(left.yScaleValue[painIndex]);
291
- painIndex == left.yScaleValue.length - 1 && yScaleValueList.push(left.yScaleValue[painIndex]);
290
+ if (painIndex > 0 && left.yScaleValue[painIndex].show) {
291
+ const painObj = left.yScaleValue[painIndex];
292
+ painIndex === 0 && left.yScaleValue.length > 1 && yScaleValueList.unshift(painObj);
293
+ painIndex == left.yScaleValue.length - 1 && yScaleValueList.push(painObj);
294
+ }
292
295
  drawScaleValue(yScaleValueList);
293
296
  drawBorder();
294
297
  canvas.value.renderAll();
@@ -6,9 +6,9 @@ function useRight(canvas, propItems, drawScaleValue) {
6
6
  const { left, right, getRightInfo, canvasWidth, endY, endX, originY } = propItems;
7
7
  onMounted(() => {
8
8
  nextTick(() => {
9
- var _a;
10
- const yScaleValueList = left.yScaleValue.filter((v) => v.layout === "right");
11
- if ((right == null ? void 0 : right.width) && ((_a = right == null ? void 0 : right.yScaleValue) == null ? void 0 : _a.layout) === "right") {
9
+ var _a, _b;
10
+ const yScaleValueList = left.yScaleValue.filter((v) => v.layout === "right" && v.show);
11
+ if ((right == null ? void 0 : right.width) && ((_a = right == null ? void 0 : right.yScaleValue) == null ? void 0 : _a.layout) === "right" && ((_b = right == null ? void 0 : right.yScaleValue) == null ? void 0 : _b.show)) {
12
12
  yScaleValueList.push(getRightInfo);
13
13
  }
14
14
  if ((right == null ? void 0 : right.width) || yScaleValueList.length > 0) {
@@ -35,7 +35,8 @@ function useTop(canvas, propItems) {
35
35
  group && canvas.value.add(group);
36
36
  }
37
37
  function drawTime(item, list, topY) {
38
- const dayHeight = top.xScalevalue.show ? top.dayHeight || 0 : 0;
38
+ var _a;
39
+ const dayHeight = top.xScalevalue.show ? (_a = top.dayHeight) != null ? _a : 0 : 0;
39
40
  const height = xScalevalueHeight - dayHeight;
40
41
  const title = drawTextGroup({
41
42
  width: originX - iconsWidth,
@@ -61,9 +62,10 @@ function useTop(canvas, propItems) {
61
62
  width: xCellWidth,
62
63
  height
63
64
  }, {
64
- value: v,
65
+ value: v.value,
65
66
  ...defaultTextStyle,
66
- ...item.style || {}
67
+ ...item.style || {},
68
+ ...v.style || {}
67
69
  }, {
68
70
  left,
69
71
  top: topY + dayHeight
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cnhis-design-vue",
3
- "version": "3.1.20",
3
+ "version": "3.1.21-beta.0",
4
4
  "license": "ISC",
5
5
  "module": "./es/components/index.js",
6
6
  "main": "./es/components/index.js",
@@ -66,5 +66,5 @@
66
66
  "iOS 7",
67
67
  "last 3 iOS versions"
68
68
  ],
69
- "gitHead": "2918d23ed0e6b2658bb70dd71b8fee4e4490cf25"
69
+ "gitHead": "f17aa07b02a0de635bb469e2759ab4420043d69b"
70
70
  }