cnhis-design-vue 3.3.3-beta.61 → 3.3.3-beta.62

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.
@@ -535,18 +535,28 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
535
535
  };
536
536
  const callLocalServicesErrorCb = (res) => {
537
537
  toggleExpandLoading(false);
538
+ let info = {
539
+ formatId: state.currentFormatId,
540
+ templateId: getTemplateIdByFormatId.value,
541
+ templateCode: getTemplateCodeByFormatId.value
542
+ };
538
543
  encapBrowserLog({
539
544
  type: "\u8FDB\u5165\u5931\u8D25\u7684\u56DE\u8C03",
540
545
  res
541
546
  }, "PRINT-SDK");
542
- emit("error", res);
547
+ emit("error", res, info);
543
548
  if (isObject(res) && res.type === "notInstalledApp") {
544
549
  $message.error(res.message);
545
550
  }
546
551
  };
547
552
  const callLocalServicesCancelCb = (res) => {
548
553
  toggleExpandLoading(false);
549
- emit("cancel", res);
554
+ let info = {
555
+ formatId: state.currentFormatId,
556
+ templateId: getTemplateIdByFormatId.value,
557
+ templateCode: getTemplateCodeByFormatId.value
558
+ };
559
+ emit("cancel", res, info);
550
560
  };
551
561
  const prevFnError = (type) => {
552
562
  const error = {
@@ -561,7 +571,12 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
561
571
  type,
562
572
  preExecution: true
563
573
  };
564
- emit("error", error);
574
+ let info = {
575
+ formatId: state.currentFormatId,
576
+ templateId: getTemplateIdByFormatId.value,
577
+ templateCode: getTemplateCodeByFormatId.value
578
+ };
579
+ emit("error", error, info);
565
580
  };
566
581
  const getPrintParams = () => {
567
582
  return JSON.stringify({
@@ -274,14 +274,22 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
274
274
  };
275
275
  const callLocalServicesErrorCb = (res) => {
276
276
  state.spinning = false;
277
- emit("error", res);
277
+ let info = {
278
+ formatId: state.currentFormatId,
279
+ templateId: getTemplateIdByFormatId.value
280
+ };
281
+ emit("error", res, info);
278
282
  if (isObject(res) && res.type === "notInstalledApp") {
279
283
  $message.error(res.message);
280
284
  }
281
285
  };
282
286
  const callLocalServicesCancelCb = (res) => {
283
287
  state.spinning = false;
284
- emit("cancel", res);
288
+ let info = {
289
+ formatId: state.currentFormatId,
290
+ templateId: getTemplateIdByFormatId.value
291
+ };
292
+ emit("cancel", res, info);
285
293
  };
286
294
  const prevFnError = (type) => {
287
295
  const error = {
@@ -296,7 +304,11 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
296
304
  type,
297
305
  preExecution: true
298
306
  };
299
- emit("error", error);
307
+ let info = {
308
+ formatId: state.currentFormatId,
309
+ templateId: getTemplateIdByFormatId.value
310
+ };
311
+ emit("error", error, info);
300
312
  };
301
313
  const getPrintParams = (index = 0) => {
302
314
  var _a2;
@@ -3,7 +3,8 @@ import { cloneDeep, isArray } from 'lodash-es';
3
3
  import { IdentityVerificationDialog, PreviewDialog } from './dialog.js';
4
4
  import { isIReport, getFileUrl, useBrowserPrint } from './browserPrint.js';
5
5
  import { h, getCurrentInstance } from 'vue';
6
- import { createDiscreteApi, NProgress, NDivider } from 'naive-ui';
6
+ import { createDiscreteApi, NIcon, NProgress, NDivider } from 'naive-ui';
7
+ import { PrintOutline } from '@vicons/ionicons5';
7
8
  import { uuidGenerator } from '../../../../shared/utils/index.js';
8
9
  import { format } from 'date-fns';
9
10
  import { io } from 'socket.io-client';
@@ -262,7 +263,13 @@ class Print {
262
263
  overflow: "hidden",
263
264
  marginBottom: "4px"
264
265
  }
265
- }, [h("span", {
266
+ }, [h(NIcon, {
267
+ size: 16,
268
+ component: PrintOutline,
269
+ style: {
270
+ marginRight: "4px"
271
+ }
272
+ }), h("span", {
266
273
  style: {
267
274
  flex: 1,
268
275
  fontSize: "14px",
@@ -539,9 +539,9 @@ declare const _default: import("vue").DefineComponent<{
539
539
  }>;
540
540
  developMode: boolean;
541
541
  draggable: boolean;
542
+ isHighlightRow: boolean;
542
543
  idx: number;
543
544
  isHighlight: boolean;
544
- isHighlightRow: boolean;
545
545
  isFieldSet: boolean;
546
546
  fieldDescribeMode: "column" | "tooltip";
547
547
  hideExpressionOption: AnyObject[];
@@ -568,9 +568,9 @@ declare const _default: import("vue").DefineComponent<{
568
568
  }>;
569
569
  developMode: boolean;
570
570
  draggable: boolean;
571
+ isHighlightRow: boolean;
571
572
  idx: number;
572
573
  isHighlight: boolean;
573
- isHighlightRow: boolean;
574
574
  isFieldSet: boolean;
575
575
  fieldDescribeMode: "column" | "tooltip";
576
576
  hideExpressionOption: AnyObject[];
@@ -759,9 +759,9 @@ declare const _default: import("vue").DefineComponent<{
759
759
  }>;
760
760
  developMode: boolean;
761
761
  draggable: boolean;
762
+ isHighlightRow: boolean;
762
763
  idx: number;
763
764
  isHighlight: boolean;
764
- isHighlightRow: boolean;
765
765
  isFieldSet: boolean;
766
766
  fieldDescribeMode: "column" | "tooltip";
767
767
  hideExpressionOption: AnyObject[];
@@ -384,9 +384,9 @@ declare const _default: import("vue").DefineComponent<{
384
384
  }>;
385
385
  developMode: boolean;
386
386
  draggable: boolean;
387
+ isHighlightRow: boolean;
387
388
  idx: number;
388
389
  isHighlight: boolean;
389
- isHighlightRow: boolean;
390
390
  isFieldSet: boolean;
391
391
  fieldDescribeMode: "column" | "tooltip";
392
392
  hideExpressionOption: AnyObject[];
@@ -1,5 +1,5 @@
1
1
  var name = "@cnhis-design-vue/shared";
2
- var version = "3.3.3-beta.61";
2
+ var version = "3.3.3-beta.62";
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.3-beta.61",
3
+ "version": "3.3.3-beta.62",
4
4
  "license": "ISC",
5
5
  "module": "./es/components/index.js",
6
6
  "main": "./es/components/index.js",
@@ -74,5 +74,5 @@
74
74
  "iOS 7",
75
75
  "last 3 iOS versions"
76
76
  ],
77
- "gitHead": "ca79a2e2af6d422573c63bc2237ea3f64fd59a6e"
77
+ "gitHead": "5e472ae10b431508c5ae65ad1db0da928cdcc0d1"
78
78
  }