super-page-runtime 2.1.57 → 2.1.60

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.
Files changed (46) hide show
  1. package/dist/es/components/runtime/utils/api/page-expose-util.js +17 -14
  2. package/dist/es/components/runtime/utils/events/event-util.d.ts +1 -0
  3. package/dist/es/components/runtime/utils/events/event-util.js +4 -0
  4. package/dist/es/components/runtime/utils/events/standard-event.js +100 -36
  5. package/dist/es/components/runtime/utils/events/validator-util.d.ts +1 -1
  6. package/dist/es/components/runtime/utils/events/validator-util.js +2 -2
  7. package/dist/es/components/runtime/utils/table-utils.d.ts +1 -0
  8. package/dist/es/components/runtime/utils/table-utils.js +36 -0
  9. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +12 -2
  10. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +14 -1
  11. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +14 -2
  12. package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +16 -2
  13. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +11 -1
  14. package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +11 -1
  15. package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +11 -1
  16. package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +11 -1
  17. package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +14 -2
  18. package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +11 -1
  19. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +30 -10
  20. package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +9 -1
  21. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +13 -30
  22. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +2 -1
  23. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +29 -2
  24. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +24 -2
  25. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +31 -2
  26. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +33 -2
  27. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +21 -2
  28. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +26 -2
  29. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +29 -2
  30. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +27 -2
  31. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +32 -5
  32. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +29 -2
  33. package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +1 -1
  34. package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +26 -4
  35. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +29 -2
  36. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +22 -3
  37. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +27 -2
  38. package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +18 -1
  39. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +29 -4
  40. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +25 -2
  41. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +29 -2
  42. package/dist/es/components/runtime/views/super-page.vue.js +3 -2
  43. package/dist/es/i18n/langs/cn.js +3 -1
  44. package/dist/es/i18n/langs/en.js +3 -1
  45. package/dist/es/style.css +1 -1
  46. package/package.json +2 -2
@@ -1,7 +1,7 @@
1
- import { defineComponent, computed, ref, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementBlock, Fragment, createTextVNode, toDisplayString, createCommentVNode, createVNode } from "vue";
1
+ import { defineComponent, computed, ref, onMounted, nextTick, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementBlock, Fragment, createTextVNode, toDisplayString, createCommentVNode, createVNode } from "vue";
2
2
  import { getFormModelFields } from "../../../../utils/page-init-util.js";
3
3
  import { getVariableValue, setVariableValue } from "../../../../utils/page-helper-util.js";
4
- import { handleFormEvent } from "../../../../utils/events/event-util.js";
4
+ import { handleAfterInitEvent, handleFormEvent } from "../../../../utils/events/event-util.js";
5
5
  import _sfc_main$1 from "../common/title-suffix-element.vue.js";
6
6
  import { $t } from "../../../../utils/i18n-util.js";
