super-page-runtime 2.1.42 → 2.1.48

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.
@@ -342,7 +342,7 @@ function formatVariableValue(pageContext2, variable) {
342
342
  const paramValue = getValueFromVariable(entity, param);
343
343
  variable = variable.replace(
344
344
  param,
345
- paramValue == void 0 || paramValue == null ? "" : paramValue
345
+ paramValue === void 0 || paramValue === null ? "" : paramValue
346
346
  );
347
347
  }
348
348
  return variable;
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, computed, ref, onMounted, onUnmounted, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementBlock, toDisplayString, createCommentVNode, resolveDynamicComponent } from "vue";
2
2
  import { getFormModelFields } from "../../../../utils/page-init-util.js";
3
- import { getVariableValue, setVariableValue, getFormPropName, setVariableValueWithProp } from "../../../../utils/page-helper-util.js";
3
+ import { getVariableValue, setVariableValue, formatVariableValue, getFormPropName, setVariableValueWithProp } from "../../../../utils/page-helper-util.js";
4
4
  import { handleEvent } from "../../../../utils/events/event-util.js";
5
5
  import { updateFormItemEditState } from "../../../../utils/events/validator-util.js";
6
6
  import { getListCode } from "../../../../utils/common-util.js";
@@ -40,7 +40,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
40
40
  const runtimeClass = runtimeInfo.class;
41
41
  const headerStyle = runtimeInfo.headerStyle;
42
42
  const designProperty = ref(runtimeInfo.props ? runtimeInfo.props : {});
43
- const customParams = runtimeInfo.customParams ? runtimeInfo.customParams : {};
43
+ const customParams = getCustomParams(runtimeInfo.customParams ? runtimeInfo.customParams : {});
44
44
  const additionalParamMap = getAdditionalParamMap(props.pageContext);
45
45
  const componentName = ref(
46
46
  props.configure.props && props.configure.props.base ? props.configure.props.base.name : null
@@ -52,6 +52,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
52
52
  }
53
53
  props.pageContext.customValidatorUuids.push(props.configure.uuid);
54
54
  }
55
+ function getCustomParams(customParams2) {
56
+ if (customParams2) {
57
+ for (let key in customParams2) {
58
+ customParams2.value[key] = formatVariableValue(props.pageContext, key);
59
+ }
60
+ }
61
+ }
55
62
  function customControlSetValue(prop, value) {
56
63
  setVariableValueWithProp(entity, prop, value);
57
64
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "super-page-runtime",
3
- "version": "2.1.42",
3
+ "version": "2.1.48",
4
4
  "description": "AgileBuilder super page runtime",
5
5
  "license": "ISC",
6
6
  "main": "dist/es/index.js",
@@ -48,7 +48,7 @@
48
48
  "@vitejs/plugin-vue-jsx": "^3.1.0",
49
49
  "@vue/eslint-config-prettier": "^8.0.0",
50
50
  "@vue/test-utils": "^2.4.4",
51
- "agilebuilder-ui": "1.0.82",
51
+ "agilebuilder-ui": "1.0.83",
52
52
  "axios": "^1.6.8",
53
53
  "cypress": "^13.6.6",
54
54
  "element-plus": "^2.6.1",