cnhis-design-vue 3.1.33-beta.2 → 3.1.33-beta.21

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 (114) hide show
  1. package/README.md +123 -123
  2. package/es/components/big-table/index.d.ts +2 -2
  3. package/es/components/big-table/src/BigTable.vue.d.ts +2 -2
  4. package/es/components/big-table/src/BigTable.vue2.js +11 -14
  5. package/es/components/big-table/src/components/edit-form/edit-input.js +1 -1
  6. package/es/components/big-table/src/components/edit-form/edit-select.js +1 -1
  7. package/es/components/big-table/src/components/edit-form/edit-time.js +7 -4
  8. package/es/components/big-table/src/components/edit-form/useCommon.d.ts +2 -1
  9. package/es/components/big-table/src/components/edit-form/useCommon.js +7 -3
  10. package/es/components/big-table/src/hooks/useFormat.js +1 -1
  11. package/es/components/button-print/index.d.ts +13 -0
  12. package/es/components/button-print/src/ButtonPrint.vue.d.ts +13 -0
  13. package/es/components/button-print/src/ButtonPrint.vue2.js +6 -1
  14. package/es/components/button-print/src/utils/print.d.ts +2 -2
  15. package/es/components/button-print/src/utils/print.js +7 -4
  16. package/es/components/fabric-chart/index.d.ts +392 -180
  17. package/es/components/fabric-chart/src/BirthProcessChart.vue.d.ts +181 -0
  18. package/es/components/fabric-chart/src/BirthProcessChart.vue.js +172 -0
  19. package/es/components/fabric-chart/src/FabricChart.vue.d.ts +395 -182
  20. package/es/components/fabric-chart/src/FabricChart.vue.js +33 -324
  21. package/es/components/fabric-chart/src/TemperatureChart.vue.d.ts +214 -0
  22. package/es/components/fabric-chart/src/TemperatureChart.vue.js +359 -0
  23. package/es/components/fabric-chart/src/components/PopupMenu.js +3 -3
  24. package/es/components/fabric-chart/src/components/PopupTip.vue.d.ts +3 -2
  25. package/es/components/fabric-chart/src/components/PopupTip.vue.js +1 -1
  26. package/es/components/fabric-chart/src/hooks/index.d.ts +1 -0
  27. package/es/components/fabric-chart/src/hooks/index.js +2 -1
  28. package/es/components/fabric-chart/src/hooks/useBirthProcess.d.ts +26 -0
  29. package/es/components/fabric-chart/src/hooks/useBirthProcess.js +419 -0
  30. package/es/components/fabric-chart/src/hooks/useCenter.d.ts +0 -2
  31. package/es/components/fabric-chart/src/hooks/useCenter.js +26 -45
  32. package/es/components/fabric-chart/src/hooks/useCommon.d.ts +8 -0
  33. package/es/components/fabric-chart/src/hooks/useCommon.js +31 -0
  34. package/es/components/fabric-chart/src/hooks/useCumputedPoint.d.ts +9 -2
  35. package/es/components/fabric-chart/src/hooks/useCumputedPoint.js +34 -1
  36. package/es/components/fabric-chart/src/hooks/useGrid.d.ts +2 -2
  37. package/es/components/fabric-chart/src/hooks/useGrid.js +28 -18
  38. package/es/components/fabric-chart/src/hooks/useLeft.d.ts +1 -1
  39. package/es/components/fabric-chart/src/hooks/useLeft.js +11 -7
  40. package/es/components/fabric-chart/src/interface.d.ts +24 -6
  41. package/es/components/fabric-chart/src/interface.js +0 -3
  42. package/es/components/fabric-chart/src/utils/utils.d.ts +11 -0
  43. package/es/components/fabric-chart/src/utils/utils.js +27 -0
  44. package/es/components/form-render/src/hooks/useFormRenderOptions.d.ts +2 -4
  45. package/es/components/form-render/src/hooks/useFormRenderOptions.js +14 -8
  46. package/es/components/iho-table/index.d.ts +1 -0
  47. package/es/components/iho-table/index.js +1 -1
  48. package/es/components/iho-table/src/IhoTable.vue.d.ts +1 -0
  49. package/es/components/iho-table/src/IhoTable.vue.js +7 -1
  50. package/es/components/iho-table/src/components/IhoTableColumn.js +1 -1
  51. package/es/components/iho-table/src/hooks/tapHooks/index.d.ts +1 -0
  52. package/es/components/iho-table/src/hooks/tapHooks/index.js +3 -1
  53. package/es/components/iho-table/src/hooks/tapHooks/useExposeHooks.d.ts +11 -0
  54. package/es/components/iho-table/src/hooks/tapHooks/useExposeHooks.js +26 -0
  55. package/es/components/iho-table/src/hooks/useColumnConfigAdaptor.js +5 -1
  56. package/es/components/iho-table/src/plugins/filterPlugin/filter.vue.d.ts +2 -1
  57. package/es/components/iho-table/src/plugins/filterPlugin/filter.vue.js +17 -12
  58. package/es/components/iho-table/src/plugins/filterPlugin/index.js +16 -5
  59. package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index.js +1 -0
  60. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/index.js +8 -22
  61. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +8 -16
  62. package/es/components/iho-table/src/plugins/rowGroupSettingPlugin/rowGroupUtils.js +7 -4
  63. package/es/components/iho-table/src/types/index.d.ts +9 -1
  64. package/es/components/iho-table/src/types/index.js +1 -1
  65. package/es/components/iho-table/src/types/pluginType.d.ts +4 -0
  66. package/es/components/iho-table/src/types/pluginType.js +3 -1
  67. package/es/components/iho-table/style/index.css +1 -1
  68. package/es/components/index.css +1 -1
  69. package/es/components/index.js +1 -1
  70. package/es/components/info-header/index.d.ts +2 -0
  71. package/es/components/info-header/src/InfoHeader.vue.d.ts +2 -0
  72. package/es/components/info-header/src/InfoHeader.vue.js +72 -56
  73. package/es/components/info-header/style/index.css +1 -1
  74. package/es/components/keyboard/index.d.ts +62 -1
  75. package/es/components/keyboard/src/Keyboard.vue.d.ts +62 -1
  76. package/es/components/keyboard/src/Keyboard.vue.js +4 -1
  77. package/es/components/keyboard/src/components/NumberPanel.vue.d.ts +67 -5
  78. package/es/components/keyboard/src/components/NumberPanel.vue.js +48 -26
  79. package/es/components/keyboard/style/index.css +1 -1
  80. package/es/components/shortcut-provider/src/utils/index.d.ts +0 -1
  81. package/es/components/shortcut-provider/src/utils/index.js +26 -3
  82. package/es/components/shortcut-setter/src/ShortcutSetterItem.vue.js +3 -0
  83. package/es/shared/assets/img/failure.js +1 -1
  84. package/es/shared/assets/img/failure.png.js +1 -1
  85. package/es/shared/assets/img/icon-asc.js +1 -1
  86. package/es/shared/assets/img/icon-desc.js +1 -1
  87. package/es/shared/assets/img/no-permission.js +1 -1
  88. package/es/shared/assets/img/no-permission.png.js +1 -1
  89. package/es/shared/assets/img/nodata.js +1 -1
  90. package/es/shared/assets/img/nodata.png.js +1 -1
  91. package/es/shared/assets/img/notfound.js +1 -1
  92. package/es/shared/assets/img/notfound.png.js +1 -1
  93. package/es/shared/assets/img/qr.js +1 -1
  94. package/es/shared/assets/img/qr.png.js +1 -1
  95. package/es/shared/assets/img/success.js +1 -1
  96. package/es/shared/assets/img/success.png.js +1 -1
  97. package/es/shared/assets/img/video.js +1 -1
  98. package/es/shared/assets/img/video.png.js +1 -1
  99. package/es/shared/assets/img/video_default_cover.js +1 -1
  100. package/es/shared/assets/img/video_default_cover.png.js +1 -1
  101. package/es/shared/assets/img/video_hover.js +1 -1
  102. package/es/shared/assets/img/video_play_hover.js +1 -1
  103. package/es/shared/assets/img/xb_big.js +1 -1
  104. package/es/shared/assets/img/xb_big.png.js +1 -1
  105. package/es/shared/assets/img/xb_small.js +1 -1
  106. package/es/shared/assets/img/xb_small.png.js +1 -1
  107. package/package.json +2 -2
  108. package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
  109. package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +0 -1
  110. package/es/components/bpmn-workflow/types/ModelingModule.d.ts +0 -1
  111. package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +0 -1
  112. package/es/components/fabric-chart/src/utils/index.d.ts +0 -6823
  113. package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +0 -86
  114. package/es/shared/utils/tapable/index.d.ts +0 -139
