cnhis-design-vue 3.1.39-beta.5 → 3.1.39-beta.6
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.
|
@@ -191,6 +191,7 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
191
191
|
handleClickBtn: (visible?: boolean) => Promise<false | undefined>;
|
|
192
192
|
reformatPrintParams: () => void;
|
|
193
193
|
verifiySuccess: (token: string) => void;
|
|
194
|
+
directPrint: () => Promise<void>;
|
|
194
195
|
NDropdown: any;
|
|
195
196
|
NButton: any;
|
|
196
197
|
NIcon: any;
|
|
@@ -199,6 +199,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
199
199
|
handleClickBtn: (visible?: boolean) => Promise<false | undefined>;
|
|
200
200
|
reformatPrintParams: () => void;
|
|
201
201
|
verifiySuccess: (token: string) => void;
|
|
202
|
+
directPrint: () => Promise<void>;
|
|
202
203
|
NDropdown: any;
|
|
203
204
|
NButton: any;
|
|
204
205
|
NIcon: any;
|
|
@@ -79,6 +79,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
79
79
|
},
|
|
80
80
|
emits: ["success", "error", "clickoutside"],
|
|
81
81
|
setup(__props, {
|
|
82
|
+
expose,
|
|
82
83
|
emit
|
|
83
84
|
}) {
|
|
84
85
|
const props = __props;
|
|
@@ -127,8 +128,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
127
128
|
if (state.spinning)
|
|
128
129
|
return;
|
|
129
130
|
if (origin === "button") {
|
|
130
|
-
await
|
|
131
|
-
handleClickPrint();
|
|
131
|
+
await directPrint();
|
|
132
132
|
return;
|
|
133
133
|
} else {
|
|
134
134
|
return handleClickBtn();
|
|
@@ -477,6 +477,13 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
477
477
|
}, {
|
|
478
478
|
deep: true
|
|
479
479
|
});
|
|
480
|
+
async function directPrint() {
|
|
481
|
+
await handleClickBtn(false);
|
|
482
|
+
handleClickPrint();
|
|
483
|
+
}
|
|
484
|
+
expose({
|
|
485
|
+
directPrint
|
|
486
|
+
});
|
|
480
487
|
return (_ctx, _cache) => {
|
|
481
488
|
return openBlock(), createElementBlock(Fragment, null, [createVNode(unref(NDropdown), {
|
|
482
489
|
class: "c-dropdown",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cnhis-design-vue",
|
|
3
|
-
"version": "3.1.39-beta.
|
|
3
|
+
"version": "3.1.39-beta.6",
|
|
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": "bc849f39e8e9c85a74e66d3c30c0705034cc1a5e"
|
|
65
65
|
}
|