cnhis-design-vue 3.4.0-beta.10 → 3.4.0-beta.12

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.
@@ -623,7 +623,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
623
623
  return;
624
624
  state.isClickOuterPrint = isOuterClick;
625
625
  state.currentFormatId = formatId;
626
- const printToParam = (isPrintAllType.value == 3 ? state.originFormatIdParams[formatId] : state.originParams[templateCode]) || [];
626
+ const printToParam = state.originParams[templateCode] || [];
627
627
  handleClickPrint(tmpParam, templateCode, templateId, formatId, printToParam);
628
628
  });
629
629
  };
@@ -1112,7 +1112,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
1112
1112
  const curTypeItem = showSettingItems.value.find((item) => item.key == key);
1113
1113
  if (curTypeItem) {
1114
1114
  const tmpParam = state.printParams[curTypeItem == null ? void 0 : curTypeItem.templateCode];
1115
- const printToParam = (isPrintAllType.value == 3 ? state.originFormatIdParams[curTypeItem.key] : originParamsClone[curTypeItem == null ? void 0 : curTypeItem.templateCode]) || [];
1115
+ if (!tmpParam)
1116
+ return;
1117
+ const printToParam = originParamsClone[curTypeItem == null ? void 0 : curTypeItem.templateCode] || [];
1116
1118
  handleClickPrint(tmpParam, curTypeItem.templateCode, curTypeItem.templateId, curTypeItem.key, printToParam);
1117
1119
  }
1118
1120
  } else {
@@ -295,11 +295,14 @@ function useOther(canvas, propItems, emits, pointTipProps, pointMenuProps, moveL
295
295
  const _endY = endY + extracorporealCirculationHeight;
296
296
  let prevLeft = 0;
297
297
  const pointerObj = {};
298
+ const xList = [];
298
299
  dataList.forEach((markItem, dataIndex) => {
299
300
  const { time, list = [] } = markItem;
300
301
  const x = computedX(time);
301
302
  if (!isLimitX(x))
302
303
  return;
304
+ pointerObj[`x_${x}`] = [];
305
+ pointerObj[`originx_${x}`] = [];
303
306
  let startTop = _endY + 1;
304
307
  list.forEach((item, index) => {
305
308
  var _a;
@@ -327,8 +330,12 @@ function useOther(canvas, propItems, emits, pointTipProps, pointMenuProps, moveL
327
330
  }
328
331
  const { topObj, startTop: _startTop, oldStartTop } = computedTop(startTop, pointHeight);
329
332
  startTop = _startTop;
330
- if (!pointerObj[`x_${x}`])
331
- pointerObj[`x_${x}`] = [];
333
+ xList.forEach((_x) => {
334
+ if (x - _x < xCellWidth) {
335
+ pointerObj[`x_${x}`].push(...pointerObj[`originx_${_x}`]);
336
+ }
337
+ });
338
+ pointerObj[`originx_${x}`].push([oldStartTop, startTop]);
332
339
  pointerObj[`x_${x}`].push([oldStartTop, startTop]);
333
340
  point.set("top", topObj.y2);
334
341
  gridPointsMap.get(key).push(point);
@@ -336,6 +343,7 @@ function useOther(canvas, propItems, emits, pointTipProps, pointMenuProps, moveL
336
343
  canvas.value.add(point);
337
344
  });
338
345
  prevLeft = x;
346
+ xList.push(x);
339
347
  });
340
348
  function computedTop(startTop, lineHeight) {
341
349
  const topObj = {};
@@ -368,7 +376,7 @@ function useOther(canvas, propItems, emits, pointTipProps, pointMenuProps, moveL
368
376
  return (_b = (_a = point.origin) == null ? void 0 : _a.data) == null ? void 0 : _b.isStart;
369
377
  };
370
378
  const startPoint = __arr.find((point) => isStart(point));
371
- const firstPoint = __arr.find((point) => !isStart(point) && point.left > startPoint.left);
379
+ const firstPoint = __arr.find((point) => !isStart(point) && point.left > (startPoint == null ? void 0 : startPoint.left));
372
380
  const otherPoints = __arr.filter((point) => !isStart(point));
373
381
  __arr.forEach((point) => {
374
382
  const limitX = {
@@ -376,10 +384,10 @@ function useOther(canvas, propItems, emits, pointTipProps, pointMenuProps, moveL
376
384
  x2: endX
377
385
  };
378
386
  if (isStart(point)) {
379
- limitX.x2 = firstPoint.left;
387
+ limitX.x2 = firstPoint == null ? void 0 : firstPoint.left;
380
388
  point.otherPoints = otherPoints;
381
389
  } else {
382
- limitX.x1 = startPoint.left;
390
+ limitX.x1 = startPoint == null ? void 0 : startPoint.left;
383
391
  point.startPoint = startPoint;
384
392
  }
385
393
  point.limitX = limitX;
@@ -541,8 +549,8 @@ function useOther(canvas, propItems, emits, pointTipProps, pointMenuProps, moveL
541
549
  point.otherPoints.forEach((_point) => {
542
550
  _point.limitX.x1 = point.left;
543
551
  });
544
- } else {
545
- const otherPointsLeft = point.startPoint.otherPoints.map((_point) => _point.left);
552
+ } else if (point.startPoint) {
553
+ const otherPointsLeft = point.startPoint.otherPoints.map((_point) => _point.left) || [];
546
554
  const minLeft = Math.min(...otherPointsLeft);
547
555
  point.startPoint.limitX.x2 = minLeft;
548
556
  }
@@ -1,5 +1,5 @@
1
1
  var name = "@cnhis-design-vue/shared";
2
- var version = "3.4.0-beta.10";
2
+ var version = "3.4.0-beta.12";
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.4.0-beta.10",
3
+ "version": "3.4.0-beta.12",
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": "4482cf6ed1bc2c75724062957ef7412cc268d696"
76
+ "gitHead": "af67ef48b1bacf575abecc9ba8b6a17fa09ff3cf"
77
77
  }