cnhis-design-vue 3.1.34-beta.1 → 3.1.34-beta.10
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 -0
- package/es/components/big-table/src/BigTable.vue.d.ts +1 -0
- package/es/components/big-table/src/BigTable.vue2.js +17 -5
- package/es/components/big-table/src/components/edit-form/edit-input.js +2 -1
- package/es/components/big-table/src/components/edit-form/edit-select.js +26 -1
- package/es/components/big-table/src/hooks/useEvent.js +3 -4
- package/es/components/fabric-chart/index.d.ts +141 -374
- package/es/components/fabric-chart/src/BirthProcessChart.vue.d.ts +2 -2
- package/es/components/fabric-chart/src/FabricChart.vue.d.ts +142 -374
- package/es/components/fabric-chart/src/FabricChart.vue.js +52 -22
- 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.js +2 -2
- package/es/components/fabric-chart/src/hooks/useBottom.js +1 -6
- package/es/components/fabric-chart/src/hooks/useCenter.d.ts +4 -18
- package/es/components/fabric-chart/src/hooks/useCenter.js +5 -21
- package/es/components/fabric-chart/src/hooks/useCommon.d.ts +1 -1
- package/es/components/fabric-chart/src/hooks/useCommon.js +2 -2
- package/es/components/fabric-chart/src/hooks/useGrid.js +2 -7
- package/es/components/fabric-chart/src/hooks/useLeft.d.ts +2 -1
- package/es/components/fabric-chart/src/hooks/useLeft.js +22 -28
- package/es/components/fabric-chart/src/hooks/useOther.js +1 -6
- package/es/components/fabric-chart/src/hooks/useRight.js +13 -18
- package/es/components/fabric-chart/src/hooks/useTemperatureChart.d.ts +25 -0
- package/es/components/fabric-chart/src/hooks/useTemperatureChart.js +339 -0
- package/es/components/fabric-chart/src/hooks/useTop.js +1 -6
- package/es/components/iho-table/index.d.ts +6 -0
- package/es/components/iho-table/index.js +1 -1
- package/es/components/iho-table/src/IhoTable.vue.d.ts +6 -0
- package/es/components/iho-table/src/IhoTable.vue.js +12 -1
- package/es/components/iho-table/src/components/IhoTableColumn.js +1 -1
- package/es/components/iho-table/src/constants/index.d.ts +6 -0
- package/es/components/iho-table/src/constants/index.js +9 -7
- package/es/components/iho-table/src/hooks/tapHooks/index.d.ts +1 -1
- package/es/components/iho-table/src/hooks/tapHooks/index.js +4 -4
- package/es/components/iho-table/src/plugins/defaultConfigPlugin/index.js +19 -7
- package/es/components/iho-table/src/plugins/filterPlugin/filter.vue.d.ts +12 -0
- package/es/components/iho-table/src/plugins/filterPlugin/filter.vue.js +58 -25
- package/es/components/iho-table/src/plugins/filterPlugin/index.js +56 -55
- package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index.js +12 -7
- package/es/components/iho-table/src/plugins/virtualTreePlugin/index.js +10 -3
- package/es/components/iho-table/src/types/index.d.ts +8 -3
- package/es/components/iho-table/src/utils/index.d.ts +6 -0
- package/es/components/iho-table/src/utils/index.js +16 -2
- package/es/components/iho-table/style/index.css +1 -1
- package/es/components/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/types/index.d.ts +1 -0
- package/package.json +2 -2
- package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
- package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +0 -1
- package/es/components/bpmn-workflow/types/ModelingModule.d.ts +0 -1
- package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +0 -1
- package/es/components/fabric-chart/src/BirthProcessChart.vue.js +0 -172
- package/es/components/fabric-chart/src/TemperatureChart.vue.d.ts +0 -214
- package/es/components/fabric-chart/src/TemperatureChart.vue.js +0 -355
- package/es/components/fabric-chart/src/utils/index.d.ts +0 -6823
- package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +0 -86
- package/es/shared/utils/tapable/index.d.ts +0 -139
|
@@ -1,416 +1,184 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import { IMode } from './interface';
|
|
3
|
+
import { AnyObject } from '../../../../es/shared/types';
|
|
3
4
|
declare const _default: import("vue").DefineComponent<{
|
|
4
5
|
mode: {
|
|
5
6
|
type: PropType<IMode>;
|
|
6
7
|
default: string;
|
|
7
8
|
};
|
|
9
|
+
data: {
|
|
10
|
+
type: PropType<AnyObject>;
|
|
11
|
+
required: true;
|
|
12
|
+
};
|
|
13
|
+
addRenderItem: {
|
|
14
|
+
type: FunctionConstructor;
|
|
15
|
+
};
|
|
8
16
|
}, {
|
|
9
17
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
10
18
|
mode: {
|
|
11
19
|
type: PropType<IMode>;
|
|
12
20
|
default: string;
|
|
13
21
|
};
|
|
14
|
-
}>> & {}>>;
|
|
15
|
-
isTemperature: import("vue").ComputedRef<boolean>;
|
|
16
|
-
fabricChartRef: import("vue").Ref<any>;
|
|
17
|
-
redrawPoints: () => void;
|
|
18
|
-
select: (key: string) => void;
|
|
19
|
-
canvas: any;
|
|
20
|
-
TemperatureChart: import("vue").DefineComponent<{
|
|
21
22
|
data: {
|
|
22
|
-
type: PropType<
|
|
23
|
+
type: PropType<AnyObject>;
|
|
23
24
|
required: true;
|
|
24
25
|
};
|
|
25
26
|
addRenderItem: {
|
|
26
27
|
type: FunctionConstructor;
|
|
27
28
|
};
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
canvas: import("vue").Ref<any>;
|
|
47
|
-
dateHeight: import("vue").ComputedRef<number>;
|
|
48
|
-
hospitalDaysHeight: import("vue").ComputedRef<number>;
|
|
49
|
-
operationDaysHeight: import("vue").ComputedRef<number>;
|
|
50
|
-
xScalevalueHeight: import("vue").ComputedRef<number>;
|
|
51
|
-
breathingHeight: import("vue").ComputedRef<any>;
|
|
52
|
-
gridXNumber: import("vue").ComputedRef<number>;
|
|
53
|
-
gridYNumber: import("vue").ComputedRef<number>;
|
|
54
|
-
endX: import("vue").ComputedRef<number>;
|
|
55
|
-
endXLimit: import("vue").ComputedRef<number>;
|
|
56
|
-
originX: import("vue").ComputedRef<any>;
|
|
57
|
-
endY: import("vue").ComputedRef<number>;
|
|
58
|
-
originY: import("vue").ComputedRef<number>;
|
|
59
|
-
originYLimit: import("vue").ComputedRef<number>;
|
|
60
|
-
xCellWidth: import("vue").ComputedRef<number>;
|
|
61
|
-
yCellHeight: import("vue").ComputedRef<number>;
|
|
62
|
-
iconsWidth: import("vue").ComputedRef<any>;
|
|
63
|
-
xScaleList: import("vue").ComputedRef<any[]>;
|
|
64
|
-
breatheYCell: import("vue").ComputedRef<number>;
|
|
65
|
-
pulseYCell: import("vue").ComputedRef<number>;
|
|
66
|
-
temperatureYCell: import("vue").ComputedRef<number>;
|
|
67
|
-
painYCell: import("vue").ComputedRef<number>;
|
|
68
|
-
event: import("vue").ComputedRef<any>;
|
|
69
|
-
itemList: import("vue").ComputedRef<any[]>;
|
|
70
|
-
painIndex: import("vue").ComputedRef<number>;
|
|
71
|
-
painHeight: import("vue").ComputedRef<number>;
|
|
72
|
-
painOriginY: import("vue").ComputedRef<{
|
|
73
|
-
originY: number;
|
|
74
|
-
endY: number;
|
|
75
|
-
}>;
|
|
76
|
-
vitalSignsOriginY: import("vue").ComputedRef<{
|
|
77
|
-
originY: number;
|
|
78
|
-
endY: number;
|
|
79
|
-
}>;
|
|
80
|
-
topList: import("vue").ComputedRef<import("./interface").IDate[]>;
|
|
81
|
-
getRightInfo: import("vue").ComputedRef<any>;
|
|
82
|
-
propItems: any;
|
|
83
|
-
computedYCell: (type: import("./interface").IPointType) => number;
|
|
84
|
-
cumputedX: (value: string | number, setAllCenter?: boolean) => any;
|
|
85
|
-
cumputedY: (type: import("./interface").IPointType, scaleValueList: number[], value: string | number) => number;
|
|
86
|
-
getXValue: (pointX: number) => string | undefined;
|
|
87
|
-
getYValue: (type: import("./interface").IPointType, pointY: number) => number;
|
|
88
|
-
setPopup: (point: any) => void;
|
|
89
|
-
isAddPoint: (x: number) => boolean;
|
|
90
|
-
updateData: (params: any, mode?: string) => void;
|
|
91
|
-
redrawPoints: () => void;
|
|
92
|
-
pointTipProps: {
|
|
93
|
-
show: boolean;
|
|
94
|
-
point: {
|
|
95
|
-
x: number;
|
|
96
|
-
y: number;
|
|
97
|
-
};
|
|
98
|
-
list: string[];
|
|
29
|
+
}>> & {
|
|
30
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
31
|
+
onSelect?: ((...args: any[]) => any) | undefined;
|
|
32
|
+
onDelete?: ((...args: any[]) => any) | undefined;
|
|
33
|
+
onAdd?: ((...args: any[]) => any) | undefined;
|
|
34
|
+
}>>;
|
|
35
|
+
emits: (event: "delete" | "change" | "add" | "select", ...args: any[]) => void;
|
|
36
|
+
isTemperature: import("vue").ComputedRef<boolean>;
|
|
37
|
+
canvasRef: any;
|
|
38
|
+
canvas: import("vue").Ref<any>;
|
|
39
|
+
propItems: any;
|
|
40
|
+
redrawPoints: import("vue").Ref<any>;
|
|
41
|
+
select: import("vue").Ref<any>;
|
|
42
|
+
pointTipProps: {
|
|
43
|
+
show: boolean;
|
|
44
|
+
point: {
|
|
45
|
+
x: number;
|
|
46
|
+
y: number;
|
|
99
47
|
};
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
target: any;
|
|
48
|
+
list: string[];
|
|
49
|
+
};
|
|
50
|
+
pointMenuProps: {
|
|
51
|
+
show: boolean;
|
|
52
|
+
point: {
|
|
53
|
+
x: number;
|
|
54
|
+
y: number;
|
|
108
55
|
};
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
type: BooleanConstructor;
|
|
117
|
-
required: true;
|
|
118
|
-
default: boolean;
|
|
119
|
-
};
|
|
120
|
-
point: {
|
|
121
|
-
type: null;
|
|
122
|
-
required: true;
|
|
123
|
-
};
|
|
124
|
-
list: {
|
|
125
|
-
type: ArrayConstructor;
|
|
126
|
-
required: false;
|
|
127
|
-
default: () => never[];
|
|
128
|
-
};
|
|
129
|
-
propItems: {
|
|
130
|
-
type: null;
|
|
131
|
-
required: true;
|
|
132
|
-
};
|
|
133
|
-
}, {
|
|
134
|
-
props: {
|
|
135
|
-
show: boolean;
|
|
136
|
-
point: import("./interface").ICoordinateValue;
|
|
137
|
-
list: string[];
|
|
138
|
-
propItems: import("../../../shared/types").AnyObject;
|
|
139
|
-
};
|
|
140
|
-
pointStyle: import("vue").ComputedRef<{
|
|
141
|
-
top: string;
|
|
142
|
-
bottom: string;
|
|
143
|
-
left: string;
|
|
144
|
-
right: string;
|
|
145
|
-
'transform-origin': string;
|
|
146
|
-
}>;
|
|
147
|
-
Teleport: {
|
|
148
|
-
new (): {
|
|
149
|
-
$props: import("vue").VNodeProps & import("vue").TeleportProps;
|
|
150
|
-
};
|
|
151
|
-
__isTeleport: true;
|
|
152
|
-
};
|
|
153
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
154
|
-
show: {
|
|
155
|
-
type: BooleanConstructor;
|
|
156
|
-
required: true;
|
|
157
|
-
default: boolean;
|
|
158
|
-
};
|
|
159
|
-
point: {
|
|
160
|
-
type: null;
|
|
161
|
-
required: true;
|
|
162
|
-
};
|
|
163
|
-
list: {
|
|
164
|
-
type: ArrayConstructor;
|
|
165
|
-
required: false;
|
|
166
|
-
default: () => never[];
|
|
167
|
-
};
|
|
168
|
-
propItems: {
|
|
169
|
-
type: null;
|
|
170
|
-
required: true;
|
|
171
|
-
};
|
|
172
|
-
}>>, {
|
|
173
|
-
list: unknown[];
|
|
174
|
-
}>;
|
|
175
|
-
PopupMenu: import("vue").DefineComponent<{
|
|
176
|
-
show: {
|
|
177
|
-
type: BooleanConstructor;
|
|
178
|
-
default: boolean;
|
|
179
|
-
};
|
|
180
|
-
list: {
|
|
181
|
-
type: ArrayConstructor;
|
|
182
|
-
default: () => never[];
|
|
183
|
-
};
|
|
184
|
-
point: {
|
|
185
|
-
type: PropType<import("./interface").ICoordinateValue>;
|
|
186
|
-
};
|
|
187
|
-
propItems: {
|
|
188
|
-
type: PropType<import("./interface").IPropItems>;
|
|
189
|
-
};
|
|
190
|
-
target: {
|
|
191
|
-
type: PropType<any>;
|
|
192
|
-
};
|
|
193
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:show" | "clickMenu")[], "clickMenu" | "update:show", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
194
|
-
show: {
|
|
195
|
-
type: BooleanConstructor;
|
|
196
|
-
default: boolean;
|
|
197
|
-
};
|
|
198
|
-
list: {
|
|
199
|
-
type: ArrayConstructor;
|
|
200
|
-
default: () => never[];
|
|
201
|
-
};
|
|
202
|
-
point: {
|
|
203
|
-
type: PropType<import("./interface").ICoordinateValue>;
|
|
204
|
-
};
|
|
205
|
-
propItems: {
|
|
206
|
-
type: PropType<import("./interface").IPropItems>;
|
|
207
|
-
};
|
|
208
|
-
target: {
|
|
209
|
-
type: PropType<any>;
|
|
210
|
-
};
|
|
211
|
-
}>> & {
|
|
212
|
-
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
|
213
|
-
onClickMenu?: ((...args: any[]) => any) | undefined;
|
|
214
|
-
}, {
|
|
215
|
-
show: boolean;
|
|
216
|
-
list: unknown[];
|
|
217
|
-
}>;
|
|
218
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "add" | "select")[], "change" | "add" | "select", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
219
|
-
data: {
|
|
220
|
-
type: PropType<import("./interface").IData>;
|
|
56
|
+
list: any[];
|
|
57
|
+
target: any;
|
|
58
|
+
};
|
|
59
|
+
clickMenu: import("vue").Ref<any>;
|
|
60
|
+
PopupTip: import("vue").DefineComponent<{
|
|
61
|
+
show: {
|
|
62
|
+
type: BooleanConstructor;
|
|
221
63
|
required: true;
|
|
64
|
+
default: boolean;
|
|
222
65
|
};
|
|
223
|
-
|
|
224
|
-
type:
|
|
66
|
+
point: {
|
|
67
|
+
type: null;
|
|
68
|
+
required: true;
|
|
225
69
|
};
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
type: PropType<import("./interface").IBirthProcessData>;
|
|
70
|
+
list: {
|
|
71
|
+
type: ArrayConstructor;
|
|
72
|
+
required: false;
|
|
73
|
+
default: () => never[];
|
|
74
|
+
};
|
|
75
|
+
propItems: {
|
|
76
|
+
type: null;
|
|
234
77
|
required: true;
|
|
235
78
|
};
|
|
236
79
|
}, {
|
|
237
|
-
props:
|
|
238
|
-
data: {
|
|
239
|
-
type: PropType<import("./interface").IBirthProcessData>;
|
|
240
|
-
required: true;
|
|
241
|
-
};
|
|
242
|
-
}>> & {
|
|
243
|
-
onChange?: ((...args: any[]) => any) | undefined;
|
|
244
|
-
onSelect?: ((...args: any[]) => any) | undefined;
|
|
245
|
-
onAdd?: ((...args: any[]) => any) | undefined;
|
|
246
|
-
onDelete?: ((...args: any[]) => any) | undefined;
|
|
247
|
-
}>>;
|
|
248
|
-
emits: (event: "delete" | "change" | "add" | "select", ...args: any[]) => void;
|
|
249
|
-
leftScales: import("vue").ComputedRef<import("../../../shared/types").AnyObject[]>;
|
|
250
|
-
rightScales: import("vue").ComputedRef<import("../../../shared/types").AnyObject[]>;
|
|
251
|
-
leftAddAreaWidth: number;
|
|
252
|
-
rightAddAreaWidth: import("vue").ComputedRef<0 | 30>;
|
|
253
|
-
originX: import("vue").ComputedRef<number>;
|
|
254
|
-
endX: import("vue").ComputedRef<number>;
|
|
255
|
-
gridXNumber: import("vue").ComputedRef<any>;
|
|
256
|
-
gridYNumber: import("vue").ComputedRef<any>;
|
|
257
|
-
xCellWidth: import("vue").ComputedRef<number>;
|
|
258
|
-
yCellHeight: import("vue").ComputedRef<number>;
|
|
259
|
-
originY: import("vue").ComputedRef<number>;
|
|
260
|
-
originYCervix: import("vue").ComputedRef<number>;
|
|
261
|
-
endY: import("vue").ComputedRef<number>;
|
|
262
|
-
startTime: import("vue").ComputedRef<number>;
|
|
263
|
-
timeXCell: import("vue").ComputedRef<number>;
|
|
264
|
-
cervixYCell: import("vue").ComputedRef<number>;
|
|
265
|
-
FHRYCell: import("vue").ComputedRef<number>;
|
|
266
|
-
fetalPresentationYCell: import("vue").ComputedRef<number>;
|
|
267
|
-
event: import("vue").ComputedRef<any>;
|
|
268
|
-
select: import("vue").Ref<any>;
|
|
269
|
-
canvasRef: any;
|
|
270
|
-
canvas: import("vue").Ref<any>;
|
|
271
|
-
propItems: any;
|
|
272
|
-
pointTipProps: {
|
|
80
|
+
props: {
|
|
273
81
|
show: boolean;
|
|
274
|
-
point:
|
|
275
|
-
x: number;
|
|
276
|
-
y: number;
|
|
277
|
-
};
|
|
82
|
+
point: import("./interface").ICoordinateValue;
|
|
278
83
|
list: string[];
|
|
84
|
+
propItems: AnyObject;
|
|
279
85
|
};
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
list: any[];
|
|
287
|
-
target: any;
|
|
288
|
-
};
|
|
289
|
-
clickMenu: ({ item, target }: {
|
|
290
|
-
item: any;
|
|
291
|
-
target: any;
|
|
292
|
-
}) => void;
|
|
293
|
-
PopupTip: import("vue").DefineComponent<{
|
|
294
|
-
show: {
|
|
295
|
-
type: BooleanConstructor;
|
|
296
|
-
required: true;
|
|
297
|
-
default: boolean;
|
|
298
|
-
};
|
|
299
|
-
point: {
|
|
300
|
-
type: null;
|
|
301
|
-
required: true;
|
|
302
|
-
};
|
|
303
|
-
list: {
|
|
304
|
-
type: ArrayConstructor;
|
|
305
|
-
required: false;
|
|
306
|
-
default: () => never[];
|
|
307
|
-
};
|
|
308
|
-
propItems: {
|
|
309
|
-
type: null;
|
|
310
|
-
required: true;
|
|
311
|
-
};
|
|
312
|
-
}, {
|
|
313
|
-
props: {
|
|
314
|
-
show: boolean;
|
|
315
|
-
point: import("./interface").ICoordinateValue;
|
|
316
|
-
list: string[];
|
|
317
|
-
propItems: import("../../../shared/types").AnyObject;
|
|
318
|
-
};
|
|
319
|
-
pointStyle: import("vue").ComputedRef<{
|
|
320
|
-
top: string;
|
|
321
|
-
bottom: string;
|
|
322
|
-
left: string;
|
|
323
|
-
right: string;
|
|
324
|
-
'transform-origin': string;
|
|
325
|
-
}>;
|
|
326
|
-
Teleport: {
|
|
327
|
-
new (): {
|
|
328
|
-
$props: import("vue").VNodeProps & import("vue").TeleportProps;
|
|
329
|
-
};
|
|
330
|
-
__isTeleport: true;
|
|
331
|
-
};
|
|
332
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
333
|
-
show: {
|
|
334
|
-
type: BooleanConstructor;
|
|
335
|
-
required: true;
|
|
336
|
-
default: boolean;
|
|
337
|
-
};
|
|
338
|
-
point: {
|
|
339
|
-
type: null;
|
|
340
|
-
required: true;
|
|
341
|
-
};
|
|
342
|
-
list: {
|
|
343
|
-
type: ArrayConstructor;
|
|
344
|
-
required: false;
|
|
345
|
-
default: () => never[];
|
|
346
|
-
};
|
|
347
|
-
propItems: {
|
|
348
|
-
type: null;
|
|
349
|
-
required: true;
|
|
350
|
-
};
|
|
351
|
-
}>>, {
|
|
352
|
-
list: unknown[];
|
|
86
|
+
pointStyle: import("vue").ComputedRef<{
|
|
87
|
+
top: string;
|
|
88
|
+
bottom: string;
|
|
89
|
+
left: string;
|
|
90
|
+
right: string;
|
|
91
|
+
'transform-origin': string;
|
|
353
92
|
}>;
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
default: boolean;
|
|
358
|
-
};
|
|
359
|
-
list: {
|
|
360
|
-
type: ArrayConstructor;
|
|
361
|
-
default: () => never[];
|
|
362
|
-
};
|
|
363
|
-
point: {
|
|
364
|
-
type: PropType<import("./interface").ICoordinateValue>;
|
|
365
|
-
};
|
|
366
|
-
propItems: {
|
|
367
|
-
type: PropType<import("./interface").IPropItems>;
|
|
368
|
-
};
|
|
369
|
-
target: {
|
|
370
|
-
type: PropType<any>;
|
|
93
|
+
Teleport: {
|
|
94
|
+
new (): {
|
|
95
|
+
$props: import("vue").VNodeProps & import("vue").TeleportProps;
|
|
371
96
|
};
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
list: {
|
|
378
|
-
type: ArrayConstructor;
|
|
379
|
-
default: () => never[];
|
|
380
|
-
};
|
|
381
|
-
point: {
|
|
382
|
-
type: PropType<import("./interface").ICoordinateValue>;
|
|
383
|
-
};
|
|
384
|
-
propItems: {
|
|
385
|
-
type: PropType<import("./interface").IPropItems>;
|
|
386
|
-
};
|
|
387
|
-
target: {
|
|
388
|
-
type: PropType<any>;
|
|
389
|
-
};
|
|
390
|
-
}>> & {
|
|
391
|
-
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
|
392
|
-
onClickMenu?: ((...args: any[]) => any) | undefined;
|
|
393
|
-
}, {
|
|
394
|
-
show: boolean;
|
|
395
|
-
list: unknown[];
|
|
396
|
-
}>;
|
|
397
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("delete" | "change" | "add" | "select")[], "delete" | "change" | "add" | "select", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
398
|
-
data: {
|
|
399
|
-
type: PropType<import("./interface").IBirthProcessData>;
|
|
97
|
+
__isTeleport: true;
|
|
98
|
+
};
|
|
99
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
100
|
+
show: {
|
|
101
|
+
type: BooleanConstructor;
|
|
400
102
|
required: true;
|
|
103
|
+
default: boolean;
|
|
104
|
+
};
|
|
105
|
+
point: {
|
|
106
|
+
type: null;
|
|
107
|
+
required: true;
|
|
108
|
+
};
|
|
109
|
+
list: {
|
|
110
|
+
type: ArrayConstructor;
|
|
111
|
+
required: false;
|
|
112
|
+
default: () => never[];
|
|
113
|
+
};
|
|
114
|
+
propItems: {
|
|
115
|
+
type: null;
|
|
116
|
+
required: true;
|
|
117
|
+
};
|
|
118
|
+
}>>, {
|
|
119
|
+
list: unknown[];
|
|
120
|
+
}>;
|
|
121
|
+
PopupMenu: import("vue").DefineComponent<{
|
|
122
|
+
show: {
|
|
123
|
+
type: BooleanConstructor;
|
|
124
|
+
default: boolean;
|
|
125
|
+
};
|
|
126
|
+
list: {
|
|
127
|
+
type: ArrayConstructor;
|
|
128
|
+
default: () => never[];
|
|
129
|
+
};
|
|
130
|
+
point: {
|
|
131
|
+
type: PropType<import("./interface").ICoordinateValue>;
|
|
132
|
+
};
|
|
133
|
+
propItems: {
|
|
134
|
+
type: PropType<import("./interface").IPropItems>;
|
|
135
|
+
};
|
|
136
|
+
target: {
|
|
137
|
+
type: PropType<any>;
|
|
138
|
+
};
|
|
139
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:show" | "clickMenu")[], "clickMenu" | "update:show", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
140
|
+
show: {
|
|
141
|
+
type: BooleanConstructor;
|
|
142
|
+
default: boolean;
|
|
143
|
+
};
|
|
144
|
+
list: {
|
|
145
|
+
type: ArrayConstructor;
|
|
146
|
+
default: () => never[];
|
|
147
|
+
};
|
|
148
|
+
point: {
|
|
149
|
+
type: PropType<import("./interface").ICoordinateValue>;
|
|
150
|
+
};
|
|
151
|
+
propItems: {
|
|
152
|
+
type: PropType<import("./interface").IPropItems>;
|
|
153
|
+
};
|
|
154
|
+
target: {
|
|
155
|
+
type: PropType<any>;
|
|
401
156
|
};
|
|
402
157
|
}>> & {
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
}
|
|
158
|
+
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
|
159
|
+
onClickMenu?: ((...args: any[]) => any) | undefined;
|
|
160
|
+
}, {
|
|
161
|
+
show: boolean;
|
|
162
|
+
list: unknown[];
|
|
163
|
+
}>;
|
|
164
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("delete" | "change" | "add" | "select")[], "delete" | "change" | "add" | "select", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
409
165
|
mode: {
|
|
410
166
|
type: PropType<IMode>;
|
|
411
167
|
default: string;
|
|
412
168
|
};
|
|
413
|
-
|
|
169
|
+
data: {
|
|
170
|
+
type: PropType<AnyObject>;
|
|
171
|
+
required: true;
|
|
172
|
+
};
|
|
173
|
+
addRenderItem: {
|
|
174
|
+
type: FunctionConstructor;
|
|
175
|
+
};
|
|
176
|
+
}>> & {
|
|
177
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
178
|
+
onSelect?: ((...args: any[]) => any) | undefined;
|
|
179
|
+
onDelete?: ((...args: any[]) => any) | undefined;
|
|
180
|
+
onAdd?: ((...args: any[]) => any) | undefined;
|
|
181
|
+
}, {
|
|
414
182
|
mode: IMode;
|
|
415
183
|
}>;
|
|
416
184
|
export default _default;
|
|
@@ -1,38 +1,68 @@
|
|
|
1
|
-
import { defineComponent, computed, ref,
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { defineComponent, computed, ref, onMounted, openBlock, createElementBlock, Fragment, createElementVNode, createBlock, mergeProps, unref, createCommentVNode } from 'vue';
|
|
2
|
+
import { fabric } from './utils/index.js';
|
|
3
|
+
import PopupTip from './components/PopupTip.vue.js';
|
|
4
|
+
import PopupMenu from './components/PopupMenu.js';
|
|
5
|
+
import useTemperatureChart from './hooks/useTemperatureChart.js';
|
|
4
6
|
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.js';
|
|
5
7
|
|
|
6
8
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
9
|
__name: "FabricChart",
|
|
8
10
|
props: {
|
|
9
|
-
mode: { type: String, default: "temperature" }
|
|
11
|
+
mode: { type: String, default: "temperature" },
|
|
12
|
+
data: { type: Object, required: true },
|
|
13
|
+
addRenderItem: { type: Function }
|
|
10
14
|
},
|
|
11
|
-
|
|
12
|
-
|
|
15
|
+
emits: [
|
|
16
|
+
"change",
|
|
17
|
+
"add",
|
|
18
|
+
"delete",
|
|
19
|
+
"select"
|
|
20
|
+
],
|
|
21
|
+
setup(__props, { expose, emit: emits }) {
|
|
13
22
|
const props = __props;
|
|
14
|
-
|
|
15
|
-
const
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
computed(() => props.mode === "temperature");
|
|
24
|
+
const canvasRef = ref(null);
|
|
25
|
+
const canvas = ref();
|
|
26
|
+
const { propItems, redrawPoints, select, pointTipProps, pointMenuProps, clickMenu } = useTemperatureChart(
|
|
27
|
+
canvas,
|
|
28
|
+
props,
|
|
29
|
+
emits,
|
|
30
|
+
canvasRef
|
|
31
|
+
);
|
|
32
|
+
onMounted(() => {
|
|
33
|
+
canvas.value = new fabric.Canvas(canvasRef.value, {
|
|
34
|
+
width: propItems.canvasWidth,
|
|
35
|
+
height: propItems.canvasHeight,
|
|
36
|
+
backgroundColor: "#fff",
|
|
37
|
+
selection: false,
|
|
38
|
+
containerClass: "c-fabric-chart",
|
|
39
|
+
fireRightClick: true
|
|
40
|
+
});
|
|
41
|
+
});
|
|
25
42
|
expose({
|
|
26
43
|
redrawPoints,
|
|
27
44
|
select,
|
|
28
45
|
canvas
|
|
29
46
|
});
|
|
30
47
|
return (_ctx, _cache) => {
|
|
31
|
-
return
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
48
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
49
|
+
createElementVNode("canvas", {
|
|
50
|
+
ref_key: "canvasRef",
|
|
51
|
+
ref: canvasRef
|
|
52
|
+
}, null, 512),
|
|
53
|
+
canvas.value ? (openBlock(), createBlock(PopupTip, mergeProps({
|
|
54
|
+
key: 0,
|
|
55
|
+
propItems: unref(propItems)
|
|
56
|
+
}, unref(pointTipProps)), null, 16, ["propItems"])) : createCommentVNode("v-if", true),
|
|
57
|
+
canvas.value ? (openBlock(), createBlock(unref(PopupMenu), mergeProps({
|
|
58
|
+
key: 1,
|
|
59
|
+
propItems: unref(propItems)
|
|
60
|
+
}, unref(pointMenuProps), {
|
|
61
|
+
show: unref(pointMenuProps).show,
|
|
62
|
+
"onUpdate:show": _cache[0] || (_cache[0] = ($event) => unref(pointMenuProps).show = $event),
|
|
63
|
+
onClickMenu: unref(clickMenu)
|
|
64
|
+
}), null, 16, ["propItems", "show", "onClickMenu"])) : createCommentVNode("v-if", true)
|
|
65
|
+
], 64);
|
|
36
66
|
};
|
|
37
67
|
}
|
|
38
68
|
});
|