cnhis-design-vue 3.4.0-beta.74 → 3.4.0-beta.76

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.
@@ -85,9 +85,9 @@ function useElectrocardiogram(canvas, propItems, flag) {
85
85
  pointIndex++;
86
86
  }
87
87
  const polyline = new fabric.Polyline(points, {
88
+ strokeWidth: 1,
88
89
  ...lineStyle,
89
90
  fill: "transparent",
90
- strokeWidth: 1,
91
91
  left: x,
92
92
  hasControls: false,
93
93
  hasBorders: false,
@@ -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[];
@@ -4556,6 +4556,7 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<import("vue"
4556
4556
  loading: boolean;
4557
4557
  };
4558
4558
  content: import("vue").ComputedRef<string>;
4559
+ normalizeMarkdown: (text: string) => string;
4559
4560
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
4560
4561
  data: {
4561
4562
  type: import("vue").PropType<import("../../shared/types").AnyObject>;
@@ -4557,6 +4557,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
4557
4557
  loading: boolean;
4558
4558
  };
4559
4559
  content: import("vue").ComputedRef<string>;
4560
+ normalizeMarkdown: (text: string) => string;
4560
4561
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
4561
4562
  data: {
4562
4563
  type: PropType<AnyObject>;
@@ -1312,6 +1312,7 @@ declare const _default: import("vue").DefineComponent<{}, {
1312
1312
  loading: boolean;
1313
1313
  };
1314
1314
  content: import("vue").ComputedRef<string>;
1315
+ normalizeMarkdown: (text: string) => string;
1315
1316
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
1316
1317
  data: {
1317
1318
  type: import("vue").PropType<AnyObject>;
@@ -148,6 +148,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
148
148
  loading: boolean;
149
149
  };
150
150
  content: import("vue").ComputedRef<string>;
151
+ normalizeMarkdown: (text: string) => string;
151
152
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
152
153
  data: {
153
154
  type: PropType<AnyObject>;
@@ -19,13 +19,23 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
19
19
  }
20
20
  },
21
21
  setup(__props) {
22
- const mdhtml = markdownIt({ html: true });
22
+ const mdhtml = markdownIt({ html: true, breaks: true });
23
23
  const props = __props;
24
24
  useData();
25
25
  const content = computed(() => {
26
26
  var _a;
27
- return mdhtml.render(((_a = props.data.content) == null ? void 0 : _a.msg) || "");
27
+ const raw = ((_a = props.data.content) == null ? void 0 : _a.msg) || "";
28
+ const normalized = normalizeMarkdown(raw);
29
+ return mdhtml.render(normalized);
28
30
  });
31
+ function normalizeMarkdown(text) {
32
+ let s = text.replace(/\r\n/g, "\n");
33
+ s = s.replace(/(^|\n)(#{1,6})[,、,]/g, (_m, p1, p2) => `${p1}${p2} `);
34
+ s = s.replace(/(^|\n)(#{1,6})(?!\s)/g, (_m, p1, p2) => `${p1}${p2} `);
35
+ s = s.replace(/([^\n])\s*(#{1,6})(?=\S)/g, (_m, pre, hashes) => `${pre}
36
+ ${hashes} `);
37
+ return s;
38
+ }
29
39
  return (_ctx, _cache) => {
30
40
  return openBlock(), createElementBlock("div", _hoisted_1, [
31
41
  createElementVNode("div", {