cnhis-design-vue 3.1.33-beta.9 → 3.1.33

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.
Files changed (99) hide show
  1. package/es/components/big-table/index.d.ts +1 -1
  2. package/es/components/big-table/src/BigTable.vue.d.ts +1 -1
  3. package/es/components/big-table/src/BigTable.vue2.js +7 -9
  4. package/es/components/big-table/src/components/edit-form/edit-input.js +1 -1
  5. package/es/components/big-table/src/components/edit-form/edit-select.js +1 -1
  6. package/es/components/big-table/src/components/edit-form/edit-time.js +5 -3
  7. package/es/components/big-table/src/components/edit-form/useCommon.d.ts +2 -1
  8. package/es/components/big-table/src/components/edit-form/useCommon.js +7 -3
  9. package/es/components/big-table/src/hooks/useFormat.js +1 -1
  10. package/es/components/button-print/index.d.ts +13 -0
  11. package/es/components/button-print/src/ButtonPrint.vue.d.ts +13 -0
  12. package/es/components/button-print/src/ButtonPrint.vue2.js +6 -1
  13. package/es/components/button-print/src/utils/print.d.ts +2 -2
  14. package/es/components/button-print/src/utils/print.js +7 -4
  15. package/es/components/fabric-chart/index.d.ts +133 -2
  16. package/es/components/fabric-chart/src/BirthProcessChart.vue.d.ts +132 -0
  17. package/es/components/fabric-chart/src/BirthProcessChart.vue.js +62 -8
  18. package/es/components/fabric-chart/src/FabricChart.vue.d.ts +133 -2
  19. package/es/components/fabric-chart/src/FabricChart.vue.js +2 -2
  20. package/es/components/fabric-chart/src/TemperatureChart.vue.d.ts +1 -2
  21. package/es/components/fabric-chart/src/TemperatureChart.vue.js +17 -9
  22. package/es/components/fabric-chart/src/components/PopupMenu.js +2 -2
  23. package/es/components/fabric-chart/src/components/PopupTip.vue.d.ts +3 -2
  24. package/es/components/fabric-chart/src/hooks/index.d.ts +1 -0
  25. package/es/components/fabric-chart/src/hooks/index.js +1 -0
  26. package/es/components/fabric-chart/src/hooks/useBirthProcess.d.ts +23 -1
  27. package/es/components/fabric-chart/src/hooks/useBirthProcess.js +305 -9
  28. package/es/components/fabric-chart/src/hooks/useCenter.d.ts +0 -2
  29. package/es/components/fabric-chart/src/hooks/useCenter.js +27 -45
  30. package/es/components/fabric-chart/src/hooks/useCommon.d.ts +8 -0
  31. package/es/components/fabric-chart/src/hooks/useCommon.js +32 -0
  32. package/es/components/fabric-chart/src/hooks/useCumputedPoint.d.ts +5 -2
  33. package/es/components/fabric-chart/src/hooks/useCumputedPoint.js +27 -10
  34. package/es/components/fabric-chart/src/hooks/useLeft.d.ts +1 -1
  35. package/es/components/fabric-chart/src/hooks/useLeft.js +12 -7
  36. package/es/components/fabric-chart/src/interface.d.ts +1 -0
  37. package/es/components/fabric-chart/src/utils/utils.d.ts +11 -0
  38. package/es/components/fabric-chart/src/utils/utils.js +27 -0
  39. package/es/components/iho-table/index.d.ts +4 -3
  40. package/es/components/iho-table/src/IhoTable.vue.d.ts +4 -3
  41. package/es/components/iho-table/src/IhoTable.vue.js +6 -4
  42. package/es/components/iho-table/src/components/IhoTableColumn.js +1 -1
  43. package/es/components/iho-table/src/constants/index.d.ts +3 -3
  44. package/es/components/iho-table/src/constants/index.js +0 -1
  45. package/es/components/iho-table/src/hooks/tapHooks/index.d.ts +5 -1
  46. package/es/components/iho-table/src/hooks/tapHooks/index.js +10 -9
  47. package/es/components/iho-table/src/hooks/tapHooks/useDataHooks.d.ts +2 -2
  48. package/es/components/iho-table/src/hooks/tapHooks/useEventHooks.d.ts +119 -119
  49. package/es/components/iho-table/src/hooks/tapHooks/useExposeHooks.d.ts +5 -3
  50. package/es/components/iho-table/src/hooks/tapHooks/useExposeHooks.js +1 -1
  51. package/es/components/iho-table/src/hooks/tapHooks/useFieldHooks.d.ts +16 -4
  52. package/es/components/iho-table/src/hooks/tapHooks/useFieldHooks.js +9 -4
  53. package/es/components/iho-table/src/hooks/useColumnConfigAdaptor.js +6 -1
  54. package/es/components/iho-table/src/plugins/defaultConfigPlugin/index.js +1 -1
  55. package/es/components/iho-table/src/plugins/filterPlugin/filter.vue.d.ts +51 -24
  56. package/es/components/iho-table/src/plugins/filterPlugin/filter.vue.js +37 -51
  57. package/es/components/iho-table/src/plugins/filterPlugin/index.js +181 -20
  58. package/es/components/iho-table/src/plugins/filterPlugin/types.d.ts +2 -6
  59. package/es/components/iho-table/src/plugins/filterPlugin/types.js +0 -7
  60. package/es/components/iho-table/src/plugins/index.js +1 -1
  61. package/es/components/iho-table/src/plugins/keyboardEventPlugin/index.js +1 -1
  62. package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index.js +7 -4
  63. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/editSeparate.vue.js +3 -1
  64. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/index.js +3 -3
  65. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/checkRendererPlugin.js +3 -5
  66. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/seqRendererPlugin.js +5 -2
  67. package/es/components/iho-table/src/plugins/rowGroupSettingPlugin/rowGroupUtils.js +7 -4
  68. package/es/components/iho-table/src/plugins/virtualTreePlugin/index.js +1 -1
  69. package/es/components/iho-table/src/types/index.d.ts +10 -12
  70. package/es/components/iho-table/src/types/pluginType.d.ts +28 -12
  71. package/es/components/iho-table/style/index.css +1 -1
  72. package/es/components/index.css +1 -1
  73. package/es/components/info-header/src/InfoHeader.vue.js +1 -1
  74. package/es/components/info-header/style/index.css +1 -1
  75. package/es/components/keyboard/index.d.ts +62 -1
  76. package/es/components/keyboard/src/Keyboard.vue.d.ts +62 -1
  77. package/es/components/keyboard/src/Keyboard.vue.js +4 -1
  78. package/es/components/keyboard/src/components/NumberPanel.vue.d.ts +67 -5
  79. package/es/components/keyboard/src/components/NumberPanel.vue.js +48 -26
  80. package/es/components/keyboard/style/index.css +1 -1
  81. package/package.json +2 -2
  82. package/es/components/big-table/src/components/edit-form/dist/edit-date.d.ts +0 -36
  83. package/es/components/big-table/src/components/edit-form/dist/edit-select.d.ts +0 -37
  84. package/es/components/big-table/src/components/edit-form/dist/edit-time.d.ts +0 -45
  85. package/es/components/fabric-chart/src/constants/index.d.ts +0 -4
  86. package/es/components/fabric-chart/src/constants/index.js +0 -4
  87. package/es/components/form-render/src/components/renderer/dist/levelSearchCascader.d.ts +0 -65
  88. package/es/components/form-render/src/components/renderer/dist/radio.d.ts +0 -64
  89. package/es/components/form-render/src/components/renderer/dist/remoteSearch.d.ts +0 -46
  90. package/es/components/form-render/src/components/renderer/dist/search.d.ts +0 -56
  91. package/es/components/form-render/src/components/renderer/dist/select.d.ts +0 -55
  92. package/es/components/iho-table/src/components/dist/IhoTableColumn.d.ts +0 -20
  93. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/dist/index.d.ts +0 -3
  94. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dist/inputRendererPlugin.d.ts +0 -3
  95. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dist/numberRendererPlugin.d.ts +0 -3
  96. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dist/timeRendererPlugin.d.ts +0 -3
  97. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/dist/editSelect.d.ts +0 -42
  98. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/dist/index.d.ts +0 -3
  99. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/dist/index.d.ts +0 -3