@@ -0,0 +1,359 @@
1
+ import { defineComponent, ref, computed, reactive, onMounted, onUnmounted, openBlock, createElementBlock, Fragment, createElementVNode, unref, createBlock, mergeProps, createCommentVNode } from 'vue';
2
+ import { fabric } from './utils/index.js';
3
+ import { defaultBorderStyle } from './hooks/useDraw.js';
4
+ import { useCumputedPoint } from './hooks/useCumputedPoint.js';
5
+ import { useTop } from './hooks/useTop.js';
6
+ import { useLeft } from './hooks/useLeft.js';
7
+ import { useRight } from './hooks/useRight.js';
8
+ import { useCenter } from './hooks/useCenter.js';
9
+ import { useBottom } from './hooks/useBottom.js';
10
+ import { useOther } from './hooks/useOther.js';
11
+ import { useEvent, useCanvasEvent } from './hooks/useEvent.js';
12
+ import 'naive-ui';
13
+ import 'lodash-es';
14
+ import PopupTip from './components/PopupTip.vue.js';
15
+ import PopupMenu from './components/PopupMenu.js';
16
+ import _export_sfc from '../../../_virtual/plugin-vue_export-helper.js';
17
+
18
+ const _sfc_main = /* @__PURE__ */ defineComponent({
19
+ __name: "TemperatureChart",
20
+ props: {
21
+ data: { type: Object, required: true },
22
+ addRenderItem: { type: Function }
23
+ },
24
+ emits: [
25
+ "change",
26
+ "add",
27
+ "select"
28
+ ],
29
+ setup(__props, { expose, emit: emits }) {
30
+ const props = __props;
31
+ const defaultHeight = 15;
32
+ let select = ref();
33
+ const canvasRef = ref(null);
34
+ let canvas = ref();
35
+ const dateHeight = computed(() => {
36
+ const { top } = props.data;
37
+ return top.date.show && (top.date.height || defaultHeight) || 0;
38
+ });
39
+ const hospitalDaysHeight = computed(() => {
40
+ var _a;
41
+ const { top } = props.data;
42
+ return ((_a = top.hospitalDays) == null ? void 0 : _a.show) && (top.hospitalDays.height || defaultHeight) || 0;
43
+ });
44
+ const operationDaysHeight = computed(() => {
45
+ var _a;
46
+ const { top } = props.data;
47
+ return ((_a = top.operationDays) == null ? void 0 : _a.show) && (top.operationDays.height || defaultHeight) || 0;
48
+ });
49
+ const xScalevalueHeight = computed(() => {
50
+ var _a, _b, _c;
51
+ const { top } = props.data;
52
+ const height = ((_a = top.xScalevalue) == null ? void 0 : _a.show) && (top.xScalevalue.height || defaultHeight) || 0;
53
+ const dayHeight = ((_b = top.xScalevalue) == null ? void 0 : _b.show) ? (_c = top.dayHeight) != null ? _c : 0 : 0;
54
+ return height + dayHeight;
55
+ });
56
+ const breathingHeight = computed(() => {
57
+ var _a;
58
+ const { bottom } = props.data;
59
+ return ((_a = bottom == null ? void 0 : bottom.breathing) == null ? void 0 : _a.show) && (bottom.breathing.height || defaultHeight * 2) || 0;
60
+ });
61
+ const gridXNumber = computed(() => {
62
+ const { grid } = props.data;
63
+ return grid.mainXCell * grid.subXCell + grid.surplusXCell;
64
+ });
65
+ const gridYNumber = computed(() => {
66
+ const { grid } = props.data;
67
+ return grid.mainYCell * grid.subYCell + grid.surplusYCell;
68
+ });
69
+ const endX = computed(() => {
70
+ var _a;
71
+ const { width, right = null, top } = props.data;
72
+ if (!right)
73
+ return width;
74
+ const endWidth = (_a = right.width) != null ? _a : 0;
75
+ return width - endWidth;
76
+ });
77
+ const endXLimit = computed(() => {
78
+ const { grid } = props.data;
79
+ return endX.value - grid.surplusXCell * xCellWidth.value;
80
+ });
81
+ const originX = computed(() => {
82
+ const { top, left } = props.data;
83
+ const originX2 = top.titleWidth + iconsWidth.value;
84
+ return originX2;
85
+ });
86
+ const endY = computed(() => {
87
+ const { bottom = null, height } = props.data;
88
+ if (!bottom)
89
+ return height;
90
+ const endHeight = bottom.height || 30;
91
+ return height - endHeight;
92
+ });
93
+ const originY = computed(() => {
94
+ var _a;
95
+ const { top } = props.data;
96
+ const dayHeight = top.xScalevalue.show && ((_a = top.dayHeight) != null ? _a : 0) || 0;
97
+ const xScaleHeight = top.xScalevalue.show && (top.xScalevalue.height || defaultHeight) || 0;
98
+ const topHeight = dateHeight.value + dayHeight + xScaleHeight + hospitalDaysHeight.value + operationDaysHeight.value;
99
+ return topHeight;
100
+ });
101
+ const originYLimit = computed(() => {
102
+ const { grid } = props.data;
103
+ return originY.value + grid.surplusYCell * yCellHeight.value;
104
+ });
105
+ const xCellWidth = computed(() => {
106
+ return (endX.value - originX.value) / gridXNumber.value;
107
+ });
108
+ const yCellHeight = computed(() => {
109
+ return (endY.value - originY.value) / gridYNumber.value;
110
+ });
111
+ const iconsWidth = computed(() => {
112
+ var _a, _b;
113
+ const { left } = props.data;
114
+ return ((_a = left.icons) == null ? void 0 : _a.show) && (((_b = left.icons) == null ? void 0 : _b.width) || 100) || 0;
115
+ });
116
+ const xScaleList = computed(() => {
117
+ const { top } = props.data;
118
+ const dateList = top.date.list;
119
+ const times = top.xScalevalue.times;
120
+ let left = originX.value - xCellWidth.value;
121
+ function getDate(date) {
122
+ const [year = "2022", month = "01", day = "01"] = String(date).match(/\d+/g) || [];
123
+ return `20${year}`.slice(-4) + "-" + `00${month}`.slice(-2) + "-" + `00${day}`.slice(-2);
124
+ }
125
+ const timeList = dateList.map((item) => {
126
+ return times.map((v) => {
127
+ left += xCellWidth.value;
128
+ const start = new Date(`${getDate(item)} ${v.start}`).getTime();
129
+ const end = new Date(`${getDate(item)} ${v.end}`).getTime();
130
+ return {
131
+ start,
132
+ end,
133
+ left,
134
+ center: left + xCellWidth.value / 2,
135
+ scaleCell: (end - start) / xCellWidth.value
136
+ };
137
+ });
138
+ });
139
+ return timeList.flat();
140
+ });
141
+ const breatheYCell = computed(() => {
142
+ return computedYCell("breathe");
143
+ });
144
+ const pulseYCell = computed(() => {
145
+ return computedYCell("pulse");
146
+ });
147
+ const temperatureYCell = computed(() => {
148
+ return computedYCell("temperature");
149
+ });
150
+ const painYCell = computed(() => {
151
+ return computedYCell("pain");
152
+ });
153
+ const event = computed(() => {
154
+ var _a;
155
+ return ((_a = props.data.grid) == null ? void 0 : _a.event) || { selectable: true, evented: true, hovered: true };
156
+ });
157
+ const itemList = computed(() => {
158
+ const { left } = props.data;
159
+ return left.yScaleValue.map((item) => {
160
+ return item.dataList.map((v, dataIndex) => {
161
+ return {
162
+ ...v,
163
+ bigType: item.type,
164
+ unit: item.unit,
165
+ dataIndex
166
+ };
167
+ });
168
+ }).flat();
169
+ });
170
+ const painIndex = computed(() => {
171
+ const { left } = props.data;
172
+ return left.yScaleValue.findIndex((v) => v.type === "pain");
173
+ });
174
+ const painHeight = computed(() => {
175
+ const { grid } = props.data;
176
+ return painIndex.value === -1 ? 0 : yCellHeight.value * grid.subYCell;
177
+ });
178
+ const painOriginY = computed(() => {
179
+ const { left } = props.data;
180
+ let obj = {
181
+ originY: endY.value,
182
+ endY: endY.value
183
+ };
184
+ if (painIndex.value === 0 && left.yScaleValue.length > 1) {
185
+ obj.originY = originYLimit.value;
186
+ obj.endY = originYLimit.value + painHeight.value;
187
+ } else if (painIndex.value === left.yScaleValue.length - 1) {
188
+ obj.originY = endY.value - painHeight.value;
189
+ obj.endY = endY.value;
190
+ }
191
+ return obj;
192
+ });
193
+ const vitalSignsOriginY = computed(() => {
194
+ const { left } = props.data;
195
+ let obj = {
196
+ originY: originY.value,
197
+ endY: endY.value
198
+ };
199
+ if (painIndex.value === 0 && left.yScaleValue.length > 1) {
200
+ obj.originY = originYLimit.value + painHeight.value;
201
+ obj.endY = endY.value;
202
+ } else if (painIndex.value === left.yScaleValue.length - 1) {
203
+ obj.originY = originYLimit.value;
204
+ obj.endY = endY.value - painHeight.value;
205
+ }
206
+ return obj;
207
+ });
208
+ const topList = computed(() => {
209
+ const { top } = props.data;
210
+ let topList2 = [];
211
+ for (let i in top) {
212
+ if (top[i].show) {
213
+ topList2.push({
214
+ ...top[i],
215
+ key: i
216
+ });
217
+ }
218
+ }
219
+ return topList2.sort((a, b) => a.seq - b.seq);
220
+ });
221
+ const getRightInfo = computed(() => {
222
+ var _a;
223
+ const { left, right } = props.data;
224
+ const temperatureObj = left.yScaleValue.find((v) => v.type === "temperature");
225
+ const yScaleValue = (right == null ? void 0 : right.yScaleValue) || {};
226
+ if ((_a = temperatureObj == null ? void 0 : temperatureObj.list) == null ? void 0 : _a.length) {
227
+ Object.assign(yScaleValue, {
228
+ list: temperatureObj.list.map((v) => Math.floor((1.8 * v + 32) * 100) / 100),
229
+ spaceGridNumber: temperatureObj.spaceGridNumber
230
+ });
231
+ }
232
+ return yScaleValue;
233
+ });
234
+ const propItems = reactive({
235
+ canvasWidth: props.data.width,
236
+ canvasHeight: props.data.height,
237
+ borderStyle: props.data.borderStyle || defaultBorderStyle,
238
+ selectionStyle: props.data.selectionStyle || {},
239
+ dateHeight: dateHeight.value,
240
+ hospitalDaysHeight: hospitalDaysHeight.value,
241
+ operationDaysHeight: operationDaysHeight.value,
242
+ xScalevalueHeight: xScalevalueHeight.value,
243
+ topList: topList.value,
244
+ breathingHeight: breathingHeight.value,
245
+ hospitalizationDate: props.data.hospitalizationDate,
246
+ grid: props.data.grid,
247
+ top: props.data.top,
248
+ left: props.data.left,
249
+ right: props.data.right,
250
+ bottom: props.data.bottom,
251
+ other: props.data.other,
252
+ painIndex: painIndex.value,
253
+ painHeight: painHeight.value,
254
+ painOriginY: painOriginY.value,
255
+ vitalSignsOriginY: vitalSignsOriginY.value,
256
+ gridXNumber: gridXNumber.value,
257
+ gridYNumber: gridYNumber.value,
258
+ iconsWidth: iconsWidth.value,
259
+ originX: originX.value,
260
+ originY: originY.value,
261
+ originYLimit: originYLimit.value,
262
+ endX: endX.value,
263
+ endXLimit: endXLimit.value,
264
+ endY: endY.value,
265
+ xCellWidth: xCellWidth.value,
266
+ yCellHeight: yCellHeight.value,
267
+ xScaleList: xScaleList.value,
268
+ breatheYCell: breatheYCell.value,
269
+ pulseYCell: pulseYCell.value,
270
+ temperatureYCell: temperatureYCell.value,
271
+ painYCell: painYCell.value,
272
+ event: event.value,
273
+ itemList: itemList.value,
274
+ getRightInfo: getRightInfo.value,
275
+ config: props.data.config || {}
276
+ });
277
+ function computedYCell(type) {
278
+ const { yScaleValue } = props.data.left;
279
+ const item = yScaleValue.find((v) => v.type === type);
280
+ const list = (item == null ? void 0 : item.list) || [];
281
+ if (!list.length)
282
+ return 0;
283
+ return yCellHeight.value / ((list[1] - list[0]) / item.spaceGridNumber);
284
+ }
285
+ const { cumputedX, cumputedY, getXValue, getYValue } = useCumputedPoint(propItems);
286
+ useTop(canvas, propItems);
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
+ );
297
+ const { drawScaleValue } = useLeft(
298
+ canvas,
299
+ propItems,
300
+ emits,
301
+ setPopup,
302
+ pointTipProps,
303
+ cumputedX,
304
+ cumputedY,
305
+ getXValue,
306
+ getYValue,
307
+ isAddPoint,
308
+ updateData
309
+ );
310
+ useRight(canvas, propItems, drawScaleValue);
311
+ useBottom(canvas, propItems);
312
+ useOther(canvas, propItems, cumputedX);
313
+ onMounted(() => {
314
+ canvas.value = new fabric.Canvas(canvasRef.value, {
315
+ width: propItems.canvasWidth,
316
+ height: propItems.canvasHeight,
317
+ backgroundColor: "#fff",
318
+ selection: false,
319
+ containerClass: "c-fabric-chart",
320
+ fireRightClick: true
321
+ });
322
+ useEvent(canvasRef.value);
323
+ const { select: selectFunc } = useCanvasEvent(canvas, propItems, emits);
324
+ select.value = selectFunc;
325
+ });
326
+ onUnmounted(() => {
327
+ canvas.value.clear();
328
+ canvas.value = null;
329
+ });
330
+ expose({
331
+ redrawPoints,
332
+ select,
333
+ canvas
334
+ });
335
+ return (_ctx, _cache) => {
336
+ return openBlock(), createElementBlock(Fragment, null, [
337
+ createElementVNode("canvas", {
338
+ ref_key: "canvasRef",
339
+ ref: canvasRef
340
+ }, null, 512),
341
+ unref(canvas) ? (openBlock(), createBlock(PopupTip, mergeProps({
342
+ key: 0,
343
+ propItems
344
+ }, unref(pointTipProps)), null, 16, ["propItems"])) : createCommentVNode("v-if", true),
345
+ unref(canvas) ? (openBlock(), createBlock(unref(PopupMenu), mergeProps({
346
+ key: 1,
347
+ propItems
348
+ }, unref(pointMenuProps), {
349
+ show: unref(pointMenuProps).show,
350
+ "onUpdate:show": _cache[0] || (_cache[0] = ($event) => unref(pointMenuProps).show = $event),
351
+ onClickMenu: unref(clickMenu)
352
+ }), null, 16, ["propItems", "show", "onClickMenu"])) : createCommentVNode("v-if", true)
353
+ ], 64);
354
+ };
355
+ }
356
+ });
357
+ var TemperatureChart = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "TemperatureChart.vue"]]);
358
+
359
+ export { TemperatureChart as default };
@@ -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, {
@@ -96,7 +96,7 @@ var PopupMenu = defineComponent({
96
96
  });
97
97
  return () => {
98
98
  return createVNode(Teleport, {
99
- "to": ".c-fabric-chart"
99
+ "to": ".c-fabric-chart-wrapper"
100
100
  }, {
101
101
  default: () => [withDirectives(createVNode("ul", {
102
102
  "ref": popupRef,
@@ -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;
@@ -14,7 +14,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
14
14
  const props = __props;
15
15
  const pointStyle = useStyle(props);
16
16
  return (_ctx, _cache) => {
17
- return openBlock(), createBlock(Teleport, { to: ".c-fabric-chart" }, [
17
+ return openBlock(), createBlock(Teleport, { to: ".c-fabric-chart-wrapper" }, [
18
18
  withDirectives(createElementVNode("ul", {
19
19
  class: "c-fabric-chart-popup-tip",
20
20
  style: normalizeStyle(unref(pointStyle))
@@ -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';
@@ -1,5 +1,5 @@
1
1
  export { defaultBorderStyle, defaultLineStyle, defaultRectStyle, defaultStyle, defaultTextStyle, drawArrow, drawLine, drawPoint, drawText, drawTextGroup } from './useDraw.js';
2
- export { useCumputedPoint } from './useCumputedPoint.js';
2
+ export { useBirthProcessCumputedPoint, useCumputedPoint } from './useCumputedPoint.js';
3
3
  export { useTop } from './useTop.js';
4
4
  export { useLeft } from './useLeft.js';
5
5
  export { useRight } from './useRight.js';
@@ -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';
@@ -0,0 +1,26 @@
1
+ import { Ref } from 'vue';
2
+ import { fabric } from '../utils';
3
+ import { AnyObject } from '../../../../../es/shared/types';
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
+ };