cnhis-design-vue 3.0.5 → 3.0.8

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.
@@ -7908,7 +7908,8 @@ var script = /* @__PURE__ */ defineComponent({
7908
7908
  verifyUser: { type: Function, required: false, default: () => Promise.resolve() },
7909
7909
  queryPrintFormatByNumber: { type: Function, required: true, default: () => Promise.resolve({}) },
7910
7910
  queryTemplateParams: { type: Function, required: false, default: () => Promise.resolve({}) },
7911
- strategy: { type: String, required: false, default: "MULTI" }
7911
+ strategy: { type: String, required: false, default: "MULTI" },
7912
+ printParams: { type: Array, required: false }
7912
7913
  },
7913
7914
  emits: ["success", "error"],
7914
7915
  setup(__props, { emit }) {
@@ -7972,7 +7973,7 @@ var script = /* @__PURE__ */ defineComponent({
7972
7973
  emit("error", error);
7973
7974
  };
7974
7975
  const getPrintParams = (index = 0) => {
7975
- const params = state.printParams[index];
7976
+ const params = props.printParams?.length ? props.printParams[index] : state.printParams[index];
7976
7977
  return JSON.stringify(params);
7977
7978
  };
7978
7979
  const getOnceParams = () => {