@@ -1,10 +1,13 @@
1
- import { defineComponent, computed, ref, reactive, onMounted, onBeforeUnmount, openBlock, createElementBlock } from 'vue';
1
+ import { defineComponent, computed, ref, reactive, onMounted, onBeforeUnmount, openBlock, createElementBlock, Fragment, createElementVNode, unref, createBlock, mergeProps, createCommentVNode } from 'vue';
2
2
  import { fabric } from './utils/index.js';
3
3
  import { defaultBorderStyle } from './hooks/useDraw.js';
4
+ import 'naive-ui';
4
5
  import './hooks/useShadow.js';
5
6
  import 'lodash-es';
6
- import '@vueuse/core';
7
+ import { useEvent } from './hooks/useEvent.js';
7
8
  import { useBirthProcess } from './hooks/useBirthProcess.js';
9
+ import PopupTip from './components/PopupTip.vue.js';
10
+ import PopupMenu from './components/PopupMenu.js';
8
11
  import _export_sfc from '../../../_virtual/plugin-vue_export-helper.js';
9
12
 
10
13
  const _sfc_main = /* @__PURE__ */ defineComponent({
@@ -59,10 +62,38 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
59
62
  return height / (gridYNumber.value + xAxisNumber);
60
63
  });
61
64
  const originY = computed(() => yCellHeight.value);
