super-page-runtime 2.1.83 → 2.1.85

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.
@@ -146,12 +146,15 @@ function updateChartDatasources(pageContext2, dataSourceConfs, appendParams, isI
146
146
  const configure = componentRef.getConfigure();
147
147
  const serviceInputs = (_a = configure == null ? void 0 : configure.props.dataOrigin) == null ? void 0 : _a.serviceInputs;
148
148
  if (serviceInputs) {
149
- serviceInputs.forEach((inParam) => {
150
- const paramName = inParam.name;
151
- const paramValue = inParam.value;
152
- item.serviceInParams = {};
153
- item.serviceInParams[paramName] = getValueFromVariable(pageContext2.entity, paramValue);
154
- });
149
+ const services = item.services;
150
+ if (services && services.length > 0) {
151
+ services[0].serviceInParams = {};
152
+ serviceInputs.forEach((inParam) => {
153
+ const paramName = inParam.name;
154
+ const paramValue = inParam.value;
155
+ services[0].serviceInParams[paramName] = getValueFromVariable(pageContext2.entity, paramValue);
156
+ });
157
+ }
155
158
  }
156
159
  }
157
160
  });
@@ -36,24 +36,21 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
36
36
  onMounted(() => {
37
37
  nextTick(() => {
38
38
  const value = dataModel ? dataModel[fieldName] : null;
39
- handleAfterInitEvent(
39
+ handleAfterInitEvent(value, props.pageContext, props.configure, {
40
+ formItemRef: formItemRef.value,
41
+ componentRef: componentRef.value,
42
+ titleRef: titleRef.value,
40
43
  value,
41
- props.pageContext,
42
- props.configure,
43
- {
44
- formItemRef: formItemRef.value,
45
- componentRef: componentRef.value,
46
- titleRef: titleRef.value,
47
- value,
48
- entity: props.pageContext.entity.data,
49
- pageData: props.pageContext.entity.page
50
- }
51
- );
44
+ entity: props.pageContext.entity.data,
45
+ pageData: props.pageContext.entity.page
46
+ });
52
47
  });
53
48
  });
54
49
  const autoSetFields = designProperty.value.autoSetFields ? designProperty.value.autoSetFields : [];
55
- function changeValue(value) {
56
- handleFormEvent(value, props.pageContext, props.configure, "change");
50
+ function changeValue(model, value) {
51
+ if (model === fieldName) {
52
+ handleFormEvent(value, props.pageContext, props.configure, "change");
53
+ }
57
54
  }
58
55
  function showTree() {
59
56
  handleFormEvent(null, props.pageContext, props.configure, "click");
@@ -97,7 +94,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
97
94
  fields: unref(autoSetFields),
98
95
  size: designProperty.value.size,
99
96
  separator: designProperty.value.separator,
100
- onChange: changeValue,
97
+ onSetValue: changeValue,
101
98
  onShowTree: showTree
102
99
  }, null, 8, ["disabled", "multiple", "treeType", "value", "models", "fields", "size", "separator"])
103
100
  ]),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "super-page-runtime",
3
- "version": "2.1.83",
3
+ "version": "2.1.85",
4
4
  "description": "AgileBuilder super page runtime",
5
5
  "license": "ISC",
6
6
  "main": "dist/es/index.js",