cnhis-design-vue 3.1.14-beta.11.1 → 3.1.14-beta.13

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 (146) hide show
  1. package/es/_virtual/plugin-vue_export-helper.js +9 -0
  2. package/es/packages/big-table/index.js +1 -2
  3. package/es/packages/big-table/src/BigTable.js +5 -3
  4. package/es/packages/big-table/src/BigTable.vue_vue_type_script_setup_true_lang.js +8 -11
  5. package/es/packages/big-table/src/components/NoData.js +73 -3
  6. package/es/packages/big-table/src/components/edit-form/edit-separate.js +89 -3
  7. package/es/packages/big-table/src/components/input-button.js +34 -3
  8. package/es/packages/big-table/src/components/separate.js +29 -3
  9. package/es/packages/big-table/src/hooks/useEdit.js +2 -3
  10. package/es/packages/bpmn-workflow/index.js +1 -2
  11. package/es/packages/bpmn-workflow/src/BpmnWorkflow.js +253 -3
  12. package/es/packages/button-print/index.js +1 -2
  13. package/es/packages/button-print/src/ButtonPrint.js +5 -3
  14. package/es/packages/button-print/src/ButtonPrint.vue_vue_type_script_setup_true_lang.js +6 -7
  15. package/es/packages/button-print/src/components/IdentityVerification.js +129 -3
  16. package/es/packages/chunk-upload/index.js +1 -1
  17. package/es/packages/chunk-upload/src/chunk-upload-new.js +474 -3
  18. package/es/packages/chunk-upload/src/vod-chunk-upload/index.js +2 -3
  19. package/es/packages/chunk-upload/src/vod-chunk-upload/vod-chunk-upload.js +328 -3
  20. package/es/packages/chunk-upload/src/vod-upload-modal.js +3 -4
  21. package/es/packages/drag-layout/index.js +1 -2
  22. package/es/packages/drag-layout/src/DragFormLeftItem.js +123 -3
  23. package/es/packages/drag-layout/src/DragFormRightItem.js +268 -3
  24. package/es/packages/drag-layout/src/DragLayout.js +658 -3
  25. package/es/packages/fabric-chart/index.js +1 -2
  26. package/es/packages/fabric-chart/src/FabricChart.js +316 -3
  27. package/es/packages/fabric-chart/src/components/PopupTip.js +33 -3
  28. package/es/packages/field-set/index.js +1 -2
  29. package/es/packages/field-set/src/FieldSet.js +346 -3
  30. package/es/packages/form-render/index.d.ts +0 -1
  31. package/es/packages/form-render/index.js +2 -3
  32. package/es/packages/form-render/src/FormRender.js +188 -3
  33. package/es/packages/form-render/src/FormRender.vue.d.ts +0 -1
  34. package/es/packages/form-render/src/components/renderer/combination.js +2 -3
  35. package/es/packages/form-table/index.js +1 -2
  36. package/es/packages/form-table/src/FormTable.js +475 -3
  37. package/es/packages/form-table/src/components/index.js +28 -42
  38. package/es/packages/form-table/src/components/table-age.js +232 -3
  39. package/es/packages/form-table/src/components/table-date-picker.js +176 -3
  40. package/es/packages/form-table/src/components/table-digital.js +138 -3
  41. package/es/packages/form-table/src/components/table-input-password.js +138 -3
  42. package/es/packages/form-table/src/components/table-input.js +124 -3
  43. package/es/packages/form-table/src/components/table-month-picker.js +100 -3
  44. package/es/packages/form-table/src/components/table-search-more.js +5 -3
  45. package/es/packages/form-table/src/components/table-search-more.vue_vue_type_script_setup_true_lang.js +2 -2
  46. package/es/packages/form-table/src/components/table-search.js +5 -3
  47. package/es/packages/form-table/src/components/table-search.vue_vue_type_script_setup_true_lang.js +2 -2
  48. package/es/packages/form-table/src/components/table-select-multiple.js +161 -3
  49. package/es/packages/form-table/src/components/table-select.js +156 -3
  50. package/es/packages/form-table/src/components/table-textarea.js +154 -3
  51. package/es/packages/form-table/src/components/table-time-picker.js +146 -3
  52. package/es/packages/form-table/src/components/table-tree-select.js +282 -3
  53. package/es/packages/form-table/src/components/text-over-tooltip.js +63 -3
  54. package/es/packages/info-header/index.js +1 -2
  55. package/es/packages/info-header/src/HiddenContent.js +65 -3
  56. package/es/packages/info-header/src/InfoEllipsis.js +42 -3
  57. package/es/packages/info-header/src/InfoHeader.js +229 -3
  58. package/es/packages/map/index.js +1 -2
  59. package/es/packages/map/src/Map.js +337 -3
  60. package/es/packages/scale-view/index.js +1 -2
  61. package/es/packages/scale-view/src/ScaleView.js +418 -3
  62. package/es/packages/scale-view/src/components/AnswerParse.js +79 -3
  63. package/es/packages/scale-view/src/components/EvaluateCountdown.js +108 -3
  64. package/es/packages/scale-view/src/components/EvaluatePage.js +140 -3
  65. package/es/packages/scale-view/src/components/LoadingCom.js +17 -5
  66. package/es/packages/scale-view/src/components/NoData.js +73 -3
  67. package/es/packages/scale-view/src/components/formitem/r-cascader.js +3 -3
  68. package/es/packages/scale-view/src/components/formitem/r-select.js +3 -3
  69. package/es/packages/scale-view/src/components/formitem/text-over-tooltip/TextOverTooltip.js +78 -3
  70. package/es/packages/select-label/index.js +3 -5
  71. package/es/packages/select-label/src/LabelFormContent.js +441 -3
  72. package/es/packages/select-label/src/SelectLabel.js +5 -3
  73. package/es/packages/select-label/src/SelectLabel.vue_vue_type_script_setup_true_lang.js +5 -21
  74. package/es/packages/select-label/src/components/label-classify.js +128 -3
  75. package/es/packages/select-person/index.js +1 -2
  76. package/es/packages/select-person/src/SearchTree.js +5 -3
  77. package/es/packages/select-person/src/SearchTree.vue_vue_type_script_setup_true_lang.js +2 -2
  78. package/es/packages/select-person/src/SelectPerson.js +5 -3
  79. package/es/packages/select-person/src/SelectPerson.vue_vue_type_script_setup_true_lang.js +4 -5
  80. package/es/packages/shortcut-provider/index.js +1 -2
  81. package/es/packages/shortcut-provider/src/ShortcutProvider.js +33 -3
  82. package/es/packages/shortcut-setter/index.js +1 -2
  83. package/es/packages/shortcut-setter/src/ShortcutSetter.js +38 -3
  84. package/es/packages/shortcut-setter/src/ShortcutSetterItem.js +126 -3
  85. package/es/packages/steps-wheel/index.js +1 -2
  86. package/es/packages/steps-wheel/src/StepsWheel.js +264 -3
  87. package/es/packages/time-line/index.js +1 -2
  88. package/es/packages/time-line/src/TimeLine.js +69 -3
  89. package/es/src/components/SelectPage/SelectPage.js +62 -3
  90. package/es/src/components/SelectPage/index.js +2 -3
  91. package/es/src/components/SvgIcon/SvgIcon.js +35 -3
  92. package/es/src/components/SvgIcon/index.js +2 -3
  93. package/es/src/components/TextOverTooltip/TextOverTooltip.js +75 -3
  94. package/es/src/components/TextOverTooltip/index.js +2 -3
  95. package/es/src/components/player-vod/index.js +13 -3
  96. package/package.json +153 -153
  97. package/es/packages/big-table/src/components/NoData.vue_vue_type_script_setup_true_lang.js +0 -72
  98. package/es/packages/big-table/src/components/edit-form/edit-separate.vue_vue_type_script_setup_true_lang.js +0 -89
  99. package/es/packages/big-table/src/components/input-button.vue_vue_type_script_setup_true_lang.js +0 -33
  100. package/es/packages/big-table/src/components/separate.vue_vue_type_script_setup_true_lang.js +0 -28
  101. package/es/packages/bpmn-workflow/src/BpmnWorkflow.vue_vue_type_script_setup_true_lang.js +0 -252
  102. package/es/packages/button-print/src/components/IdentityVerification.vue_vue_type_script_setup_true_lang.js +0 -128
  103. package/es/packages/chunk-upload/src/chunk-upload-new.vue_vue_type_script_setup_true_lang.js +0 -473
  104. package/es/packages/chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue_vue_type_script_setup_true_lang.js +0 -327
  105. package/es/packages/drag-layout/src/DragFormLeftItem.vue_vue_type_script_setup_true_lang.js +0 -122
  106. package/es/packages/drag-layout/src/DragFormRightItem.vue_vue_type_script_setup_true_lang.js +0 -267
  107. package/es/packages/drag-layout/src/DragLayout.vue_vue_type_script_setup_true_lang.js +0 -659
  108. package/es/packages/fabric-chart/src/FabricChart.vue_vue_type_script_setup_true_lang.js +0 -316
  109. package/es/packages/fabric-chart/src/components/PopupTip.vue_vue_type_script_setup_true_lang.js +0 -32
  110. package/es/packages/field-set/src/FieldSet.vue_vue_type_script_setup_true_lang.js +0 -345
  111. package/es/packages/form-render/src/FormRender.vue_vue_type_script_setup_true_lang.js +0 -187
  112. package/es/packages/form-table/src/FormTable.vue_vue_type_script_setup_true_lang.js +0 -474
  113. package/es/packages/form-table/src/components/table-age.vue_vue_type_script_setup_true_lang.js +0 -232
  114. package/es/packages/form-table/src/components/table-date-picker.vue_vue_type_script_setup_true_lang.js +0 -175
  115. package/es/packages/form-table/src/components/table-digital.vue_vue_type_script_setup_true_lang.js +0 -138
  116. package/es/packages/form-table/src/components/table-input-password.vue_vue_type_script_setup_true_lang.js +0 -138
  117. package/es/packages/form-table/src/components/table-input.vue_vue_type_script_setup_true_lang.js +0 -124
  118. package/es/packages/form-table/src/components/table-month-picker.vue_vue_type_script_setup_true_lang.js +0 -99
  119. package/es/packages/form-table/src/components/table-select-multiple.vue_vue_type_script_setup_true_lang.js +0 -160
  120. package/es/packages/form-table/src/components/table-select.vue_vue_type_script_setup_true_lang.js +0 -155
  121. package/es/packages/form-table/src/components/table-textarea.vue_vue_type_script_setup_true_lang.js +0 -153
  122. package/es/packages/form-table/src/components/table-time-picker.vue_vue_type_script_setup_true_lang.js +0 -145
  123. package/es/packages/form-table/src/components/table-tree-select.vue_vue_type_script_setup_true_lang.js +0 -281
  124. package/es/packages/form-table/src/components/text-over-tooltip.vue_vue_type_script_setup_true_lang.js +0 -62
  125. package/es/packages/info-header/src/HiddenContent.vue_vue_type_script_setup_true_lang.js +0 -64
  126. package/es/packages/info-header/src/InfoEllipsis.vue_vue_type_script_setup_true_lang.js +0 -41
  127. package/es/packages/info-header/src/InfoHeader.vue_vue_type_script_setup_true_lang.js +0 -229
  128. package/es/packages/map/src/Map.vue_vue_type_script_setup_true_lang.js +0 -336
  129. package/es/packages/scale-view/src/ScaleView.vue_vue_type_script_setup_true_lang.js +0 -422
  130. package/es/packages/scale-view/src/components/AnswerParse.vue_vue_type_script_setup_true_lang.js +0 -78
  131. package/es/packages/scale-view/src/components/EvaluateCountdown.vue_vue_type_script_setup_true_lang.js +0 -107
  132. package/es/packages/scale-view/src/components/EvaluatePage.vue_vue_type_script_setup_true_lang.js +0 -139
  133. package/es/packages/scale-view/src/components/LoadingCom.vue_vue_type_template_id_413329b0_lang.js +0 -16
  134. package/es/packages/scale-view/src/components/NoData.vue_vue_type_script_setup_true_lang.js +0 -72
  135. package/es/packages/scale-view/src/components/formitem/text-over-tooltip/TextOverTooltip.vue_vue_type_script_setup_true_lang.js +0 -77
  136. package/es/packages/select-label/src/LabelFormContent.vue_vue_type_script_setup_true_lang.js +0 -441
  137. package/es/packages/select-label/src/components/label-classify.vue_vue_type_script_setup_true_lang.js +0 -127
  138. package/es/packages/shortcut-provider/src/ShortcutProvider.vue_vue_type_script_setup_true_lang.js +0 -32
  139. package/es/packages/shortcut-setter/src/ShortcutSetter.vue_vue_type_script_setup_true_lang.js +0 -38
  140. package/es/packages/shortcut-setter/src/ShortcutSetterItem.vue_vue_type_script_setup_true_lang.js +0 -125
  141. package/es/packages/steps-wheel/src/StepsWheel.vue_vue_type_script_setup_true_lang.js +0 -263
  142. package/es/packages/time-line/src/TimeLine.vue_vue_type_script_setup_true_lang.js +0 -68
  143. package/es/src/components/SelectPage/SelectPage.vue_vue_type_script_setup_true_lang.js +0 -61
  144. package/es/src/components/SvgIcon/SvgIcon.vue_vue_type_script_setup_true_lang.js +0 -34
  145. package/es/src/components/TextOverTooltip/TextOverTooltip.vue_vue_type_script_setup_true_lang.js +0 -74
  146. package/es/src/components/player-vod/index.vue_vue_type_script_setup_true_lang.js +0 -12