65
+ const originYCervix = computed(() => {
66
+ const { scaleValues } = props.data;
67
+ const cervixItem = scaleValues.find((item) => item.key === "cervix");
68
+ const [, max] = (cervixItem == null ? void 0 : cervixItem.range) || [0, 10];
69
+ const spaceValue = (cervixItem == null ? void 0 : cervixItem.spaceValue) || 1;
70
+ return endY.value - max * spaceValue * yCellHeight.value;
71
+ });
62
72
  const endY = computed(() => {
63
73
  const { height } = props.data;
64
74
  return height - yCellHeight.value;
65
75
  });
76
+ const startTime = computed(() => new Date(props.data.xAxis.time.startTime).getTime());
77
+ const timeXCell = computed(() => 1 * 60 * 60 * 1e3 / xCellWidth.value);
78
+ const cervixYCell = computed(() => {
79
+ const { scaleValues } = props.data;
80
+ const cervixItem = scaleValues.find((item) => item.key === "cervix");
81
+ return ((cervixItem == null ? void 0 : cervixItem.spaceValue) || 1) / yCellHeight.value;
82
+ });
83
+ const FHRYCell = computed(() => {
84
+ const { scaleValues } = props.data;
85
+ const cervixItem = scaleValues.find((item) => item.key === "FHR");
86
+ return ((cervixItem == null ? void 0 : cervixItem.spaceValue) || 10) / yCellHeight.value;
87
+ });
88
+ const fetalPresentationYCell = computed(() => {
89
+ const { scaleValues } = props.data;
90
+ const cervixItem = scaleValues.find((item) => item.key === "fetalPresentation");
91
+ return ((cervixItem == null ? void 0 : cervixItem.spaceValue) || 1) / yCellHeight.value;
92
+ });
93
+ const event = computed(() => {
94
+ var _a;
95
+ return ((_a = props.data.grid) == null ? void 0 : _a.event) || { selectable: true, evented: true, hovered: true };
96
+ });
66
97
  let select = ref();
67
98
  const canvasRef = ref(null);
68
99
  let canvas = ref();
@@ -84,9 +115,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
84
115
  leftScales: leftScales.value,
85
116
  rightScales: rightScales.value,
86
117
  leftAddAreaWidth,
87
- rightAddAreaWidth: rightAddAreaWidth.value
118
+ rightAddAreaWidth: rightAddAreaWidth.value,
119
+ startTime: startTime.value,
120
+ timeXCell: timeXCell.value,
121
+ cervixYCell: cervixYCell.value,
122
+ FHRYCell: FHRYCell.value,
123
+ fetalPresentationYCell: fetalPresentationYCell.value,
124
+ scaleValues: props.data.scaleValues,
125
+ event: event.value,
126
+ originYCervix: originYCervix.value
88
127
  });
