cnhis-design-vue 3.1.38-beta.0 → 3.1.38-beta.2
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/components/fabric-chart/src/hooks/useBirthProcess.js +132 -17
- package/es/components/fabric-chart/src/hooks/useBirthProcessChart.js +1 -0
- package/es/components/fabric-chart/src/hooks/useCenter.js +7 -10
- package/es/components/fabric-chart/src/hooks/useCumputedPoint.js +4 -14
- package/es/components/fabric-chart/src/hooks/useTemperatureChart.js +2 -1
- package/es/components/form-config/index.d.ts +10 -6
- package/es/components/form-config/src/FormConfig.vue.d.ts +10 -6
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +5 -3
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +5 -3
- package/es/components/form-render/index.d.ts +5 -3
- package/es/components/form-render/src/FormRender.vue.d.ts +5 -3
- package/es/components/form-render/src/FormRender.vue.js +3 -1
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +5 -3
- package/es/components/form-render/src/components/renderer/combination.js +2 -4
- package/es/components/form-render/src/components/renderer/jsonCombination/index.js +2 -4
- package/es/components/form-render/src/hooks/useAnchor.d.ts +3 -4
- package/es/components/form-render/src/hooks/useAnchor.js +3 -3
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/index.js +2 -4
- package/es/components/info-header/index.d.ts +9 -0
- package/es/components/info-header/src/InfoHeader.vue.d.ts +9 -0
- package/es/components/info-header/src/InfoHeader.vue.js +21 -6
- package/es/components/shortcut-setter/index.d.ts +5 -3
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +5 -3
- package/package.json +2 -2
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { useBirthProcessCumputedPoint } from './useCumputedPoint.js';
|
|
2
2
|
import useGrid from './useGrid.js';
|
|
3
|
-
import { drawLine,
|
|
3
|
+
import { drawLine, drawArrow, drawText, defaultTextStyle, drawPoint, defaultRectStyle } from './useDraw.js';
|
|
4
4
|
import { fabric } from '../utils/index.js';
|
|
5
5
|
import { getIndex, isEffectiveNode } from '../utils/utils.js';
|
|
6
6
|
import { cloneDeep } from 'lodash-es';
|
|
7
|
+
import { format } from 'date-fns';
|
|
7
8
|
|
|
8
9
|
function useBirthProcess(canvas, propItems, emits, pointTipProps, pointMenuProps, commonFunc) {
|
|
9
10
|
const { cumputedX, cumputedY, getXValue, getYValue } = useBirthProcessCumputedPoint(propItems);
|
|
@@ -47,6 +48,7 @@ function useBirthProcess(canvas, propItems, emits, pointTipProps, pointMenuProps
|
|
|
47
48
|
var _a;
|
|
48
49
|
const pointList = [];
|
|
49
50
|
const lineList = [];
|
|
51
|
+
const otherList = [];
|
|
50
52
|
(_a = item.data) == null ? void 0 : _a.forEach((v, index) => {
|
|
51
53
|
const points = getPointer(v, item);
|
|
52
54
|
drawPointLine(points, v, index);
|
|
@@ -60,18 +62,19 @@ function useBirthProcess(canvas, propItems, emits, pointTipProps, pointMenuProps
|
|
|
60
62
|
v.prevPoint = prevPoint;
|
|
61
63
|
}
|
|
62
64
|
prevPoint = v || prevPoint;
|
|
63
|
-
v == null ? void 0 : v.bringToFront();
|
|
64
65
|
return v;
|
|
65
66
|
});
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
67
|
+
Promise.all(otherList).then((r) => {
|
|
68
|
+
canvas.value.add(...lineListFilter, ...res, ...r);
|
|
69
|
+
res.forEach((point) => {
|
|
70
|
+
point == null ? void 0 : point.bringToFront();
|
|
71
|
+
});
|
|
69
72
|
});
|
|
70
73
|
});
|
|
71
74
|
function drawPointLine(points, v, index) {
|
|
72
75
|
let point;
|
|
73
76
|
let line;
|
|
74
|
-
const { pointAttr = {}, lineAttr = {}, title = "", key, type: pointType = "circle" } = item;
|
|
77
|
+
const { pointAttr = {}, lineAttr = {}, title = "", key, type: pointType = "circle", childbirth = {} } = item;
|
|
75
78
|
const nextV = item.data[index + 1];
|
|
76
79
|
const nextPoint = getPointer(nextV, item);
|
|
77
80
|
if (points && nextPoint && !v.breakpoint) {
|
|
@@ -84,6 +87,25 @@ function useBirthProcess(canvas, propItems, emits, pointTipProps, pointMenuProps
|
|
|
84
87
|
...lineAttr
|
|
85
88
|
}) : null;
|
|
86
89
|
}
|
|
90
|
+
let arrowGroup;
|
|
91
|
+
let arrowGroupText;
|
|
92
|
+
if (v.childbirth) {
|
|
93
|
+
const top = points[1] + yCellHeight;
|
|
94
|
+
arrowGroup = drawArrow([points[0], points[1], top], childbirth.style || {});
|
|
95
|
+
otherList.push(arrowGroup);
|
|
96
|
+
if (childbirth.text) {
|
|
97
|
+
arrowGroupText = drawText([points[0] + xCellWidth / 2, top - yCellHeight / 2], {
|
|
98
|
+
value: String(childbirth.text),
|
|
99
|
+
...defaultTextStyle,
|
|
100
|
+
...{
|
|
101
|
+
originX: "left",
|
|
102
|
+
originY: "center"
|
|
103
|
+
},
|
|
104
|
+
...childbirth.style || {}
|
|
105
|
+
});
|
|
106
|
+
otherList.push(arrowGroupText);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
87
109
|
const previousLine = lineList[index - 1];
|
|
88
110
|
const pointAttrNew = {
|
|
89
111
|
origin: {
|
|
@@ -95,6 +117,8 @@ function useBirthProcess(canvas, propItems, emits, pointTipProps, pointMenuProps
|
|
|
95
117
|
},
|
|
96
118
|
leftLine: previousLine,
|
|
97
119
|
rightLine: line,
|
|
120
|
+
arrowGroup,
|
|
121
|
+
arrowGroupText,
|
|
98
122
|
...pointAttr,
|
|
99
123
|
...propItems.event
|
|
100
124
|
};
|
|
@@ -167,7 +191,6 @@ function useBirthProcess(canvas, propItems, emits, pointTipProps, pointMenuProps
|
|
|
167
191
|
break;
|
|
168
192
|
default: {
|
|
169
193
|
const index2 = getIndex(data.time, item.data);
|
|
170
|
-
console.log("index :>> ", index2);
|
|
171
194
|
item.data.splice(index2, 0, data);
|
|
172
195
|
break;
|
|
173
196
|
}
|
|
@@ -180,6 +203,8 @@ function useBirthProcess(canvas, propItems, emits, pointTipProps, pointMenuProps
|
|
|
180
203
|
point && removePoints.push(point);
|
|
181
204
|
(point == null ? void 0 : point.leftLine) && removePoints.push(point == null ? void 0 : point.leftLine);
|
|
182
205
|
(point == null ? void 0 : point.rightLine) && removePoints.push(point == null ? void 0 : point.rightLine);
|
|
206
|
+
(point == null ? void 0 : point.arrowGroup) && removePoints.push(point == null ? void 0 : point.arrowGroup);
|
|
207
|
+
(point == null ? void 0 : point.arrowGroupText) && removePoints.push(point == null ? void 0 : point.arrowGroupText);
|
|
183
208
|
});
|
|
184
209
|
return removePoints;
|
|
185
210
|
}
|
|
@@ -190,9 +215,11 @@ function useBirthProcess(canvas, propItems, emits, pointTipProps, pointMenuProps
|
|
|
190
215
|
drawPolyLine();
|
|
191
216
|
}
|
|
192
217
|
function updateLine(point) {
|
|
193
|
-
var _a, _b;
|
|
218
|
+
var _a, _b, _c, _d;
|
|
194
219
|
(_a = point.leftLine) == null ? void 0 : _a.setCoords().set({ x2: point.left, y2: point.top });
|
|
195
220
|
(_b = point.rightLine) == null ? void 0 : _b.setCoords().set({ x1: point.left, y1: point.top });
|
|
221
|
+
(_c = point.arrowGroup) == null ? void 0 : _c.setCoords().set({ left: point.left, top: point.top });
|
|
222
|
+
(_d = point.arrowGroupText) == null ? void 0 : _d.setCoords().set({ left: point.left + xCellWidth / 2, top: point.top + yCellHeight / 2 });
|
|
196
223
|
}
|
|
197
224
|
function moveLimit(point) {
|
|
198
225
|
const limitLeft = point.prevPoint ? point.prevPoint.left : originX;
|
|
@@ -281,7 +308,6 @@ function useBirthProcess(canvas, propItems, emits, pointTipProps, pointMenuProps
|
|
|
281
308
|
}
|
|
282
309
|
}
|
|
283
310
|
function clickMenu({ item, target }) {
|
|
284
|
-
console.log("item :>> ", item);
|
|
285
311
|
const params = {
|
|
286
312
|
...item.origin
|
|
287
313
|
};
|
|
@@ -302,20 +328,109 @@ function useBirthProcess(canvas, propItems, emits, pointTipProps, pointMenuProps
|
|
|
302
328
|
function drawOther() {
|
|
303
329
|
const lineData = Object.values(other);
|
|
304
330
|
const lines = [];
|
|
331
|
+
const alertData = {};
|
|
332
|
+
const alertItem = yScaleValue.find((item) => item.key === "cervix");
|
|
333
|
+
const alertStartPoint = alertItem.data.find((_data) => +_data.value === 3);
|
|
305
334
|
lineData.forEach((line) => {
|
|
306
335
|
if (!line.show)
|
|
307
336
|
return;
|
|
308
337
|
const { key } = line;
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
338
|
+
switch (key) {
|
|
339
|
+
case "fetalPresentation": {
|
|
340
|
+
const { range } = yScaleValue.find((item) => item.key === key);
|
|
341
|
+
const y = cumputedY(key, range, 0);
|
|
342
|
+
lines.push(
|
|
343
|
+
drawLine([originX, y, endX, y], {
|
|
344
|
+
...line
|
|
345
|
+
})
|
|
346
|
+
);
|
|
347
|
+
break;
|
|
348
|
+
}
|
|
349
|
+
case "alert": {
|
|
350
|
+
if (alertStartPoint) {
|
|
351
|
+
const { key: key2, range } = alertItem || {};
|
|
352
|
+
const _time = 6 * 60 * 60 * 1e3;
|
|
353
|
+
const endPoint = {
|
|
354
|
+
time: format(new Date(new Date(alertStartPoint.time).getTime() + _time), "yyyy-MM-dd HH:mm"),
|
|
355
|
+
value: 10
|
|
356
|
+
};
|
|
357
|
+
const [x1, y1] = [
|
|
358
|
+
cumputedX(alertStartPoint.time) - originX,
|
|
359
|
+
endY - cumputedY(key2, range, alertStartPoint.value)
|
|
360
|
+
];
|
|
361
|
+
const [x2, y2] = [cumputedX(endPoint.time) - originX, endY - cumputedY(key2, range, endPoint.value)];
|
|
362
|
+
const k = (y2 - y1) / (x2 - x1);
|
|
363
|
+
const b = y1 - x1 * k;
|
|
364
|
+
const pointer = computePointer(k, b);
|
|
365
|
+
if (pointer.length > 0) {
|
|
366
|
+
lines.push(
|
|
367
|
+
drawLine(pointer, {
|
|
368
|
+
...line
|
|
369
|
+
})
|
|
370
|
+
);
|
|
371
|
+
Object.assign(alertData, {
|
|
372
|
+
k,
|
|
373
|
+
b
|
|
374
|
+
});
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
break;
|
|
378
|
+
}
|
|
379
|
+
case "handling": {
|
|
380
|
+
if (alertStartPoint) {
|
|
381
|
+
const { k, b } = alertData;
|
|
382
|
+
const _time = 4 * 60 * 60 * 1e3;
|
|
383
|
+
const endTime = cumputedX(
|
|
384
|
+
format(new Date(new Date(alertStartPoint.time).getTime() + _time), "yyyy-MM-dd HH:mm")
|
|
385
|
+
);
|
|
386
|
+
const a = endTime - cumputedX(alertStartPoint.time);
|
|
387
|
+
const _b = b - a * k;
|
|
388
|
+
const pointer = computePointer(k, _b);
|
|
389
|
+
if (pointer.length > 0) {
|
|
390
|
+
lines.push(
|
|
391
|
+
drawLine(pointer, {
|
|
392
|
+
...line
|
|
393
|
+
})
|
|
394
|
+
);
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
break;
|
|
398
|
+
}
|
|
317
399
|
}
|
|
318
400
|
});
|
|
401
|
+
function computePointer(k, b) {
|
|
402
|
+
const { key, range } = alertItem || {};
|
|
403
|
+
const _originY = cumputedY(key, range, 10);
|
|
404
|
+
const startPointer1 = [0, b];
|
|
405
|
+
const startPointer2 = [-(b / k), 0];
|
|
406
|
+
const endPointer1 = [(endY - _originY - b) / k, endY - _originY];
|
|
407
|
+
const endPointer2 = [endX - originX, k * (endX - originX) + b];
|
|
408
|
+
let startPointer = [];
|
|
409
|
+
let endPointer = [];
|
|
410
|
+
if (isLinePointer(startPointer1) && isLimit2(startPointer1)) {
|
|
411
|
+
startPointer = getActualValue(startPointer1);
|
|
412
|
+
}
|
|
413
|
+
if (isLinePointer(startPointer2) && isLimit2(startPointer2)) {
|
|
414
|
+
startPointer = getActualValue(startPointer2);
|
|
415
|
+
}
|
|
416
|
+
if (isLinePointer(endPointer1) && isLimit2(endPointer1)) {
|
|
417
|
+
endPointer = getActualValue(endPointer1);
|
|
418
|
+
}
|
|
419
|
+
if (isLinePointer(endPointer2) && isLimit2(endPointer2)) {
|
|
420
|
+
endPointer = getActualValue(endPointer2);
|
|
421
|
+
}
|
|
422
|
+
function isLinePointer([x, y]) {
|
|
423
|
+
return Math.abs(y - k * x - b) <= 1;
|
|
424
|
+
}
|
|
425
|
+
function isLimit2([x, y]) {
|
|
426
|
+
const [_x, _y] = [...getActualValue([x, y])];
|
|
427
|
+
return _x >= originX && _x <= endX && _y >= _originY && _y <= endY;
|
|
428
|
+
}
|
|
429
|
+
function getActualValue([x, y]) {
|
|
430
|
+
return [originX + x, endY - y];
|
|
431
|
+
}
|
|
432
|
+
return [...startPointer, ...endPointer];
|
|
433
|
+
}
|
|
319
434
|
canvas.value.add(...lines);
|
|
320
435
|
}
|
|
321
436
|
function drawIcons() {
|
|
@@ -358,28 +358,25 @@ function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, ge
|
|
|
358
358
|
const { value } = otherObj;
|
|
359
359
|
let reduceLine, reducePoint, noRiseText, arrowGroup, riseText, verifiedText;
|
|
360
360
|
if (v.noRise && noRiseStyle.show) {
|
|
361
|
-
if (
|
|
361
|
+
if (noRiseStyle.text) {
|
|
362
362
|
noRiseText = drawText([points[0], points[1] + 5], {
|
|
363
|
-
value:
|
|
363
|
+
value: noRiseStyle.text.split("").join("\n"),
|
|
364
364
|
originY: "top",
|
|
365
|
-
...noRiseStyle
|
|
365
|
+
...noRiseStyle.style || {}
|
|
366
366
|
});
|
|
367
367
|
otherList.push(noRiseText);
|
|
368
368
|
} else {
|
|
369
369
|
const top = points[1] + yCellHeight * 2;
|
|
370
|
-
arrowGroup = drawArrow([points[0], points[1], top], noRiseStyle);
|
|
370
|
+
arrowGroup = drawArrow([points[0], points[1], top], noRiseStyle.style || {});
|
|
371
371
|
otherList.push(arrowGroup);
|
|
372
372
|
}
|
|
373
373
|
}
|
|
374
374
|
if (v.rise && riseStyle.show) {
|
|
375
|
-
if (
|
|
376
|
-
v.rise = "\u5347\u6E29";
|
|
377
|
-
}
|
|
378
|
-
if (typeof v.rise === "string") {
|
|
375
|
+
if (riseStyle.text) {
|
|
379
376
|
riseText = drawText([points[0], points[1] - (value ? yCellHeight : 0) - 5], {
|
|
380
|
-
value:
|
|
377
|
+
value: riseStyle.text.split("").join("\n"),
|
|
381
378
|
originY: "bottom",
|
|
382
|
-
...riseStyle
|
|
379
|
+
...riseStyle.style || {}
|
|
383
380
|
});
|
|
384
381
|
otherList.push(riseText);
|
|
385
382
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { format } from 'date-fns';
|
|
2
|
+
|
|
1
3
|
function useCumputedPoint(propItems) {
|
|
2
4
|
const { xScaleList, originX, endY, xCellWidth, left, vitalSignsOriginY, painOriginY, canvasWidth } = propItems;
|
|
3
5
|
function cumputedX(value, setAllCenter = false) {
|
|
@@ -27,13 +29,7 @@ function useCumputedPoint(propItems) {
|
|
|
27
29
|
const residueX = pointX - item.left;
|
|
28
30
|
const residueTime = item.scaleCell * residueX;
|
|
29
31
|
const time = item.start + residueTime;
|
|
30
|
-
|
|
31
|
-
const month = `00${d.getMonth() + 1}`.slice(-2);
|
|
32
|
-
const day = `00${d.getDate()}`.slice(-2);
|
|
33
|
-
const hours = `00${d.getHours()}`.slice(-2);
|
|
34
|
-
const minutes = `00${d.getMinutes()}`.slice(-2);
|
|
35
|
-
const date = `${d.getFullYear()}-${month}-${day} ${hours}:${minutes}`;
|
|
36
|
-
return date;
|
|
32
|
+
return format(new Date(time), "yyyy-MM-dd HH:mm");
|
|
37
33
|
}
|
|
38
34
|
}
|
|
39
35
|
function getYValue(type, pointY) {
|
|
@@ -64,13 +60,7 @@ function useBirthProcessCumputedPoint(propItems) {
|
|
|
64
60
|
}
|
|
65
61
|
function getXValue(pointX) {
|
|
66
62
|
const time = (pointX - originX) * timeXCell + startTime;
|
|
67
|
-
|
|
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;
|
|
63
|
+
return format(new Date(time), "yyyy-MM-dd HH:mm");
|
|
74
64
|
}
|
|
75
65
|
function getYValue(key, pointY) {
|
|
76
66
|
const item = scaleValues.find((item2) => key === item2.key);
|
|
@@ -11,6 +11,7 @@ import { useEvent, useCanvasEvent } from './useEvent.js';
|
|
|
11
11
|
import '../utils/index.js';
|
|
12
12
|
import { setOtherType } from '../utils/utils.js';
|
|
13
13
|
import 'lodash-es';
|
|
14
|
+
import 'date-fns';
|
|
14
15
|
import { useCommon } from './useCommon.js';
|
|
15
16
|
|
|
16
17
|
function useTemperatureChart(canvas, props, emits, canvasRef) {
|
|
@@ -154,7 +155,7 @@ function useTemperatureChart(canvas, props, emits, canvasRef) {
|
|
|
154
155
|
const itemList = computed(() => {
|
|
155
156
|
const { left } = props.data;
|
|
156
157
|
return left.yScaleValue.map((item) => {
|
|
157
|
-
return item.dataList.map((v, dataIndex) => {
|
|
158
|
+
return item.dataList.filter((v) => v.show).map((v, dataIndex) => {
|
|
158
159
|
return {
|
|
159
160
|
...v,
|
|
160
161
|
bigType: setOtherType(v.title, item.type),
|
|
@@ -422,8 +422,9 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
422
422
|
};
|
|
423
423
|
}>> & {
|
|
424
424
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
|
425
|
+
onScroll?: ((...args: any[]) => any) | undefined;
|
|
425
426
|
}>>;
|
|
426
|
-
emit: (event: "formChange", ...args: any[]) => void;
|
|
427
|
+
emit: (event: "scroll" | "formChange", ...args: any[]) => void;
|
|
427
428
|
nuiThemeOverrides: import("naive-ui").GlobalThemeOverrides;
|
|
428
429
|
formModel: import("@formily/core").Form<{
|
|
429
430
|
[x: string]: any;
|
|
@@ -614,7 +615,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
614
615
|
title: string;
|
|
615
616
|
}[]>;
|
|
616
617
|
formHeight: import("vue").ComputedRef<string | undefined>;
|
|
617
|
-
onScroll: () => void;
|
|
618
|
+
onScroll: (scrollEvent: Event) => void;
|
|
618
619
|
onKeydown: (event: KeyboardEvent) => void;
|
|
619
620
|
queryWidget: (key: string, wrapperElement: HTMLElement, fieldList: import("..").FieldItem[]) => Promise<{
|
|
620
621
|
widgetElement: HTMLInputElement | null | undefined;
|
|
@@ -679,7 +680,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
679
680
|
}>;
|
|
680
681
|
NTabs: any;
|
|
681
682
|
NConfigProvider: any;
|
|
682
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "formChange"[], "formChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
683
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("scroll" | "formChange")[], "scroll" | "formChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
683
684
|
fieldList: {
|
|
684
685
|
type: import("vue").PropType<import("..").FieldItem[]>;
|
|
685
686
|
};
|
|
@@ -805,6 +806,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
805
806
|
};
|
|
806
807
|
}>> & {
|
|
807
808
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
|
809
|
+
onScroll?: ((...args: any[]) => any) | undefined;
|
|
808
810
|
}, {
|
|
809
811
|
anchor: boolean;
|
|
810
812
|
maxHeight: string | number;
|
|
@@ -2919,8 +2921,9 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2919
2921
|
};
|
|
2920
2922
|
}>> & {
|
|
2921
2923
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
|
2924
|
+
onScroll?: ((...args: any[]) => any) | undefined;
|
|
2922
2925
|
}>>;
|
|
2923
|
-
emit: (event: "formChange", ...args: any[]) => void;
|
|
2926
|
+
emit: (event: "scroll" | "formChange", ...args: any[]) => void;
|
|
2924
2927
|
nuiThemeOverrides: import("naive-ui").GlobalThemeOverrides;
|
|
2925
2928
|
formModel: import("@formily/core").Form<{
|
|
2926
2929
|
[x: string]: any;
|
|
@@ -3111,7 +3114,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
3111
3114
|
title: string;
|
|
3112
3115
|
}[]>;
|
|
3113
3116
|
formHeight: import("vue").ComputedRef<string | undefined>;
|
|
3114
|
-
onScroll: () => void;
|
|
3117
|
+
onScroll: (scrollEvent: Event) => void;
|
|
3115
3118
|
onKeydown: (event: KeyboardEvent) => void;
|
|
3116
3119
|
queryWidget: (key: string, wrapperElement: HTMLElement, fieldList: import("..").FieldItem[]) => Promise<{
|
|
3117
3120
|
widgetElement: HTMLInputElement | null | undefined;
|
|
@@ -3176,7 +3179,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
3176
3179
|
}>;
|
|
3177
3180
|
NTabs: any;
|
|
3178
3181
|
NConfigProvider: any;
|
|
3179
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "formChange"[], "formChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
3182
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("scroll" | "formChange")[], "scroll" | "formChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
3180
3183
|
fieldList: {
|
|
3181
3184
|
type: import("vue").PropType<import("..").FieldItem[]>;
|
|
3182
3185
|
};
|
|
@@ -3302,6 +3305,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
3302
3305
|
};
|
|
3303
3306
|
}>> & {
|
|
3304
3307
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
|
3308
|
+
onScroll?: ((...args: any[]) => any) | undefined;
|
|
3305
3309
|
}, {
|
|
3306
3310
|
anchor: boolean;
|
|
3307
3311
|
maxHeight: string | number;
|
|
@@ -423,8 +423,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
423
423
|
};
|
|
424
424
|
}>> & {
|
|
425
425
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
|
426
|
+
onScroll?: ((...args: any[]) => any) | undefined;
|
|
426
427
|
}>>;
|
|
427
|
-
emit: (event: "formChange", ...args: any[]) => void;
|
|
428
|
+
emit: (event: "scroll" | "formChange", ...args: any[]) => void;
|
|
428
429
|
nuiThemeOverrides: import("naive-ui").GlobalThemeOverrides;
|
|
429
430
|
formModel: import("@formily/core").Form<{
|
|
430
431
|
[x: string]: any;
|
|
@@ -615,7 +616,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
615
616
|
title: string;
|
|
616
617
|
}[]>;
|
|
617
618
|
formHeight: import("vue").ComputedRef<string | undefined>;
|
|
618
|
-
onScroll: () => void;
|
|
619
|
+
onScroll: (scrollEvent: Event) => void;
|
|
619
620
|
onKeydown: (event: KeyboardEvent) => void;
|
|
620
621
|
queryWidget: (key: string, wrapperElement: HTMLElement, fieldList: import("../..").FieldItem[]) => Promise<{
|
|
621
622
|
widgetElement: HTMLInputElement | null | undefined;
|
|
@@ -680,7 +681,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
680
681
|
}>;
|
|
681
682
|
NTabs: any;
|
|
682
683
|
NConfigProvider: any;
|
|
683
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "formChange"[], "formChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
684
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("scroll" | "formChange")[], "scroll" | "formChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
684
685
|
fieldList: {
|
|
685
686
|
type: PropType<import("../..").FieldItem[]>;
|
|
686
687
|
};
|
|
@@ -806,6 +807,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
806
807
|
};
|
|
807
808
|
}>> & {
|
|
808
809
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
|
810
|
+
onScroll?: ((...args: any[]) => any) | undefined;
|
|
809
811
|
}, {
|
|
810
812
|
anchor: boolean;
|
|
811
813
|
maxHeight: string | number;
|
|
@@ -2920,8 +2922,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2920
2922
|
};
|
|
2921
2923
|
}>> & {
|
|
2922
2924
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
|
2925
|
+
onScroll?: ((...args: any[]) => any) | undefined;
|
|
2923
2926
|
}>>;
|
|
2924
|
-
emit: (event: "formChange", ...args: any[]) => void;
|
|
2927
|
+
emit: (event: "scroll" | "formChange", ...args: any[]) => void;
|
|
2925
2928
|
nuiThemeOverrides: import("naive-ui").GlobalThemeOverrides;
|
|
2926
2929
|
formModel: import("@formily/core").Form<{
|
|
2927
2930
|
[x: string]: any;
|
|
@@ -3112,7 +3115,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3112
3115
|
title: string;
|
|
3113
3116
|
}[]>;
|
|
3114
3117
|
formHeight: import("vue").ComputedRef<string | undefined>;
|
|
3115
|
-
onScroll: () => void;
|
|
3118
|
+
onScroll: (scrollEvent: Event) => void;
|
|
3116
3119
|
onKeydown: (event: KeyboardEvent) => void;
|
|
3117
3120
|
queryWidget: (key: string, wrapperElement: HTMLElement, fieldList: import("../..").FieldItem[]) => Promise<{
|
|
3118
3121
|
widgetElement: HTMLInputElement | null | undefined;
|
|
@@ -3177,7 +3180,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3177
3180
|
}>;
|
|
3178
3181
|
NTabs: any;
|
|
3179
3182
|
NConfigProvider: any;
|
|
3180
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "formChange"[], "formChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
3183
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("scroll" | "formChange")[], "scroll" | "formChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
3181
3184
|
fieldList: {
|
|
3182
3185
|
type: PropType<import("../..").FieldItem[]>;
|
|
3183
3186
|
};
|
|
@@ -3303,6 +3306,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3303
3306
|
};
|
|
3304
3307
|
}>> & {
|
|
3305
3308
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
|
3309
|
+
onScroll?: ((...args: any[]) => any) | undefined;
|
|
3306
3310
|
}, {
|
|
3307
3311
|
anchor: boolean;
|
|
3308
3312
|
maxHeight: string | number;
|
|
@@ -272,8 +272,9 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
272
272
|
};
|
|
273
273
|
}>> & {
|
|
274
274
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
|
275
|
+
onScroll?: ((...args: any[]) => any) | undefined;
|
|
275
276
|
}>>;
|
|
276
|
-
emit: (event: "formChange", ...args: any[]) => void;
|
|
277
|
+
emit: (event: "scroll" | "formChange", ...args: any[]) => void;
|
|
277
278
|
nuiThemeOverrides: import("naive-ui").GlobalThemeOverrides;
|
|
278
279
|
formModel: import("../../../../../es/components/form-render").Form<{
|
|
279
280
|
[x: string]: any;
|
|
@@ -464,7 +465,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
464
465
|
title: string;
|
|
465
466
|
}[]>;
|
|
466
467
|
formHeight: import("vue").ComputedRef<string | undefined>;
|
|
467
|
-
onScroll: () => void;
|
|
468
|
+
onScroll: (scrollEvent: Event) => void;
|
|
468
469
|
onKeydown: (event: KeyboardEvent) => void;
|
|
469
470
|
queryWidget: (key: string, wrapperElement: HTMLElement, fieldList: FieldItem[]) => Promise<{
|
|
470
471
|
widgetElement: HTMLInputElement | null | undefined;
|
|
@@ -529,7 +530,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
529
530
|
}>;
|
|
530
531
|
NTabs: any;
|
|
531
532
|
NConfigProvider: any;
|
|
532
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "formChange"[], "formChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
533
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("scroll" | "formChange")[], "scroll" | "formChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
533
534
|
fieldList: {
|
|
534
535
|
type: import("vue").PropType<FieldItem[]>;
|
|
535
536
|
};
|
|
@@ -655,6 +656,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
655
656
|
};
|
|
656
657
|
}>> & {
|
|
657
658
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
|
659
|
+
onScroll?: ((...args: any[]) => any) | undefined;
|
|
658
660
|
}, {
|
|
659
661
|
anchor: boolean;
|
|
660
662
|
maxHeight: string | number;
|
|
@@ -1992,8 +1992,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1992
1992
|
};
|
|
1993
1993
|
}>> & {
|
|
1994
1994
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
|
1995
|
+
onScroll?: ((...args: any[]) => any) | undefined;
|
|
1995
1996
|
}>>;
|
|
1996
|
-
emit: (event: "formChange", ...args: any[]) => void;
|
|
1997
|
+
emit: (event: "scroll" | "formChange", ...args: any[]) => void;
|
|
1997
1998
|
nuiThemeOverrides: import("naive-ui").GlobalThemeOverrides;
|
|
1998
1999
|
formModel: import("../../../../../es/components/form-render").Form<{
|
|
1999
2000
|
[x: string]: any;
|
|
@@ -2184,7 +2185,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2184
2185
|
title: string;
|
|
2185
2186
|
}[]>;
|
|
2186
2187
|
formHeight: import("vue").ComputedRef<string | undefined>;
|
|
2187
|
-
onScroll: () => void;
|
|
2188
|
+
onScroll: (scrollEvent: Event) => void;
|
|
2188
2189
|
onKeydown: (event: KeyboardEvent) => void;
|
|
2189
2190
|
queryWidget: (key: string, wrapperElement: HTMLElement, fieldList: FieldItem[]) => Promise<{
|
|
2190
2191
|
widgetElement: HTMLInputElement | null | undefined;
|
|
@@ -2249,7 +2250,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2249
2250
|
}>;
|
|
2250
2251
|
NTabs: any;
|
|
2251
2252
|
NConfigProvider: any;
|
|
2252
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "formChange"[], "formChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
2253
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("scroll" | "formChange")[], "scroll" | "formChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
2253
2254
|
fieldList: {
|
|
2254
2255
|
type: import("vue").PropType<FieldItem[]>;
|
|
2255
2256
|
};
|
|
@@ -2375,6 +2376,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2375
2376
|
};
|
|
2376
2377
|
}>> & {
|
|
2377
2378
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
|
2379
|
+
onScroll?: ((...args: any[]) => any) | undefined;
|
|
2378
2380
|
}, {
|
|
2379
2381
|
anchor: boolean;
|
|
2380
2382
|
maxHeight: string | number;
|
|
@@ -259,8 +259,9 @@ declare const FormRender: SFCWithInstall<import("vue").DefineComponent<{}, {
|
|
|
259
259
|
};
|
|
260
260
|
}>> & {
|
|
261
261
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
|
262
|
+
onScroll?: ((...args: any[]) => any) | undefined;
|
|
262
263
|
}>>;
|
|
263
|
-
emit: (event: "formChange", ...args: any[]) => void;
|
|
264
|
+
emit: (event: "scroll" | "formChange", ...args: any[]) => void;
|
|
264
265
|
nuiThemeOverrides: import("naive-ui").GlobalThemeOverrides;
|
|
265
266
|
formModel: import("@formily/core/esm/models/Form").Form<{
|
|
266
267
|
[x: string]: any;
|
|
@@ -451,7 +452,7 @@ declare const FormRender: SFCWithInstall<import("vue").DefineComponent<{}, {
|
|
|
451
452
|
title: string;
|
|
452
453
|
}[]>;
|
|
453
454
|
formHeight: import("vue").ComputedRef<string | undefined>;
|
|
454
|
-
onScroll: () => void;
|
|
455
|
+
onScroll: (scrollEvent: Event) => void;
|
|
455
456
|
onKeydown: (event: KeyboardEvent) => void;
|
|
456
457
|
queryWidget: (key: string, wrapperElement: HTMLElement, fieldList: import("./src/types").FieldItem[]) => Promise<{
|
|
457
458
|
widgetElement: HTMLInputElement | null | undefined;
|
|
@@ -516,7 +517,7 @@ declare const FormRender: SFCWithInstall<import("vue").DefineComponent<{}, {
|
|
|
516
517
|
}>;
|
|
517
518
|
NTabs: any;
|
|
518
519
|
NConfigProvider: any;
|
|
519
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "formChange"[], "formChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
520
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("scroll" | "formChange")[], "scroll" | "formChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
520
521
|
fieldList: {
|
|
521
522
|
type: import("vue").PropType<import("./src/types").FieldItem[]>;
|
|
522
523
|
};
|
|
@@ -642,6 +643,7 @@ declare const FormRender: SFCWithInstall<import("vue").DefineComponent<{}, {
|
|
|
642
643
|
};
|
|
643
644
|
}>> & {
|
|
644
645
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
|
646
|
+
onScroll?: ((...args: any[]) => any) | undefined;
|
|
645
647
|
}, {
|
|
646
648
|
anchor: boolean;
|
|
647
649
|
maxHeight: string | number;
|
|
@@ -253,8 +253,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
253
253
|
};
|
|
254
254
|
}>> & {
|
|
255
255
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
|
256
|
+
onScroll?: ((...args: any[]) => any) | undefined;
|
|
256
257
|
}>>;
|
|
257
|
-
emit: (event: "formChange", ...args: any[]) => void;
|
|
258
|
+
emit: (event: "scroll" | "formChange", ...args: any[]) => void;
|
|
258
259
|
nuiThemeOverrides: import("naive-ui").GlobalThemeOverrides;
|
|
259
260
|
formModel: import("@formily/core").Form<{
|
|
260
261
|
[x: string]: any;
|
|
@@ -445,7 +446,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
445
446
|
title: string;
|
|
446
447
|
}[]>;
|
|
447
448
|
formHeight: import("vue").ComputedRef<string | undefined>;
|
|
448
|
-
onScroll: () => void;
|
|
449
|
+
onScroll: (scrollEvent: Event) => void;
|
|
449
450
|
onKeydown: (event: KeyboardEvent) => void;
|
|
450
451
|
queryWidget: (key: string, wrapperElement: HTMLElement, fieldList: FieldItem[]) => Promise<{
|
|
451
452
|
widgetElement: HTMLInputElement | null | undefined;
|
|
@@ -510,7 +511,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
510
511
|
}>;
|
|
511
512
|
NTabs: any;
|
|
512
513
|
NConfigProvider: any;
|
|
513
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "formChange"[], "formChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
514
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("scroll" | "formChange")[], "scroll" | "formChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
514
515
|
fieldList: {
|
|
515
516
|
type: PropType<FieldItem[]>;
|
|
516
517
|
};
|
|
@@ -636,6 +637,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
636
637
|
};
|
|
637
638
|
}>> & {
|
|
638
639
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
|
640
|
+
onScroll?: ((...args: any[]) => any) | undefined;
|
|
639
641
|
}, {
|
|
640
642
|
anchor: boolean;
|
|
641
643
|
maxHeight: string | number;
|
|
@@ -70,7 +70,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
70
70
|
}
|
|
71
71
|
},
|
|
72
72
|
emits: [
|
|
73
|
-
"formChange"
|
|
73
|
+
"formChange",
|
|
74
|
+
"scroll"
|
|
74
75
|
],
|
|
75
76
|
setup(__props, { expose, emit }) {
|
|
76
77
|
const props = __props;
|
|
@@ -119,6 +120,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
119
120
|
});
|
|
120
121
|
const { currentAnchor, generateAnchorList, anchorIdList, formHeight, onScroll } = useAnchor(
|
|
121
122
|
props,
|
|
123
|
+
emit,
|
|
122
124
|
formRenderRef,
|
|
123
125
|
formItemDepsCollector
|
|
124
126
|
);
|
|
@@ -256,8 +256,9 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
256
256
|
};
|
|
257
257
|
}>> & {
|
|
258
258
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
|
259
|
+
onScroll?: ((...args: any[]) => any) | undefined;
|
|
259
260
|
}>>;
|
|
260
|
-
emit: (event: "formChange", ...args: any[]) => void;
|
|
261
|
+
emit: (event: "scroll" | "formChange", ...args: any[]) => void;
|
|
261
262
|
nuiThemeOverrides: import("naive-ui").GlobalThemeOverrides;
|
|
262
263
|
formModel: import("../../../../es/components/form-render").Form<{
|
|
263
264
|
[x: string]: any;
|
|
@@ -448,7 +449,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
448
449
|
title: string;
|
|
449
450
|
}[]>;
|
|
450
451
|
formHeight: import("vue").ComputedRef<string | undefined>;
|
|
451
|
-
onScroll: () => void;
|
|
452
|
+
onScroll: (scrollEvent: Event) => void;
|
|
452
453
|
onKeydown: (event: KeyboardEvent) => void;
|
|
453
454
|
queryWidget: (key: string, wrapperElement: HTMLElement, fieldList: import("../../../../es/components/form-render").FieldItem[]) => Promise<{
|
|
454
455
|
widgetElement: HTMLInputElement | null | undefined;
|
|
@@ -513,7 +514,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
513
514
|
}>;
|
|
514
515
|
NTabs: any;
|
|
515
516
|
NConfigProvider: any;
|
|
516
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "formChange"[], "formChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
517
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("scroll" | "formChange")[], "scroll" | "formChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
517
518
|
fieldList: {
|
|
518
519
|
type: import("vue").PropType<import("../../../../es/components/form-render").FieldItem[]>;
|
|
519
520
|
};
|
|
@@ -639,6 +640,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
639
640
|
};
|
|
640
641
|
}>> & {
|
|
641
642
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
|
643
|
+
onScroll?: ((...args: any[]) => any) | undefined;
|
|
642
644
|
}, {
|
|
643
645
|
anchor: boolean;
|
|
644
646
|
maxHeight: string | number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, watch, inject, createVNode } from 'vue';
|
|
2
2
|
import { isObjectField } from '@formily/core';
|
|
3
|
-
import { isNumber, isArray } from 'lodash-es';
|
|
3
|
+
import { isNumber, isArray, range } from 'lodash-es';
|
|
4
4
|
import '../../../index.js';
|
|
5
5
|
import { useField, RecursionField, connect } from '@formily/vue';
|
|
6
6
|
import { NButton, NIcon } from 'naive-ui';
|
|
@@ -87,9 +87,7 @@ const script = defineComponent({
|
|
|
87
87
|
"component": AddCircleOutline
|
|
88
88
|
}, null),
|
|
89
89
|
default: () => "\u65B0\u589E"
|
|
90
|
-
})]),
|
|
91
|
-
length: currentGroupNum.value
|
|
92
|
-
}).map((_, idx) => createVNode("section", {
|
|
90
|
+
})]), range(currentGroupNum.value).map((_, idx) => createVNode("section", {
|
|
93
91
|
"class": "form-render__combinationContent"
|
|
94
92
|
}, [createVNode(RecursionField, {
|
|
95
93
|
"schema": createObjSchema(schemaAdaptor(props.getProperties())),
|
|
@@ -2,7 +2,7 @@ import { defineComponent, ref, computed, watch, onMounted, createVNode } from 'v
|
|
|
2
2
|
import { isField } from '@formily/core';
|
|
3
3
|
import { Path } from '@formily/path';
|
|
4
4
|
import { AddCircleOutline, RemoveCircle } from '@vicons/ionicons5';
|
|
5
|
-
import { isNumber, isArray, isEqual } from 'lodash-es';
|
|
5
|
+
import { isNumber, range, isArray, isEqual } from 'lodash-es';
|
|
6
6
|
import { useDeepValidate } from './hooks/useDeepValidate.js';
|
|
7
7
|
import { formRenderLog, mergeDeepProperties } from '../../../utils/index.js';
|
|
8
8
|
import { connect, mapProps } from '@formily/vue';
|
|
@@ -151,9 +151,7 @@ const script = defineComponent({
|
|
|
151
151
|
"component": AddCircleOutline
|
|
152
152
|
}, null),
|
|
153
153
|
default: () => "\u65B0\u589E"
|
|
154
|
-
})]),
|
|
155
|
-
length: currentGroupNum.value
|
|
156
|
-
}).map((_, idx) => createVNode("section", {
|
|
154
|
+
})]), range(currentGroupNum.value).map((_, idx) => createVNode("section", {
|
|
157
155
|
"class": "form-render__combinationContentJson"
|
|
158
156
|
}, [createVNode(FormRenderComponent, {
|
|
159
157
|
"ref": (_ref) => setFormRenderRef(idx, _ref),
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import { UndefinedAble } from '../../../../../es/shared/types';
|
|
1
|
+
import { Func, UndefinedAble } from '../../../../../es/shared/types';
|
|
2
2
|
import { ISchema } from '@formily/json-schema/esm/types';
|
|
3
3
|
import { Ref } from 'vue';
|
|
4
4
|
import { FormItemDepsCollector, FormRenderProps } from '../../../../../es/components/form-render';
|
|
5
|
-
export declare function useAnchor(props: Readonly<FormRenderProps>, scrollbarRef: Ref<UndefinedAble<HTMLElement>>, collector: FormItemDepsCollector): {
|
|
5
|
+
export declare function useAnchor(props: Readonly<FormRenderProps>, emit: Func, scrollbarRef: Ref<UndefinedAble<HTMLElement>>, collector: FormItemDepsCollector): {
|
|
6
6
|
currentAnchor: import("vue").WritableComputedRef<string>;
|
|
7
|
-
onScroll: () => void;
|
|
7
|
+
onScroll: (scrollEvent: Event) => void;
|
|
8
8
|
formHeight: import("vue").ComputedRef<string | undefined>;
|
|
9
9
|
anchorIdList: Ref<{
|
|
10
10
|
name: string;
|
|
11
11
|
title: string;
|
|
12
12
|
}[]>;
|
|
13
13
|
generateAnchorList: (schema: ISchema) => void;
|
|
14
|
-
scrollbarRef: Ref<UndefinedAble<HTMLElement>>;
|
|
15
14
|
scrollTo: (id: string) => Promise<void>;
|
|
16
15
|
};
|
|
@@ -6,7 +6,7 @@ import { FormItemLineBarDepKeyPrepend } from '../constants/index.js';
|
|
|
6
6
|
import '../utils/index.js';
|
|
7
7
|
import { createLinebarId, traverseSchema } from '../utils/schema.js';
|
|
8
8
|
|
|
9
|
-
function useAnchor(props, scrollbarRef, collector) {
|
|
9
|
+
function useAnchor(props, emit, scrollbarRef, collector) {
|
|
10
10
|
const __currentAnchor = ref("");
|
|
11
11
|
const formHeight = computed(() => {
|
|
12
12
|
if (isNumber(props.maxHeight))
|
|
@@ -51,7 +51,7 @@ function useAnchor(props, scrollbarRef, collector) {
|
|
|
51
51
|
scrollLock = false;
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
|
-
const onScroll = useDebounceFn(function() {
|
|
54
|
+
const onScroll = useDebounceFn(function(scrollEvent) {
|
|
55
55
|
var _a;
|
|
56
56
|
if (scrollLock || !scrollbarRef.value)
|
|
57
57
|
return;
|
|
@@ -66,6 +66,7 @@ function useAnchor(props, scrollbarRef, collector) {
|
|
|
66
66
|
return node.offsetTop > scrollTop + clientHeight / 2;
|
|
67
67
|
}) || anchorIdList.value[anchorIdList.value.length - 1];
|
|
68
68
|
__currentAnchor.value = (_a = result == null ? void 0 : result.name) != null ? _a : "";
|
|
69
|
+
emit("scroll", scrollEvent);
|
|
69
70
|
}, 300);
|
|
70
71
|
watch(
|
|
71
72
|
anchorIdList,
|
|
@@ -91,7 +92,6 @@ function useAnchor(props, scrollbarRef, collector) {
|
|
|
91
92
|
formHeight,
|
|
92
93
|
anchorIdList,
|
|
93
94
|
generateAnchorList,
|
|
94
|
-
scrollbarRef,
|
|
95
95
|
scrollTo
|
|
96
96
|
};
|
|
97
97
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { reactive, inject, createVNode, toRaw, h, onBeforeUnmount } from 'vue';
|
|
2
2
|
import { traverse } from '../../../../../../../shared/utils/index.js';
|
|
3
|
-
import { isFunction, isObject } from 'lodash-es';
|
|
3
|
+
import { isFunction, isObject, range } from 'lodash-es';
|
|
4
4
|
import '../../../../../index.js';
|
|
5
5
|
import { EDITABLE_WIDGET_TYPE, InjectionIhoTableUUID } from '../../../../constants/index.js';
|
|
6
6
|
import { IhoTableRenderHelper, getRowHeight, getColumnRenderWidth } from '../../../../utils/index.js';
|
|
@@ -98,9 +98,7 @@ function separateRendererPlugins() {
|
|
|
98
98
|
data: contentSeparate(rowData[column.field], column, width)
|
|
99
99
|
});
|
|
100
100
|
}
|
|
101
|
-
|
|
102
|
-
length: getColumnInfoMaxLength(parsedRowDataInfo)
|
|
103
|
-
}).forEach((_, index) => {
|
|
101
|
+
range(getColumnInfoMaxLength(parsedRowDataInfo)).forEach((_, index) => {
|
|
104
102
|
const separateData = generateSeparateRowData(parsedRowDataInfo, index);
|
|
105
103
|
if (index === 0) {
|
|
106
104
|
setSeparateRowData(config.uuid, rowData, {
|
|
@@ -11,7 +11,9 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
11
11
|
patientInfo: {
|
|
12
12
|
type: import("vue").PropType<Partial<{
|
|
13
13
|
avatar: string;
|
|
14
|
+
avatarPreview: string;
|
|
14
15
|
avatarProps: string;
|
|
16
|
+
avatarPreviewProps: string;
|
|
15
17
|
name: string;
|
|
16
18
|
sex: string;
|
|
17
19
|
age: string;
|
|
@@ -69,7 +71,9 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
69
71
|
patientInfo: {
|
|
70
72
|
type: import("vue").PropType<Partial<{
|
|
71
73
|
avatar: string;
|
|
74
|
+
avatarPreview: string;
|
|
72
75
|
avatarProps: string;
|
|
76
|
+
avatarPreviewProps: string;
|
|
73
77
|
name: string;
|
|
74
78
|
sex: string;
|
|
75
79
|
age: string;
|
|
@@ -190,6 +194,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
190
194
|
NTag: any;
|
|
191
195
|
NScrollbar: any;
|
|
192
196
|
NImage: any;
|
|
197
|
+
NPopover: any;
|
|
193
198
|
SlotRender: import("vue").DefineComponent<{
|
|
194
199
|
renderer: {
|
|
195
200
|
type: import("vue").PropType<string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("../../../es/shared/types").Func<any[], any>>;
|
|
@@ -334,7 +339,9 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
334
339
|
patientInfo: {
|
|
335
340
|
type: import("vue").PropType<Partial<{
|
|
336
341
|
avatar: string;
|
|
342
|
+
avatarPreview: string;
|
|
337
343
|
avatarProps: string;
|
|
344
|
+
avatarPreviewProps: string;
|
|
338
345
|
name: string;
|
|
339
346
|
sex: string;
|
|
340
347
|
age: string;
|
|
@@ -387,7 +394,9 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
387
394
|
separator: string;
|
|
388
395
|
patientInfo: Partial<{
|
|
389
396
|
avatar: string;
|
|
397
|
+
avatarPreview: string;
|
|
390
398
|
avatarProps: string;
|
|
399
|
+
avatarPreviewProps: string;
|
|
391
400
|
name: string;
|
|
392
401
|
sex: string;
|
|
393
402
|
age: string;
|
|
@@ -20,7 +20,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
20
20
|
patientInfo: {
|
|
21
21
|
type: PropType<Partial<{
|
|
22
22
|
avatar: string;
|
|
23
|
+
avatarPreview: string;
|
|
23
24
|
avatarProps: string;
|
|
25
|
+
avatarPreviewProps: string;
|
|
24
26
|
name: string;
|
|
25
27
|
sex: string;
|
|
26
28
|
age: string;
|
|
@@ -76,7 +78,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
76
78
|
patientInfo: {
|
|
77
79
|
type: PropType<Partial<{
|
|
78
80
|
avatar: string;
|
|
81
|
+
avatarPreview: string;
|
|
79
82
|
avatarProps: string;
|
|
83
|
+
avatarPreviewProps: string;
|
|
80
84
|
name: string;
|
|
81
85
|
sex: string;
|
|
82
86
|
age: string;
|
|
@@ -184,6 +188,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
184
188
|
NTag: any;
|
|
185
189
|
NScrollbar: any;
|
|
186
190
|
NImage: any;
|
|
191
|
+
NPopover: any;
|
|
187
192
|
SlotRender: import("vue").DefineComponent<{
|
|
188
193
|
renderer: {
|
|
189
194
|
type: PropType<string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | Func<any[], any>>;
|
|
@@ -328,7 +333,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
328
333
|
patientInfo: {
|
|
329
334
|
type: PropType<Partial<{
|
|
330
335
|
avatar: string;
|
|
336
|
+
avatarPreview: string;
|
|
331
337
|
avatarProps: string;
|
|
338
|
+
avatarPreviewProps: string;
|
|
332
339
|
name: string;
|
|
333
340
|
sex: string;
|
|
334
341
|
age: string;
|
|
@@ -379,7 +386,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
379
386
|
separator: string;
|
|
380
387
|
patientInfo: Partial<{
|
|
381
388
|
avatar: string;
|
|
389
|
+
avatarPreview: string;
|
|
382
390
|
avatarProps: string;
|
|
391
|
+
avatarPreviewProps: string;
|
|
383
392
|
name: string;
|
|
384
393
|
sex: string;
|
|
385
394
|
age: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent, computed, ref, nextTick, onMounted, watch, onBeforeUnmount, onDeactivated, onActivated, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, renderSlot, createCommentVNode, Fragment, createVNode, unref, mergeProps, toDisplayString, renderList, withDirectives, createBlock,
|
|
1
|
+
import { defineComponent, computed, ref, nextTick, onMounted, watch, onBeforeUnmount, onDeactivated, onActivated, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, renderSlot, createCommentVNode, Fragment, createVNode, unref, withCtx, mergeProps, toDisplayString, renderList, withDirectives, createBlock, createTextVNode, vShow, resolveDynamicComponent, h } from 'vue';
|
|
2
2
|
import { isString } from 'lodash-es';
|
|
3
|
-
import { NImage, NTag, NScrollbar, NDescriptions, NDescriptionsItem } from 'naive-ui';
|
|
3
|
+
import { NPopover, NImage, NTag, NScrollbar, NDescriptions, NDescriptionsItem } from 'naive-ui';
|
|
4
4
|
import { useThrottleFn, useEventListener } from '@vueuse/core';
|
|
5
5
|
import script$1 from '../../../shared/components/SlotRender/SlotRender.js';
|
|
6
6
|
import InfoEllipsis from './InfoEllipsis.vue.js';
|
|
@@ -167,10 +167,25 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
167
167
|
renderSlot(_ctx.$slots, "avatarModule", {}, () => [
|
|
168
168
|
!_ctx.$slots.avatarModule ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
169
169
|
renderSlot(_ctx.$slots, "avatar", {}, () => [
|
|
170
|
-
createVNode(unref(
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
170
|
+
createVNode(unref(NPopover), null, {
|
|
171
|
+
trigger: withCtx(() => [
|
|
172
|
+
createVNode(unref(NImage), mergeProps({
|
|
173
|
+
style: { "border-radius": "50%" },
|
|
174
|
+
width: 40,
|
|
175
|
+
height: 40,
|
|
176
|
+
"preview-disabled": "",
|
|
177
|
+
src: __props.patientInfo.avatar
|
|
178
|
+
}, __props.patientInfo.avatarProps), null, 16, ["src"])
|
|
179
|
+
]),
|
|
180
|
+
default: withCtx(() => [
|
|
181
|
+
createVNode(unref(NImage), mergeProps({
|
|
182
|
+
width: 200,
|
|
183
|
+
"preview-disabled": "",
|
|
184
|
+
src: __props.patientInfo.avatarPreview || __props.patientInfo.avatar
|
|
185
|
+
}, __props.patientInfo.avatarPreviewProps), null, 16, ["src"])
|
|
186
|
+
]),
|
|
187
|
+
_: 1
|
|
188
|
+
})
|
|
174
189
|
]),
|
|
175
190
|
createElementVNode("section", null, [
|
|
176
191
|
createElementVNode("header", _hoisted_4, [
|
|
@@ -1972,8 +1972,9 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1972
1972
|
};
|
|
1973
1973
|
}>> & {
|
|
1974
1974
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
|
1975
|
+
onScroll?: ((...args: any[]) => any) | undefined;
|
|
1975
1976
|
}>>;
|
|
1976
|
-
emit: (event: "formChange", ...args: any[]) => void;
|
|
1977
|
+
emit: (event: "scroll" | "formChange", ...args: any[]) => void;
|
|
1977
1978
|
nuiThemeOverrides: import("naive-ui").GlobalThemeOverrides;
|
|
1978
1979
|
formModel: import("@formily/core").Form<{
|
|
1979
1980
|
[x: string]: any;
|
|
@@ -2164,7 +2165,7 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2164
2165
|
title: string;
|
|
2165
2166
|
}[]>;
|
|
2166
2167
|
formHeight: import("vue").ComputedRef<string | undefined>;
|
|
2167
|
-
onScroll: () => void;
|
|
2168
|
+
onScroll: (scrollEvent: Event) => void;
|
|
2168
2169
|
onKeydown: (event: KeyboardEvent) => void;
|
|
2169
2170
|
queryWidget: (key: string, wrapperElement: HTMLElement, fieldList: import("..").FieldItem[]) => Promise<{
|
|
2170
2171
|
widgetElement: HTMLInputElement | null | undefined;
|
|
@@ -2229,7 +2230,7 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2229
2230
|
}>;
|
|
2230
2231
|
NTabs: any;
|
|
2231
2232
|
NConfigProvider: any;
|
|
2232
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "formChange"[], "formChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
2233
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("scroll" | "formChange")[], "scroll" | "formChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
2233
2234
|
fieldList: {
|
|
2234
2235
|
type: import("vue").PropType<import("..").FieldItem[]>;
|
|
2235
2236
|
};
|
|
@@ -2355,6 +2356,7 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2355
2356
|
};
|
|
2356
2357
|
}>> & {
|
|
2357
2358
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
|
2359
|
+
onScroll?: ((...args: any[]) => any) | undefined;
|
|
2358
2360
|
}, {
|
|
2359
2361
|
anchor: boolean;
|
|
2360
2362
|
maxHeight: string | number;
|
|
@@ -1974,8 +1974,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1974
1974
|
};
|
|
1975
1975
|
}>> & {
|
|
1976
1976
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
|
1977
|
+
onScroll?: ((...args: any[]) => any) | undefined;
|
|
1977
1978
|
}>>;
|
|
1978
|
-
emit: (event: "formChange", ...args: any[]) => void;
|
|
1979
|
+
emit: (event: "scroll" | "formChange", ...args: any[]) => void;
|
|
1979
1980
|
nuiThemeOverrides: import("naive-ui").GlobalThemeOverrides;
|
|
1980
1981
|
formModel: import("../../../../es/components/form-render").Form<{
|
|
1981
1982
|
[x: string]: any;
|
|
@@ -2166,7 +2167,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2166
2167
|
title: string;
|
|
2167
2168
|
}[]>;
|
|
2168
2169
|
formHeight: import("vue").ComputedRef<string | undefined>;
|
|
2169
|
-
onScroll: () => void;
|
|
2170
|
+
onScroll: (scrollEvent: Event) => void;
|
|
2170
2171
|
onKeydown: (event: KeyboardEvent) => void;
|
|
2171
2172
|
queryWidget: (key: string, wrapperElement: HTMLElement, fieldList: FieldItem[]) => Promise<{
|
|
2172
2173
|
widgetElement: HTMLInputElement | null | undefined;
|
|
@@ -2231,7 +2232,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2231
2232
|
}>;
|
|
2232
2233
|
NTabs: any;
|
|
2233
2234
|
NConfigProvider: any;
|
|
2234
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "formChange"[], "formChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
2235
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("scroll" | "formChange")[], "scroll" | "formChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
2235
2236
|
fieldList: {
|
|
2236
2237
|
type: import("vue").PropType<FieldItem[]>;
|
|
2237
2238
|
};
|
|
@@ -2357,6 +2358,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2357
2358
|
};
|
|
2358
2359
|
}>> & {
|
|
2359
2360
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
|
2361
|
+
onScroll?: ((...args: any[]) => any) | undefined;
|
|
2360
2362
|
}, {
|
|
2361
2363
|
anchor: boolean;
|
|
2362
2364
|
maxHeight: string | number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cnhis-design-vue",
|
|
3
|
-
"version": "3.1.38-beta.
|
|
3
|
+
"version": "3.1.38-beta.2",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"module": "./es/components/index.js",
|
|
6
6
|
"main": "./es/components/index.js",
|
|
@@ -61,5 +61,5 @@
|
|
|
61
61
|
"iOS 7",
|
|
62
62
|
"last 3 iOS versions"
|
|
63
63
|
],
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "21edfb81109e3609098b7a409aee8ebb063e0589"
|
|
65
65
|
}
|