cnhis-design-vue 3.1.22-beta.1 → 3.1.22-beta.11
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 +0 -8
- package/es/components/big-table/index2.js +0 -2
- package/es/components/big-table/src/BigTable.vue.d.ts +0 -8
- package/es/components/big-table/src/BigTable.vue_vue_type_script_setup_true_lang.js +22 -30
- package/es/components/big-table/src/components/edit-form/edit-date.js +81 -10
- package/es/components/big-table/src/components/edit-form/edit-input.js +1 -0
- package/es/components/big-table/src/components/edit-form/useCommon.d.ts +4 -0
- package/es/components/big-table/src/hooks/useEdit2.js +2 -2
- package/es/components/big-table/style/index.css +1 -1
- package/es/components/{form-render/src/components/index.d.ts → 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/fabric-chart/index.d.ts +1 -0
- package/es/components/fabric-chart/src/FabricChart.js +3 -2
- package/es/components/fabric-chart/src/FabricChart.vue.d.ts +1 -0
- package/es/components/fabric-chart/src/hooks/useCenter.d.ts +1 -0
- package/es/components/fabric-chart/src/hooks/useCenter2.js +15 -3
- package/es/components/fabric-chart/src/hooks/useLeft.d.ts +1 -1
- package/es/components/fabric-chart/src/hooks/useLeft2.js +7 -5
- package/es/components/fabric-chart/src/interface.d.ts +2 -0
- package/es/components/fabric-chart/src/utils/index.d.ts +6823 -0
- package/es/components/form-render/src/components/renderer/cascader.js +10 -7
- package/es/components/form-render/src/components/renderer/combination.d.ts +7 -0
- package/es/components/form-render/src/components/renderer/combination.js +4 -1
- package/es/components/form-render/src/components/renderer/date.js +11 -4
- package/es/components/form-render/src/components/renderer/input.js +2 -2
- package/es/components/form-render/src/components/renderer/inputNumber.js +2 -2
- package/es/components/form-render/src/components/renderer/search.js +3 -3
- package/es/components/form-render/src/components/renderer/select.js +3 -3
- package/es/components/form-render/src/components/renderer/textarea.js +2 -2
- package/es/components/form-render/src/hooks/useCommonInjection2.js +6 -2
- package/es/components/form-render/src/utils/schema.d.ts +4 -1
- package/es/components/form-render/src/utils/schema.js +1 -1
- package/es/components/form-render/src/utils/schema2.js +9 -2
- package/es/components/grid/index2.js +0 -2
- package/es/components/iho-table/index.d.ts +4248 -337
- package/es/components/iho-table/index.js +2 -2
- package/es/components/iho-table/index2.js +9 -4
- package/es/components/iho-table/src/IhoTable.js +39 -13
- package/es/components/iho-table/src/IhoTable.vue.d.ts +4236 -326
- package/es/components/iho-table/src/components/IhoTableColumn.d.ts +2 -2
- package/es/components/iho-table/src/components/IhoTableColumn.js +25 -5
- package/es/components/iho-table/src/constants/index.d.ts +8 -1
- package/es/components/iho-table/src/constants/index.js +1 -1
- package/es/components/iho-table/src/constants/index2.js +79 -1
- package/es/components/iho-table/src/hooks/index.js +1 -1
- package/es/components/iho-table/src/hooks/tapHooks/index.d.ts +7 -0
- package/es/components/iho-table/src/hooks/tapHooks/index.js +1 -1
- package/es/components/iho-table/src/hooks/tapHooks/index2.js +92 -21
- package/es/components/iho-table/src/hooks/tapHooks/useConfigHooks.d.ts +14 -0
- package/es/components/iho-table/src/hooks/tapHooks/useConfigHooks2.js +39 -1
- package/es/components/iho-table/src/hooks/tapHooks/useDataHooks.d.ts +14 -0
- package/es/components/iho-table/src/hooks/tapHooks/useDataHooks.js +1 -0
- package/es/components/iho-table/src/hooks/tapHooks/useDataHooks2.js +26 -0
- package/es/components/iho-table/src/hooks/tapHooks/useEventHooks.d.ts +61 -60
- package/es/components/iho-table/src/hooks/tapHooks/useEventHooks2.js +62 -60
- package/es/components/iho-table/src/hooks/tapHooks/useFieldHooks.d.ts +4 -1
- package/es/components/iho-table/src/hooks/tapHooks/useFieldHooks2.js +4 -1
- package/es/components/iho-table/src/hooks/useTablePlugin.d.ts +2 -2
- package/es/components/iho-table/src/hooks/useTablePlugin2.js +2 -3
- package/es/components/iho-table/src/plugins/defaultConfigPlugin/index2.js +3 -2
- package/es/components/iho-table/src/plugins/index.d.ts +1 -0
- package/es/components/iho-table/src/plugins/index.js +8 -5
- package/es/components/iho-table/src/plugins/index2.js +8 -5
- package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index2.js +10 -4
- package/es/components/iho-table/src/plugins/rendererPlugins/index.d.ts +2 -5
- package/es/components/iho-table/src/plugins/rendererPlugins/index.js +7 -5
- package/es/components/iho-table/src/plugins/rendererPlugins/inputs/index.d.ts +1 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/inputs/index.js +1 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/inputs/inputRendererPlugins.d.ts +1 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/inputs/inputRendererPlugins.js +49 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/{checkRendererPlugin.d.ts → widgets/checkRendererPlugin.d.ts} +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/{checkRendererPlugin.js → widgets/checkRendererPlugin.js} +2 -2
- package/es/components/iho-table/src/plugins/rendererPlugins/{colorRendererPlugin.d.ts → widgets/colorRendererPlugin.d.ts} +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/{colorRendererPlugin.js → widgets/colorRendererPlugin.js} +6 -8
- package/es/components/iho-table/src/plugins/rendererPlugins/{defaultRendererPlugin.d.ts → widgets/defaultRendererPlugin.d.ts} +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/{defaultRendererPlugin.js → widgets/defaultRendererPlugin.js} +4 -4
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/index.d.ts +6 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/index.js +6 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/{labelRendererPlugin.d.ts → widgets/labelRendererPlugin.d.ts} +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/{labelRendererPlugin.js → widgets/labelRendererPlugin.js} +3 -3
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/pictureRendererPlugin.d.ts +2 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/pictureRendererPlugin.js +89 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/{seqRendererPlugin.d.ts → widgets/seqRendererPlugin.d.ts} +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/{seqRendererPlugin.js → widgets/seqRendererPlugin.js} +3 -3
- package/es/components/iho-table/src/plugins/rowGroupSettingPlugin/index.d.ts +1 -0
- package/es/components/iho-table/src/plugins/rowGroupSettingPlugin/index.js +1 -0
- package/es/components/iho-table/src/plugins/rowGroupSettingPlugin/index2.js +72 -0
- package/es/components/iho-table/src/types/index.d.ts +31 -8
- package/es/components/iho-table/src/types/index.js +1 -1
- package/es/components/iho-table/src/types/pluginType.d.ts +102 -65
- package/es/components/iho-table/src/types/pluginType.js +1 -1
- package/es/components/iho-table/src/types/pluginType2.js +3 -1
- package/es/components/iho-table/src/utils/index.d.ts +3 -0
- package/es/components/iho-table/src/utils/index.js +1 -1
- package/es/components/iho-table/src/utils/index2.js +16 -1
- package/es/components/index.css +1 -1
- package/es/components/index.js +2 -2
- package/es/components/index2.js +1 -1
- package/es/components/info-header/style/iconfont.ttf +0 -0
- package/es/components/info-header/style/index.css +1 -1
- package/es/shared/utils/tapable/SyncHook.js +23 -2
- package/es/shared/utils/tapable/index.d.ts +139 -0
- package/package.json +4 -4
- package/es/components/form-render/src/components/index.js +0 -1
- package/es/shared/utils/loadVxe.d.ts +0 -2
- package/es/shared/utils/loadVxe.js +0 -1
- package/es/shared/utils/loadVxe2.js +0 -12
|
@@ -240,6 +240,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
240
240
|
xScalevalueHeight: xScalevalueHeight.value,
|
|
241
241
|
topList: topList.value,
|
|
242
242
|
breathingHeight: breathingHeight.value,
|
|
243
|
+
hospitalizationDate: props.data.hospitalizationDate,
|
|
243
244
|
grid: props.data.grid,
|
|
244
245
|
top: props.data.top,
|
|
245
246
|
left: props.data.left,
|
|
@@ -280,8 +281,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
280
281
|
}
|
|
281
282
|
const { cumputedX, cumputedY, getXValue, getYValue } = useCumputedPoint(propItems);
|
|
282
283
|
useTop(canvas, propItems);
|
|
283
|
-
const { pointTipProps, pointMenuProps, clickMenu, setPopup, getEqualXTypes } = useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, getYValue, props.addRenderItem);
|
|
284
|
-
const { drawScaleValue } = useLeft(canvas, propItems, emits, setPopup, pointTipProps, getXValue, getYValue, getEqualXTypes);
|
|
284
|
+
const { pointTipProps, pointMenuProps, clickMenu, setPopup, getEqualXTypes, isAddPoint } = useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, getYValue, props.addRenderItem);
|
|
285
|
+
const { drawScaleValue } = useLeft(canvas, propItems, emits, setPopup, pointTipProps, getXValue, getYValue, getEqualXTypes, isAddPoint);
|
|
285
286
|
useRight(canvas, propItems, drawScaleValue);
|
|
286
287
|
useBottom(canvas, propItems);
|
|
287
288
|
useOther(canvas, propItems, cumputedX);
|
|
@@ -83,6 +83,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
83
83
|
}) => void;
|
|
84
84
|
setPopup: (point: any) => void;
|
|
85
85
|
getEqualXTypes: (pointX: number) => IPointType[];
|
|
86
|
+
isAddPoint: (x: number) => boolean;
|
|
86
87
|
drawScaleValue: (yScaleValueList: any[]) => void;
|
|
87
88
|
PopupTip: import("vue").DefineComponent<{
|
|
88
89
|
show: {
|
|
@@ -33,7 +33,8 @@ function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, ge
|
|
|
33
33
|
itemList,
|
|
34
34
|
event,
|
|
35
35
|
vitalSignsOriginY,
|
|
36
|
-
painOriginY
|
|
36
|
+
painOriginY,
|
|
37
|
+
hospitalizationDate
|
|
37
38
|
} = propItems;
|
|
38
39
|
const pointTipProps = reactive({
|
|
39
40
|
show: false,
|
|
@@ -170,7 +171,7 @@ function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, ge
|
|
|
170
171
|
}
|
|
171
172
|
}
|
|
172
173
|
});
|
|
173
|
-
if (pointMenuProps.list.length === 1) {
|
|
174
|
+
if (!isAddPoint(x) || pointMenuProps.list.length === 1) {
|
|
174
175
|
pointMenuProps.show = false;
|
|
175
176
|
console.log("\u5F53\u524D\u65F6\u95F4\u6BB5\u5185\u65E0\u53EF\u65B0\u589E\u8282\u70B9");
|
|
176
177
|
}
|
|
@@ -530,6 +531,16 @@ function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, ge
|
|
|
530
531
|
return [x, y < objOriginY.originY ? objOriginY.originY : y > objOriginY.endY ? objOriginY.endY : y];
|
|
531
532
|
}
|
|
532
533
|
}
|
|
534
|
+
function isAddPoint(x) {
|
|
535
|
+
const d = new Date();
|
|
536
|
+
const month = `00${d.getMonth() + 1}`.slice(-2);
|
|
537
|
+
const day = `00${d.getDate()}`.slice(-2);
|
|
538
|
+
const todayTime = new Date(`${d.getFullYear()}-${month}-${day} 23:59:59`).getTime();
|
|
539
|
+
const pointTime = new Date(`${getXValue(x)}:00`).getTime();
|
|
540
|
+
if (hospitalizationDate && pointTime < new Date(hospitalizationDate).getTime() || pointTime > todayTime)
|
|
541
|
+
return false;
|
|
542
|
+
return true;
|
|
543
|
+
}
|
|
533
544
|
function clickMenu({ item, target }) {
|
|
534
545
|
if (!target) {
|
|
535
546
|
emits("add", {
|
|
@@ -560,7 +571,8 @@ function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, ge
|
|
|
560
571
|
pointMenuProps,
|
|
561
572
|
clickMenu,
|
|
562
573
|
setPopup,
|
|
563
|
-
getEqualXTypes
|
|
574
|
+
getEqualXTypes,
|
|
575
|
+
isAddPoint
|
|
564
576
|
};
|
|
565
577
|
}
|
|
566
578
|
|
|
@@ -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, getXValue: Function, getYValue: Function, getEqualXTypes: Function): {
|
|
4
|
+
export declare function useLeft(canvas: Ref<fabric.Canvas>, propItems: IPropItems, emits: any, setPopup: Function, pointTipProps: any, getXValue: Function, getYValue: Function, getEqualXTypes: Function, isAddPoint: Function): {
|
|
5
5
|
drawScaleValue: (yScaleValueList: any[]) => void;
|
|
6
6
|
};
|
|
@@ -2,7 +2,7 @@ import { onMounted, nextTick } from 'vue';
|
|
|
2
2
|
import { fabric } from '../utils/index.js';
|
|
3
3
|
import { defaultBorderStyle, defaultTextStyle, defaultStyle, defaultRectStyle, drawPoint, drawTextGroup } from './useDraw2.js';
|
|
4
4
|
|
|
5
|
-
function useLeft(canvas, propItems, emits, setPopup, pointTipProps, getXValue, getYValue, getEqualXTypes) {
|
|
5
|
+
function useLeft(canvas, propItems, emits, setPopup, pointTipProps, getXValue, getYValue, getEqualXTypes, isAddPoint) {
|
|
6
6
|
const {
|
|
7
7
|
originY,
|
|
8
8
|
endY,
|
|
@@ -19,7 +19,8 @@ function useLeft(canvas, propItems, emits, setPopup, pointTipProps, getXValue, g
|
|
|
19
19
|
right,
|
|
20
20
|
canvasWidth,
|
|
21
21
|
canvasHeight,
|
|
22
|
-
getRightInfo
|
|
22
|
+
getRightInfo,
|
|
23
|
+
hospitalizationDate
|
|
23
24
|
} = propItems;
|
|
24
25
|
const mainScaleWidth = 9;
|
|
25
26
|
const subScaleWidth = 5;
|
|
@@ -233,7 +234,7 @@ function useLeft(canvas, propItems, emits, setPopup, pointTipProps, getXValue, g
|
|
|
233
234
|
});
|
|
234
235
|
}
|
|
235
236
|
function isLimit(point) {
|
|
236
|
-
return point.left >= originX && point.left
|
|
237
|
+
return point.left >= originX && point.left < endX && point.top >= originY && point.top <= endY;
|
|
237
238
|
}
|
|
238
239
|
function moveLimit(point) {
|
|
239
240
|
if (point.left >= originX && point.left <= endX) {
|
|
@@ -249,6 +250,7 @@ function useLeft(canvas, propItems, emits, setPopup, pointTipProps, getXValue, g
|
|
|
249
250
|
}
|
|
250
251
|
function setPointEvent(point) {
|
|
251
252
|
point.on("moving", () => {
|
|
253
|
+
point.set("originX", "center");
|
|
252
254
|
moveLimit(point);
|
|
253
255
|
if (isLimit(point)) {
|
|
254
256
|
setPopup(point);
|
|
@@ -260,7 +262,7 @@ function useLeft(canvas, propItems, emits, setPopup, pointTipProps, getXValue, g
|
|
|
260
262
|
pointTipProps.show = false;
|
|
261
263
|
if (event.e.button === 0) {
|
|
262
264
|
if (isLimit(point)) {
|
|
263
|
-
if (!getEqualXTypes(point.left).includes(point.origin.type)) {
|
|
265
|
+
if (!getEqualXTypes(point.left).includes(point.origin.type) && isAddPoint(point.left)) {
|
|
264
266
|
emits("add", {
|
|
265
267
|
data: {
|
|
266
268
|
time: getXValue(point.left),
|
|
@@ -279,7 +281,7 @@ function useLeft(canvas, propItems, emits, setPopup, pointTipProps, getXValue, g
|
|
|
279
281
|
}
|
|
280
282
|
function setRestore() {
|
|
281
283
|
point.setCoords();
|
|
282
|
-
point.set({ left: point.originLeft, top: point.originTop });
|
|
284
|
+
point.set({ originX: "right", left: point.originLeft, top: point.originTop });
|
|
283
285
|
}
|
|
284
286
|
});
|
|
285
287
|
}
|
|
@@ -34,6 +34,7 @@ export interface IPropItems {
|
|
|
34
34
|
xScalevalueHeight: number;
|
|
35
35
|
topList: IDate[];
|
|
36
36
|
breathingHeight: number;
|
|
37
|
+
hospitalizationDate?: string;
|
|
37
38
|
grid: IGrid;
|
|
38
39
|
top: ITop;
|
|
39
40
|
left: ILeft;
|
|
@@ -106,6 +107,7 @@ export interface IData {
|
|
|
106
107
|
height: number;
|
|
107
108
|
borderStyle?: fabric.ILineOptions;
|
|
108
109
|
selectionStyle?: any;
|
|
110
|
+
hospitalizationDate: string;
|
|
109
111
|
grid: IGrid;
|
|
110
112
|
other?: IOther;
|
|
111
113
|
top: ITop;
|