cnhis-design-vue 3.1.14-beta.12 → 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.
- package/es/_virtual/plugin-vue_export-helper.js +9 -0
- package/es/packages/big-table/index.js +1 -2
- package/es/packages/big-table/src/BigTable.js +5 -3
- package/es/packages/big-table/src/BigTable.vue_vue_type_script_setup_true_lang.js +8 -11
- package/es/packages/big-table/src/components/NoData.js +73 -3
- package/es/packages/big-table/src/components/edit-form/edit-separate.js +89 -3
- package/es/packages/big-table/src/components/input-button.js +34 -3
- package/es/packages/big-table/src/components/separate.js +29 -3
- package/es/packages/big-table/src/hooks/useEdit.js +2 -3
- package/es/packages/bpmn-workflow/index.js +1 -2
- package/es/packages/bpmn-workflow/src/BpmnWorkflow.js +253 -3
- package/es/packages/button-print/index.js +1 -2
- package/es/packages/button-print/src/ButtonPrint.js +5 -3
- package/es/packages/button-print/src/ButtonPrint.vue_vue_type_script_setup_true_lang.js +4 -5
- package/es/packages/button-print/src/components/IdentityVerification.js +129 -3
- package/es/packages/chunk-upload/index.js +1 -1
- package/es/packages/chunk-upload/src/chunk-upload-new.js +474 -3
- package/es/packages/chunk-upload/src/vod-chunk-upload/index.js +2 -3
- package/es/packages/chunk-upload/src/vod-chunk-upload/vod-chunk-upload.js +328 -3
- package/es/packages/chunk-upload/src/vod-upload-modal.js +3 -4
- package/es/packages/drag-layout/index.js +1 -2
- package/es/packages/drag-layout/src/DragFormLeftItem.js +123 -3
- package/es/packages/drag-layout/src/DragFormRightItem.js +268 -3
- package/es/packages/drag-layout/src/DragLayout.js +658 -3
- package/es/packages/fabric-chart/index.js +1 -2
- package/es/packages/fabric-chart/src/FabricChart.js +316 -3
- package/es/packages/fabric-chart/src/components/PopupTip.js +33 -3
- package/es/packages/field-set/index.d.ts +2509 -5166
- package/es/packages/field-set/index.js +1 -2
- package/es/packages/field-set/src/FieldSet.js +346 -3
- package/es/packages/field-set/src/FieldSet.vue.d.ts +2492 -5169
- package/es/packages/form-render/index.js +2 -3
- package/es/packages/form-render/src/FormRender.js +188 -3
- package/es/packages/form-render/src/components/renderer/combination.js +2 -3
- package/es/packages/form-table/index.js +1 -2
- package/es/packages/form-table/src/FormTable.js +475 -3
- package/es/packages/form-table/src/components/index.js +28 -42
- package/es/packages/form-table/src/components/table-age.js +232 -3
- package/es/packages/form-table/src/components/table-date-picker.js +176 -3
- package/es/packages/form-table/src/components/table-digital.js +138 -3
- package/es/packages/form-table/src/components/table-input-password.js +138 -3
- package/es/packages/form-table/src/components/table-input.js +124 -3
- package/es/packages/form-table/src/components/table-month-picker.js +100 -3
- package/es/packages/form-table/src/components/table-search-more.js +5 -3
- package/es/packages/form-table/src/components/table-search-more.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/packages/form-table/src/components/table-search.js +5 -3
- package/es/packages/form-table/src/components/table-search.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/packages/form-table/src/components/table-select-multiple.js +161 -3
- package/es/packages/form-table/src/components/table-select.js +156 -3
- package/es/packages/form-table/src/components/table-textarea.js +154 -3
- package/es/packages/form-table/src/components/table-time-picker.js +146 -3
- package/es/packages/form-table/src/components/table-tree-select.js +282 -3
- package/es/packages/form-table/src/components/text-over-tooltip.js +63 -3
- package/es/packages/info-header/index.js +1 -2
- package/es/packages/info-header/src/HiddenContent.js +65 -3
- package/es/packages/info-header/src/InfoEllipsis.js +42 -3
- package/es/packages/info-header/src/InfoHeader.js +229 -3
- package/es/packages/map/index.js +1 -2
- package/es/packages/map/src/Map.js +337 -3
- package/es/packages/scale-view/index.js +1 -2
- package/es/packages/scale-view/src/ScaleView.js +418 -3
- package/es/packages/scale-view/src/components/AnswerParse.js +79 -3
- package/es/packages/scale-view/src/components/EvaluateCountdown.js +108 -3
- package/es/packages/scale-view/src/components/EvaluatePage.js +140 -3
- package/es/packages/scale-view/src/components/LoadingCom.js +17 -5
- package/es/packages/scale-view/src/components/NoData.js +73 -3
- package/es/packages/scale-view/src/components/formitem/r-cascader.js +3 -3
- package/es/packages/scale-view/src/components/formitem/r-select.js +3 -3
- package/es/packages/scale-view/src/components/formitem/text-over-tooltip/TextOverTooltip.js +78 -3
- package/es/packages/select-label/index.js +3 -5
- package/es/packages/select-label/src/LabelFormContent.js +441 -3
- package/es/packages/select-label/src/SelectLabel.js +5 -3
- package/es/packages/select-label/src/SelectLabel.vue_vue_type_script_setup_true_lang.js +5 -21
- package/es/packages/select-label/src/components/label-classify.js +128 -3
- package/es/packages/select-person/index.js +1 -2
- package/es/packages/select-person/src/SearchTree.js +5 -3
- package/es/packages/select-person/src/SearchTree.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/packages/select-person/src/SelectPerson.js +5 -3
- package/es/packages/select-person/src/SelectPerson.vue_vue_type_script_setup_true_lang.js +4 -5
- package/es/packages/shortcut-provider/index.js +1 -2
- package/es/packages/shortcut-provider/src/ShortcutProvider.js +33 -3
- package/es/packages/shortcut-setter/index.js +1 -2
- package/es/packages/shortcut-setter/src/ShortcutSetter.js +38 -3
- package/es/packages/shortcut-setter/src/ShortcutSetterItem.js +126 -3
- package/es/packages/steps-wheel/index.js +1 -2
- package/es/packages/steps-wheel/src/StepsWheel.js +264 -3
- package/es/packages/time-line/index.js +1 -2
- package/es/packages/time-line/src/TimeLine.js +69 -3
- package/es/src/components/SelectPage/SelectPage.js +62 -3
- package/es/src/components/SelectPage/index.js +2 -3
- package/es/src/components/SvgIcon/SvgIcon.js +35 -3
- package/es/src/components/SvgIcon/index.js +2 -3
- package/es/src/components/TextOverTooltip/TextOverTooltip.js +75 -3
- package/es/src/components/TextOverTooltip/index.js +2 -3
- package/es/src/components/player-vod/index.js +13 -3
- package/global.d.ts +8 -8
- package/package.json +1 -1
- package/es/packages/big-table/src/components/NoData.vue_vue_type_script_setup_true_lang.js +0 -72
- package/es/packages/big-table/src/components/edit-form/edit-separate.vue_vue_type_script_setup_true_lang.js +0 -89
- package/es/packages/big-table/src/components/input-button.vue_vue_type_script_setup_true_lang.js +0 -33
- package/es/packages/big-table/src/components/separate.vue_vue_type_script_setup_true_lang.js +0 -28
- package/es/packages/bpmn-workflow/src/BpmnWorkflow.vue_vue_type_script_setup_true_lang.js +0 -252
- package/es/packages/button-print/src/components/IdentityVerification.vue_vue_type_script_setup_true_lang.js +0 -128
- package/es/packages/chunk-upload/src/chunk-upload-new.vue_vue_type_script_setup_true_lang.js +0 -473
- package/es/packages/chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue_vue_type_script_setup_true_lang.js +0 -327
- package/es/packages/drag-layout/src/DragFormLeftItem.vue_vue_type_script_setup_true_lang.js +0 -122
- package/es/packages/drag-layout/src/DragFormRightItem.vue_vue_type_script_setup_true_lang.js +0 -267
- package/es/packages/drag-layout/src/DragLayout.vue_vue_type_script_setup_true_lang.js +0 -659
- package/es/packages/fabric-chart/src/FabricChart.vue_vue_type_script_setup_true_lang.js +0 -316
- package/es/packages/fabric-chart/src/components/PopupTip.vue_vue_type_script_setup_true_lang.js +0 -32
- package/es/packages/field-set/src/FieldSet.vue_vue_type_script_setup_true_lang.js +0 -22
- package/es/packages/field-set/src/NewFieldSet.js +0 -4
- package/es/packages/field-set/src/NewFieldSet.vue.d.ts +0 -2607
- package/es/packages/field-set/src/NewFieldSet.vue_vue_type_script_setup_true_lang.js +0 -299
- package/es/packages/field-set/src/OldFieldSet.js +0 -4
- package/es/packages/field-set/src/OldFieldSet.vue.d.ts +0 -2610
- package/es/packages/field-set/src/OldFieldSet.vue_vue_type_script_setup_true_lang.js +0 -330
- package/es/packages/form-render/src/FormRender.vue_vue_type_script_setup_true_lang.js +0 -187
- package/es/packages/form-table/src/FormTable.vue_vue_type_script_setup_true_lang.js +0 -474
- package/es/packages/form-table/src/components/table-age.vue_vue_type_script_setup_true_lang.js +0 -232
- package/es/packages/form-table/src/components/table-date-picker.vue_vue_type_script_setup_true_lang.js +0 -175
- package/es/packages/form-table/src/components/table-digital.vue_vue_type_script_setup_true_lang.js +0 -138
- package/es/packages/form-table/src/components/table-input-password.vue_vue_type_script_setup_true_lang.js +0 -138
- package/es/packages/form-table/src/components/table-input.vue_vue_type_script_setup_true_lang.js +0 -124
- package/es/packages/form-table/src/components/table-month-picker.vue_vue_type_script_setup_true_lang.js +0 -99
- package/es/packages/form-table/src/components/table-select-multiple.vue_vue_type_script_setup_true_lang.js +0 -160
- package/es/packages/form-table/src/components/table-select.vue_vue_type_script_setup_true_lang.js +0 -155
- package/es/packages/form-table/src/components/table-textarea.vue_vue_type_script_setup_true_lang.js +0 -153
- package/es/packages/form-table/src/components/table-time-picker.vue_vue_type_script_setup_true_lang.js +0 -145
- package/es/packages/form-table/src/components/table-tree-select.vue_vue_type_script_setup_true_lang.js +0 -281
- package/es/packages/form-table/src/components/text-over-tooltip.vue_vue_type_script_setup_true_lang.js +0 -62
- package/es/packages/info-header/src/HiddenContent.vue_vue_type_script_setup_true_lang.js +0 -64
- package/es/packages/info-header/src/InfoEllipsis.vue_vue_type_script_setup_true_lang.js +0 -41
- package/es/packages/info-header/src/InfoHeader.vue_vue_type_script_setup_true_lang.js +0 -230
- package/es/packages/map/src/Map.vue_vue_type_script_setup_true_lang.js +0 -336
- package/es/packages/scale-view/src/ScaleView.vue_vue_type_script_setup_true_lang.js +0 -422
- package/es/packages/scale-view/src/components/AnswerParse.vue_vue_type_script_setup_true_lang.js +0 -78
- package/es/packages/scale-view/src/components/EvaluateCountdown.vue_vue_type_script_setup_true_lang.js +0 -107
- package/es/packages/scale-view/src/components/EvaluatePage.vue_vue_type_script_setup_true_lang.js +0 -139
- package/es/packages/scale-view/src/components/LoadingCom.vue_vue_type_template_id_413329b0_lang.js +0 -16
- package/es/packages/scale-view/src/components/NoData.vue_vue_type_script_setup_true_lang.js +0 -72
- package/es/packages/scale-view/src/components/formitem/text-over-tooltip/TextOverTooltip.vue_vue_type_script_setup_true_lang.js +0 -77
- package/es/packages/select-label/src/LabelFormContent.vue_vue_type_script_setup_true_lang.js +0 -441
- package/es/packages/select-label/src/components/label-classify.vue_vue_type_script_setup_true_lang.js +0 -127
- package/es/packages/shortcut-provider/src/ShortcutProvider.vue_vue_type_script_setup_true_lang.js +0 -32
- package/es/packages/shortcut-setter/src/ShortcutSetter.vue_vue_type_script_setup_true_lang.js +0 -38
- package/es/packages/shortcut-setter/src/ShortcutSetterItem.vue_vue_type_script_setup_true_lang.js +0 -125
- package/es/packages/steps-wheel/src/StepsWheel.vue_vue_type_script_setup_true_lang.js +0 -263
- package/es/packages/time-line/src/TimeLine.vue_vue_type_script_setup_true_lang.js +0 -68
- package/es/src/components/SelectPage/SelectPage.vue_vue_type_script_setup_true_lang.js +0 -61
- package/es/src/components/SvgIcon/SvgIcon.vue_vue_type_script_setup_true_lang.js +0 -34
- package/es/src/components/TextOverTooltip/TextOverTooltip.vue_vue_type_script_setup_true_lang.js +0 -74
- package/es/src/components/player-vod/index.vue_vue_type_script_setup_true_lang.js +0 -12
|
@@ -1,316 +0,0 @@
|
|
|
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 './components/PopupTip.js';
|
|
4
|
-
import PopupMenu from './components/PopupMenu.js';
|
|
5
|
-
import { defaultBorderStyle } from './hooks/useDraw.js';
|
|
6
|
-
import { useTop } from './hooks/useTop.js';
|
|
7
|
-
import { useCenter } from './hooks/useCenter.js';
|
|
8
|
-
import { useLeft } from './hooks/useLeft.js';
|
|
9
|
-
import { useRight } from './hooks/useRight.js';
|
|
10
|
-
import { useBottom } from './hooks/useBottom.js';
|
|
11
|
-
import { useOther } from './hooks/useOther.js';
|
|
12
|
-
import { useEvent, useCanvasEvent } from './hooks/useEvent.js';
|
|
13
|
-
import script$1 from './components/PopupTip.vue_vue_type_script_setup_true_lang.js';
|
|
14
|
-
import { useCumputedPoint } from './hooks/useCumputedPoint.js';
|
|
15
|
-
|
|
16
|
-
var script = /* @__PURE__ */ defineComponent({
|
|
17
|
-
__name: "FabricChart",
|
|
18
|
-
props: {
|
|
19
|
-
data: { type: null, required: true },
|
|
20
|
-
addRenderItem: { type: Function, required: false }
|
|
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(script$1, 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
|
-
|
|
316
|
-
export { script as default };
|
package/es/packages/fabric-chart/src/components/PopupTip.vue_vue_type_script_setup_true_lang.js
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { defineComponent, openBlock, createBlock, Teleport, withDirectives, createElementVNode, normalizeStyle, unref, createElementBlock, Fragment, renderList, toDisplayString, vShow } from 'vue';
|
|
2
|
-
import useStyle from './useStyle.js';
|
|
3
|
-
|
|
4
|
-
var script = /* @__PURE__ */ defineComponent({
|
|
5
|
-
__name: "PopupTip",
|
|
6
|
-
props: {
|
|
7
|
-
show: { type: Boolean, required: true, default: false },
|
|
8
|
-
point: { type: null, required: true },
|
|
9
|
-
list: { type: Array, required: false, default: () => [] },
|
|
10
|
-
propItems: { type: null, required: true }
|
|
11
|
-
},
|
|
12
|
-
setup(__props) {
|
|
13
|
-
const props = __props;
|
|
14
|
-
const pointStyle = useStyle(props);
|
|
15
|
-
return (_ctx, _cache) => {
|
|
16
|
-
return openBlock(), createBlock(Teleport, { to: ".c-fabric-chart" }, [
|
|
17
|
-
withDirectives(createElementVNode("ul", {
|
|
18
|
-
class: "c-fabric-chart-popup-tip",
|
|
19
|
-
style: normalizeStyle(unref(pointStyle))
|
|
20
|
-
}, [
|
|
21
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.list, (item) => {
|
|
22
|
-
return openBlock(), createElementBlock("li", null, toDisplayString(item), 1);
|
|
23
|
-
}), 256))
|
|
24
|
-
], 4), [
|
|
25
|
-
[vShow, __props.show]
|
|
26
|
-
])
|
|
27
|
-
]);
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
|
|
32
|
-
export { script as default };
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { defineComponent, openBlock, createElementBlock, Fragment, createCommentVNode, createBlock, normalizeProps, mergeProps } from 'vue';
|
|
2
|
-
import './OldFieldSet.js';
|
|
3
|
-
import './NewFieldSet.js';
|
|
4
|
-
import script$1 from './OldFieldSet.vue_vue_type_script_setup_true_lang.js';
|
|
5
|
-
import script$2 from './NewFieldSet.vue_vue_type_script_setup_true_lang.js';
|
|
6
|
-
|
|
7
|
-
var script = /* @__PURE__ */ defineComponent({
|
|
8
|
-
__name: "FieldSet",
|
|
9
|
-
props: {
|
|
10
|
-
type: { type: String, required: false, default: "old" }
|
|
11
|
-
},
|
|
12
|
-
setup(__props) {
|
|
13
|
-
return (_ctx, _cache) => {
|
|
14
|
-
return openBlock(), createElementBlock(Fragment, null, [
|
|
15
|
-
createCommentVNode(' <component :is="currentComp"></component> '),
|
|
16
|
-
__props.type == "old" ? (openBlock(), createBlock(script$1, normalizeProps(mergeProps({ key: 0 }, _ctx.$attrs)), null, 16)) : (openBlock(), createBlock(script$2, normalizeProps(mergeProps({ key: 1 }, _ctx.$attrs)), null, 16))
|
|
17
|
-
], 2112);
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
});
|
|
21
|
-
|
|
22
|
-
export { script as default };
|