@@ -1,4 +1,317 @@
1
- import script from './FabricChart.vue_vue_type_script_setup_true_lang.js';
2
- export { default } from './FabricChart.vue_vue_type_script_setup_true_lang.js';
1
+ import { defineComponent, ref, computed, reactive, onMounted, onBeforeUnmount, openBlock, createElementBlock, Fragment, createElementVNode, unref, createBlock, mergeProps, createCommentVNode } from 'vue';
2
+ import { fabric } from './utils/index.js';
3
+ import PopupTip from './components/PopupTip.js';
4
+ import PopupMenu from './components/PopupMenu.js';
5
+ import _export_sfc from '../../../_virtual/plugin-vue_export-helper.js';
6
+ import { defaultBorderStyle } from './hooks/useDraw.js';
7
+ import { useTop } from './hooks/useTop.js';
8
+ import { useCenter } from './hooks/useCenter.js';
9
+ import { useLeft } from './hooks/useLeft.js';
10
+ import { useRight } from './hooks/useRight.js';
11
+ import { useBottom } from './hooks/useBottom.js';
12
+ import { useOther } from './hooks/useOther.js';
13
+ import { useEvent, useCanvasEvent } from './hooks/useEvent.js';
14
+ import { useCumputedPoint } from './hooks/useCumputedPoint.js';
3
15
 