89
- useBirthProcess(canvas, propItems);
128
+ const { pointTipProps, pointMenuProps, clickMenu } = useBirthProcess(canvas, propItems, emits);
90
129
  onMounted(() => {
91
130
  canvas.value = new fabric.Canvas(canvasRef.value, {
92
131
  width: propItems.canvasWidth,
@@ -96,6 +135,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
96
135
  containerClass: "c-fabric-chart",
97
136
  fireRightClick: true
98
137
  });
138
+ useEvent(canvasRef.value);
99
139
  });
100
140
  onBeforeUnmount(() => {
101
141
  canvas.value.clear();
@@ -106,10 +146,24 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
106
146
  canvas
107
147
  });
108
148
  return (_ctx, _cache) => {
109
- return openBlock(), createElementBlock("canvas", {
110
- ref_key: "canvasRef",
111
- ref: canvasRef
112
- }, null, 512);
149
+ return openBlock(), createElementBlock(Fragment, null, [
150
+ createElementVNode("canvas", {
151
+ ref_key: "canvasRef",
152
+ ref: canvasRef
153
+ }, null, 512),
154
+ unref(canvas) ? (openBlock(), createBlock(PopupTip, mergeProps({
155
+ key: 0,
156
+ propItems
157
+ }, unref(pointTipProps)), null, 16, ["propItems"])) : createCommentVNode("v-if", true),
158
+ unref(canvas) ? (openBlock(), createBlock(unref(PopupMenu), mergeProps({
159
+ key: 1,
160
+ propItems
161
+ }, unref(pointMenuProps), {
162
+ show: unref(pointMenuProps).show,
163
+ "onUpdate:show": _cache[0] || (_cache[0] = ($event) => unref(pointMenuProps).show = $event),
164
+ onClickMenu: unref(clickMenu)
165
+ }), null, 16, ["propItems", "show", "onClickMenu"])) : createCommentVNode("v-if", true)
166
+ ], 64);
113
167
  };
114
168
  }
115
169
  });
