cnhis-design-vue 3.1.16-beta.11 → 3.1.16-beta.12
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/packages/button-print/index.d.ts +1 -1
- package/es/packages/button-print/src/ButtonPrint.vue.d.ts +1 -1
- package/es/packages/button-print/src/ButtonPrint.vue_vue_type_script_setup_true_lang.js +3 -15
- package/es/packages/fabric-chart/src/FabricChart.js +1 -1
- package/es/packages/form-render/src/FormRender.js +2 -2
- package/es/packages/form-render/src/hooks/useTypeNormalize.js +2 -1
- package/package.json +1 -1
|
@@ -161,7 +161,7 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
161
161
|
init: () => Promise<boolean>;
|
|
162
162
|
handleClickBtn: () => Promise<false | undefined>;
|
|
163
163
|
reformatPrintParams: () => void;
|
|
164
|
-
verifiySuccess: (
|
|
164
|
+
verifiySuccess: () => void;
|
|
165
165
|
NDropdown: import("vue").DefineComponent<{
|
|
166
166
|
readonly theme: import("vue").PropType<import("naive-ui/es/_mixins").Theme<"Dropdown", {
|
|
167
167
|
optionHeightSmall: string;
|
|
@@ -165,7 +165,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
165
165
|
init: () => Promise<boolean>;
|
|
166
166
|
handleClickBtn: () => Promise<false | undefined>;
|
|
167
167
|
reformatPrintParams: () => void;
|
|
168
|
-
verifiySuccess: (
|
|
168
|
+
verifiySuccess: () => void;
|
|
169
169
|
NDropdown: import("vue").DefineComponent<{
|
|
170
170
|
readonly theme: import("vue").PropType<import("naive-ui/es/_mixins").Theme<"Dropdown", {
|
|
171
171
|
optionHeightSmall: string;
|
|
@@ -240,16 +240,6 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
240
240
|
state.visible = false;
|
|
241
241
|
});
|
|
242
242
|
};
|
|
243
|
-
const handleClickEdit = () => {
|
|
244
|
-
props.prevFn().catch(() => {
|
|
245
|
-
prevFnError();
|
|
246
|
-
return Promise.reject();
|
|
247
|
-
}).then(() => {
|
|
248
|
-
state.identityVerification.visible = true;
|
|
249
|
-
}).finally(() => {
|
|
250
|
-
state.visible = false;
|
|
251
|
-
});
|
|
252
|
-
};
|
|
253
243
|
const handleSelect = (key) => {
|
|
254
244
|
switch (key) {
|
|
255
245
|
case "printText":
|
|
@@ -259,7 +249,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
259
249
|
handleClickPreview();
|
|
260
250
|
break;
|
|
261
251
|
case "formatEditText":
|
|
262
|
-
|
|
252
|
+
verifiySuccess();
|
|
263
253
|
break;
|
|
264
254
|
case "downloadPdf":
|
|
265
255
|
handleClickPdf();
|
|
@@ -416,13 +406,11 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
416
406
|
}
|
|
417
407
|
state.printParams = formatParams(state.templateParams, props.params);
|
|
418
408
|
};
|
|
419
|
-
const verifiySuccess = (
|
|
420
|
-
state.identityVerification.visible = false;
|
|
409
|
+
const verifiySuccess = () => {
|
|
421
410
|
const queryParams = {
|
|
422
411
|
formatId: state.currentFormatId,
|
|
423
412
|
templateId: getTemplateIdByFormatId(state.currentFormatId),
|
|
424
|
-
params: getPrintParams()
|
|
425
|
-
token
|
|
413
|
+
params: getPrintParams()
|
|
426
414
|
};
|
|
427
415
|
printInstance.editPrintFormat(queryParams, (res) => {
|
|
428
416
|
callLocalServicesSuccessCb(res, "edit");
|
|
@@ -260,7 +260,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
260
260
|
const list = (item == null ? void 0 : item.list) || [];
|
|
261
261
|
if (!list.length)
|
|
262
262
|
return 0;
|
|
263
|
-
return yCellHeight.value / ((
|
|
263
|
+
return yCellHeight.value / ((list[1] - list[0]) / item.spaceGridNumber);
|
|
264
264
|
}
|
|
265
265
|
const { cumputedX, cumputedY, getXValue, getYValue } = useCumputedPoint(propItems);
|
|
266
266
|
useTop(canvas, propItems);
|
|
@@ -54,6 +54,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
54
54
|
effects() {
|
|
55
55
|
onFieldValueChange("*", async (field) => {
|
|
56
56
|
const fieldKey = field.props.name.toString();
|
|
57
|
+
businessCollector.trigger(fieldKey);
|
|
58
|
+
formItemDepsCollector.trigger(fieldKey);
|
|
57
59
|
emit("formChange", {
|
|
58
60
|
fieldInstance: field,
|
|
59
61
|
fieldKey,
|
|
@@ -61,8 +63,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
61
63
|
value: field.value,
|
|
62
64
|
context: await changeContextCollector.getContext(fieldKey)
|
|
63
65
|
});
|
|
64
|
-
businessCollector.trigger(fieldKey);
|
|
65
|
-
formItemDepsCollector.trigger(fieldKey);
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
68
|
});
|