cnhis-design-vue 3.1.34-beta.14 → 3.1.34-beta.16
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/big-table/src/components/edit-form/edit-select.js +21 -9
- package/es/components/big-table/src/components/edit-form/useCommon.d.ts +1 -1
- package/es/components/big-table/src/hooks/useEvent.js +20 -2
- package/es/components/fabric-chart/src/hooks/useCenter.js +115 -44
- package/es/components/fabric-chart/src/hooks/useLeft.js +3 -2
- package/es/components/fabric-chart/src/utils/utils.d.ts +0 -6
- package/es/components/fabric-chart/src/utils/utils.js +1 -13
- package/es/components/form-config/index.d.ts +24 -8
- package/es/components/form-config/src/FormConfig.vue.d.ts +24 -8
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +4 -4
- package/es/components/form-config/src/components/FormConfigDragDisplay.vue.js +1 -0
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +12 -4
- package/es/components/form-config/src/hooks/useConfigurationField.js +7 -1
- package/es/components/form-config/src/types/index.d.ts +1 -0
- package/es/components/form-render/index.d.ts +4 -4
- package/es/components/form-render/src/FormRender.vue.d.ts +4 -4
- package/es/components/form-render/src/FormRender.vue.js +15 -5
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +4 -4
- package/es/components/form-render/src/components/renderer/formItem.js +2 -1
- package/es/components/form-render/src/components/renderer/jsonCombination/hooks/useDeepValidate.js +8 -8
- package/es/components/form-render/src/utils/dom.d.ts +8 -2
- package/es/components/form-render/src/utils/dom.js +13 -6
- package/es/components/shortcut-setter/index.d.ts +4 -4
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +4 -4
- package/package.json +2 -2
|
@@ -37,6 +37,7 @@ var EditSelect = defineComponent({
|
|
|
37
37
|
const state = reactive({
|
|
38
38
|
keyupValue: attrs.value,
|
|
39
39
|
options: [],
|
|
40
|
+
filterOptions: [],
|
|
40
41
|
loading: false,
|
|
41
42
|
keyword: "",
|
|
42
43
|
config: {
|
|
@@ -46,10 +47,8 @@ var EditSelect = defineComponent({
|
|
|
46
47
|
});
|
|
47
48
|
const setOptions = async () => {
|
|
48
49
|
if (props.col.options) {
|
|
49
|
-
state.options =
|
|
50
|
-
|
|
51
|
-
state.keyupValue = state.options[0].value;
|
|
52
|
-
}
|
|
50
|
+
state.options = XEUtils.clone(props.col.options);
|
|
51
|
+
state.filterOptions = XEUtils.clone(props.col.options);
|
|
53
52
|
} else {
|
|
54
53
|
`${props.col.columnName}_options`;
|
|
55
54
|
const obj = {
|
|
@@ -60,8 +59,8 @@ var EditSelect = defineComponent({
|
|
|
60
59
|
};
|
|
61
60
|
state.options = await props.col.queryOptions(obj);
|
|
62
61
|
state.loading = false;
|
|
63
|
-
emit("setOptions", state.options);
|
|
64
62
|
}
|
|
63
|
+
emit("setOptions", state.options);
|
|
65
64
|
};
|
|
66
65
|
let selectSearch = (value) => {
|
|
67
66
|
state.keyword = value;
|
|
@@ -81,6 +80,13 @@ var EditSelect = defineComponent({
|
|
|
81
80
|
const init = () => {
|
|
82
81
|
if (props.col.options) {
|
|
83
82
|
setOptions();
|
|
83
|
+
state.config.onSearch = (value) => {
|
|
84
|
+
var _a, _b, _c;
|
|
85
|
+
const filterOptions = ((_c = (_b = (_a = formRef == null ? void 0 : formRef.value) == null ? void 0 : _a.treeMate) == null ? void 0 : _b.treeNodes) == null ? void 0 : _c.map((item) => item.rawNode)) || XEUtils.clone(props.col.options);
|
|
86
|
+
state.filterOptions = filterOptions;
|
|
87
|
+
props.row[`${props.col.columnName}_filter_options`] = state.filterOptions;
|
|
88
|
+
props.row[`${props.col.columnName}_is_key_arrow`] = false;
|
|
89
|
+
};
|
|
84
90
|
} else {
|
|
85
91
|
state.config.remote = true;
|
|
86
92
|
state.config.onSearch = selectSearch;
|
|
@@ -88,22 +94,28 @@ var EditSelect = defineComponent({
|
|
|
88
94
|
}
|
|
89
95
|
};
|
|
90
96
|
function onKeyup(event) {
|
|
97
|
+
var _a, _b, _c, _d;
|
|
91
98
|
const {
|
|
92
99
|
key
|
|
93
100
|
} = event;
|
|
94
101
|
if (state.config.multiple || !["ArrowUp", "ArrowDown"].includes(key))
|
|
95
102
|
return;
|
|
103
|
+
props.row[`${props.col.columnName}_is_key_arrow`] = true;
|
|
96
104
|
if (!state.keyupValue)
|
|
97
|
-
state.keyupValue = state.
|
|
98
|
-
let index = state.
|
|
99
|
-
|
|
105
|
+
state.keyupValue = (_b = (_a = state.filterOptions) == null ? void 0 : _a[0]) == null ? void 0 : _b.value;
|
|
106
|
+
let index = state.filterOptions.findIndex((item) => item.value === state.keyupValue);
|
|
107
|
+
if (!~index) {
|
|
108
|
+
state.keyupValue = (_d = (_c = state.filterOptions) == null ? void 0 : _c[0]) == null ? void 0 : _d.value;
|
|
109
|
+
index = 0;
|
|
110
|
+
}
|
|
111
|
+
const length = state.filterOptions.length;
|
|
100
112
|
if (key === "ArrowUp") {
|
|
101
113
|
index = index - 1 === -1 ? length - 1 : index - 1;
|
|
102
114
|
}
|
|
103
115
|
if (key === "ArrowDown") {
|
|
104
116
|
index = index + 1 === length ? 0 : index + 1;
|
|
105
117
|
}
|
|
106
|
-
state.keyupValue = state.
|
|
118
|
+
state.keyupValue = state.filterOptions[index].value;
|
|
107
119
|
onUpdateValue(state.keyupValue);
|
|
108
120
|
}
|
|
109
121
|
init();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AnyObject } from '../../../../../../es/shared/types';
|
|
2
2
|
export declare const useCommon: (props: AnyObject, attrs: AnyObject, isTriggerClick?: boolean) => {
|
|
3
|
-
formRef:
|
|
3
|
+
formRef: any;
|
|
4
4
|
isShow: import("vue").Ref<boolean>;
|
|
5
5
|
};
|
|
@@ -4,7 +4,7 @@ import { hideFilterWrap } from '../utils.js';
|
|
|
4
4
|
|
|
5
5
|
const useEvent = (props, state, emit, xGrid, anchorEvent) => {
|
|
6
6
|
function keyDown({ $event }) {
|
|
7
|
-
var _a, _b;
|
|
7
|
+
var _a, _b, _c, _d, _e;
|
|
8
8
|
const { isArrow, isEnter, isChecked, isTab, isEdit } = ((_a = props.columnConfig) == null ? void 0 : _a.keyboardConfig) || {};
|
|
9
9
|
let activeRow = null;
|
|
10
10
|
let index = 0;
|
|
@@ -18,6 +18,24 @@ const useEvent = (props, state, emit, xGrid, anchorEvent) => {
|
|
|
18
18
|
return;
|
|
19
19
|
if (isEdit) {
|
|
20
20
|
const data = xGridRef.getEditRecord() || xGridRef.getSelectedCell() || {};
|
|
21
|
+
const { row, column } = data;
|
|
22
|
+
const { fieldList = [] } = props.columnConfig;
|
|
23
|
+
if ($event.key === "Tab") {
|
|
24
|
+
const fieldItem = fieldList.find((item) => item.columnName === column.field);
|
|
25
|
+
const { formType = "", componentProps } = fieldItem;
|
|
26
|
+
const _index = (_b = row[`${column.field}_filter_options`]) == null ? void 0 : _b.findIndex((item) => item.value === row[column.field]);
|
|
27
|
+
if (formType === "select" && !(componentProps == null ? void 0 : componentProps.multiple) && ((_c = row[`${column.field}_filter_options`]) == null ? void 0 : _c.length) > 0 && (!row[column.field] || !row[`${column.field}_is_key_arrow`] && !~_index)) {
|
|
28
|
+
const oldValue = row[column.field];
|
|
29
|
+
row[column.field] = (_d = row[`${column.field}_filter_options`]) == null ? void 0 : _d[0].value;
|
|
30
|
+
emit("formChange", {
|
|
31
|
+
value: row[column.field],
|
|
32
|
+
row,
|
|
33
|
+
column,
|
|
34
|
+
index: data.rowIndex,
|
|
35
|
+
oldValue
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
}
|
|
21
39
|
emit("keyboard", {
|
|
22
40
|
key: $event.key,
|
|
23
41
|
...data,
|
|
@@ -29,7 +47,7 @@ const useEvent = (props, state, emit, xGrid, anchorEvent) => {
|
|
|
29
47
|
if ($event.key === "ArrowUp" && index > 0) {
|
|
30
48
|
activeIndex = index - 1;
|
|
31
49
|
}
|
|
32
|
-
if ($event.key === "ArrowDown" && index < ((
|
|
50
|
+
if ($event.key === "ArrowDown" && index < ((_e = props.data) == null ? void 0 : _e.length) - 1) {
|
|
33
51
|
activeIndex = index + 1;
|
|
34
52
|
}
|
|
35
53
|
const row = xGridRef.getData(activeIndex);
|
|
@@ -4,11 +4,12 @@ import useGrid from './useGrid.js';
|
|
|
4
4
|
import { useShadow } from './useShadow.js';
|
|
5
5
|
import { TEMPERATURE_MENU, PAIN_MENU, OVERLAP } from './constant.js';
|
|
6
6
|
import { cloneDeep } from 'lodash-es';
|
|
7
|
-
import {
|
|
7
|
+
import { isEffectiveNode, getIndex, deleteProperty } from '../utils/utils.js';
|
|
8
8
|
|
|
9
9
|
function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, getYValue, addRenderItem, pointTipProps, pointMenuProps, useCommon) {
|
|
10
10
|
useGrid(canvas, propItems);
|
|
11
11
|
const { getEqualXTypes, repeatTip, maxLimitTip, minLimitTip } = useCommon;
|
|
12
|
+
const { createShadowLines } = useShadow();
|
|
12
13
|
const {
|
|
13
14
|
left,
|
|
14
15
|
xScaleList,
|
|
@@ -26,22 +27,21 @@ function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, ge
|
|
|
26
27
|
config
|
|
27
28
|
} = propItems;
|
|
28
29
|
const shadowLinesCache = /* @__PURE__ */ new Set();
|
|
29
|
-
|
|
30
|
+
const SHADOWKEYS = ["xinmai", "mai"];
|
|
31
|
+
const shadowPointCache = /* @__PURE__ */ new Map();
|
|
30
32
|
const maiboPoints = /* @__PURE__ */ new Set();
|
|
31
33
|
const otherPoints = /* @__PURE__ */ new Set();
|
|
32
|
-
const prevLines = /* @__PURE__ */ new Set();
|
|
33
34
|
const gridPoints = /* @__PURE__ */ new Set();
|
|
34
35
|
const yScaleValue = cloneDeep(left.yScaleValue);
|
|
35
36
|
init();
|
|
36
37
|
function init() {
|
|
37
|
-
shadowPointCache
|
|
38
|
+
shadowPointCache.clear();
|
|
38
39
|
maiboPoints.clear();
|
|
39
40
|
otherPoints.clear();
|
|
40
|
-
prevLines.clear();
|
|
41
41
|
yScaleValue.forEach((scaleValue) => {
|
|
42
42
|
drawPositionLine(scaleValue);
|
|
43
43
|
scaleValue.dataList.forEach((item, dataIndex) => {
|
|
44
|
-
if (scaleValue.type
|
|
44
|
+
if (!isOneLine(scaleValue.type) || item.enable) {
|
|
45
45
|
drawPolyLine(item, dataIndex, scaleValue);
|
|
46
46
|
}
|
|
47
47
|
});
|
|
@@ -50,6 +50,9 @@ function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, ge
|
|
|
50
50
|
drawOverlapPoint();
|
|
51
51
|
setCanvasEvent();
|
|
52
52
|
}
|
|
53
|
+
function isOneLine(type) {
|
|
54
|
+
return ["temperature", "pulse"].includes(type);
|
|
55
|
+
}
|
|
53
56
|
function drawPositionLine(scaleValue) {
|
|
54
57
|
if (scaleValue.type !== "temperature" || !scaleValue.positionLine)
|
|
55
58
|
return;
|
|
@@ -65,35 +68,101 @@ function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, ge
|
|
|
65
68
|
if (shadowLinesCache.size)
|
|
66
69
|
canvas.value.remove(...shadowLinesCache);
|
|
67
70
|
shadowLinesCache.clear();
|
|
68
|
-
if (shadowPointCache.
|
|
71
|
+
if (shadowPointCache.size > 1) {
|
|
69
72
|
if (target) {
|
|
70
|
-
const { type,
|
|
73
|
+
const { type, key } = target.origin || {};
|
|
71
74
|
if (type === "pulse") {
|
|
72
|
-
shadowPointCache
|
|
75
|
+
const list = shadowPointCache.get(key);
|
|
76
|
+
const index = list == null ? void 0 : list.findIndex((point) => point[0] === target.left);
|
|
77
|
+
list.splice(index, 1, [target.left, target.top]);
|
|
73
78
|
}
|
|
74
79
|
}
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
const
|
|
79
|
-
const
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
data.forEach((item) => {
|
|
86
|
-
var _a2, _b, _c, _d;
|
|
87
|
-
if (((_a2 = pulseObj.shadow) == null ? void 0 : _a2.mode) == "color") {
|
|
88
|
-
const points = item.map((v) => ({ x: v[0], y: v[1] }));
|
|
89
|
-
const polygon = new fabric.Polygon(points, {
|
|
90
|
-
...defaultStyle,
|
|
91
|
-
...((_b = pulseObj.shadow) == null ? void 0 : _b.style) || {}
|
|
80
|
+
console.log("shadowPointCache :>> ", shadowPointCache);
|
|
81
|
+
const data = [];
|
|
82
|
+
const _shadowPointCache = [];
|
|
83
|
+
const somes = [];
|
|
84
|
+
for (const item of shadowPointCache) {
|
|
85
|
+
_shadowPointCache.push(item[1]);
|
|
86
|
+
if (item[0] === SHADOWKEYS[0]) {
|
|
87
|
+
item[1].forEach((_item) => {
|
|
88
|
+
const someIndex = (shadowPointCache.get(SHADOWKEYS[1]) || []).findIndex((v) => v[0] === _item[0]);
|
|
89
|
+
someIndex > -1 && somes.push(_item[0]);
|
|
92
90
|
});
|
|
93
|
-
|
|
94
|
-
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
const [points1, points2] = _shadowPointCache;
|
|
94
|
+
console.log("points1, points2 :>> ", points1, points2);
|
|
95
|
+
let _arr1 = [];
|
|
96
|
+
let _arr2 = [];
|
|
97
|
+
somes.forEach((x, i) => {
|
|
98
|
+
const index1 = points1.findIndex((point) => point[0] === x);
|
|
99
|
+
const index2 = points2.findIndex((point) => point[0] === x);
|
|
100
|
+
const currentPoint1 = points1[index1];
|
|
101
|
+
const currentPoint2 = points2[index2];
|
|
102
|
+
const prevPoint1 = points1[index1 - 1];
|
|
103
|
+
const nextPoint1 = points1[index1 + 1];
|
|
104
|
+
const prevPoint2 = points2[index2 - 1];
|
|
105
|
+
const nextPoint2 = points2[index2 + 1];
|
|
106
|
+
if (prevPoint1 && prevPoint2) {
|
|
107
|
+
if (prevPoint1[0] !== prevPoint2[0]) {
|
|
108
|
+
const maxPoint = Math.max(prevPoint1[0], prevPoint2[0]);
|
|
109
|
+
_arr1.push([prevPoint1, prevPoint2].find((point) => point[0] === maxPoint));
|
|
110
|
+
} else {
|
|
111
|
+
const minYPoint = Math.min(currentPoint1[1], currentPoint2[1]);
|
|
112
|
+
_arr1.push([currentPoint1, currentPoint2].find((point) => point[1] === minYPoint));
|
|
113
|
+
const maxYPoint = Math.max(currentPoint1[1], currentPoint2[1]);
|
|
114
|
+
_arr2.push([currentPoint1, currentPoint2].find((point) => point[1] === maxYPoint));
|
|
115
|
+
}
|
|
116
|
+
} else if (prevPoint1) {
|
|
117
|
+
_arr1.push(prevPoint1);
|
|
118
|
+
} else if (prevPoint2) {
|
|
119
|
+
_arr2.push(prevPoint2);
|
|
120
|
+
} else {
|
|
121
|
+
const minYPoint = Math.min(currentPoint1[1], currentPoint2[1]);
|
|
122
|
+
_arr1.push([currentPoint1, currentPoint2].find((point) => point[1] === minYPoint));
|
|
123
|
+
const maxYPoint = Math.max(currentPoint1[1], currentPoint2[1]);
|
|
124
|
+
_arr2.push([currentPoint1, currentPoint2].find((point) => point[1] === maxYPoint));
|
|
125
|
+
}
|
|
126
|
+
const setData = () => {
|
|
127
|
+
const dataItem = [..._arr1, ..._arr2.reverse()];
|
|
128
|
+
const [firstPoint] = dataItem;
|
|
129
|
+
const lastPoint = dataItem.at(-1);
|
|
130
|
+
if (firstPoint[0] === lastPoint[0] && firstPoint[1] === lastPoint[1])
|
|
131
|
+
dataItem.splice(-1, 1);
|
|
132
|
+
data.push(dataItem);
|
|
133
|
+
_arr1 = [];
|
|
134
|
+
_arr2 = [];
|
|
135
|
+
};
|
|
136
|
+
if (nextPoint1 && nextPoint2) {
|
|
137
|
+
if (nextPoint1[0] !== nextPoint2[0]) {
|
|
138
|
+
const minPoint = Math.min(nextPoint1[0], nextPoint2[0]);
|
|
139
|
+
_arr1.push([nextPoint1, nextPoint2].find((point) => point[0] === minPoint));
|
|
140
|
+
setData();
|
|
141
|
+
}
|
|
142
|
+
} else if (nextPoint1) {
|
|
143
|
+
_arr1.push(nextPoint1);
|
|
144
|
+
setData();
|
|
145
|
+
} else if (nextPoint2) {
|
|
146
|
+
_arr2.push(nextPoint2);
|
|
147
|
+
setData();
|
|
95
148
|
} else {
|
|
96
|
-
|
|
149
|
+
setData();
|
|
150
|
+
}
|
|
151
|
+
});
|
|
152
|
+
console.log(data, somes);
|
|
153
|
+
data.forEach((item) => {
|
|
154
|
+
var _a2, _b, _c, _d, _e, _f;
|
|
155
|
+
const points = item.map((v) => ({ x: v[0], y: v[1] }));
|
|
156
|
+
const polygon = new fabric.Polygon(points, {
|
|
157
|
+
...defaultStyle,
|
|
158
|
+
...((_a2 = pulseObj.shadow) == null ? void 0 : _a2.style) || {}
|
|
159
|
+
});
|
|
160
|
+
if (((_b = pulseObj.shadow) == null ? void 0 : _b.mode) == "slash") {
|
|
161
|
+
polygon.set({
|
|
162
|
+
fill: "transparent",
|
|
163
|
+
stroke: ((_d = (_c = pulseObj.shadow) == null ? void 0 : _c.style) == null ? void 0 : _d.stroke) || "#f00"
|
|
164
|
+
});
|
|
165
|
+
const shadowLines = createShadowLines(item, (_e = pulseObj.shadow) == null ? void 0 : _e.style._angle, (_f = pulseObj.shadow) == null ? void 0 : _f.style.space);
|
|
97
166
|
shadowLines.forEach((l) => {
|
|
98
167
|
var _a3;
|
|
99
168
|
Object.assign(l, {
|
|
@@ -104,6 +173,8 @@ function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, ge
|
|
|
104
173
|
});
|
|
105
174
|
canvas.value.add(...shadowLines);
|
|
106
175
|
}
|
|
176
|
+
shadowLinesCache.add(polygon);
|
|
177
|
+
canvas.value.add(polygon);
|
|
107
178
|
});
|
|
108
179
|
}
|
|
109
180
|
}
|
|
@@ -220,7 +291,7 @@ function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, ge
|
|
|
220
291
|
const lineList = [];
|
|
221
292
|
const otherList = [];
|
|
222
293
|
(_a = item.list) == null ? void 0 : _a.forEach((v, index) => {
|
|
223
|
-
const _item = type
|
|
294
|
+
const _item = !isOneLine(type) ? item : dataList.find((_v) => _v.key === v.key);
|
|
224
295
|
const points = getPointer(v, scaleValue);
|
|
225
296
|
const otherObj = {};
|
|
226
297
|
otherObj.value = drawValue(points, v, _item);
|
|
@@ -228,7 +299,17 @@ function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, ge
|
|
|
228
299
|
drawPulseOther(points, v, _item, otherObj);
|
|
229
300
|
drawPointLine(points, v, index, _item, otherObj);
|
|
230
301
|
});
|
|
231
|
-
type === "pulse"
|
|
302
|
+
if (type === "pulse") {
|
|
303
|
+
SHADOWKEYS.forEach((key) => {
|
|
304
|
+
shadowPointCache.set(
|
|
305
|
+
key,
|
|
306
|
+
pointList.filter((point) => {
|
|
307
|
+
var _a2;
|
|
308
|
+
return ((_a2 = point.origin) == null ? void 0 : _a2.key) === key;
|
|
309
|
+
}).map((point) => [point.left, point.top])
|
|
310
|
+
);
|
|
311
|
+
});
|
|
312
|
+
}
|
|
232
313
|
Promise.all(pointList).then((res) => {
|
|
233
314
|
const lineListFilter = lineList.filter((v) => v);
|
|
234
315
|
let prevPoint = null;
|
|
@@ -396,19 +477,10 @@ function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, ge
|
|
|
396
477
|
const nextPoint = getPointer(nextV, scaleValue);
|
|
397
478
|
const isNonePain = isNoneValuePain(type, item.list[index].value);
|
|
398
479
|
const isNextNonePain = nextPoint && isNoneValuePain(type, nextV.value);
|
|
399
|
-
if (points && nextPoint && !v.breakpoint && !isNonePain && !isNextNonePain) {
|
|
480
|
+
if (points && nextPoint && !v.breakpoint && !isNonePain && !isNextNonePain && points[0] !== nextPoint[0]) {
|
|
400
481
|
line = drawLine([...points, ...nextPoint], {
|
|
401
482
|
...lineAttr
|
|
402
483
|
});
|
|
403
|
-
} else if (points && !nextPoint && !v.breakpoint) {
|
|
404
|
-
const nextLinePoint = getPointer(nextV, scaleValue);
|
|
405
|
-
line = nextLinePoint ? drawLine([...points, ...nextLinePoint], {
|
|
406
|
-
...lineAttr
|
|
407
|
-
}) : null;
|
|
408
|
-
nextLinePoint && prevLines.add({
|
|
409
|
-
dataIndex,
|
|
410
|
-
line
|
|
411
|
-
});
|
|
412
484
|
}
|
|
413
485
|
const currentPointType = v.pacemakerShow && type == "pulse" ? pacemaker.value : isNonePain ? 0 : pointType;
|
|
414
486
|
const previousLine = lineList[index - 1];
|
|
@@ -627,14 +699,13 @@ function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, ge
|
|
|
627
699
|
function redrawPoints() {
|
|
628
700
|
var _a;
|
|
629
701
|
gridPoints.size && ((_a = canvas.value) == null ? void 0 : _a.remove(...getRemovePoints([...gridPoints])));
|
|
630
|
-
shadowPointCache
|
|
702
|
+
shadowPointCache.clear();
|
|
631
703
|
gridPoints.clear();
|
|
632
704
|
maiboPoints.clear();
|
|
633
705
|
otherPoints.clear();
|
|
634
|
-
prevLines.clear();
|
|
635
706
|
yScaleValue.forEach((scaleValue) => {
|
|
636
707
|
scaleValue.dataList.forEach((item, dataIndex) => {
|
|
637
|
-
if (scaleValue.type
|
|
708
|
+
if (!isOneLine(scaleValue.type) || item.enable) {
|
|
638
709
|
drawPolyLine(item, dataIndex, scaleValue);
|
|
639
710
|
}
|
|
640
711
|
});
|
|
@@ -114,6 +114,7 @@ function useLeft(canvas, propItems, emits, setPopup, pointTipProps, cumputedX, c
|
|
|
114
114
|
const residue = (end - start) % column;
|
|
115
115
|
const firstColWidth = colWidth + residue;
|
|
116
116
|
yScaleValueList2.forEach((item, index) => {
|
|
117
|
+
var _a3, _b2;
|
|
117
118
|
if (item.type === "pain") {
|
|
118
119
|
drwaPainScaleValue(item);
|
|
119
120
|
return;
|
|
@@ -138,8 +139,8 @@ function useLeft(canvas, propItems, emits, setPopup, pointTipProps, cumputedX, c
|
|
|
138
139
|
const spaceScale = spaceGridNumber * yCellHeight / 5;
|
|
139
140
|
const position = item.position || "center";
|
|
140
141
|
const { lineXMain, lineXSub, textLeft } = getScaleInfo(item.position, rectLeft, rectWidth);
|
|
141
|
-
const listLen = item.list.length;
|
|
142
|
-
item.list.forEach((v, i) => {
|
|
142
|
+
const listLen = (_a3 = item.list) == null ? void 0 : _a3.length;
|
|
143
|
+
(_b2 = item == null ? void 0 : item.list) == null ? void 0 : _b2.forEach((v, i) => {
|
|
143
144
|
const top = vitalSignsOriginY.endY - i * yCellHeight * spaceGridNumber;
|
|
144
145
|
const isMaxMinNumber = i === 0 || i === listLen - 1;
|
|
145
146
|
if (item.showNumber && (isMaxMinNumber ? item.showMaxMinNumber : true)) {
|
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
import { IPoint } from '../interface';
|
|
2
2
|
import { AnyObject } from '../../../../../es/shared/types';
|
|
3
3
|
export declare function isEffectiveNode(node: IPoint): string | number | boolean;
|
|
4
|
-
/**
|
|
5
|
-
* @description: 根据断点分割数组
|
|
6
|
-
* @param {any} arr
|
|
7
|
-
* @return {[number, number][][]}
|
|
8
|
-
*/
|
|
9
|
-
export declare function getPointArr(arr: AnyObject[]): AnyObject;
|
|
10
4
|
export declare function deleteProperty(data: AnyObject, list: AnyObject[]): void;
|
|
11
5
|
export declare function getIndex(time: string, list: AnyObject[]): number;
|
|
@@ -1,18 +1,6 @@
|
|
|
1
1
|
function isEffectiveNode(node) {
|
|
2
2
|
return (node == null ? void 0 : node.time) && ((node == null ? void 0 : node.value) || (node == null ? void 0 : node.value) === 0);
|
|
3
3
|
}
|
|
4
|
-
function getPointArr(arr) {
|
|
5
|
-
let _arr = [];
|
|
6
|
-
return arr.reduce((pre, cur, index) => {
|
|
7
|
-
var _a, _b;
|
|
8
|
-
_arr.push([cur.left, cur.top]);
|
|
9
|
-
if (((_b = (_a = cur.origin) == null ? void 0 : _a.data) == null ? void 0 : _b.breakpoint) || arr.length - 1 === index) {
|
|
10
|
-
pre.push(_arr);
|
|
11
|
-
_arr = [];
|
|
12
|
-
}
|
|
13
|
-
return pre;
|
|
14
|
-
}, []);
|
|
15
|
-
}
|
|
16
4
|
function deleteProperty(data, list) {
|
|
17
5
|
list.map((v) => v.type).forEach((key) => {
|
|
18
6
|
if (Reflect.has(data, key))
|
|
@@ -24,4 +12,4 @@ function getIndex(time, list) {
|
|
|
24
12
|
return !~index ? list.length : index;
|
|
25
13
|
}
|
|
26
14
|
|
|
27
|
-
export { deleteProperty, getIndex,
|
|
15
|
+
export { deleteProperty, getIndex, isEffectiveNode };
|
|
@@ -34,6 +34,10 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
34
34
|
type: string;
|
|
35
35
|
name: string;
|
|
36
36
|
show?: boolean | undefined;
|
|
37
|
+
options?: {
|
|
38
|
+
value: string;
|
|
39
|
+
text: string;
|
|
40
|
+
}[] | undefined;
|
|
37
41
|
defaultValue?: any;
|
|
38
42
|
defaultExpand?: boolean | undefined;
|
|
39
43
|
fold?: boolean | undefined;
|
|
@@ -51,6 +55,10 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
51
55
|
type: string;
|
|
52
56
|
name: string;
|
|
53
57
|
show?: boolean | undefined;
|
|
58
|
+
options?: {
|
|
59
|
+
value: string;
|
|
60
|
+
text: string;
|
|
61
|
+
}[] | undefined;
|
|
54
62
|
defaultValue?: any;
|
|
55
63
|
defaultExpand?: boolean | undefined;
|
|
56
64
|
fold?: boolean | undefined;
|
|
@@ -281,7 +289,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
281
289
|
type: import("vue").PropType<import("..").RequestInstance>;
|
|
282
290
|
};
|
|
283
291
|
enterToNextWidget: {
|
|
284
|
-
type:
|
|
292
|
+
type: import("vue").PropType<boolean | ((fieldItem: import("..").FieldItem) => boolean | void)>;
|
|
285
293
|
default: boolean;
|
|
286
294
|
};
|
|
287
295
|
}, {
|
|
@@ -403,7 +411,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
403
411
|
type: import("vue").PropType<import("..").RequestInstance>;
|
|
404
412
|
};
|
|
405
413
|
enterToNextWidget: {
|
|
406
|
-
type:
|
|
414
|
+
type: import("vue").PropType<boolean | ((fieldItem: import("..").FieldItem) => boolean | void)>;
|
|
407
415
|
default: boolean;
|
|
408
416
|
};
|
|
409
417
|
}>> & {
|
|
@@ -781,7 +789,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
781
789
|
type: import("vue").PropType<import("..").RequestInstance>;
|
|
782
790
|
};
|
|
783
791
|
enterToNextWidget: {
|
|
784
|
-
type:
|
|
792
|
+
type: import("vue").PropType<boolean | ((fieldItem: import("..").FieldItem) => boolean | void)>;
|
|
785
793
|
default: boolean;
|
|
786
794
|
};
|
|
787
795
|
}>> & {
|
|
@@ -795,7 +803,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
795
803
|
parallelism: number;
|
|
796
804
|
scope: import("../../../es/shared/types").AnyObject;
|
|
797
805
|
consumer: boolean;
|
|
798
|
-
enterToNextWidget: boolean;
|
|
806
|
+
enterToNextWidget: boolean | ((fieldItem: import("..").FieldItem) => boolean | void);
|
|
799
807
|
}>;
|
|
800
808
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
|
|
801
809
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -2598,6 +2606,10 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2598
2606
|
type?: string | undefined;
|
|
2599
2607
|
name?: string | undefined;
|
|
2600
2608
|
show?: boolean | undefined;
|
|
2609
|
+
options?: {
|
|
2610
|
+
value: string;
|
|
2611
|
+
text: string;
|
|
2612
|
+
}[] | undefined;
|
|
2601
2613
|
defaultValue?: any;
|
|
2602
2614
|
defaultExpand?: boolean | undefined;
|
|
2603
2615
|
fold?: boolean | undefined;
|
|
@@ -2612,6 +2624,10 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2612
2624
|
type: string;
|
|
2613
2625
|
name: string;
|
|
2614
2626
|
show?: boolean | undefined;
|
|
2627
|
+
options?: {
|
|
2628
|
+
value: string;
|
|
2629
|
+
text: string;
|
|
2630
|
+
}[] | undefined;
|
|
2615
2631
|
defaultValue?: any;
|
|
2616
2632
|
defaultExpand?: boolean | undefined;
|
|
2617
2633
|
fold?: boolean | undefined;
|
|
@@ -2755,7 +2771,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2755
2771
|
type: import("vue").PropType<import("..").RequestInstance>;
|
|
2756
2772
|
};
|
|
2757
2773
|
enterToNextWidget: {
|
|
2758
|
-
type:
|
|
2774
|
+
type: import("vue").PropType<boolean | ((fieldItem: import("..").FieldItem) => boolean | void)>;
|
|
2759
2775
|
default: boolean;
|
|
2760
2776
|
};
|
|
2761
2777
|
}, {
|
|
@@ -2877,7 +2893,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2877
2893
|
type: import("vue").PropType<import("..").RequestInstance>;
|
|
2878
2894
|
};
|
|
2879
2895
|
enterToNextWidget: {
|
|
2880
|
-
type:
|
|
2896
|
+
type: import("vue").PropType<boolean | ((fieldItem: import("..").FieldItem) => boolean | void)>;
|
|
2881
2897
|
default: boolean;
|
|
2882
2898
|
};
|
|
2883
2899
|
}>> & {
|
|
@@ -3255,7 +3271,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
3255
3271
|
type: import("vue").PropType<import("..").RequestInstance>;
|
|
3256
3272
|
};
|
|
3257
3273
|
enterToNextWidget: {
|
|
3258
|
-
type:
|
|
3274
|
+
type: import("vue").PropType<boolean | ((fieldItem: import("..").FieldItem) => boolean | void)>;
|
|
3259
3275
|
default: boolean;
|
|
3260
3276
|
};
|
|
3261
3277
|
}>> & {
|
|
@@ -3269,7 +3285,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
3269
3285
|
parallelism: number;
|
|
3270
3286
|
scope: import("../../../es/shared/types").AnyObject;
|
|
3271
3287
|
consumer: boolean;
|
|
3272
|
-
enterToNextWidget: boolean;
|
|
3288
|
+
enterToNextWidget: boolean | ((fieldItem: import("..").FieldItem) => boolean | void);
|
|
3273
3289
|
}>;
|
|
3274
3290
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
|
|
3275
3291
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -35,6 +35,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
35
35
|
type: string;
|
|
36
36
|
name: string;
|
|
37
37
|
show?: boolean | undefined;
|
|
38
|
+
options?: {
|
|
39
|
+
value: string;
|
|
40
|
+
text: string;
|
|
41
|
+
}[] | undefined;
|
|
38
42
|
defaultValue?: any;
|
|
39
43
|
defaultExpand?: boolean | undefined;
|
|
40
44
|
fold?: boolean | undefined;
|
|
@@ -52,6 +56,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
52
56
|
type: string;
|
|
53
57
|
name: string;
|
|
54
58
|
show?: boolean | undefined;
|
|
59
|
+
options?: {
|
|
60
|
+
value: string;
|
|
61
|
+
text: string;
|
|
62
|
+
}[] | undefined;
|
|
55
63
|
defaultValue?: any;
|
|
56
64
|
defaultExpand?: boolean | undefined;
|
|
57
65
|
fold?: boolean | undefined;
|
|
@@ -282,7 +290,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
282
290
|
type: PropType<import("../..").RequestInstance>;
|
|
283
291
|
};
|
|
284
292
|
enterToNextWidget: {
|
|
285
|
-
type:
|
|
293
|
+
type: PropType<boolean | ((fieldItem: import("../..").FieldItem) => boolean | void)>;
|
|
286
294
|
default: boolean;
|
|
287
295
|
};
|
|
288
296
|
}, {
|
|
@@ -404,7 +412,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
404
412
|
type: PropType<import("../..").RequestInstance>;
|
|
405
413
|
};
|
|
406
414
|
enterToNextWidget: {
|
|
407
|
-
type:
|
|
415
|
+
type: PropType<boolean | ((fieldItem: import("../..").FieldItem) => boolean | void)>;
|
|
408
416
|
default: boolean;
|
|
409
417
|
};
|
|
410
418
|
}>> & {
|
|
@@ -782,7 +790,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
782
790
|
type: PropType<import("../..").RequestInstance>;
|
|
783
791
|
};
|
|
784
792
|
enterToNextWidget: {
|
|
785
|
-
type:
|
|
793
|
+
type: PropType<boolean | ((fieldItem: import("../..").FieldItem) => boolean | void)>;
|
|
786
794
|
default: boolean;
|
|
787
795
|
};
|
|
788
796
|
}>> & {
|
|
@@ -796,7 +804,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
796
804
|
parallelism: number;
|
|
797
805
|
scope: import("../../../../es/shared/types").AnyObject;
|
|
798
806
|
consumer: boolean;
|
|
799
|
-
enterToNextWidget: boolean;
|
|
807
|
+
enterToNextWidget: boolean | ((fieldItem: import("../..").FieldItem) => boolean | void);
|
|
800
808
|
}>;
|
|
801
809
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
|
|
802
810
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -2599,6 +2607,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2599
2607
|
type?: string | undefined;
|
|
2600
2608
|
name?: string | undefined;
|
|
2601
2609
|
show?: boolean | undefined;
|
|
2610
|
+
options?: {
|
|
2611
|
+
value: string;
|
|
2612
|
+
text: string;
|
|
2613
|
+
}[] | undefined;
|
|
2602
2614
|
defaultValue?: any;
|
|
2603
2615
|
defaultExpand?: boolean | undefined;
|
|
2604
2616
|
fold?: boolean | undefined;
|
|
@@ -2613,6 +2625,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2613
2625
|
type: string;
|
|
2614
2626
|
name: string;
|
|
2615
2627
|
show?: boolean | undefined;
|
|
2628
|
+
options?: {
|
|
2629
|
+
value: string;
|
|
2630
|
+
text: string;
|
|
2631
|
+
}[] | undefined;
|
|
2616
2632
|
defaultValue?: any;
|
|
2617
2633
|
defaultExpand?: boolean | undefined;
|
|
2618
2634
|
fold?: boolean | undefined;
|
|
@@ -2756,7 +2772,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2756
2772
|
type: PropType<import("../..").RequestInstance>;
|
|
2757
2773
|
};
|
|
2758
2774
|
enterToNextWidget: {
|
|
2759
|
-
type:
|
|
2775
|
+
type: PropType<boolean | ((fieldItem: import("../..").FieldItem) => boolean | void)>;
|
|
2760
2776
|
default: boolean;
|
|
2761
2777
|
};
|
|
2762
2778
|
}, {
|
|
@@ -2878,7 +2894,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2878
2894
|
type: PropType<import("../..").RequestInstance>;
|
|
2879
2895
|
};
|
|
2880
2896
|
enterToNextWidget: {
|
|
2881
|
-
type:
|
|
2897
|
+
type: PropType<boolean | ((fieldItem: import("../..").FieldItem) => boolean | void)>;
|
|
2882
2898
|
default: boolean;
|
|
2883
2899
|
};
|
|
2884
2900
|
}>> & {
|
|
@@ -3256,7 +3272,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3256
3272
|
type: PropType<import("../..").RequestInstance>;
|
|
3257
3273
|
};
|
|
3258
3274
|
enterToNextWidget: {
|
|
3259
|
-
type:
|
|
3275
|
+
type: PropType<boolean | ((fieldItem: import("../..").FieldItem) => boolean | void)>;
|
|
3260
3276
|
default: boolean;
|
|
3261
3277
|
};
|
|
3262
3278
|
}>> & {
|
|
@@ -3270,7 +3286,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3270
3286
|
parallelism: number;
|
|
3271
3287
|
scope: import("../../../../es/shared/types").AnyObject;
|
|
3272
3288
|
consumer: boolean;
|
|
3273
|
-
enterToNextWidget: boolean;
|
|
3289
|
+
enterToNextWidget: boolean | ((fieldItem: import("../..").FieldItem) => boolean | void);
|
|
3274
3290
|
}>;
|
|
3275
3291
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
|
|
3276
3292
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -139,7 +139,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
139
139
|
type: import("vue").PropType<import("../../../../../es/components/form-render").RequestInstance>;
|
|
140
140
|
};
|
|
141
141
|
enterToNextWidget: {
|
|
142
|
-
type:
|
|
142
|
+
type: import("vue").PropType<boolean | ((fieldItem: FieldItem) => boolean | void)>;
|
|
143
143
|
default: boolean;
|
|
144
144
|
};
|
|
145
145
|
}, {
|
|
@@ -261,7 +261,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
261
261
|
type: import("vue").PropType<import("../../../../../es/components/form-render").RequestInstance>;
|
|
262
262
|
};
|
|
263
263
|
enterToNextWidget: {
|
|
264
|
-
type:
|
|
264
|
+
type: import("vue").PropType<boolean | ((fieldItem: FieldItem) => boolean | void)>;
|
|
265
265
|
default: boolean;
|
|
266
266
|
};
|
|
267
267
|
}>> & {
|
|
@@ -639,7 +639,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
639
639
|
type: import("vue").PropType<import("../../../../../es/components/form-render").RequestInstance>;
|
|
640
640
|
};
|
|
641
641
|
enterToNextWidget: {
|
|
642
|
-
type:
|
|
642
|
+
type: import("vue").PropType<boolean | ((fieldItem: FieldItem) => boolean | void)>;
|
|
643
643
|
default: boolean;
|
|
644
644
|
};
|
|
645
645
|
}>> & {
|
|
@@ -653,7 +653,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
653
653
|
parallelism: number;
|
|
654
654
|
scope: import("../../../../shared/types").AnyObject;
|
|
655
655
|
consumer: boolean;
|
|
656
|
-
enterToNextWidget: boolean;
|
|
656
|
+
enterToNextWidget: boolean | ((fieldItem: FieldItem) => boolean | void);
|
|
657
657
|
}>;
|
|
658
658
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
|
|
659
659
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -2,6 +2,7 @@ import { defineComponent, openBlock, createBlock, unref, mergeProps, withCtx, cr
|
|
|
2
2
|
import draggableComponent from '../../../../shared/components/VueDraggable/src/vuedraggable.js';
|
|
3
3
|
import { usePresetRenderer } from '../hooks/usePresetRenderer.js';
|
|
4
4
|
import { useSortableConfig } from '../hooks/useSortalbeConfig.js';
|
|
5
|
+
import 'lodash-es';
|
|
5
6
|
import { layoutWidthEnum2Column } from '../utils/index.js';
|
|
6
7
|
import _export_sfc from '../../../../_virtual/plugin-vue_export-helper.js';
|
|
7
8
|
|
|
@@ -1690,6 +1690,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1690
1690
|
type?: string | undefined;
|
|
1691
1691
|
name?: string | undefined;
|
|
1692
1692
|
show?: boolean | undefined;
|
|
1693
|
+
options?: {
|
|
1694
|
+
value: string;
|
|
1695
|
+
text: string;
|
|
1696
|
+
}[] | undefined;
|
|
1693
1697
|
defaultValue?: any;
|
|
1694
1698
|
defaultExpand?: boolean | undefined;
|
|
1695
1699
|
fold?: boolean | undefined;
|
|
@@ -1704,6 +1708,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1704
1708
|
type: string;
|
|
1705
1709
|
name: string;
|
|
1706
1710
|
show?: boolean | undefined;
|
|
1711
|
+
options?: {
|
|
1712
|
+
value: string;
|
|
1713
|
+
text: string;
|
|
1714
|
+
}[] | undefined;
|
|
1707
1715
|
defaultValue?: any;
|
|
1708
1716
|
defaultExpand?: boolean | undefined;
|
|
1709
1717
|
fold?: boolean | undefined;
|
|
@@ -1847,7 +1855,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1847
1855
|
type: import("vue").PropType<import("../../../../../es/components/form-render").RequestInstance>;
|
|
1848
1856
|
};
|
|
1849
1857
|
enterToNextWidget: {
|
|
1850
|
-
type:
|
|
1858
|
+
type: import("vue").PropType<boolean | ((fieldItem: FieldItem) => boolean | void)>;
|
|
1851
1859
|
default: boolean;
|
|
1852
1860
|
};
|
|
1853
1861
|
}, {
|
|
@@ -1969,7 +1977,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1969
1977
|
type: import("vue").PropType<import("../../../../../es/components/form-render").RequestInstance>;
|
|
1970
1978
|
};
|
|
1971
1979
|
enterToNextWidget: {
|
|
1972
|
-
type:
|
|
1980
|
+
type: import("vue").PropType<boolean | ((fieldItem: FieldItem) => boolean | void)>;
|
|
1973
1981
|
default: boolean;
|
|
1974
1982
|
};
|
|
1975
1983
|
}>> & {
|
|
@@ -2347,7 +2355,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2347
2355
|
type: import("vue").PropType<import("../../../../../es/components/form-render").RequestInstance>;
|
|
2348
2356
|
};
|
|
2349
2357
|
enterToNextWidget: {
|
|
2350
|
-
type:
|
|
2358
|
+
type: import("vue").PropType<boolean | ((fieldItem: FieldItem) => boolean | void)>;
|
|
2351
2359
|
default: boolean;
|
|
2352
2360
|
};
|
|
2353
2361
|
}>> & {
|
|
@@ -2361,7 +2369,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2361
2369
|
parallelism: number;
|
|
2362
2370
|
scope: import("../../../../../es/shared/types").AnyObject;
|
|
2363
2371
|
consumer: boolean;
|
|
2364
|
-
enterToNextWidget: boolean;
|
|
2372
|
+
enterToNextWidget: boolean | ((fieldItem: FieldItem) => boolean | void);
|
|
2365
2373
|
}>;
|
|
2366
2374
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
|
|
2367
2375
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { isArray } from 'lodash-es';
|
|
1
2
|
import { EditAbleField, widgetWidthOptionConfig, isShowOptionConfig, isNotFoldOptionConfig, isEditOptionConfig, isNullOptionConfig } from '../constants/index.js';
|
|
2
3
|
|
|
3
4
|
function useConfigurationField() {
|
|
@@ -6,7 +7,12 @@ function useConfigurationField() {
|
|
|
6
7
|
[EditAbleField.NOTES, () => ({ alias: "\u95EE\u53F7\u63D0\u793A", elem_width: 6, html_type: "INPUT" })],
|
|
7
8
|
[
|
|
8
9
|
EditAbleField.DEFAULT_VALUE,
|
|
9
|
-
() =>
|
|
10
|
+
(fieldItem) => {
|
|
11
|
+
if (isArray(fieldItem == null ? void 0 : fieldItem.options) && fieldItem.options.length) {
|
|
12
|
+
return { alias: "\u9ED8\u8BA4\u503C", elem_width: 6, html_type: "SELECT", option: fieldItem == null ? void 0 : fieldItem.options };
|
|
13
|
+
}
|
|
14
|
+
return { alias: "\u9ED8\u8BA4\u503C", elem_width: 6, html_type: "INPUT", validate: { max_length: 20 } };
|
|
15
|
+
}
|
|
10
16
|
],
|
|
11
17
|
[
|
|
12
18
|
EditAbleField.LAYOUT_WIDTH_ENUM,
|
|
@@ -126,7 +126,7 @@ declare const FormRender: SFCWithInstall<import("vue").DefineComponent<{}, {
|
|
|
126
126
|
type: import("vue").PropType<import("./src/hooks").RequestInstance>;
|
|
127
127
|
};
|
|
128
128
|
enterToNextWidget: {
|
|
129
|
-
type:
|
|
129
|
+
type: import("vue").PropType<boolean | ((fieldItem: import("./src/types").FieldItem) => boolean | void)>;
|
|
130
130
|
default: boolean;
|
|
131
131
|
};
|
|
132
132
|
}, {
|
|
@@ -248,7 +248,7 @@ declare const FormRender: SFCWithInstall<import("vue").DefineComponent<{}, {
|
|
|
248
248
|
type: import("vue").PropType<import("./src/hooks").RequestInstance>;
|
|
249
249
|
};
|
|
250
250
|
enterToNextWidget: {
|
|
251
|
-
type:
|
|
251
|
+
type: import("vue").PropType<boolean | ((fieldItem: import("./src/types").FieldItem) => boolean | void)>;
|
|
252
252
|
default: boolean;
|
|
253
253
|
};
|
|
254
254
|
}>> & {
|
|
@@ -626,7 +626,7 @@ declare const FormRender: SFCWithInstall<import("vue").DefineComponent<{}, {
|
|
|
626
626
|
type: import("vue").PropType<import("./src/hooks").RequestInstance>;
|
|
627
627
|
};
|
|
628
628
|
enterToNextWidget: {
|
|
629
|
-
type:
|
|
629
|
+
type: import("vue").PropType<boolean | ((fieldItem: import("./src/types").FieldItem) => boolean | void)>;
|
|
630
630
|
default: boolean;
|
|
631
631
|
};
|
|
632
632
|
}>> & {
|
|
@@ -640,7 +640,7 @@ declare const FormRender: SFCWithInstall<import("vue").DefineComponent<{}, {
|
|
|
640
640
|
parallelism: number;
|
|
641
641
|
scope: import("../../../es/shared/types").AnyObject;
|
|
642
642
|
consumer: boolean;
|
|
643
|
-
enterToNextWidget: boolean;
|
|
643
|
+
enterToNextWidget: boolean | ((fieldItem: import("./src/types").FieldItem) => boolean | void);
|
|
644
644
|
}>;
|
|
645
645
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
|
|
646
646
|
export default FormRender;
|
|
@@ -120,7 +120,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
120
120
|
type: PropType<RequestInstance>;
|
|
121
121
|
};
|
|
122
122
|
enterToNextWidget: {
|
|
123
|
-
type:
|
|
123
|
+
type: PropType<boolean | ((fieldItem: FieldItem) => boolean | void)>;
|
|
124
124
|
default: boolean;
|
|
125
125
|
};
|
|
126
126
|
}, {
|
|
@@ -242,7 +242,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
242
242
|
type: PropType<RequestInstance>;
|
|
243
243
|
};
|
|
244
244
|
enterToNextWidget: {
|
|
245
|
-
type:
|
|
245
|
+
type: PropType<boolean | ((fieldItem: FieldItem) => boolean | void)>;
|
|
246
246
|
default: boolean;
|
|
247
247
|
};
|
|
248
248
|
}>> & {
|
|
@@ -620,7 +620,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
620
620
|
type: PropType<RequestInstance>;
|
|
621
621
|
};
|
|
622
622
|
enterToNextWidget: {
|
|
623
|
-
type:
|
|
623
|
+
type: PropType<boolean | ((fieldItem: FieldItem) => boolean | void)>;
|
|
624
624
|
default: boolean;
|
|
625
625
|
};
|
|
626
626
|
}>> & {
|
|
@@ -634,6 +634,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
634
634
|
parallelism: number;
|
|
635
635
|
scope: AnyObject;
|
|
636
636
|
consumer: boolean;
|
|
637
|
-
enterToNextWidget: boolean;
|
|
637
|
+
enterToNextWidget: boolean | ((fieldItem: FieldItem) => boolean | void);
|
|
638
638
|
}>;
|
|
639
639
|
export default _default;
|
|
@@ -4,7 +4,7 @@ import { createForm, onFieldValueChange, isField } from '@formily/core';
|
|
|
4
4
|
import { Path } from '@formily/path';
|
|
5
5
|
import { FormProvider, FormConsumer } from '@formily/vue';
|
|
6
6
|
import { isObject } from '@vue/shared';
|
|
7
|
-
import { cloneDeep, isArray } from 'lodash-es';
|
|
7
|
+
import { cloneDeep, isArray, isFunction } from 'lodash-es';
|
|
8
8
|
import { NForm, NTabs, NTabPane, NConfigProvider } from 'naive-ui';
|
|
9
9
|
import { NESTED_FORM_ITEM_TYPE, FormItemLineBarDepKeyPrepend } from './constants/index.js';
|
|
10
10
|
import { useFormRenderLifeCycle } from './hooks/useFormRenderLifeCycle.js';
|
|
@@ -60,7 +60,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
60
60
|
uuid: { type: String },
|
|
61
61
|
lifeCycle: { type: Object },
|
|
62
62
|
requestInstance: { type: Object },
|
|
63
|
-
enterToNextWidget: {
|
|
63
|
+
enterToNextWidget: {
|
|
64
|
+
type: [Boolean, Function],
|
|
65
|
+
default: true
|
|
66
|
+
}
|
|
64
67
|
},
|
|
65
68
|
emits: [
|
|
66
69
|
"formChange"
|
|
@@ -111,6 +114,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
111
114
|
);
|
|
112
115
|
watch(parsedSchema, generateAnchorList, { immediate: true });
|
|
113
116
|
function onKeydown(event) {
|
|
117
|
+
var _a;
|
|
114
118
|
if (!props.enterToNextWidget || !formRenderRef.value)
|
|
115
119
|
return;
|
|
116
120
|
const ancestorFormItem = findAncestor(
|
|
@@ -124,10 +128,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
124
128
|
const formItemIndex = formItemElements.findIndex((ele) => ele.id === ancestorFormItem.id);
|
|
125
129
|
if (!~formItemIndex)
|
|
126
130
|
return;
|
|
127
|
-
const
|
|
128
|
-
if (!
|
|
131
|
+
const { widget, field } = findNextWidget(formItemElements, formItemIndex, event.target);
|
|
132
|
+
if (!widget)
|
|
129
133
|
return;
|
|
130
|
-
|
|
134
|
+
const formItemInstance = field && formModel.query(field).take();
|
|
135
|
+
if (formItemInstance && isFunction(props.enterToNextWidget)) {
|
|
136
|
+
props.enterToNextWidget((_a = formItemInstance.decoratorProps) == null ? void 0 : _a.fieldItem) ? focus() : onKeydown({ target: widget });
|
|
137
|
+
}
|
|
138
|
+
function focus() {
|
|
139
|
+
widget == null ? void 0 : widget.focus();
|
|
140
|
+
}
|
|
131
141
|
}
|
|
132
142
|
async function queryWidget(key, wrapperElement, fieldList) {
|
|
133
143
|
if (!formRenderRef.value)
|
|
@@ -123,7 +123,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
123
123
|
type: import("vue").PropType<import("../../../../es/components/form-render").RequestInstance>;
|
|
124
124
|
};
|
|
125
125
|
enterToNextWidget: {
|
|
126
|
-
type:
|
|
126
|
+
type: import("vue").PropType<boolean | ((fieldItem: import("../../../../es/components/form-render").FieldItem) => boolean | void)>;
|
|
127
127
|
default: boolean;
|
|
128
128
|
};
|
|
129
129
|
}, {
|
|
@@ -245,7 +245,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
245
245
|
type: import("vue").PropType<import("../../../../es/components/form-render").RequestInstance>;
|
|
246
246
|
};
|
|
247
247
|
enterToNextWidget: {
|
|
248
|
-
type:
|
|
248
|
+
type: import("vue").PropType<boolean | ((fieldItem: import("../../../../es/components/form-render").FieldItem) => boolean | void)>;
|
|
249
249
|
default: boolean;
|
|
250
250
|
};
|
|
251
251
|
}>> & {
|
|
@@ -623,7 +623,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
623
623
|
type: import("vue").PropType<import("../../../../es/components/form-render").RequestInstance>;
|
|
624
624
|
};
|
|
625
625
|
enterToNextWidget: {
|
|
626
|
-
type:
|
|
626
|
+
type: import("vue").PropType<boolean | ((fieldItem: import("../../../../es/components/form-render").FieldItem) => boolean | void)>;
|
|
627
627
|
default: boolean;
|
|
628
628
|
};
|
|
629
629
|
}>> & {
|
|
@@ -637,7 +637,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
637
637
|
parallelism: number;
|
|
638
638
|
scope: import("../../../shared/types").AnyObject;
|
|
639
639
|
consumer: boolean;
|
|
640
|
-
enterToNextWidget: boolean;
|
|
640
|
+
enterToNextWidget: boolean | ((fieldItem: import("../../../../es/components/form-render").FieldItem) => boolean | void);
|
|
641
641
|
}>;
|
|
642
642
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
643
643
|
export default _default;
|
package/es/components/form-render/src/components/renderer/jsonCombination/hooks/useDeepValidate.js
CHANGED
|
@@ -15,14 +15,14 @@ function useDeepValidate() {
|
|
|
15
15
|
field.value.validator = [
|
|
16
16
|
{
|
|
17
17
|
async validator() {
|
|
18
|
-
return Promise.allSettled(
|
|
19
|
-
(
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
return
|
|
24
|
-
|
|
25
|
-
);
|
|
18
|
+
return Promise.allSettled(
|
|
19
|
+
formRenderRefs.value.filter((formRenderRef) => formRenderRef).map((formRenderRef) => formRenderRef.validate())
|
|
20
|
+
).then((resultList) => {
|
|
21
|
+
const rejected = resultList.filter((res) => res.status === "rejected");
|
|
22
|
+
if (!rejected.length)
|
|
23
|
+
return "";
|
|
24
|
+
return flatten(rejected.map((res) => res.reason));
|
|
25
|
+
});
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
...tempValidator ? arrayed(tempValidator) : []
|
|
@@ -1,7 +1,13 @@
|
|
|
1
|
-
import { Nullable
|
|
1
|
+
import { Nullable } from '../../../../../es/shared/types';
|
|
2
2
|
export declare function queryDecorator(key: string, wrapperElement: HTMLElement, formUUID: string): HTMLElement | null;
|
|
3
3
|
export declare function queryInput(decoratorElement?: Nullable<HTMLElement>): {
|
|
4
4
|
widgetElement: HTMLInputElement | null | undefined;
|
|
5
5
|
widgetElementList: HTMLInputElement[];
|
|
6
6
|
};
|
|
7
|
-
export declare function findNextWidget(containers: HTMLElement[], currentContainerIndex: number, currentWidget: HTMLElement):
|
|
7
|
+
export declare function findNextWidget(containers: HTMLElement[], currentContainerIndex: number, currentWidget: HTMLElement): {
|
|
8
|
+
widget: HTMLElement;
|
|
9
|
+
field: string | null;
|
|
10
|
+
} | {
|
|
11
|
+
widget: null;
|
|
12
|
+
field: null;
|
|
13
|
+
};
|
|
@@ -13,17 +13,24 @@ function queryInput(decoratorElement) {
|
|
|
13
13
|
function findNextWidget(containers, currentContainerIndex, currentWidget) {
|
|
14
14
|
const nextWidget = findInnerNextWidget(containers[currentContainerIndex], currentWidget);
|
|
15
15
|
if (nextWidget)
|
|
16
|
-
return nextWidget;
|
|
17
|
-
let
|
|
16
|
+
return { widget: nextWidget, field: getFormField(containers[currentContainerIndex]) };
|
|
17
|
+
let widget = null;
|
|
18
|
+
let field = null;
|
|
18
19
|
containers.slice(currentContainerIndex + 1).some((container) => {
|
|
19
|
-
|
|
20
|
+
const res = widget = findInnerNextWidget(container);
|
|
21
|
+
if (res)
|
|
22
|
+
field = getFormField(container);
|
|
23
|
+
return res;
|
|
20
24
|
});
|
|
21
|
-
return
|
|
25
|
+
return { widget, field };
|
|
26
|
+
function getFormField(formItemElement) {
|
|
27
|
+
return formItemElement && formItemElement.getAttribute("form-field");
|
|
28
|
+
}
|
|
22
29
|
function findInnerNextWidget(container, currentWidget2) {
|
|
23
30
|
const widgets = Array.from(container.querySelectorAll("textarea,input,[tabindex]"));
|
|
24
|
-
const widgetIndex = currentWidget2 ? widgets.findIndex((
|
|
31
|
+
const widgetIndex = currentWidget2 ? widgets.findIndex((widget2) => widget2 === currentWidget2) : -1;
|
|
25
32
|
return widgets.slice(widgetIndex + 1).find(
|
|
26
|
-
(
|
|
33
|
+
(widget2) => !Reflect.get(widget2, "disabled") && !Array.from(widget2.classList).some((className) => className.endsWith("--disabled"))
|
|
27
34
|
);
|
|
28
35
|
}
|
|
29
36
|
}
|
|
@@ -1835,7 +1835,7 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1835
1835
|
type: import("vue").PropType<import("..").RequestInstance>;
|
|
1836
1836
|
};
|
|
1837
1837
|
enterToNextWidget: {
|
|
1838
|
-
type:
|
|
1838
|
+
type: import("vue").PropType<boolean | ((fieldItem: import("..").FieldItem) => boolean | void)>;
|
|
1839
1839
|
default: boolean;
|
|
1840
1840
|
};
|
|
1841
1841
|
}, {
|
|
@@ -1957,7 +1957,7 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1957
1957
|
type: import("vue").PropType<import("..").RequestInstance>;
|
|
1958
1958
|
};
|
|
1959
1959
|
enterToNextWidget: {
|
|
1960
|
-
type:
|
|
1960
|
+
type: import("vue").PropType<boolean | ((fieldItem: import("..").FieldItem) => boolean | void)>;
|
|
1961
1961
|
default: boolean;
|
|
1962
1962
|
};
|
|
1963
1963
|
}>> & {
|
|
@@ -2335,7 +2335,7 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2335
2335
|
type: import("vue").PropType<import("..").RequestInstance>;
|
|
2336
2336
|
};
|
|
2337
2337
|
enterToNextWidget: {
|
|
2338
|
-
type:
|
|
2338
|
+
type: import("vue").PropType<boolean | ((fieldItem: import("..").FieldItem) => boolean | void)>;
|
|
2339
2339
|
default: boolean;
|
|
2340
2340
|
};
|
|
2341
2341
|
}>> & {
|
|
@@ -2349,7 +2349,7 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2349
2349
|
parallelism: number;
|
|
2350
2350
|
scope: import("../../../es/shared/types").AnyObject;
|
|
2351
2351
|
consumer: boolean;
|
|
2352
|
-
enterToNextWidget: boolean;
|
|
2352
|
+
enterToNextWidget: boolean | ((fieldItem: import("..").FieldItem) => boolean | void);
|
|
2353
2353
|
}>;
|
|
2354
2354
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
|
|
2355
2355
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("error" | "update")[], "error" | "update", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -1837,7 +1837,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1837
1837
|
type: import("vue").PropType<import("../../../../es/components/form-render").RequestInstance>;
|
|
1838
1838
|
};
|
|
1839
1839
|
enterToNextWidget: {
|
|
1840
|
-
type:
|
|
1840
|
+
type: import("vue").PropType<boolean | ((fieldItem: FieldItem) => boolean | void)>;
|
|
1841
1841
|
default: boolean;
|
|
1842
1842
|
};
|
|
1843
1843
|
}, {
|
|
@@ -1959,7 +1959,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1959
1959
|
type: import("vue").PropType<import("../../../../es/components/form-render").RequestInstance>;
|
|
1960
1960
|
};
|
|
1961
1961
|
enterToNextWidget: {
|
|
1962
|
-
type:
|
|
1962
|
+
type: import("vue").PropType<boolean | ((fieldItem: FieldItem) => boolean | void)>;
|
|
1963
1963
|
default: boolean;
|
|
1964
1964
|
};
|
|
1965
1965
|
}>> & {
|
|
@@ -2337,7 +2337,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2337
2337
|
type: import("vue").PropType<import("../../../../es/components/form-render").RequestInstance>;
|
|
2338
2338
|
};
|
|
2339
2339
|
enterToNextWidget: {
|
|
2340
|
-
type:
|
|
2340
|
+
type: import("vue").PropType<boolean | ((fieldItem: FieldItem) => boolean | void)>;
|
|
2341
2341
|
default: boolean;
|
|
2342
2342
|
};
|
|
2343
2343
|
}>> & {
|
|
@@ -2351,7 +2351,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2351
2351
|
parallelism: number;
|
|
2352
2352
|
scope: import("../../../../es/shared/types").AnyObject;
|
|
2353
2353
|
consumer: boolean;
|
|
2354
|
-
enterToNextWidget: boolean;
|
|
2354
|
+
enterToNextWidget: boolean | ((fieldItem: FieldItem) => boolean | void);
|
|
2355
2355
|
}>;
|
|
2356
2356
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
|
|
2357
2357
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("error" | "update")[], "error" | "update", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cnhis-design-vue",
|
|
3
|
-
"version": "3.1.34-beta.
|
|
3
|
+
"version": "3.1.34-beta.16",
|
|
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": "b4bd6163c854b00c2401f51ab21e90121abafcb3"
|
|
65
65
|
}
|