cnhis-design-vue 3.1.33-beta.20 → 3.1.33-beta.21
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/index.d.ts +4 -0
- package/es/components/fabric-chart/src/FabricChart.vue.d.ts +10 -5
- package/es/components/fabric-chart/src/FabricChart.vue.js +21 -6
- package/es/components/fabric-chart/src/components/PopupMenu.js +1 -1
- package/es/components/fabric-chart/src/components/PopupTip.vue.js +1 -1
- package/es/components/fabric-chart/src/hooks/useCenter.js +5 -4
- package/es/components/iho-table/src/components/IhoTableColumn.js +1 -1
- package/package.json +2 -2
|
@@ -5,6 +5,9 @@ declare const FabricChart: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
5
5
|
default: string;
|
|
6
6
|
};
|
|
7
7
|
}, {
|
|
8
|
+
attrs: {
|
|
9
|
+
[x: string]: unknown;
|
|
10
|
+
};
|
|
8
11
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
9
12
|
mode: {
|
|
10
13
|
type: import("vue").PropType<import("./src/interface").IMode>;
|
|
@@ -12,6 +15,7 @@ declare const FabricChart: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
12
15
|
};
|
|
13
16
|
}>> & {}>>;
|
|
14
17
|
isTemperature: import("vue").ComputedRef<boolean>;
|
|
18
|
+
style: import("vue").ComputedRef<import("vue").CSSProperties>;
|
|
15
19
|
fabricChartRef: import("vue").Ref<any>;
|
|
16
20
|
redrawPoints: () => void;
|
|
17
21
|
select: (key: string) => void;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { PropType } from 'vue';
|
|
1
|
+
import { PropType, CSSProperties } from 'vue';
|
|
2
|
+
import { AnyObject } from '../../../../es/shared/types';
|
|
2
3
|
import { IMode } from './interface';
|
|
3
4
|
declare const _default: import("vue").DefineComponent<{
|
|
4
5
|
mode: {
|
|
@@ -6,6 +7,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
6
7
|
default: string;
|
|
7
8
|
};
|
|
8
9
|
}, {
|
|
10
|
+
attrs: {
|
|
11
|
+
[x: string]: unknown;
|
|
12
|
+
};
|
|
9
13
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
10
14
|
mode: {
|
|
11
15
|
type: PropType<IMode>;
|
|
@@ -13,6 +17,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
13
17
|
};
|
|
14
18
|
}>> & {}>>;
|
|
15
19
|
isTemperature: import("vue").ComputedRef<boolean>;
|
|
20
|
+
style: import("vue").ComputedRef<CSSProperties>;
|
|
16
21
|
fabricChartRef: import("vue").Ref<any>;
|
|
17
22
|
redrawPoints: () => void;
|
|
18
23
|
select: (key: string) => void;
|
|
@@ -135,7 +140,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
135
140
|
show: boolean;
|
|
136
141
|
point: import("./interface").ICoordinateValue;
|
|
137
142
|
list: string[];
|
|
138
|
-
propItems:
|
|
143
|
+
propItems: AnyObject;
|
|
139
144
|
};
|
|
140
145
|
pointStyle: import("vue").ComputedRef<{
|
|
141
146
|
top: string;
|
|
@@ -246,8 +251,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
246
251
|
onDelete?: ((...args: any[]) => any) | undefined;
|
|
247
252
|
}>>;
|
|
248
253
|
emits: (event: "delete" | "change" | "add" | "select", ...args: any[]) => void;
|
|
249
|
-
leftScales: import("vue").ComputedRef<
|
|
250
|
-
rightScales: import("vue").ComputedRef<
|
|
254
|
+
leftScales: import("vue").ComputedRef<AnyObject[]>;
|
|
255
|
+
rightScales: import("vue").ComputedRef<AnyObject[]>;
|
|
251
256
|
leftAddAreaWidth: number;
|
|
252
257
|
rightAddAreaWidth: import("vue").ComputedRef<0 | 30>;
|
|
253
258
|
originX: import("vue").ComputedRef<number>;
|
|
@@ -314,7 +319,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
314
319
|
show: boolean;
|
|
315
320
|
point: import("./interface").ICoordinateValue;
|
|
316
321
|
list: string[];
|
|
317
|
-
propItems:
|
|
322
|
+
propItems: AnyObject;
|
|
318
323
|
};
|
|
319
324
|
pointStyle: import("vue").ComputedRef<{
|
|
320
325
|
top: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, computed, ref,
|
|
1
|
+
import { defineComponent, useAttrs, computed, ref, openBlock, createElementBlock, normalizeStyle, unref, createBlock, mergeProps } from 'vue';
|
|
2
2
|
import TemperatureChart from './TemperatureChart.vue.js';
|
|
3
3
|
import BirthProcessChart from './BirthProcessChart.vue.js';
|
|
4
4
|
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.js';
|
|
@@ -11,7 +11,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
11
11
|
setup(__props, { expose }) {
|
|
12
12
|
var _a;
|
|
13
13
|
const props = __props;
|
|
14
|
+
const attrs = useAttrs();
|
|
14
15
|
const isTemperature = computed(() => props.mode === "temperature");
|
|
16
|
+
const style = computed(() => {
|
|
17
|
+
const data = attrs.data;
|
|
18
|
+
const _style = {
|
|
19
|
+
width: ((data == null ? void 0 : data.width) || 800) + "px",
|
|
20
|
+
height: ((data == null ? void 0 : data.height) || 700) + "px",
|
|
21
|
+
position: "relative"
|
|
22
|
+
};
|
|
23
|
+
return _style;
|
|
24
|
+
});
|
|
15
25
|
const fabricChartRef = ref();
|
|
16
26
|
function redrawPoints() {
|
|
17
27
|
var _a2;
|
|
@@ -28,11 +38,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
28
38
|
canvas
|
|
29
39
|
});
|
|
30
40
|
return (_ctx, _cache) => {
|
|
31
|
-
return
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
41
|
+
return openBlock(), createElementBlock("div", {
|
|
42
|
+
class: "c-fabric-chart-wrapper",
|
|
43
|
+
style: normalizeStyle(unref(style))
|
|
44
|
+
}, [
|
|
45
|
+
unref(isTemperature) ? (openBlock(), createBlock(TemperatureChart, mergeProps({
|
|
46
|
+
key: 0,
|
|
47
|
+
ref_key: "fabricChartRef",
|
|
48
|
+
ref: fabricChartRef
|
|
49
|
+
}, _ctx.$attrs), null, 16)) : (openBlock(), createBlock(BirthProcessChart, { key: 1 }))
|
|
50
|
+
], 4);
|
|
36
51
|
};
|
|
37
52
|
}
|
|
38
53
|
});
|
|
@@ -14,7 +14,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
14
14
|
const props = __props;
|
|
15
15
|
const pointStyle = useStyle(props);
|
|
16
16
|
return (_ctx, _cache) => {
|
|
17
|
-
return openBlock(), createBlock(Teleport, { to: ".c-fabric-chart" }, [
|
|
17
|
+
return openBlock(), createBlock(Teleport, { to: ".c-fabric-chart-wrapper" }, [
|
|
18
18
|
withDirectives(createElementVNode("ul", {
|
|
19
19
|
class: "c-fabric-chart-popup-tip",
|
|
20
20
|
style: normalizeStyle(unref(pointStyle))
|
|
@@ -441,14 +441,15 @@ function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, ge
|
|
|
441
441
|
rightLine: line,
|
|
442
442
|
otherObj,
|
|
443
443
|
lockMovementX: true,
|
|
444
|
-
lockMoveMentY: currentPointType == 0 ? true : false,
|
|
445
444
|
...v.pacemakerShow && type == "pulse" ? pacemaker.style : pointAttr,
|
|
446
|
-
...propItems.event
|
|
445
|
+
...propItems.event,
|
|
446
|
+
...isNonePain ? { selectable: false, evented: false } : {}
|
|
447
447
|
};
|
|
448
448
|
if (previousLine) {
|
|
449
|
+
const y = previousLine.get("y2");
|
|
449
450
|
point = drawPoint(currentPointType, {
|
|
450
451
|
left: previousLine.get("x2"),
|
|
451
|
-
top:
|
|
452
|
+
top: isNonePain ? y - 5 : y,
|
|
452
453
|
...pointAttrNew
|
|
453
454
|
});
|
|
454
455
|
} else {
|
|
@@ -456,7 +457,7 @@ function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, ge
|
|
|
456
457
|
pointAttrNew.leftLine = null;
|
|
457
458
|
point = drawPoint(currentPointType, {
|
|
458
459
|
left: points[0],
|
|
459
|
-
top: points[1],
|
|
460
|
+
top: isNonePain ? points[1] - 5 : points[1],
|
|
460
461
|
...pointAttrNew
|
|
461
462
|
});
|
|
462
463
|
}
|
|
@@ -45,7 +45,7 @@ const ColumnComponent = defineComponent({
|
|
|
45
45
|
const result = {
|
|
46
46
|
...field.slots
|
|
47
47
|
};
|
|
48
|
-
if (((_a = getLowCodeFieldFromField(props.field)) == null ? void 0 : _a.annotation) !== false) {
|
|
48
|
+
if (!field.type && ((_a = getLowCodeFieldFromField(props.field)) == null ? void 0 : _a.annotation) !== false) {
|
|
49
49
|
result.header = (payload) => {
|
|
50
50
|
var _a2;
|
|
51
51
|
return renderHeader(payload, (_a2 = field.slots) == null ? void 0 : _a2.header);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cnhis-design-vue",
|
|
3
|
-
"version": "3.1.33-beta.
|
|
3
|
+
"version": "3.1.33-beta.21",
|
|
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": "049395e1d5612e05a3659f216d5d825c585c381e"
|
|
65
65
|
}
|