@@ -86,7 +86,6 @@ declare const _default: import("vue").DefineComponent<{
86
86
  getXValue: (pointX: number) => string | undefined;
87
87
  getYValue: (type: import("./interface").IPointType, pointY: number) => number;
88
88
  setPopup: (point: any) => void;
89
- getEqualXTypes: (pointX: number) => import("./interface").IPointType[];
90
89
  isAddPoint: (x: number) => boolean;
91
90
  updateData: (params: any, mode?: string) => void;
92
91
  redrawPoints: () => void;
@@ -136,7 +135,7 @@ declare const _default: import("vue").DefineComponent<{
136
135
  show: boolean;
137
136
  point: import("./interface").ICoordinateValue;
138
137
  list: string[];
139
- propItems: import("./interface").IPropItems;
138
+ propItems: import("../../../shared/types").AnyObject;
140
139
  };
141
140
  pointStyle: import("vue").ComputedRef<{
142
141
  top: string;
@@ -258,11 +257,143 @@ declare const _default: import("vue").DefineComponent<{
258
257
  xCellWidth: import("vue").ComputedRef<number>;
259
258
  yCellHeight: import("vue").ComputedRef<number>;
260
259
  originY: import("vue").ComputedRef<number>;
260
+ originYCervix: import("vue").ComputedRef<number>;
261
261
  endY: import("vue").ComputedRef<number>;
262
+ startTime: import("vue").ComputedRef<number>;
263
+ timeXCell: import("vue").ComputedRef<number>;
264
+ cervixYCell: import("vue").ComputedRef<number>;
265
+ FHRYCell: import("vue").ComputedRef<number>;
266
+ fetalPresentationYCell: import("vue").ComputedRef<number>;
267
+ event: import("vue").ComputedRef<any>;
262
268
  select: import("vue").Ref<any>;
263
269
  canvasRef: any;
264
270
  canvas: import("vue").Ref<any>;
265
271
  propItems: any;
272
+ pointTipProps: {
273
+ show: boolean;
274
+ point: {
275
+ x: number;
276
+ y: number;
277
+ };
278
+ list: string[];
279
+ };
280
+ pointMenuProps: {
281
+ show: boolean;
282
+ point: {
283
+ x: number;
284
+ y: number;
285
+ };
286
+ list: any[];
287
+ target: any;
288
+ };
289
+ clickMenu: ({ item, target }: {
290
+ item: any;
291
+ target: any;
292
+ }) => void;
293
+ PopupTip: import("vue").DefineComponent<{
294
+ show: {
295
+ type: BooleanConstructor;
296
+ required: true;
297
+ default: boolean;
298
+ };
299
+ point: {
300
+ type: null;
301
+ required: true;
302
+ };
303
+ list: {
304
+ type: ArrayConstructor;
305
+ required: false;
306
+ default: () => never[];
307
+ };
308
+ propItems: {
309
+ type: null;
310
+ required: true;
311
+ };
312
+ }, {
313
+ props: {
314
+ show: boolean;
315
+ point: import("./interface").ICoordinateValue;
316
+ list: string[];
317
+ propItems: import("../../../shared/types").AnyObject;
318
+ };
319
+ pointStyle: import("vue").ComputedRef<{
320
+ top: string;
321
+ bottom: string;
322
+ left: string;
323
+ right: string;
324
+ 'transform-origin': string;
325
+ }>;
326
+ Teleport: {
327
+ new (): {
328
+ $props: import("vue").VNodeProps & import("vue").TeleportProps;
329
+ };
330
+ __isTeleport: true;
331
+ };
332
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
333
+ show: {
334
+ type: BooleanConstructor;
335
+ required: true;
336
+ default: boolean;
337
+ };
338
+ point: {
339
+ type: null;
340
+ required: true;
341
+ };
342
+ list: {
343
+ type: ArrayConstructor;
344
+ required: false;
345
+ default: () => never[];
346
+ };
347
+ propItems: {
348
+ type: null;
349
+ required: true;
350
+ };
351
+ }>>, {
352
+ list: unknown[];
353
+ }>;
354
+ PopupMenu: import("vue").DefineComponent<{
355
+ show: {
356
+ type: BooleanConstructor;
357
+ default: boolean;
358
+ };
359
+ list: {
360
+ type: ArrayConstructor;
361
+ default: () => never[];
362
+ };
363
+ point: {
364
+ type: PropType<import("./interface").ICoordinateValue>;
365
+ };
366
+ propItems: {
367
+ type: PropType<import("./interface").IPropItems>;
368
+ };
369
+ target: {
370
+ type: PropType<any>;
371
+ };
372
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:show" | "clickMenu")[], "clickMenu" | "update:show", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
373
+ show: {
374
+ type: BooleanConstructor;
375
+ default: boolean;
376
+ };
377
+ list: {
378
+ type: ArrayConstructor;
379
+ default: () => never[];
380
+ };
381
+ point: {
382
+ type: PropType<import("./interface").ICoordinateValue>;
383
+ };
384
+ propItems: {
385
+ type: PropType<import("./interface").IPropItems>;
386
+ };
387
+ target: {
388
+ type: PropType<any>;
389
+ };
390
+ }>> & {
391
+ "onUpdate:show"?: ((...args: any[]) => any) | undefined;
392
+ onClickMenu?: ((...args: any[]) => any) | undefined;
393
+ }, {
394
+ show: boolean;
395
+ list: unknown[];
396
+ }>;
266
397
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("delete" | "change" | "add" | "select")[], "delete" | "change" | "add" | "select", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
267
398
  data: {
268
399
  type: PropType<import("./interface").IBirthProcessData>;
@@ -1,4 +1,4 @@
1
- import { defineComponent, computed, ref, unref, openBlock, createBlock, mergeProps } from 'vue';
1
+ import { defineComponent, computed, ref, unref, openBlock, createBlock, mergeProps, normalizeProps } from 'vue';
2
2
  import TemperatureChart from './TemperatureChart.vue.js';
3
3
  import BirthProcessChart from './BirthProcessChart.vue.js';
4
4
  import _export_sfc from '../../../_virtual/plugin-vue_export-helper.js';
@@ -32,7 +32,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
32
32
  key: 0,
33
33
  ref_key: "fabricChartRef",
34
34
  ref: fabricChartRef
35
- }, _ctx.$attrs), null, 16)) : (openBlock(), createBlock(BirthProcessChart, { key: 1 }));
35
+ }, _ctx.$attrs), null, 16)) : (openBlock(), createBlock(BirthProcessChart, normalizeProps(mergeProps({ key: 1 }, _ctx.$attrs)), null, 16));
36
36
  };