7
7
  const _sfc_main = /* @__PURE__ */ defineComponent({
@@ -28,10 +28,33 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
28
28
  const headerStyle = runtimeInfo.headerStyle;
29
29
  const titleExceedStyle = runtimeInfo.titleExceedStyle;
30
30
  const designProperty = ref(runtimeInfo.props ? runtimeInfo.props : {});
31
+ const formItemRef = ref(null);
32
+ const componentRef = ref(null);
33
+ const titleRef = ref(null);
34
+ onMounted(() => {
35
+ nextTick(() => {
36
+ const value = dynamicModelMethod.value;
37
+ handleAfterInitEvent(
38
+ value,
39
+ props.pageContext,
40
+ props.configure,
41
+ {
42
+ formItemRef: formItemRef.value,
43
+ componentRef: componentRef.value,
44
+ titleRef: titleRef.value,
45
+ value,
46
+ entity: props.pageContext.entity.data,
47
+ pageData: props.pageContext.entity.page
48
+ }
49
+ );
50
+ });
51
+ });
31
52
  return (_ctx, _cache) => {
32
53
  const _component_el_input_number = resolveComponent("el-input-number");
33
54
  const _component_el_form_item = resolveComponent("el-form-item");
34
55
  return openBlock(), createBlock(_component_el_form_item, {
56
+ ref_key: "formItemRef",
57
+ ref: formItemRef,
35
58
  required: designProperty.value.required,
36
59
  class: normalizeClass(unref(runtimeClass)),
37
60
  "label-width": designProperty.value.labelWidth,
@@ -40,6 +63,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
40
63
  label: withCtx(() => [
41
64
  designProperty.value.tittleShow ? (openBlock(), createElementBlock("div", {
42
65
  key: 0,
66
+ ref_key: "titleRef",
67
+ ref: titleRef,
43
68
  style: normalizeStyle({ ...unref(headerStyle), ...unref(titleExceedStyle) })
44
69
  }, [
45
70
  designProperty.value.prefixType ? (openBlock(), createBlock(_sfc_main$1, {
@@ -53,6 +78,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
53
78
  ]),
54
79
  default: withCtx(() => [
55
80
  createVNode(_component_el_input_number, {
81
+ ref_key: "componentRef",
82
+ ref: componentRef,
56
83
  disabled: designProperty.value.state === "disabled",
57
84
  readonly: designProperty.value.state === "readonly",
58
85
  controls: designProperty.value.showButton,
@@ -1,8 +1,8 @@
1
- import { defineComponent, ref, computed, onMounted, onUnmounted, watch, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementBlock, Fragment, createTextVNode, toDisplayString, createCommentVNode, createVNode, createSlots } from "vue";
1
+ import { defineComponent, ref, computed, onMounted, nextTick, onUnmounted, watch, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementBlock, Fragment, createTextVNode, toDisplayString, createCommentVNode, createVNode, createSlots } from "vue";
2
2
  import { SuperIcon } from "agilebuilder-ui";
3
3
  import { getFormModelFields } from "../../../../utils/page-init-util.js";
4
4
  import { getVariableValue, setVariableValue } from "../../../../utils/page-helper-util.js";
5
- import { handleFormEvent } from "../../../../utils/events/event-util.js";
5
+ import { handleAfterInitEvent, handleFormEvent } from "../../../../utils/events/event-util.js";
6
6
  import { formatScanRuleSets, analysisScanValue, setScanAnalysisValue } from "../../../../utils/form/scan-util.js";
7
7
  import _sfc_main$1 from "../common/title-suffix-element.vue.js";
8
8
  import { isMobileBrowser } from "agilebuilder-ui/src/utils/common-util";
@@ -33,6 +33,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
33
33
  setVariableValue(entity, dynamicFields, value);
34
34
  }
35
35
  });
36
+ const formItemRef = ref(null);
37
+ const componentRef = ref(null);
38
+ const titleRef = ref(null);
36
39
  onMounted(() => {
37
40
  eventBus.$on(componentId.value + "-scanDone", (data) => {
38
41
  console.log(
@@ -43,6 +46,22 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
43
46
  );
44
47
  setValue(data.result);
45
48
  });
49
+ nextTick(() => {
50
+ const value = dynamicModelMethod.value;
51
+ handleAfterInitEvent(
52
+ value,
53
+ props.pageContext,
54
+ props.configure,
55
+ {
56
+ formItemRef: formItemRef.value,
57
+ componentRef: componentRef.value,
58
+ titleRef: titleRef.value,
59
+ value,
60
+ entity: props.pageContext.entity.data,
61
+ pageData: props.pageContext.entity.page
62
+ }
63
+ );
64
+ });
46
65
  });
47
66
  onUnmounted(() => {
48
67
  eventBus.$off(componentId.value + "-scanDone");
@@ -119,6 +138,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
119
138
  const _component_scan_code_input_browser = resolveComponent("scan-code-input-browser");
120
139
  const _component_el_form_item = resolveComponent("el-form-item");
121
140
  return openBlock(), createBlock(_component_el_form_item, {
141
+ ref_key: "formItemRef",
142
+ ref: formItemRef,
122
143
  required: designProperty.value.required ? true : false,
123
144
  class: normalizeClass(unref(runtimeClass)),
124
145
  "label-width": designProperty.value.labelWidth,
@@ -127,6 +148,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
127
148
  label: withCtx(() => [
128
149
  designProperty.value.tittleShow ? (openBlock(), createElementBlock("div", {
129
150
  key: 0,
151
+ ref_key: "titleRef",
152
+ ref: titleRef,
130
153
  style: normalizeStyle({ ...unref(headerStyle), ...unref(titleExceedStyle) })
131
154
  }, [
132
155
  designProperty.value.prefixType ? (openBlock(), createBlock(_sfc_main$1, {
@@ -140,6 +163,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
140
163
  ]),
141
164
  default: withCtx(() => [
142
165
  createVNode(_component_el_input, {
166
+ ref_key: "componentRef",
167
+ ref: componentRef,
143
168
  disabled: designProperty.value.state === "disabled",
144
169
  readonly: designProperty.value.state === "readonly",
145
170
  size: designProperty.value.size,
@@ -1,8 +1,8 @@
1
- import { defineComponent, ref, computed, onMounted, resolveComponent, openBlock, createElementBlock, normalizeClass, unref, normalizeStyle, createElementVNode, toDisplayString, createBlock, withCtx, createCommentVNode, createTextVNode } from "vue";
1
+ import { defineComponent, ref, computed, onMounted, nextTick, resolveComponent, openBlock, createElementBlock, normalizeClass, unref, normalizeStyle, createElementVNode, toDisplayString, createBlock, withCtx, createCommentVNode, createTextVNode } from "vue";
2
2
  import { getFormModelFields } from "../../../../utils/page-init-util.js";
3
3
  import { getVariableValue, formatValueByType } from "../../../../utils/page-helper-util.js";
4
4
  import { SuperIcon } from "agilebuilder-ui";
5
- import { getCustomFunc, handleFormEvent } from "../../../../utils/events/event-util.js";
5
+ import { getCustomFunc, handleAfterInitEvent, handleFormEvent } from "../../../../utils/events/event-util.js";
6
6
  import { $t } from "../../../../utils/i18n-util.js";
7
7
  const _hoisted_1 = { style: { "width": "100%", "text-align": "center", "font-weight": "700", "font-size": "24px", "margin-bottom": "20px" } };
8
8
  const _hoisted_2 = { style: { "overflow": "hidden", "white-space": "nowrap" } };
@@ -57,7 +57,26 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
57
57
  resultValue = resultValue === void 0 || resultValue === null ? "" : resultValue;
58
58
  return resultValue;
59
59
  });
60
+ const formItemRef = ref(null);
61
+ const componentRef = ref(null);
62
+ const titleRef = ref(null);
60
63
  onMounted(() => {
64
+ nextTick(() => {
65
+ const value = dynamicValue.value;
66
+ handleAfterInitEvent(
67
+ value,
68
+ props.pageContext,
69
+ props.configure,
70
+ {
71
+ formItemRef: formItemRef.value,
72
+ componentRef: componentRef.value,
73
+ titleRef: titleRef.value,
74
+ value,
75
+ entity: props.pageContext.entity.data,
76
+ pageData: props.pageContext.entity.page
77
+ }
78
+ );
79
+ });
61
80
  });
62
81
  function updateOptions(newOptions) {
63
82
  listOptions.value = newOptions ? newOptions : [];
@@ -69,12 +88,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
69
88
  const _component_el_form_item = resolveComponent("el-form-item");
70
89
  return designProperty.value.whetherTittle ? (openBlock(), createElementBlock("div", {
71
90
  key: 0,
91
+ ref_key: "titleRef",
92
+ ref: titleRef,
72
93
  class: normalizeClass(unref(runtimeClass)),
73
94
  style: normalizeStyle(unref(runtimeStyle))
74
95
  }, [
75
96
  createElementVNode("div", _hoisted_1, toDisplayString(designProperty.value.title), 1)
76
97
  ], 6)) : designProperty.value.tittleShow ? (openBlock(), createBlock(_component_el_form_item, {
77
98
  key: 1,
99
+ ref_key: "formItemRef",
100
+ ref: formItemRef,
78
101
  required: designProperty.value.required ? true : false,
79
102
  class: normalizeClass(unref(runtimeClass)),
80
103
  "label-width": designProperty.value.labelWidth,
@@ -83,12 +106,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
83
106
  label: withCtx(() => [
84
107
  designProperty.value.tittleShow ? (openBlock(), createElementBlock("div", {
85
108
  key: 0,
109
+ ref_key: "titleRef",
110
+ ref: titleRef,
86
111
  style: normalizeStyle({ ...unref(headerStyle), ...unref(titleExceedStyle) })
87
112
  }, toDisplayString(unref($t)(designProperty.value.title)), 5)) : createCommentVNode("", true)
88
113
  ]),
89
114
  default: withCtx(() => [
90
115
  createElementVNode("div", {
91
116
  style: { "display": "flex", "width": "100%", "justify-content": "space-between" },
117
+ ref_key: "componentRef",
118
+ ref: componentRef,
92
119
  onClick: _cache[0] || (_cache[0] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "click"))
93
120
  }, [
94
121
  createElementVNode("span", _hoisted_2, [
@@ -124,7 +151,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
124
151
  }, null, 8, ["iconType", "iconValue"])) : createCommentVNode("", true),
125
152
  createElementVNode("span", null, " " + toDisplayString(unref($t)(designProperty.value.sufText)), 1)
126
153
  ], 2)) : createCommentVNode("", true)
127
- ])
154
+ ], 512)
128
155
  ]),
129
156
  _: 1
130
157
  }, 8, ["required", "class", "label-width", "style"])) : (openBlock(), createElementBlock("span", {
@@ -135,12 +162,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
135
162
  createElementVNode("span", {
136
163
  style: { "overflow": "hidden", "white-space": "nowrap" },
137
164
  title: dynamicValue.value
138
- }, toDisplayString(designProperty.value.prefixIcon) + " " + toDisplayString(dynamicValue.value) + "222", 9, _hoisted_3),
165
+ }, toDisplayString(designProperty.value.prefixIcon) + " " + toDisplayString(dynamicValue.value), 9, _hoisted_3),
139
166
  designProperty.value.suffixTxt ? (openBlock(), createElementBlock("span", {
140
167
  key: 0,
141
168
  class: normalizeClass(unref(appendClass)),
142
169
  style: normalizeStyle(unref(appendStyle))
143
- }, toDisplayString(designProperty.value.suffixTxt) + "222", 7)) : createCommentVNode("", true)
170
+ }, toDisplayString(designProperty.value.suffixTxt), 7)) : createCommentVNode("", true)
144
171
  ]));
145
172
  };
146
173
  }
@@ -1,7 +1,7 @@
1
- import { defineComponent, ref, computed, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementBlock, toDisplayString, createCommentVNode, createVNode, createTextVNode } from "vue";
1
+ import { defineComponent, ref, computed, onMounted, nextTick, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementBlock, toDisplayString, createCommentVNode, createVNode, createTextVNode } from "vue";
2
2
  import { getFormModelFields } from "../../../../utils/page-init-util.js";
3
3
  import { getVariableValue } from "../../../../utils/page-helper-util.js";
4
- import { handleEvent } from "../../../../utils/events/event-util.js";
4
+ import { handleAfterInitEvent, handleEvent } from "../../../../utils/events/event-util.js";
5
5
  import { $t } from "../../../../utils/i18n-util.js";
6
6
  const _sfc_main = /* @__PURE__ */ defineComponent({
7
7
  __name: "link-runtime",
@@ -37,11 +37,34 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
37
37
  return tooltipVariable.replace(/\${value}/g, resultValue);
38
38
  });
39
39
  }
40
+ const formItemRef = ref(null);
41
+ const componentRef = ref(null);
42
+ const titleRef = ref(null);
43
+ onMounted(() => {
44
+ nextTick(() => {
45
+ const value = dynamicValue.value;
46
+ handleAfterInitEvent(
47
+ value,
48
+ props.pageContext,
49
+ props.configure,
50
+ {
51
+ formItemRef: formItemRef.value,
52
+ componentRef: componentRef.value,
53
+ titleRef: titleRef.value,
54
+ value,
55
+ entity: props.pageContext.entity.data,
56
+ pageData: props.pageContext.entity.page
57
+ }
58
+ );
59
+ });
60
+ });
40
61
  return (_ctx, _cache) => {
41
62
  const _component_el_link = resolveComponent("el-link");
42
63
  const _component_el_tooltip = resolveComponent("el-tooltip");
43
64
  const _component_el_form_item = resolveComponent("el-form-item");
44
65
  return openBlock(), createBlock(_component_el_form_item, {
66
+ ref_key: "formItemRef",
67
+ ref: formItemRef,
45
68
  class: normalizeClass(unref(runtimeClass)),
46
69
  "label-width": designProperty.value.labelWidth,
47
70
  style: normalizeStyle(unref(runtimeStyle))
@@ -49,6 +72,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
49
72
  label: withCtx(() => [
50
73
  designProperty.value.tittleShow ? (openBlock(), createElementBlock("div", {
51
74
  key: 0,
75
+ ref_key: "titleRef",
76
+ ref: titleRef,
52
77
  style: normalizeStyle({ ...unref(headerStyle) })
53
78
  }, toDisplayString(unref($t)(designProperty.value.title)), 5)) : createCommentVNode("", true)
54
79
  ]),
@@ -59,6 +84,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
59
84
  }, {
60
85
  default: withCtx(() => [
61
86
  createVNode(_component_el_link, {
87
+ ref_key: "componentRef",
88
+ ref: componentRef,
62
89
  disabled: designProperty.value.state === "disabled",
63
90
  type: designProperty.value.type,
64
91
  underline: designProperty.value.underline,
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./placeholder-runtime.vue2.js";
2
2
  import "./placeholder-runtime.vue3.js";
3
3
  import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.js";
4
- const placeholderRuntime = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-a0860ff0"]]);
4
+ const placeholderRuntime = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-96fc65d8"]]);
5
5
  export {
6
6
  placeholderRuntime as default
7
7
  };
@@ -1,6 +1,5 @@
1
- import { defineComponent, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, pushScopeId, popScopeId, createElementVNode } from "vue";
2
- const _withScopeId = (n) => (pushScopeId("data-v-a0860ff0"), n = n(), popScopeId(), n);
3
- const _hoisted_1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { style: { "width": "100%", "height": "100%" } }, " ", -1));
1
+ import { defineComponent, ref, onMounted, nextTick, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementVNode } from "vue";
2
+ import { handleAfterInitEvent } from "../../../../utils/events/event-util.js";
4
3
  const _sfc_main = /* @__PURE__ */ defineComponent({
5
4
  __name: "placeholder-runtime",
6
5
  props: {
@@ -12,14 +11,37 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
12
11
  const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
13
12
  const runtimeStyle = runtimeInfo.style;
14
13
  const runtimeClass = runtimeInfo.class;
14
+ const formItemRef = ref(null);
15
+ const componentRef = ref(null);
16
+ onMounted(() => {
17
+ nextTick(() => {
18
+ handleAfterInitEvent(
19
+ null,
20
+ props.pageContext,
21
+ props.configure,
22
+ {
23
+ formItemRef: formItemRef.value,
24
+ componentRef: componentRef.value,
25
+ entity: props.pageContext.entity.data,
26
+ pageData: props.pageContext.entity.page
27
+ }
28
+ );
29
+ });
30
+ });
15
31
  return (_ctx, _cache) => {
16
32
  const _component_el_form_item = resolveComponent("el-form-item");
17
33
  return openBlock(), createBlock(_component_el_form_item, {
34
+ ref_key: "formItemRef",
35
+ ref: formItemRef,
18
36
  class: normalizeClass(unref(runtimeClass)),
19
37
  style: normalizeStyle(unref(runtimeStyle))
20
38
  }, {
21
39
  default: withCtx(() => [
22
- _hoisted_1
40
+ createElementVNode("div", {
41
+ ref_key: "componentRef",
42
+ ref: componentRef,
43
+ style: { "width": "100%", "height": "100%" }
44
+ }, " ", 512)
23
45
  ]),
24
46
  _: 1
25
47
  }, 8, ["class", "style"]);
@@ -1,7 +1,7 @@
1
- import { defineComponent, computed, ref, watch, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementBlock, toDisplayString, createCommentVNode, createVNode, Fragment, renderList } from "vue";
1
+ import { defineComponent, computed, ref, watch, onMounted, nextTick, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementBlock, toDisplayString, createCommentVNode, createVNode, Fragment, renderList } from "vue";
2
2
  import { getVariableValue, setVariableValue, getOptionDatasFromPage, autoSetAfterSelect, queryOptionDatasources } from "../../../../utils/page-helper-util.js";
3
3
  import { getFormModelFields } from "../../../../utils/page-init-util.js";
4
- import { handleFormEvent } from "../../../../utils/events/event-util.js";
4
+ import { handleFormEvent, handleAfterInitEvent } from "../../../../utils/events/event-util.js";
5
5
  import { $t } from "../../../../utils/i18n-util.js";
6
6
  const _sfc_main = /* @__PURE__ */ defineComponent({
7
7
  __name: "radio-runtime",
@@ -117,6 +117,27 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
117
117
  function updateOptions(newOptions) {
118
118
  listOptions.value = newOptions ? newOptions : [];
119
119
  }
120
+ const formItemRef = ref(null);
121
+ const componentRef = ref(null);
122
+ const titleRef = ref(null);
123
+ onMounted(() => {
124
+ nextTick(() => {
125
+ const value = dynamicModelMethod.value;
126
+ handleAfterInitEvent(
127
+ value,
128
+ props.pageContext,
129
+ props.configure,
130
+ {
131
+ formItemRef: formItemRef.value,
132
+ componentRef: componentRef.value,
133
+ titleRef: titleRef.value,
134
+ value,
135
+ entity: props.pageContext.entity.data,
136
+ pageData: props.pageContext.entity.page
137
+ }
138
+ );
139
+ });
140
+ });
120
141
  __expose({
121
142
  updateOptions
122
143
  });
@@ -125,6 +146,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
125
146
  const _component_el_radio_group = resolveComponent("el-radio-group");
126
147
  const _component_el_form_item = resolveComponent("el-form-item");
127
148
  return openBlock(), createBlock(_component_el_form_item, {
149
+ ref_key: "formItemRef",
150
+ ref: formItemRef,
128
151
  required: designProperty.value.required,
129
152
  class: normalizeClass(unref(runtimeClass)),
130
153
  "label-width": designProperty.value.labelWidth,
@@ -133,11 +156,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
133
156
  label: withCtx(() => [
134
157
  designProperty.value.tittleShow ? (openBlock(), createElementBlock("div", {
135
158
  key: 0,
159
+ ref_key: "titleRef",
160
+ ref: titleRef,
136
161
  style: normalizeStyle({ ...unref(headerStyle), ...unref(titleExceedStyle) })
137
162
  }, toDisplayString(unref($t)(designProperty.value.title)), 5)) : createCommentVNode("", true)
138
163
  ]),
139
164
  default: withCtx(() => [
140
165
  createVNode(_component_el_radio_group, {
166
+ ref_key: "componentRef",
167
+ ref: componentRef,
141
168
  disabled: designProperty.value.state === "disabled",
142
169
  size: designProperty.value.size,
143
170
  onChange: designProperty.value.changeMethod,
@@ -1,9 +1,9 @@
1
- import { defineComponent, ref, watch, onMounted, onBeforeUnmount, resolveComponent, openBlock, createElementBlock, Fragment, createBlock, normalizeClass, unref, normalizeStyle, withCtx, toDisplayString, createCommentVNode, createElementVNode } from "vue";
1
+ import { defineComponent, ref, watch, onMounted, nextTick, onBeforeUnmount, resolveComponent, openBlock, createElementBlock, Fragment, createBlock, normalizeClass, unref, normalizeStyle, withCtx, toDisplayString, createCommentVNode, createElementVNode } from "vue";
2
2
  import { getFormModelFields } from "../../../../utils/page-init-util.js";
3
- import { formatVariableValue, setVariableValue } from "../../../../utils/page-helper-util.js";
3
+ import { formatVariableValue, setVariableValue, getVariableValue } from "../../../../utils/page-helper-util.js";
4
4
  import Quill from "quill";
5
5
  import "quill/dist/quill.snow.css";
6
- import { handleFormEvent } from "../../../../utils/events/event-util.js";
6
+ import { handleAfterInitEvent, handleFormEvent } from "../../../../utils/events/event-util.js";
7
7
  import http from "agilebuilder-ui/src/utils/request";
8
8
  import { $t } from "../../../../utils/i18n-util.js";
9
9
  import { getToken } from "agilebuilder-ui/src/utils/auth";
@@ -107,6 +107,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
107
107
  }
108
108
  const previewList = ref([]);
109
109
  const showViewer = ref(false);
110
+ const formItemRef = ref(null);
111
+ const componentRef = ref(null);
112
+ const titleRef = ref(null);
110
113
  onMounted(() => {
111
114
  var _a;
112
115
  quill = new Quill(quillEditorRef.value, option.value);
@@ -154,6 +157,22 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
154
157
  }
155
158
  });
156
159
  updateEditorHeight();
160
+ nextTick(() => {
161
+ const value = getVariableValue(entity, dynamicFields);
162
+ handleAfterInitEvent(
163
+ value,
164
+ props.pageContext,
165
+ props.configure,
166
+ {
167
+ formItemRef: formItemRef.value,
168
+ componentRef: componentRef.value,
169
+ titleRef: titleRef.value,
170
+ value,
171
+ entity: props.pageContext.entity.data,
172
+ pageData: props.pageContext.entity.page
173
+ }
174
+ );
175
+ });
157
176
  });
158
177
  onBeforeUnmount(() => {
159
178
  if (quillEditorRef.value) {
@@ -1,7 +1,7 @@
1
- import { defineComponent, ref, computed, watch, onMounted, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementBlock, Fragment, createTextVNode, toDisplayString, createCommentVNode, createVNode, renderList, createElementVNode } from "vue";
1
+ import { defineComponent, ref, computed, watch, onMounted, nextTick, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementBlock, Fragment, createTextVNode, toDisplayString, createCommentVNode, createVNode, renderList, createElementVNode } from "vue";
2
2
  import { getVariableValue, setVariableValue, getOptionDatasFromPage, queryOptionDatasources, autoSetAfterSelect } from "../../../../utils/page-helper-util.js";
3
3
  import { getFormModelFields } from "../../../../utils/page-init-util.js";
4
- import { handleFormEvent } from "../../../../utils/events/event-util.js";
4
+ import { handleFormEvent, handleAfterInitEvent } from "../../../../utils/events/event-util.js";
5
5
  import _sfc_main$1 from "../common/title-suffix-element.vue.js";
6
6
  import { $t } from "../../../../utils/i18n-util.js";
7
7
  const _hoisted_1 = { style: { "float": "left" } };
@@ -160,7 +160,26 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
160
160
  function updateOptions(newOptions) {
161
161
  listOptions.value = newOptions ? newOptions : [];
162
162
  }
163
+ const formItemRef = ref(null);
164
+ const componentRef = ref(null);
165
+ const titleRef = ref(null);
163
166
  onMounted(() => {
167
+ nextTick(() => {
168
+ const value = dynamicModelMethod.value;
169
+ handleAfterInitEvent(
170
+ value,
171
+ props.pageContext,
172
+ props.configure,
173
+ {
174
+ formItemRef: formItemRef.value,
175
+ componentRef: componentRef.value,
176
+ titleRef: titleRef.value,
177
+ value,
178
+ entity: props.pageContext.entity.data,
179
+ pageData: props.pageContext.entity.page
180
+ }
181
+ );
182
+ });
164
183
  });
165
184
  __expose({
166
185
  updateOptions
@@ -170,6 +189,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
170
189
  const _component_el_select = resolveComponent("el-select");
171
190
  const _component_el_form_item = resolveComponent("el-form-item");
172
191
  return openBlock(), createBlock(_component_el_form_item, {
192
+ ref_key: "formItemRef",
193
+ ref: formItemRef,
173
194
  required: designProperty.value.required ? true : false,
174
195
  class: normalizeClass(unref(runtimeClass)),
175
196
  "label-width": designProperty.value.labelWidth,
@@ -178,6 +199,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
178
199
  label: withCtx(() => [
179
200
  designProperty.value.tittleShow ? (openBlock(), createElementBlock("div", {
180
201
  key: 0,
202
+ ref_key: "titleRef",
203
+ ref: titleRef,
181
204
  style: normalizeStyle({ ...unref(headerStyle), ...unref(titleExceedStyle) })
182
205
  }, [
183
206
  designProperty.value.prefixType ? (openBlock(), createBlock(_sfc_main$1, {
@@ -191,6 +214,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
191
214
  ]),
192
215
  default: withCtx(() => [
193
216
  createVNode(_component_el_select, {
217
+ ref_key: "componentRef",
218
+ ref: componentRef,
194
219
  style: { "width": "100%" },
195
220
  disabled: designProperty.value.state === "disabled",
196
221
  size: designProperty.value.size,
@@ -1,6 +1,7 @@
1
- import { defineComponent, ref, openBlock, createElementBlock, normalizeStyle, unref, normalizeClass, createElementVNode, createBlock, createCommentVNode, createTextVNode, toDisplayString } from "vue";
1
+ import { defineComponent, ref, onMounted, nextTick, openBlock, createElementBlock, normalizeStyle, unref, normalizeClass, createElementVNode, createBlock, createCommentVNode, createTextVNode, toDisplayString } from "vue";
2
2
  import { SuperIcon } from "agilebuilder-ui";
3
3
  import { $t } from "../../../../utils/i18n-util.js";
4
+ import { handleAfterInitEvent } from "../../../../utils/events/event-util.js";
4
5
  const _sfc_main = /* @__PURE__ */ defineComponent({
5
6
  __name: "separatelabel-runtime",
6
7
  props: {
@@ -14,6 +15,22 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
14
15
  const runtimeStyle = runtimeInfo.style;
15
16
  const runtimeClass = runtimeInfo.class;
16
17
  const headerStyle = runtimeInfo.headerStyle;
18
+ onMounted(() => {
19
+ nextTick(() => {
20
+ const value = $t(props.configure.props.base.title);
21
+ handleAfterInitEvent(
22
+ value,
23
+ props.pageContext,
24
+ props.configure,
25
+ {
26
+ componentRef: thisRef.value,
27
+ value,
28
+ entity: props.pageContext.entity.data,
29
+ pageData: props.pageContext.entity.page
30
+ }
31
+ );
32
+ });
33
+ });
17
34
  __expose({});
18
35
  return (_ctx, _cache) => {
19
36
  return openBlock(), createElementBlock("div", {
@@ -1,7 +1,7 @@
1
- import { defineComponent, ref, computed, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementBlock, toDisplayString, createCommentVNode, createVNode } from "vue";
1
+ import { defineComponent, ref, computed, onMounted, nextTick, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementBlock, toDisplayString, createCommentVNode, createVNode } from "vue";
2
2
  import { getFormModelFields } from "../../../../utils/page-init-util.js";
3
3
  import { getVariableValue, setVariableValue } from "../../../../utils/page-helper-util.js";
4
- import { handleFormEvent } from "../../../../utils/events/event-util.js";
4
+ import { handleAfterInitEvent, handleFormEvent } from "../../../../utils/events/event-util.js";
5
5
  import { $t } from "../../../../utils/i18n-util.js";
6
6
  const _sfc_main = /* @__PURE__ */ defineComponent({
7
7
  __name: "switch-runtime",
@@ -28,7 +28,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
28
28
  const switchStyle = runtimeInfo.switchStyle;
29
29
  const dynamicModelMethod = computed({
30
30
  get() {
31
- debugger;
32
31
  let val = getVariableValue(entity, dynamicFields);
33
32
  if (val !== void 0 && val !== null) {
34
33
  val = val + "";
@@ -36,14 +35,36 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
36
35
  return val;
37
36
  },
38
37
  set(value) {
39
- debugger;
40
38
  setVariableValue(entity, dynamicFields, value);
41
39
  }
42
40
  });
41
+ const formItemRef = ref(null);
42
+ const componentRef = ref(null);
43
+ const titleRef = ref(null);
44
+ onMounted(() => {
45
+ nextTick(() => {
46
+ const value = dynamicModelMethod.value;
47
+ handleAfterInitEvent(
48
+ value,
49
+ props.pageContext,
50
+ props.configure,
51
+ {
52
+ formItemRef: formItemRef.value,
53
+ componentRef: componentRef.value,
54
+ titleRef: titleRef.value,
55
+ value,
56
+ entity: props.pageContext.entity.data,
57
+ pageData: props.pageContext.entity.page
58
+ }
59
+ );
60
+ });
61
+ });
43
62
  return (_ctx, _cache) => {
44
63
  const _component_el_switch = resolveComponent("el-switch");
45
64
  const _component_el_form_item = resolveComponent("el-form-item");
46
65
  return openBlock(), createBlock(_component_el_form_item, {
66
+ ref_key: "formItemRef",
67
+ ref: formItemRef,
47
68
  required: designProperty.value.required,
48
69
  class: normalizeClass(unref(runtimeClass)),
49
70
  "label-width": designProperty.value.labelWidth,
@@ -52,11 +73,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
52
73
  label: withCtx(() => [
53
74
  designProperty.value.tittleShow ? (openBlock(), createElementBlock("div", {
54
75
  key: 0,
76
+ ref_key: "titleRef",
77
+ ref: titleRef,
55
78
  style: normalizeStyle({ ...unref(headerStyle), ...unref(titleExceedStyle) })
56
79
  }, toDisplayString(unref($t)(designProperty.value.title)), 5)) : createCommentVNode("", true)
57
80
  ]),
58
81
  default: withCtx(() => [
59
82
  createVNode(_component_el_switch, {
83
+ ref_key: "componentRef",
84
+ ref: componentRef,
60
85
  disabled: designProperty.value.state === "disabled",
61
86
  "active-value": designProperty.value.activeValue,
62
87
  "active-text": designProperty.value.activeText,