4
- script.__file = "packages/fabric-chart/src/FabricChart.vue";
16
+ const _sfc_main = /* @__PURE__ */ defineComponent({
17
+ __name: "FabricChart",
18
+ props: {
19
+ data: null,
20
+ addRenderItem: null
21
+ },
22
+ emits: ["change", "add", "select"],
23
+ setup(__props, { expose, emit: emits }) {
24
+ const props = __props;
25
+ const defaultHeight = 15;
26
+ let select = ref();
27
+ const canvasRef = ref(null);
28
+ let canvas = ref();
29
+ const dateHeight = computed(() => {
30
+ const { top } = props.data;
31
+ return top.date.show && (top.date.height || defaultHeight) || 0;
32
+ });
33
+ const hospitalDaysHeight = computed(() => {
34
+ var _a;
35
+ const { top } = props.data;
36
+ return ((_a = top.hospitalDays) == null ? void 0 : _a.show) && (top.hospitalDays.height || defaultHeight) || 0;
37
+ });
38
+ const operationDaysHeight = computed(() => {
39
+ var _a;
40
+ const { top } = props.data;
41
+ return ((_a = top.operationDays) == null ? void 0 : _a.show) && (top.operationDays.height || defaultHeight) || 0;
42
+ });
43
+ const xScalevalueHeight = computed(() => {
44
+ var _a, _b;
45
+ const { top } = props.data;
46
+ const height = ((_a = top.xScalevalue) == null ? void 0 : _a.show) && (top.xScalevalue.height || defaultHeight) || 0;
47
+ const dayHeight = ((_b = top.xScalevalue) == null ? void 0 : _b.show) ? top.dayHeight || 0 : 0;
48
+ return height + dayHeight;
49
+ });
50
+ const breathingHeight = computed(() => {
51
+ var _a;
52
+ const { bottom } = props.data;
53
+ return ((_a = bottom == null ? void 0 : bottom.breathing) == null ? void 0 : _a.show) && (bottom.breathing.height || defaultHeight * 2) || 0;
54
+ });
55
+ const gridXNumber = computed(() => {
56
+ const { grid } = props.data;
57
+ return grid.mainXCell * grid.subXCell + grid.surplusXCell;
58
+ });
59
+ const gridYNumber = computed(() => {
60
+ const { grid } = props.data;
61
+ return grid.mainYCell * grid.subYCell + grid.surplusYCell;
62
+ });
63
+ const endX = computed(() => {
64
+ const { width, right = null, top } = props.data;
65
+ if (!right)
66
+ return width;
67
+ const endWidth = right.width || 50;
68
+ return width - endWidth;
69
+ });
70
+ const endXLimit = computed(() => {
71
+ const { grid } = props.data;
72
+ return endX.value - grid.surplusXCell * xCellWidth.value;
73
+ });
74
+ const originX = computed(() => {
75
+ const { top, left } = props.data;
76
+ const originX2 = top.titleWidth + iconsWidth.value;
77
+ return originX2;
78
+ });
79
+ const endY = computed(() => {
80
+ const { bottom = null, height } = props.data;
81
+ if (!bottom)
82
+ return height;
83
+ const endHeight = bottom.height || 30;
84
+ return height - endHeight;
85
+ });
86
+ const originY = computed(() => {
87
+ const { top } = props.data;
88
+ const dayHeight = top.xScalevalue.show && (top.dayHeight || defaultHeight) || 0;
89
+ const xScaleHeight = top.xScalevalue.show && (top.xScalevalue.height || defaultHeight) || 0;
90
+ const topHeight = dateHeight.value + dayHeight + xScaleHeight + hospitalDaysHeight.value + operationDaysHeight.value;
91
+ return topHeight;
92
+ });
93
+ const originYLimit = computed(() => {
94
+ const { grid } = props.data;
95
+ return originY.value + grid.surplusYCell * yCellHeight.value;
96
+ });
97
+ const xCellWidth = computed(() => {
98
+ return (endX.value - originX.value) / gridXNumber.value;
99
+ });
100
+ const yCellHeight = computed(() => {
101
+ return (endY.value - originY.value) / gridYNumber.value;
102
+ });
103
+ const iconsWidth = computed(() => {
104
+ var _a, _b;
105
+ const { left } = props.data;
106
+ return ((_a = left.icons) == null ? void 0 : _a.show) && (((_b = left.icons) == null ? void 0 : _b.width) || 100) || 0;
107
+ });
108
+ const xScaleList = computed(() => {
109
+ const { top } = props.data;
110
+ const dateList = top.date.list;
111
+ const times = top.xScalevalue.times;
112
+ let left = originX.value - xCellWidth.value;
113
+ function getDate(date) {
114
+ return String(date).length < 9 ? `20${date}` : date;
115
+ }
116
+ const timeList = dateList.map((item) => {
117
+ return times.map((v) => {
118
+ left += xCellWidth.value;
119
+ const start = new Date(`${getDate(item)} ${v.start}`).getTime();
120
+ const end = new Date(`${getDate(item)} ${v.end}`).getTime();
121
+ return {
122
+ start,
123
+ end,
124
+ left,
125
+ center: left + xCellWidth.value / 2,
126
+ scaleCell: (end - start) / xCellWidth.value
127
+ };
128
+ });
129
+ });
130
+ return timeList.flat();
131
+ });
132
+ const breatheYCell = computed(() => {
133
+ var _a;
134
+ const { yScaleValue, spaceGridNumber = 5 } = props.data.left;
135
+ const list = (_a = yScaleValue.find((v) => v.type === "breathe")) == null ? void 0 : _a.list;
136
+ return list ? yCellHeight.value / ((parseInt(list[1]) - parseInt(list[0])) / spaceGridNumber) : 0;
137
+ });
138
+ const pulseYCell = computed(() => {
139
+ const { yScaleValue, spaceGridNumber = 5 } = props.data.left;
140
+ const list = yScaleValue.find((v) => v.type === "pulse").list;
141
+ return yCellHeight.value / ((parseInt(list[1]) - parseInt(list[0])) / spaceGridNumber);
142
+ });
143
+ const temperatureYCell = computed(() => {
144
+ const { yScaleValue, spaceGridNumber = 5 } = props.data.left;
145
+ const list = yScaleValue.find((v) => v.type === "temperature").list;
146
+ return yCellHeight.value / ((parseInt(list[1]) - parseInt(list[0])) / spaceGridNumber);
147
+ });
148
+ const painYCell = computed(() => {
149
+ const { yScaleValue, spaceGridNumber = 5 } = props.data.left;
150
+ const item = yScaleValue.find((v) => v.type === "pain");
151
+ const list = (item == null ? void 0 : item.list) || [];
152
+ if (!list.length)
153
+ return 0;
154
+ return yCellHeight.value / ((parseInt(list[1]) - parseInt(list[0])) / item.spaceGridNumber);
155
+ });
156
+ const event = computed(() => {
157
+ var _a;
158
+ return ((_a = props.data.grid) == null ? void 0 : _a.event) || { selectable: true, evented: true };
159
+ });
160
+ const itemList = computed(() => {
161
+ const { left } = props.data;
162
+ return left.yScaleValue.map((item) => {
163
+ return item.dataList.map((v, dataIndex) => {
164
+ return {
165
+ ...v,
166
+ bigType: item.type,
167
+ titleStyle: item.style,
168
+ unit: item.unit,
169
+ dataIndex
170
+ };
171
+ });
172
+ }).flat();
173
+ });
174
+ const painIndex = computed(() => {
175
+ const { left } = props.data;
176
+ return left.yScaleValue.findIndex((v) => v.type === "pain");
177
+ });
178
+ const painHeight = computed(() => {
179
+ const { grid } = props.data;
180
+ return painIndex.value === -1 ? 0 : yCellHeight.value * grid.subYCell;
181
+ });
182
+ const painOriginY = computed(() => {
183
+ const { left } = props.data;
184
+ let obj = {
185
+ originY: endY.value,
186
+ endY: endY.value
187
+ };
188
+ if (painIndex.value === 0) {
189
+ obj.originY = originYLimit.value;
190
+ obj.endY = originYLimit.value + painHeight.value;
191
+ } else if (painIndex.value === left.yScaleValue.length - 1) {
192
+ obj.originY = endY.value - painHeight.value;
193
+ obj.endY = endY.value;
194
+ }
195
+ return obj;
196
+ });
197
+ const vitalSignsOriginY = computed(() => {
198
+ const { left } = props.data;
199
+ let obj = {
200
+ originY: originY.value,
201
+ endY: endY.value
202
+ };
203
+ if (painIndex.value === 0) {
204
+ obj.originY = originYLimit.value + painHeight.value;
205
+ obj.endY = endY.value;
206
+ } else if (painIndex.value === left.yScaleValue.length - 1) {
207
+ obj.originY = originYLimit.value;
208
+ obj.endY = endY.value - painHeight.value;
209
+ }
210
+ return obj;
211
+ });
212
+ const topList = computed(() => {
213
+ const { top } = props.data;
214
+ let topList2 = [];
215
+ for (let i in top) {
216
+ if (top[i].show) {
217
+ topList2.push({
218
+ ...top[i],
219
+ key: i
220
+ });
221
+ }
222
+ }
223
+ return topList2.sort((a, b) => a.seq - b.seq);
224
+ });
225
+ const propItems = reactive({
226
+ canvasWidth: props.data.width,
227
+ canvasHeight: props.data.height,
228
+ borderStyle: props.data.borderStyle || defaultBorderStyle,
229
+ selectionStyle: props.data.selectionStyle || {},
230
+ dateHeight: dateHeight.value,
231
+ hospitalDaysHeight: hospitalDaysHeight.value,
232
+ operationDaysHeight: operationDaysHeight.value,
233
+ xScalevalueHeight: xScalevalueHeight.value,
234
+ topList: topList.value,
235
+ breathingHeight: breathingHeight.value,
236
+ grid: props.data.grid,
237
+ top: props.data.top,
238
+ left: props.data.left,
239
+ right: props.data.right,
240
+ bottom: props.data.bottom,
241
+ other: props.data.other,
242
+ painIndex: painIndex.value,
243
+ painHeight: painHeight.value,
244
+ painOriginY: painOriginY.value,
245
+ vitalSignsOriginY: vitalSignsOriginY.value,
246
+ gridXNumber: gridXNumber.value,
247
+ gridYNumber: gridYNumber.value,
248
+ iconsWidth: iconsWidth.value,
249
+ originX: originX.value,
250
+ originY: originY.value,
251
+ originYLimit: originYLimit.value,
252
+ endX: endX.value,
253
+ endXLimit: endXLimit.value,
254
+ endY: endY.value,
255
+ xCellWidth: xCellWidth.value,
256
+ yCellHeight: yCellHeight.value,
257
+ xScaleList: xScaleList.value,
258
+ breatheYCell: breatheYCell.value,
259
+ pulseYCell: pulseYCell.value,
260
+ temperatureYCell: temperatureYCell.value,
261
+ painYCell: painYCell.value,
262
+ event: event.value,
263
+ itemList: itemList.value
264
+ });
265
+ const { cumputedX, cumputedY, getXValue, getYValue } = useCumputedPoint(propItems);
266
+ useTop(canvas, propItems);
267
+ const { pointTipProps, pointMenuProps, clickMenu, setPopup, getEqualXTypes } = useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, getYValue, props.addRenderItem);
268
+ useLeft(canvas, propItems, emits, setPopup, pointTipProps, getXValue, getYValue, getEqualXTypes);
269
+ useRight(canvas, propItems);
270
+ useBottom(canvas, propItems);
271
+ useOther(canvas, propItems, cumputedX);
272
+ onMounted(() => {
273
+ canvas.value = new fabric.Canvas(canvasRef.value, {
274
+ width: propItems.canvasWidth,
275
+ height: propItems.canvasHeight,
276
+ backgroundColor: "#fff",
277
+ selection: false,
278
+ containerClass: "c-fabric-chart",
279
+ fireRightClick: true
280
+ });
281
+ useEvent(canvasRef.value);
282
+ const { select: selectFunc } = useCanvasEvent(canvas, propItems, emits);
283
+ select.value = selectFunc;
284
+ });
285
+ onBeforeUnmount(() => {
286
+ canvas.value.clear();
287
+ canvas.value = null;
288
+ });
289
+ expose({
290
+ select,
291
+ canvas
292
+ });
293
+ return (_ctx, _cache) => {
294
+ return openBlock(), createElementBlock(Fragment, null, [
295
+ createElementVNode("canvas", {
296
+ ref_key: "canvasRef",
297
+ ref: canvasRef
298
+ }, null, 512),
299
+ unref(canvas) ? (openBlock(), createBlock(PopupTip, mergeProps({
300
+ key: 0,
301
+ propItems
302
+ }, unref(pointTipProps)), null, 16, ["propItems"])) : createCommentVNode("v-if", true),
303
+ unref(canvas) ? (openBlock(), createBlock(unref(PopupMenu), mergeProps({
304
+ key: 1,
305
+ propItems
306
+ }, unref(pointMenuProps), {
307
+ show: unref(pointMenuProps).show,
308
+ "onUpdate:show": _cache[0] || (_cache[0] = ($event) => unref(pointMenuProps).show = $event),
309
+ onClickMenu: unref(clickMenu)
310
+ }), null, 16, ["propItems", "show", "onClickMenu"])) : createCommentVNode("v-if", true)
311
+ ], 64);
312
+ };
313
+ }
314
+ });
315
+ var script = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "FabricChart.vue"]]);
316
+
317
+ export { script as default };
@@ -1,4 +1,34 @@
1
- import script from './PopupTip.vue_vue_type_script_setup_true_lang.js';
2
- export { default } from './PopupTip.vue_vue_type_script_setup_true_lang.js';
1
+ import { defineComponent, openBlock, createBlock, Teleport, withDirectives, createElementVNode, normalizeStyle, unref, createElementBlock, Fragment, renderList, toDisplayString, vShow } from 'vue';
2
+ import useStyle from './useStyle.js';
3
+ import _export_sfc from '../../../../_virtual/plugin-vue_export-helper.js';
3
4
 
