cnhis-design-vue 3.1.28-beta.4 → 3.1.28
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/button-print/index.d.ts +13 -0
- package/es/components/button-print/src/ButtonPrint.vue.d.ts +13 -0
- package/es/components/button-print/src/ButtonPrint.vue_vue_type_script_setup_true_lang.js +6 -1
- package/es/components/fabric-chart/src/hooks/useCenter.js +3 -2
- package/es/components/fabric-chart/src/hooks/useEvent.js +1 -1
- package/package.json +2 -2
|
@@ -55,6 +55,10 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
55
55
|
token: {
|
|
56
56
|
type: StringConstructor;
|
|
57
57
|
};
|
|
58
|
+
printdlgshow: {
|
|
59
|
+
default: string;
|
|
60
|
+
type: StringConstructor;
|
|
61
|
+
};
|
|
58
62
|
}, {
|
|
59
63
|
$message: import("naive-ui").MessageApi;
|
|
60
64
|
printInstance: any;
|
|
@@ -113,6 +117,10 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
113
117
|
token: {
|
|
114
118
|
type: StringConstructor;
|
|
115
119
|
};
|
|
120
|
+
printdlgshow: {
|
|
121
|
+
default: string;
|
|
122
|
+
type: StringConstructor;
|
|
123
|
+
};
|
|
116
124
|
}>> & {
|
|
117
125
|
onError?: ((...args: any[]) => any) | undefined;
|
|
118
126
|
onSuccess?: ((...args: any[]) => any) | undefined;
|
|
@@ -592,6 +600,10 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
592
600
|
token: {
|
|
593
601
|
type: StringConstructor;
|
|
594
602
|
};
|
|
603
|
+
printdlgshow: {
|
|
604
|
+
default: string;
|
|
605
|
+
type: StringConstructor;
|
|
606
|
+
};
|
|
595
607
|
}>> & {
|
|
596
608
|
onError?: ((...args: any[]) => any) | undefined;
|
|
597
609
|
onSuccess?: ((...args: any[]) => any) | undefined;
|
|
@@ -609,5 +621,6 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
609
621
|
strategy: string;
|
|
610
622
|
clickPrevFn: Function;
|
|
611
623
|
noDataMsg: string;
|
|
624
|
+
printdlgshow: string;
|
|
612
625
|
}>>;
|
|
613
626
|
export default ButtonPrint;
|
|
@@ -56,6 +56,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
56
56
|
token: {
|
|
57
57
|
type: StringConstructor;
|
|
58
58
|
};
|
|
59
|
+
printdlgshow: {
|
|
60
|
+
default: string;
|
|
61
|
+
type: StringConstructor;
|
|
62
|
+
};
|
|
59
63
|
}, {
|
|
60
64
|
$message: import("naive-ui").MessageApi;
|
|
61
65
|
printInstance: any;
|
|
@@ -117,6 +121,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
117
121
|
token: {
|
|
118
122
|
type: StringConstructor;
|
|
119
123
|
};
|
|
124
|
+
printdlgshow: {
|
|
125
|
+
default: string;
|
|
126
|
+
type: StringConstructor;
|
|
127
|
+
};
|
|
120
128
|
}>> & {
|
|
121
129
|
onError?: ((...args: any[]) => any) | undefined;
|
|
122
130
|
onSuccess?: ((...args: any[]) => any) | undefined;
|
|
@@ -601,6 +609,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
601
609
|
token: {
|
|
602
610
|
type: StringConstructor;
|
|
603
611
|
};
|
|
612
|
+
printdlgshow: {
|
|
613
|
+
default: string;
|
|
614
|
+
type: StringConstructor;
|
|
615
|
+
};
|
|
604
616
|
}>> & {
|
|
605
617
|
onError?: ((...args: any[]) => any) | undefined;
|
|
606
618
|
onSuccess?: ((...args: any[]) => any) | undefined;
|
|
@@ -618,5 +630,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
618
630
|
strategy: string;
|
|
619
631
|
clickPrevFn: Function;
|
|
620
632
|
noDataMsg: string;
|
|
633
|
+
printdlgshow: string;
|
|
621
634
|
}>;
|
|
622
635
|
export default _default;
|
|
@@ -62,6 +62,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
62
62
|
},
|
|
63
63
|
token: {
|
|
64
64
|
type: String
|
|
65
|
+
},
|
|
66
|
+
printdlgshow: {
|
|
67
|
+
default: "0",
|
|
68
|
+
type: String
|
|
65
69
|
}
|
|
66
70
|
},
|
|
67
71
|
emits: ["success", "error", "clickoutside"],
|
|
@@ -186,7 +190,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
186
190
|
}).then(() => {
|
|
187
191
|
const queryParams = {
|
|
188
192
|
formatId: state.currentFormatId,
|
|
189
|
-
templateId: getTemplateIdByFormatId.value
|
|
193
|
+
templateId: getTemplateIdByFormatId.value,
|
|
194
|
+
printdlgshow: props.printdlgshow
|
|
190
195
|
};
|
|
191
196
|
if (props.strategy === "MULTI") {
|
|
192
197
|
for (let i = 0; i < state.printParams.length; i++) {
|
|
@@ -515,9 +515,9 @@ function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, ge
|
|
|
515
515
|
updateLine(point);
|
|
516
516
|
event.hovered && setPopup(point);
|
|
517
517
|
});
|
|
518
|
-
point.on("mouseup
|
|
518
|
+
point.on("mouseup", (event2) => {
|
|
519
519
|
pointTipProps.show = false;
|
|
520
|
-
if (event2.
|
|
520
|
+
if (event2.button === 1) {
|
|
521
521
|
const { type } = point.origin;
|
|
522
522
|
const value = getYValue(type, point.top);
|
|
523
523
|
const params = {
|
|
@@ -527,6 +527,7 @@ function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, ge
|
|
|
527
527
|
value
|
|
528
528
|
}
|
|
529
529
|
};
|
|
530
|
+
canvas.value.discardActiveObject();
|
|
530
531
|
emits("change", params);
|
|
531
532
|
updateData(params, "change");
|
|
532
533
|
}
|
|
@@ -101,7 +101,7 @@ function useCanvasEvent(canvas, propItems, emits) {
|
|
|
101
101
|
const { button, pointer } = event;
|
|
102
102
|
if (button == 1) {
|
|
103
103
|
const _key = obj.key.replace("All", "");
|
|
104
|
-
const key = pointer.x <= originX ? _key + "Title" : _key;
|
|
104
|
+
const key = (pointer == null ? void 0 : pointer.x) && (pointer == null ? void 0 : pointer.x) <= originX ? _key + "Title" : _key;
|
|
105
105
|
obj.sendToBack();
|
|
106
106
|
select(key);
|
|
107
107
|
emits("select", key);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cnhis-design-vue",
|
|
3
|
-
"version": "3.1.28
|
|
3
|
+
"version": "3.1.28",
|
|
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": "431d185847d7aa32415b24cb2ef0074de18c8a37"
|
|
65
65
|
}
|