cnhis-design-vue 3.1.21-beta.12 → 3.1.21-beta.13
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.
|
@@ -60,7 +60,7 @@ var PopupMenu = defineComponent({
|
|
|
60
60
|
"align": "center"
|
|
61
61
|
}, {
|
|
62
62
|
default: () => [createVNode("span", null, [item.label]), createVNode(NInputNumber, {
|
|
63
|
-
"style": "width:
|
|
63
|
+
"style": "width: 110px",
|
|
64
64
|
"size": "small",
|
|
65
65
|
"value": item.value,
|
|
66
66
|
"onUpdate:value": ($event) => item.value = $event,
|
|
@@ -68,6 +68,7 @@ var PopupMenu = defineComponent({
|
|
|
68
68
|
"placeholder": "\u8BF7\u8F93\u5165\u6570\u503C",
|
|
69
69
|
"max": props.target.origin.data.value,
|
|
70
70
|
"min": min,
|
|
71
|
+
"showButton": false,
|
|
71
72
|
"onFocus": () => emit("update:show", true)
|
|
72
73
|
}, null)]
|
|
73
74
|
});
|
|
@@ -154,17 +154,20 @@ function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, ge
|
|
|
154
154
|
pointMenuProps.list = ["\u65B0\u589E\u8282\u70B9"];
|
|
155
155
|
itemList.forEach((v) => {
|
|
156
156
|
if (!getEqualXTypes(x).includes(v.bigType)) {
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
157
|
+
const newY = ["pain"].includes(v.bigType) ? painOriginY : vitalSignsOriginY;
|
|
158
|
+
if (y >= newY.originY && y <= newY.endY) {
|
|
159
|
+
pointMenuProps.list.push({
|
|
160
|
+
renderItem: addRenderItem ? addRenderItem(v) : () => v.title,
|
|
161
|
+
origin: {
|
|
162
|
+
title: v.title,
|
|
163
|
+
unit: v.unit,
|
|
164
|
+
type: v.bigType,
|
|
165
|
+
dataIndex: v.dataIndex,
|
|
166
|
+
key: v.key
|
|
167
|
+
},
|
|
168
|
+
pointer: event2.pointer
|
|
169
|
+
});
|
|
170
|
+
}
|
|
168
171
|
}
|
|
169
172
|
});
|
|
170
173
|
if (pointMenuProps.list.length === 1) {
|
|
@@ -348,8 +351,8 @@ function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, ge
|
|
|
348
351
|
const pointAttrNew = {
|
|
349
352
|
origin: {
|
|
350
353
|
data: v,
|
|
351
|
-
title:
|
|
352
|
-
key:
|
|
354
|
+
title: _item.title,
|
|
355
|
+
key: _item.key || "",
|
|
353
356
|
unit: scaleValue.unit,
|
|
354
357
|
type,
|
|
355
358
|
dataIndex,
|
|
@@ -385,7 +388,7 @@ function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, ge
|
|
|
385
388
|
}
|
|
386
389
|
lineList.push(line);
|
|
387
390
|
if (point) {
|
|
388
|
-
if (
|
|
391
|
+
if (_item.title.includes("\u8109\u640F")) {
|
|
389
392
|
maiboPoints.add(point);
|
|
390
393
|
} else {
|
|
391
394
|
otherPoints.add(point);
|
|
@@ -235,8 +235,21 @@ function useLeft(canvas, propItems, emits, setPopup, pointTipProps, getXValue, g
|
|
|
235
235
|
function isLimit(point) {
|
|
236
236
|
return point.left >= originX && point.left <= endX && point.top >= originY && point.top <= endY;
|
|
237
237
|
}
|
|
238
|
+
function moveLimit(point) {
|
|
239
|
+
if (point.left >= originX && point.left <= endX) {
|
|
240
|
+
point.setCoords();
|
|
241
|
+
const newY = point.origin.type === "pain" ? painOriginY : vitalSignsOriginY;
|
|
242
|
+
if (point.top < newY.originY) {
|
|
243
|
+
point.set("top", newY.originY);
|
|
244
|
+
}
|
|
245
|
+
if (point.top > newY.endY) {
|
|
246
|
+
point.set("top", newY.endY);
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
}
|
|
238
250
|
function setPointEvent(point) {
|
|
239
251
|
point.on("moving", () => {
|
|
252
|
+
moveLimit(point);
|
|
240
253
|
if (isLimit(point)) {
|
|
241
254
|
setPopup(point);
|
|
242
255
|
} else {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cnhis-design-vue",
|
|
3
|
-
"version": "3.1.21-beta.
|
|
3
|
+
"version": "3.1.21-beta.13",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"module": "./es/components/index.js",
|
|
6
6
|
"main": "./es/components/index.js",
|
|
@@ -66,5 +66,5 @@
|
|
|
66
66
|
"iOS 7",
|
|
67
67
|
"last 3 iOS versions"
|
|
68
68
|
],
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "7b5157ff60722aaeea7a4e638304e7570b8a22db"
|
|
70
70
|
}
|