cnhis-design-vue 3.1.33-beta.8 → 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.
- package/README.md +123 -123
- package/es/components/big-table/index.d.ts +1 -1
- package/es/components/big-table/src/BigTable.vue.d.ts +1 -1
- package/es/components/big-table/src/BigTable.vue2.js +7 -9
- package/es/components/big-table/src/components/edit-form/edit-input.js +1 -1
- package/es/components/big-table/src/components/edit-form/edit-select.js +1 -1
- package/es/components/big-table/src/components/edit-form/edit-time.js +5 -3
- package/es/components/big-table/src/components/edit-form/useCommon.d.ts +2 -1
- package/es/components/big-table/src/components/edit-form/useCommon.js +7 -3
- package/es/components/big-table/src/hooks/useFormat.js +1 -1
- package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
- package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +1 -0
- package/es/components/bpmn-workflow/types/ModelingModule.d.ts +1 -0
- package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +1 -0
- package/es/components/button-print/index.d.ts +13 -0
- package/es/components/button-print/src/ButtonPrint.vue.d.ts +13 -0
- package/es/components/button-print/src/ButtonPrint.vue2.js +6 -1
- package/es/components/button-print/src/utils/print.d.ts +2 -2
- package/es/components/button-print/src/utils/print.js +7 -4
- package/es/components/fabric-chart/index.d.ts +133 -2
- package/es/components/fabric-chart/src/BirthProcessChart.vue.d.ts +132 -0
- package/es/components/fabric-chart/src/BirthProcessChart.vue.js +62 -8
- package/es/components/fabric-chart/src/FabricChart.vue.d.ts +133 -2
- package/es/components/fabric-chart/src/FabricChart.vue.js +2 -2
- package/es/components/fabric-chart/src/TemperatureChart.vue.d.ts +1 -2
- package/es/components/fabric-chart/src/TemperatureChart.vue.js +17 -9
- package/es/components/fabric-chart/src/components/PopupMenu.js +2 -2
- package/es/components/fabric-chart/src/components/PopupTip.vue.d.ts +3 -2
- package/es/components/fabric-chart/src/hooks/index.d.ts +1 -0
- package/es/components/fabric-chart/src/hooks/index.js +1 -0
- package/es/components/fabric-chart/src/hooks/useBirthProcess.d.ts +23 -1
- package/es/components/fabric-chart/src/hooks/useBirthProcess.js +305 -9
- package/es/components/fabric-chart/src/hooks/useCenter.d.ts +0 -2
- package/es/components/fabric-chart/src/hooks/useCenter.js +27 -45
- package/es/components/fabric-chart/src/hooks/useCommon.d.ts +8 -0
- package/es/components/fabric-chart/src/hooks/useCommon.js +32 -0
- package/es/components/fabric-chart/src/hooks/useCumputedPoint.d.ts +5 -2
- package/es/components/fabric-chart/src/hooks/useCumputedPoint.js +27 -10
- package/es/components/fabric-chart/src/hooks/useLeft.d.ts +1 -1
- package/es/components/fabric-chart/src/hooks/useLeft.js +12 -7
- package/es/components/fabric-chart/src/interface.d.ts +1 -0
- package/es/components/fabric-chart/src/utils/index.d.ts +6823 -0
- package/es/components/fabric-chart/src/utils/utils.d.ts +11 -0
- package/es/components/fabric-chart/src/utils/utils.js +27 -0
- package/es/components/iho-table/index.d.ts +4 -3
- package/es/components/iho-table/src/IhoTable.vue.d.ts +4 -3
- package/es/components/iho-table/src/IhoTable.vue.js +6 -4
- package/es/components/iho-table/src/components/IhoTableColumn.js +1 -1
- package/es/components/iho-table/src/constants/index.d.ts +3 -3
- package/es/components/iho-table/src/constants/index.js +0 -1
- package/es/components/iho-table/src/hooks/tapHooks/index.d.ts +5 -1
- package/es/components/iho-table/src/hooks/tapHooks/index.js +10 -9
- package/es/components/iho-table/src/hooks/tapHooks/useDataHooks.d.ts +2 -2
- package/es/components/iho-table/src/hooks/tapHooks/useEventHooks.d.ts +119 -119
- package/es/components/iho-table/src/hooks/tapHooks/useExposeHooks.d.ts +5 -3
- package/es/components/iho-table/src/hooks/tapHooks/useExposeHooks.js +1 -1
- package/es/components/iho-table/src/hooks/tapHooks/useFieldHooks.d.ts +16 -4
- package/es/components/iho-table/src/hooks/tapHooks/useFieldHooks.js +9 -4
- package/es/components/iho-table/src/hooks/useColumnConfigAdaptor.js +5 -1
- package/es/components/iho-table/src/plugins/defaultConfigPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/filterPlugin/filter.vue.d.ts +51 -24
- package/es/components/iho-table/src/plugins/filterPlugin/filter.vue.js +37 -51
- package/es/components/iho-table/src/plugins/filterPlugin/index.js +181 -20
- package/es/components/iho-table/src/plugins/filterPlugin/types.d.ts +2 -6
- package/es/components/iho-table/src/plugins/filterPlugin/types.js +0 -7
- package/es/components/iho-table/src/plugins/index.js +1 -1
- package/es/components/iho-table/src/plugins/keyboardEventPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index.js +7 -4
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/editSeparate.vue.js +3 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/index.js +3 -3
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/checkRendererPlugin.js +3 -5
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/seqRendererPlugin.js +5 -2
- package/es/components/iho-table/src/plugins/rowGroupSettingPlugin/rowGroupUtils.js +7 -4
- package/es/components/iho-table/src/plugins/virtualTreePlugin/index.js +1 -1
- package/es/components/iho-table/src/types/index.d.ts +10 -12
- package/es/components/iho-table/src/types/pluginType.d.ts +28 -12
- package/es/components/iho-table/style/index.css +1 -1
- package/es/components/index.css +1 -1
- package/es/components/info-header/src/InfoHeader.vue.js +1 -1
- package/es/components/info-header/style/index.css +1 -1
- package/es/components/keyboard/index.d.ts +62 -1
- package/es/components/keyboard/src/Keyboard.vue.d.ts +62 -1
- package/es/components/keyboard/src/Keyboard.vue.js +4 -1
- package/es/components/keyboard/src/components/NumberPanel.vue.d.ts +67 -5
- package/es/components/keyboard/src/components/NumberPanel.vue.js +48 -26
- package/es/components/keyboard/style/index.css +1 -1
- package/es/shared/assets/img/failure.js +1 -1
- package/es/shared/assets/img/failure.png.js +1 -1
- package/es/shared/assets/img/icon-asc.js +1 -1
- package/es/shared/assets/img/icon-desc.js +1 -1
- package/es/shared/assets/img/no-permission.js +1 -1
- package/es/shared/assets/img/no-permission.png.js +1 -1
- package/es/shared/assets/img/nodata.js +1 -1
- package/es/shared/assets/img/nodata.png.js +1 -1
- package/es/shared/assets/img/notfound.js +1 -1
- package/es/shared/assets/img/notfound.png.js +1 -1
- package/es/shared/assets/img/qr.js +1 -1
- package/es/shared/assets/img/qr.png.js +1 -1
- package/es/shared/assets/img/success.js +1 -1
- package/es/shared/assets/img/success.png.js +1 -1
- package/es/shared/assets/img/video.js +1 -1
- package/es/shared/assets/img/video.png.js +1 -1
- package/es/shared/assets/img/video_default_cover.js +1 -1
- package/es/shared/assets/img/video_default_cover.png.js +1 -1
- package/es/shared/assets/img/video_hover.js +1 -1
- package/es/shared/assets/img/video_play_hover.js +1 -1
- package/es/shared/assets/img/xb_big.js +1 -1
- package/es/shared/assets/img/xb_big.png.js +1 -1
- package/es/shared/assets/img/xb_small.js +1 -1
- package/es/shared/assets/img/xb_small.png.js +1 -1
- package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +86 -0
- package/es/shared/utils/tapable/index.d.ts +139 -0
- package/package.json +2 -2
- package/es/components/fabric-chart/src/constants/index.d.ts +0 -4
- package/es/components/fabric-chart/src/constants/index.js +0 -4
|
@@ -11,11 +11,7 @@ function useCumputedPoint(propItems) {
|
|
|
11
11
|
const index = xScaleList.findIndex((v) => v.end >= time);
|
|
12
12
|
if (index > -1) {
|
|
13
13
|
const item = xScaleList[index];
|
|
14
|
-
|
|
15
|
-
return item.left;
|
|
16
|
-
} else {
|
|
17
|
-
return item.center;
|
|
18
|
-
}
|
|
14
|
+
return item.center;
|
|
19
15
|
}
|
|
20
16
|
}
|
|
21
17
|
function cumputedY(type, scaleValueList, value) {
|
|
@@ -57,15 +53,36 @@ function useCumputedPoint(propItems) {
|
|
|
57
53
|
};
|
|
58
54
|
}
|
|
59
55
|
function useBirthProcessCumputedPoint(propItems) {
|
|
60
|
-
const { xAxis, originX, originY, xCellWidth } = propItems;
|
|
56
|
+
const { xAxis, originX, originY, xCellWidth, endY, timeXCell, startTime, scaleValues } = propItems;
|
|
61
57
|
function cumputedX(value) {
|
|
62
58
|
const time = new Date(value).getTime();
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
59
|
+
return (time - startTime) / timeXCell + originX;
|
|
60
|
+
}
|
|
61
|
+
function cumputedY(key, range, value) {
|
|
62
|
+
const [minValue] = range;
|
|
63
|
+
return endY - (+value - minValue) / propItems[`${key}YCell`];
|
|
64
|
+
}
|
|
65
|
+
function getXValue(pointX) {
|
|
66
|
+
const time = (pointX - originX) * timeXCell + startTime;
|
|
67
|
+
const d = new Date(time);
|
|
68
|
+
const month = `00${d.getMonth() + 1}`.slice(-2);
|
|
69
|
+
const day = `00${d.getDate()}`.slice(-2);
|
|
70
|
+
const hours = `00${d.getHours()}`.slice(-2);
|
|
71
|
+
const minutes = `00${d.getMinutes()}`.slice(-2);
|
|
72
|
+
const date = `${d.getFullYear()}-${month}-${day} ${hours}:${minutes}`;
|
|
73
|
+
return date;
|
|
74
|
+
}
|
|
75
|
+
function getYValue(key, pointY) {
|
|
76
|
+
const item = scaleValues.find((item2) => key === item2.key);
|
|
77
|
+
const [minValue] = (item == null ? void 0 : item.range) || [0];
|
|
78
|
+
const y = (endY - pointY) * propItems[`${key}YCell`] + minValue;
|
|
79
|
+
return Math.floor(y * 100) / 100;
|
|
66
80
|
}
|
|
67
81
|
return {
|
|
68
|
-
cumputedX
|
|
82
|
+
cumputedX,
|
|
83
|
+
cumputedY,
|
|
84
|
+
getXValue,
|
|
85
|
+
getYValue
|
|
69
86
|
};
|
|
70
87
|
}
|
|
71
88
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
2
|
import { fabric } from '../utils';
|
|
3
3
|
import { IPropItems } from '../interface';
|
|
4
|
-
export declare function useLeft(canvas: Ref<fabric.Canvas>, propItems: IPropItems, emits: any, setPopup: Function, pointTipProps: any,
|
|
4
|
+
export declare function useLeft(canvas: Ref<fabric.Canvas>, propItems: IPropItems, emits: any, setPopup: Function, pointTipProps: any, cumputedX: Function, cumputedY: Function, getXValue: Function, getYValue: Function, isAddPoint: Function, updateData: Function): {
|
|
5
5
|
drawScaleValue: (yScaleValueList: any[]) => void;
|
|
6
6
|
};
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import { onMounted, nextTick } from 'vue';
|
|
2
2
|
import { fabric } from '../utils/index.js';
|
|
3
3
|
import { defaultBorderStyle, defaultTextStyle, defaultStyle, defaultRectStyle, drawPoint, drawTextGroup } from './useDraw.js';
|
|
4
|
+
import useCommmon from './useCommon.js';
|
|
4
5
|
|
|
5
|
-
function useLeft(canvas, propItems, emits, setPopup, pointTipProps, getXValue, getYValue,
|
|
6
|
+
function useLeft(canvas, propItems, emits, setPopup, pointTipProps, cumputedX, cumputedY, getXValue, getYValue, isAddPoint, updateData) {
|
|
7
|
+
const { getEqualXTypes, repeatTip } = useCommmon(canvas);
|
|
6
8
|
const {
|
|
7
9
|
originY,
|
|
8
10
|
endY,
|
|
9
11
|
originX,
|
|
10
12
|
endX,
|
|
13
|
+
xCellWidth,
|
|
11
14
|
yCellHeight,
|
|
12
15
|
left,
|
|
13
16
|
vitalSignsOriginY,
|
|
@@ -19,8 +22,7 @@ function useLeft(canvas, propItems, emits, setPopup, pointTipProps, getXValue, g
|
|
|
19
22
|
right,
|
|
20
23
|
canvasWidth,
|
|
21
24
|
canvasHeight,
|
|
22
|
-
getRightInfo
|
|
23
|
-
hospitalizationDate
|
|
25
|
+
getRightInfo
|
|
24
26
|
} = propItems;
|
|
25
27
|
const mainScaleWidth = 9;
|
|
26
28
|
const subScaleWidth = 5;
|
|
@@ -230,7 +232,8 @@ function useLeft(canvas, propItems, emits, setPopup, pointTipProps, getXValue, g
|
|
|
230
232
|
unit: item.unit,
|
|
231
233
|
type: item.bigType,
|
|
232
234
|
dataIndex: item.dataIndex,
|
|
233
|
-
key: item.key
|
|
235
|
+
key: item.key,
|
|
236
|
+
isMenu: true
|
|
234
237
|
},
|
|
235
238
|
originLeft: leftX,
|
|
236
239
|
originTop: topY - (text.height || 30) / 2 - 1,
|
|
@@ -270,7 +273,11 @@ function useLeft(canvas, propItems, emits, setPopup, pointTipProps, getXValue, g
|
|
|
270
273
|
pointTipProps.show = false;
|
|
271
274
|
if (event.e.button === 0) {
|
|
272
275
|
if (isLimit(point)) {
|
|
273
|
-
|
|
276
|
+
const isRepeat = getEqualXTypes(point.left, "type", xCellWidth).includes(point.origin.type);
|
|
277
|
+
const isLimitAdd = isAddPoint(point.left);
|
|
278
|
+
if (!isLimitAdd || isRepeat) {
|
|
279
|
+
isRepeat && isLimitAdd && repeatTip();
|
|
280
|
+
} else {
|
|
274
281
|
const params = {
|
|
275
282
|
data: {
|
|
276
283
|
time: getXValue(point.left),
|
|
@@ -281,8 +288,6 @@ function useLeft(canvas, propItems, emits, setPopup, pointTipProps, getXValue, g
|
|
|
281
288
|
};
|
|
282
289
|
emits("add", params);
|
|
283
290
|
updateData(params);
|
|
284
|
-
} else {
|
|
285
|
-
console.log("\u5F53\u524D\u65F6\u95F4\u6BB5\u5185\u65E0\u53EF\u65B0\u589E\u8282\u70B9");
|
|
286
291
|
}
|
|
287
292
|
}
|
|
288
293
|
}
|