cnhis-design-vue 3.4.0-beta.41 → 3.4.0-beta.44

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.
@@ -91,12 +91,12 @@ function useLeft(canvas, propItems, emits, pointTipProps, moveLimit, setPopup, u
91
91
  ...item,
92
92
  isExternal: true
93
93
  }));
94
- const { projectNameMargin = [5, 30], titleWidth = 20 } = left;
94
+ const { projectNameMargin = [5, 30], titleWidth = 20, projectNameLineHeight = 10 } = left;
95
95
  let topY = endY + markHeight + extracorporealCirculationHeight - projectNameMargin[0];
96
96
  const leftX = titleWidth + projectNameMargin[1];
97
97
  const iconList = [];
98
98
  externalIconList.concat(list.reverse()).forEach((item) => {
99
- topY -= 10;
99
+ topY -= projectNameLineHeight;
100
100
  const title = item.title;
101
101
  const { text, icon } = drawTextAndIconGroup(title, item, {
102
102
  text: {
@@ -190,7 +190,7 @@ function useCenter(canvas, propItems, emits, computedX, computedY, getXValue, ge
190
190
  shadowLines.forEach((l) => {
191
191
  shadowLinesCache.add(l);
192
192
  });
193
- } else {
193
+ } else if (!style.onlyBorder) {
194
194
  const finalData = getLineData(item);
195
195
  if (finalData.length > 0) {
196
196
  const otherFilters = otherLineData.filter(([[x1, _]]) => {
@@ -553,9 +553,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
553
553
  hide: boolean;
554
554
  }>;
555
555
  draggable: boolean;
556
- isHighlightRow: boolean;
557
556
  idx: number;
558
557
  isHighlight: boolean;
558
+ isHighlightRow: boolean;
559
559
  isFieldSet: boolean;
560
560
  fieldDescribeMode: "column" | "tooltip";
561
561
  hideExpressionOption: AnyObject[];
@@ -594,9 +594,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
594
594
  hide: boolean;
595
595
  }>;
596
596
  draggable: boolean;
597
- isHighlightRow: boolean;
598
597
  idx: number;
599
598
  isHighlight: boolean;
599
+ isHighlightRow: boolean;
600
600
  isFieldSet: boolean;
601
601
  fieldDescribeMode: "column" | "tooltip";
602
602
  hideExpressionOption: AnyObject[];
@@ -773,9 +773,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
773
773
  hide: boolean;
774
774
  }>;
775
775
  draggable: boolean;
776
- isHighlightRow: boolean;
777
776
  idx: number;
778
777
  isHighlight: boolean;
778
+ isHighlightRow: boolean;
779
779
  isFieldSet: boolean;
780
780
  fieldDescribeMode: "column" | "tooltip";
781
781
  hideExpressionOption: AnyObject[];
@@ -384,9 +384,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
384
384
  hide: boolean;
385
385
  }>;
386
386
  draggable: boolean;
387
- isHighlightRow: boolean;
388
387
  idx: number;
389
388
  isHighlight: boolean;
389
+ isHighlightRow: boolean;
390
390
  isFieldSet: boolean;
391
391
  fieldDescribeMode: "column" | "tooltip";
392
392
  hideExpressionOption: AnyObject[];
@@ -94,7 +94,8 @@ function createComponent(name, Wrapper, Item) {
94
94
  set: (value) => emit("update:value", value)
95
95
  });
96
96
  const {
97
- renderComplexOption
97
+ renderComplexOption,
98
+ hasComplexOption
98
99
  } = useComplexOptions(props, valueRef);
99
100
  const {
100
101
  labelKey,
@@ -179,7 +180,7 @@ function createComponent(name, Wrapper, Item) {
179
180
  style.width = percentWidth;
180
181
  }
181
182
  }
182
- if (index === options.length - 1) {
183
+ if (index === options.length - 1 && hasComplexOption.value) {
183
184
  classList.push("form-render__lastOption");
184
185
  }
185
186
  return createVNode(Item, {
@@ -6,7 +6,7 @@ import { Close, Mic, MicOff, Videocam, VideocamOff, Call, PersonAdd, ResizeOutli
6
6
  import { getUserDetailApi } from '../api/index.js';
7
7
  import '@vueuse/core';
8
8
  import { $message } from '../utils/index.js';
9
- import 'lodash-es';
9
+ import { remove } from 'lodash-es';
10
10
  import { CHAT_TYPE, SUBSCRIBE_MESSAGE_TYPE } from '../constants/index.js';
11
11
  import '../../../../shared/utils/index.js';
12
12
  import 'date-fns';
@@ -385,6 +385,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
385
385
  try {
386
386
  removeUser(userId);
387
387
  console.log("Cleaned up resources for user:", userId);
388
+ remove(state.currentAVMsg.checkedIds, (id) => id === userId);
388
389
  setTimeout(() => {
389
390
  const user = findUser(userId);
390
391
  if (user) {
@@ -405,7 +405,7 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<import("v
405
405
  beforeCloseFn: () => Promise<unknown>;
406
406
  cancel: () => Promise<void>;
407
407
  getScaleData: () => any;
408
- batchInjectFormNew: (data: import("../../shared/types").AnyObject, skipValid?: boolean) => Promise<void>;
408
+ batchInjectFormNew: (data: import("../../shared/types").AnyObject, skipValid?: boolean) => Promise<boolean>;
409
409
  readonly isCollection: (e: string) => boolean;
410
410
  NoData: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
411
411
  noDataTip: {
@@ -404,7 +404,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
404
404
  beforeCloseFn: () => Promise<unknown>;
405
405
  cancel: () => Promise<void>;
406
406
  getScaleData: () => any;
407
- batchInjectFormNew: (data: AnyObject, skipValid?: boolean) => Promise<void>;
407
+ batchInjectFormNew: (data: AnyObject, skipValid?: boolean) => Promise<boolean>;
408
408
  readonly isCollection: (e: string) => boolean;
409
409
  NoData: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
410
410
  noDataTip: {
@@ -1,5 +1,5 @@
1
1
  import { i18n } from '../../../_virtual/_virtual_i18n-methods.js';
2
- import { defineComponent, reactive, ref, watch, nextTick, openBlock, createElementBlock, normalizeClass, unref, Fragment, createBlock, mergeProps, createCommentVNode, createElementVNode, createVNode, withCtx, renderList, toDisplayString, createTextVNode, resolveDynamicComponent, renderSlot } from 'vue';
2
+ import { defineComponent, reactive, ref, watch, nextTick, onUnmounted, openBlock, createElementBlock, normalizeClass, unref, Fragment, createBlock, mergeProps, createCommentVNode, createElementVNode, createVNode, withCtx, renderList, toDisplayString, createTextVNode, resolveDynamicComponent, renderSlot } from 'vue';
3
3
  import useNoData from './hooks/use-noData.js';
4
4
  import { ScaleViewProps } from './hooks/scaleview-props.js';
5
5
  import { getScaleViewState } from './hooks/scaleview-state.js';
@@ -219,12 +219,18 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
219
219
  };
220
220
  const batchInjectFormNew = async (data, skipValid = false) => {
221
221
  window._beforeCloseFn = null;
222
- await batchInjectForm(data, skipValid);
222
+ const batchStatus = await batchInjectForm(data, skipValid);
223
223
  if (!skipValid || !props.closeConfirm)
224
- return;
224
+ return batchStatus;
225
225
  formChecker.setInitialSnapshot(state.form);
226
226
  window._beforeCloseFn = beforeCloseFn;
227
+ return batchStatus;
227
228
  };
229
+ onUnmounted(() => {
230
+ if (window._beforeCloseFn) {
231
+ window._beforeCloseFn = null;
232
+ }
233
+ });
228
234
  __expose({
229
235
  getScaleData,
230
236
  onSubmitForm,
@@ -1,5 +1,5 @@
1
1
  var name = "@cnhis-design-vue/shared";
2
- var version = "3.4.0-beta.41";
2
+ var version = "3.4.0-beta.44";
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.41",
3
+ "version": "3.4.0-beta.44",
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": "541f2445556b79280b933b0af407e4fd9048bb32"
76
+ "gitHead": "0ba92b692dccd0edb27b0d1daa3583718db6831c"
77
77
  }