cnhis-design-vue 3.3.2-beta.12 → 3.3.2-beta.15
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.
@@ -109,9 +109,12 @@ function useBirthProcessCumputedPoint(propItems) {
|
|
109
109
|
}
|
110
110
|
function getYValue(key, pointY) {
|
111
111
|
const item = scaleValues.find((item2) => [item2.key, item2.type || ""].includes(key));
|
112
|
+
const {
|
113
|
+
changeByInteger
|
114
|
+
} = item;
|
112
115
|
const [minValue] = (item == null ? void 0 : item.range) || [0];
|
113
116
|
const y = (endY - pointY) / propItems[`${key}YCell`] + minValue;
|
114
|
-
return getFloorNumber(y);
|
117
|
+
return changeByInteger ? getRoundNumber(y) : getFloorNumber(y);
|
115
118
|
}
|
116
119
|
return {
|
117
120
|
computedX,
|
@@ -312,6 +312,25 @@ function drawPoint(type = "circle", style) {
|
|
312
312
|
});
|
313
313
|
return new fabric.Group([bigIcon, smallIcon], _newStyle);
|
314
314
|
}
|
315
|
+
case "arrow": {
|
316
|
+
const {
|
317
|
+
width = 10,
|
318
|
+
height = 10
|
319
|
+
} = newStyle;
|
320
|
+
return new fabric.Polyline([{
|
321
|
+
x: 0,
|
322
|
+
y: 0
|
323
|
+
}, {
|
324
|
+
x: width / 2,
|
325
|
+
y: height
|
326
|
+
}, {
|
327
|
+
x: width,
|
328
|
+
y: 0
|
329
|
+
}], {
|
330
|
+
fill: "transparent",
|
331
|
+
...omit(newStyle, ["width", "height"])
|
332
|
+
});
|
333
|
+
}
|
315
334
|
default:
|
316
335
|
style && Reflect.deleteProperty(style, "stroke");
|
317
336
|
return new fabric.Text(String(type), {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent, inject, computed, ref, watch, createVNode, createTextVNode, nextTick } from 'vue';
|
2
|
-
import { LifeCycleTypes } from '@formily/core';
|
2
|
+
import { isField, LifeCycleTypes } from '@formily/core';
|
3
3
|
import '../../../index.js';
|
4
4
|
import { InjectionFormGlobalProps } from '../../constants/index.js';
|
5
5
|
import { createInputSlot } from '../../utils/index.js';
|
@@ -44,6 +44,7 @@ const script = /* @__PURE__ */ defineComponent({
|
|
44
44
|
const valueRef = computed({
|
45
45
|
get: () => props.value,
|
46
46
|
set(value) {
|
47
|
+
isField(field.value) && field.value.modify();
|
47
48
|
emit("update:value", value);
|
48
49
|
field.value.notify(LifeCycleTypes.ON_FIELD_INPUT_VALUE_CHANGE);
|
49
50
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "cnhis-design-vue",
|
3
|
-
"version": "3.3.2-beta.
|
3
|
+
"version": "3.3.2-beta.15",
|
4
4
|
"license": "ISC",
|
5
5
|
"module": "./es/components/index.js",
|
6
6
|
"main": "./es/components/index.js",
|
@@ -72,5 +72,5 @@
|
|
72
72
|
"iOS 7",
|
73
73
|
"last 3 iOS versions"
|
74
74
|
],
|
75
|
-
"gitHead": "
|
75
|
+
"gitHead": "ed3519af70edbc70719eae53ed758b842c8d9ecb"
|
76
76
|
}
|