37
37
  }
38
38
  });
@@ -69,7 +69,6 @@ declare const _default: import("vue").DefineComponent<{
69
69
  getXValue: (pointX: number) => string | undefined;
70
70
  getYValue: (type: IPointType, pointY: number) => number;
71
71
  setPopup: (point: any) => void;
72
- getEqualXTypes: (pointX: number) => IPointType[];
73
72
  isAddPoint: (x: number) => boolean;
74
73
  updateData: (params: any, mode?: string) => void;
75
74
  redrawPoints: () => void;
@@ -119,7 +118,7 @@ declare const _default: import("vue").DefineComponent<{
119
118
  show: boolean;
120
119
  point: import("./interface").ICoordinateValue;
121
120
  list: string[];
122
- propItems: IPropItems;
121
+ propItems: import("../../../shared/types").AnyObject;
123
122
  };
124
123
  pointStyle: import("vue").ComputedRef<{
125
124
  top: string;
@@ -1,4 +1,4 @@
1
- import { defineComponent, ref, computed, reactive, onMounted, onBeforeUnmount, openBlock, createElementBlock, Fragment, createElementVNode, unref, createBlock, mergeProps, createCommentVNode } from 'vue';
1
+ import { defineComponent, ref, computed, reactive, onMounted, openBlock, createElementBlock, Fragment, createElementVNode, unref, createBlock, mergeProps, createCommentVNode } from 'vue';
2
2
  import { fabric } from './utils/index.js';
3
3
  import { defaultBorderStyle } from './hooks/useDraw.js';
4
4
  import { useCumputedPoint } from './hooks/useCumputedPoint.js';
@@ -9,6 +9,8 @@ import { useCenter } from './hooks/useCenter.js';
9
9
  import { useBottom } from './hooks/useBottom.js';
10
10
  import { useOther } from './hooks/useOther.js';
11
11
  import { useEvent, useCanvasEvent } from './hooks/useEvent.js';
12
+ import 'naive-ui';
13
+ import 'lodash-es';
12
14
  import PopupTip from './components/PopupTip.vue.js';
13
15
  import PopupMenu from './components/PopupMenu.js';
14
16
  import _export_sfc from '../../../_virtual/plugin-vue_export-helper.js';
@@ -282,16 +284,26 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
282
284
  }
283
285
  const { cumputedX, cumputedY, getXValue, getYValue } = useCumputedPoint(propItems);
284
286
  useTop(canvas, propItems);
285
- const { setPopup, getEqualXTypes, isAddPoint, updateData, redrawPoints, pointTipProps, pointMenuProps, clickMenu } = useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, getYValue, props.addRenderItem);
287
+ const { setPopup, isAddPoint, updateData, redrawPoints, pointTipProps, pointMenuProps, clickMenu } = useCenter(
288
+ canvas,
289
+ propItems,
290
+ emits,
291
+ cumputedX,
292
+ cumputedY,
293
+ getXValue,
294
+ getYValue,
295
+ props.addRenderItem
296
+ );
286
297
  const { drawScaleValue } = useLeft(
287
298
  canvas,
288
299
  propItems,
289
300
  emits,
290
301
  setPopup,
291
302
  pointTipProps,
303
+ cumputedX,
304
+ cumputedY,
292
305
  getXValue,
293
306
  getYValue,
294
- getEqualXTypes,
295
307
  isAddPoint,
296
308
  updateData
297
309
  );
@@ -311,10 +323,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
311
323
  const { select: selectFunc } = useCanvasEvent(canvas, propItems, emits);
312
324
  select.value = selectFunc;
313
325
  });