4
- script.__file = "packages/fabric-chart/src/components/PopupTip.vue";
5
+ const _sfc_main = /* @__PURE__ */ defineComponent({
6
+ __name: "PopupTip",
7
+ props: {
8
+ show: { type: Boolean, default: false },
9
+ point: null,
10
+ list: { default: () => [] },
11
+ propItems: null
12
+ },
13
+ setup(__props) {
14
+ const props = __props;
15
+ const pointStyle = useStyle(props);
16
+ return (_ctx, _cache) => {
17
+ return openBlock(), createBlock(Teleport, { to: ".c-fabric-chart" }, [
18
+ withDirectives(createElementVNode("ul", {
19
+ class: "c-fabric-chart-popup-tip",
20
+ style: normalizeStyle(unref(pointStyle))
21
+ }, [
22
+ (openBlock(true), createElementBlock(Fragment, null, renderList(__props.list, (item) => {
23
+ return openBlock(), createElementBlock("li", null, toDisplayString(item), 1);
24
+ }), 256))
25
+ ], 4), [
26
+ [vShow, __props.show]
27
+ ])
28
+ ]);
29
+ };
30
+ }
31
+ });
32
+ var PopupTip = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "PopupTip.vue"]]);
33
+
34
+ export { PopupTip as default };
@@ -1,7 +1,6 @@
1
1
  import { COMPONENT_NAMESPACE } from '../../src/global/variable';
2
2
  import { safeComponentRegister } from '../../src/utils';
3
- import './src/FieldSet.js';
4
- import script from './src/FieldSet.vue_vue_type_script_setup_true_lang.js';
3
+ import script from './src/FieldSet.js';
5
4
 
6
5
  const FieldSet = script;
7
6
  FieldSet.install = function(app) {