314
- onBeforeUnmount(() => {
315
- canvas.value.clear();
316
- canvas.value = null;
317
- });
318
326
  expose({
319
327
  redrawPoints,
320
328
  select,
@@ -326,11 +334,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
326
334
  ref_key: "canvasRef",
327
335
  ref: canvasRef
328
336
  }, null, 512),
329
- unref(canvas) && unref(pointTipProps) ? (openBlock(), createBlock(PopupTip, mergeProps({
337
+ unref(canvas) ? (openBlock(), createBlock(PopupTip, mergeProps({
330
338
  key: 0,
331
339
  propItems
332
340
  }, unref(pointTipProps)), null, 16, ["propItems"])) : createCommentVNode("v-if", true),
333
- unref(canvas) && unref(pointTipProps) ? (openBlock(), createBlock(unref(PopupMenu), mergeProps({
341
+ unref(canvas) ? (openBlock(), createBlock(unref(PopupMenu), mergeProps({
334
342
  key: 1,
335
343
  propItems
336
344
  }, unref(pointMenuProps), {
@@ -42,7 +42,7 @@ var PopupMenu = defineComponent({
42
42
  } = props.propItems;
43
43
  const pointStyle = useStyle(props);
44
44
  function setNoClick(item) {
45
- if (typeof item === "string" && item.startsWith("\u65B0\u589E")) {
45
+ if (typeof item === "string" && (item.startsWith("\u65B0\u589E") || item.startsWith("\u5220\u9664"))) {
46
46
  return true;
47
47
  }
48
48
  }
@@ -52,7 +52,7 @@ var PopupMenu = defineComponent({
52
52
  return item;
53
53
  if (typeof item.value === "boolean")
54
54
  return item.label;
55
- if (!props.target)
55
+ if (item.renderItem)
56
56
  return item.renderItem();
57
57
  const min = +(((_a = left.yScaleValue.find((v) => v.type === props.target.origin.type)) == null ? void 0 : _a.list[0]) || 0);
58
58
  return createVNode(NSpace, {
@@ -1,4 +1,5 @@
1
- import { IPropItems, ICoordinateValue } from '../interface';
1
+ import { ICoordinateValue } from '../interface';
2
+ import { AnyObject } from '../../../../../es/shared/types';
2
3
  declare const _default: import("vue").DefineComponent<{
3
4
  show: {
4
5
  type: BooleanConstructor;
@@ -23,7 +24,7 @@ declare const _default: import("vue").DefineComponent<{
23
24
  show: boolean;
24
25
  point: ICoordinateValue;
25
26
  list: Array<string>;
26
- propItems: IPropItems;
27
+ propItems: AnyObject;
27
28
  };
28
29
  pointStyle: import("vue").ComputedRef<{
29
30
  top: string;
@@ -7,3 +7,4 @@ export * from './useCenter';
7
7
  export * from './useBottom';
8
8
  export * from './useOther';
9
9
  export * from './useEvent';
10
+ export * from './useBirthProcess';
@@ -7,3 +7,4 @@ export { useCenter } from './useCenter.js';
7
7
  export { useBottom } from './useBottom.js';
8
8
  export { useOther } from './useOther.js';
9
9
  export { useCanvasEvent, useEvent } from './useEvent.js';
10
+ export { useBirthProcess } from './useBirthProcess.js';
@@ -1,4 +1,26 @@
1
1
  import { Ref } from 'vue';
2
2
  import { fabric } from '../utils';
3
3
  import { AnyObject } from '../../../../../es/shared/types';
4
- export declare function useBirthProcess(canvas: Ref<fabric.Canvas>, propItems: AnyObject): void;
4
+ export declare function useBirthProcess(canvas: Ref<fabric.Canvas>, propItems: AnyObject, emits: any): {
5
+ pointTipProps: {
6
+ show: boolean;
7
+ point: {
8
+ x: number;
9
+ y: number;
10
+ };
11
+ list: string[];
12
+ };
13
+ pointMenuProps: {
14
+ show: boolean;
15
+ point: {
16
+ x: number;
17
+ y: number;
18
+ };
19
+ list: any[];
20
+ target: any;
21
+ };
22
+ clickMenu: ({ item, target }: {
23
+ item: any;
24
+ target: any;
25
+ }) => void;
26
+ };