super-page-runtime 2.1.54 → 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 (58) hide show
  1. package/dist/es/components/runtime/utils/api/page-expose-util.js +17 -14
  2. package/dist/es/components/runtime/utils/charts/chart-columnline-util.js +0 -1
  3. package/dist/es/components/runtime/utils/charts/chart-util.d.ts +24 -0
  4. package/dist/es/components/runtime/utils/charts/chart-util.js +4 -1
  5. package/dist/es/components/runtime/utils/common-util.js +2 -5
  6. package/dist/es/components/runtime/utils/events/event-util.d.ts +1 -0
  7. package/dist/es/components/runtime/utils/events/event-util.js +7 -3
  8. package/dist/es/components/runtime/utils/events/standard-event.d.ts +1 -1
  9. package/dist/es/components/runtime/utils/events/standard-event.js +102 -38
  10. package/dist/es/components/runtime/utils/events/validator-util.d.ts +1 -1
  11. package/dist/es/components/runtime/utils/events/validator-util.js +4 -3
  12. package/dist/es/components/runtime/utils/page-helper-util.js +0 -1
  13. package/dist/es/components/runtime/utils/page-init-util.js +11 -9
  14. package/dist/es/components/runtime/utils/table-utils.d.ts +1 -0
  15. package/dist/es/components/runtime/utils/table-utils.js +39 -7
  16. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +12 -3
  17. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +14 -1
  18. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +14 -2
  19. package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +16 -2
  20. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +106 -55
  21. package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.js +0 -2
  22. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +14 -8
  23. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +11 -1
  24. package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +11 -1
  25. package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +11 -1
  26. package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +11 -1
  27. package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +14 -2
  28. package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +11 -1
  29. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +30 -10
  30. package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +9 -4
  31. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +34 -64
  32. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +20 -8
  33. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +11 -2
  34. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +30 -3
  35. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +24 -2
  36. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +31 -5
  37. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +33 -2
  38. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +21 -2
  39. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +26 -4
  40. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +29 -2
  41. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +29 -14
  42. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +32 -5
  43. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +29 -2
  44. package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +1 -1
  45. package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +26 -4
  46. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +29 -2
  47. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +22 -3
  48. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +27 -8
  49. package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +18 -1
  50. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +29 -4
  51. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +25 -2
  52. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +29 -2
  53. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +3 -5
  54. package/dist/es/components/runtime/views/super-page.vue.js +89 -26
  55. package/dist/es/i18n/langs/cn.js +3 -1
  56. package/dist/es/i18n/langs/en.js +3 -1
  57. package/dist/es/style.css +1 -1
  58. package/package.json +2 -2
@@ -1,8 +1,12 @@
1
- import { defineComponent, ref, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementBlock, Fragment, createTextVNode, toDisplayString, createCommentVNode, createVNode } from "vue";
1
+ import { defineComponent, 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
- import { handleFormEvent } from "../../../../utils/events/event-util.js";
3
+ import { handleAfterInitEvent, handleFormEvent } from "../../../../utils/events/event-util.js";
4
4
  import _sfc_main$1 from "../common/title-suffix-element.vue.js";
5
5
  import { $t } from "../../../../utils/i18n-util.js";
6
+ import "agilebuilder-ui/src/utils/request";
7
+ import "dayjs";
8
+ import "agilebuilder-ui/src/utils/calculator/calculator-util";
9
+ import "../../../../utils/global-refs.js";
6
10
  const _sfc_main = /* @__PURE__ */ defineComponent({
7
11
  __name: "depttree-runtime",
8
12
  props: {
@@ -24,6 +28,27 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
24
28
  const runtimeClass = runtimeInfo.class;
25
29
  const headerStyle = runtimeInfo.headerStyle;
26
30
  const titleExceedStyle = runtimeInfo.titleExceedStyle;
31
+ const formItemRef = ref(null);
32
+ const componentRef = ref(null);
33
+ const titleRef = ref(null);
34
+ onMounted(() => {
35
+ nextTick(() => {
36
+ const value = dataModel ? dataModel[fieldName] : null;
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
+ });
27
52
  const autoSetFields = designProperty.value.autoSetFields ? designProperty.value.autoSetFields : [];
28
53
  function changeValue(value) {
29
54
  handleFormEvent(value, props.pageContext, props.configure, "change");
@@ -35,6 +60,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
35
60
  const _component_OrganizationInput = resolveComponent("OrganizationInput");
36
61
  const _component_el_form_item = resolveComponent("el-form-item");
37
62
  return openBlock(), createBlock(_component_el_form_item, {
63
+ ref_key: "formItemRef",
64
+ ref: formItemRef,
38
65
  required: designProperty.value.required,
39
66
  class: normalizeClass(unref(runtimeClass)),
40
67
  "label-width": designProperty.value.labelWidth,
@@ -43,6 +70,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
43
70
  label: withCtx(() => [
44
71
  designProperty.value.tittleShow ? (openBlock(), createElementBlock("div", {
45
72
  key: 0,
73
+ ref_key: "titleRef",
74
+ ref: titleRef,
46
75
  style: normalizeStyle({ ...unref(headerStyle), ...unref(titleExceedStyle) })
47
76
  }, [
48
77
  designProperty.value.prefixType ? (openBlock(), createBlock(_sfc_main$1, {
@@ -56,6 +85,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
56
85
  ]),
57
86
  default: withCtx(() => [
58
87
  createVNode(_component_OrganizationInput, {
88
+ ref_key: "componentRef",
89
+ ref: componentRef,
59
90
  disabled: designProperty.value.state == "disabled",
60
91
  multiple: designProperty.value.multiple,
61
92
  treeType: designProperty.value.treeType,
@@ -1,6 +1,6 @@
1
- import { defineComponent, ref, computed, resolveComponent, openBlock, createBlock, unref, withCtx, createElementVNode, normalizeStyle, toDisplayString } from "vue";
1
+ import { defineComponent, ref, computed, onMounted, nextTick, resolveComponent, openBlock, createBlock, unref, withCtx, createElementVNode, normalizeStyle, toDisplayString } from "vue";
2
2
  import { formatVariableValue } from "../../../../utils/page-helper-util.js";
3
- import { handleFormEvent } from "../../../../utils/events/event-util.js";
3
+ import { handleAfterInitEvent, handleFormEvent } from "../../../../utils/events/event-util.js";
4
4
  const _sfc_main = /* @__PURE__ */ defineComponent({
5
5
  __name: "divider-runtime",
6
6
  props: {
@@ -20,9 +20,28 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
20
20
  const resultValue = formatVariableValue(props.pageContext, contentVariable);
21
21
  return resultValue == void 0 || resultValue == null ? "" : resultValue;
22
22
  });
23
+ const componentRef = ref(null);
24
+ onMounted(() => {
25
+ nextTick(() => {
26
+ const content = dynamicValue.value;
27
+ handleAfterInitEvent(
28
+ content,
29
+ props.pageContext,
30
+ props.configure,
31
+ {
32
+ componentRef: componentRef.value,
33
+ value: content,
34
+ entity: props.pageContext.entity.data,
35
+ pageData: props.pageContext.entity.page
36
+ }
37
+ );
38
+ });
39
+ });
23
40
  return (_ctx, _cache) => {
24
41
  const _component_el_divider = resolveComponent("el-divider");
25
42
  return openBlock(), createBlock(_component_el_divider, {
43
+ ref_key: "componentRef",
44
+ ref: componentRef,
26
45
  direction: designProperty.value.direction,
27
46
  "border-style": designProperty.value.borderType,
28
47
  "content-position": designProperty.value.titlePosition,
@@ -1,6 +1,6 @@
1
- import { defineComponent, ref, onMounted, onUnmounted, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementBlock, toDisplayString, createCommentVNode, createVNode } from "vue";
1
+ import { defineComponent, ref, onMounted, nextTick, onUnmounted, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementBlock, toDisplayString, createCommentVNode, createVNode } from "vue";
2
2
  import { getVariableValue, setVariableValue } from "../../../../utils/page-helper-util.js";
3
- import { fileUploadBeforeUpload } from "../../../../utils/events/event-util.js";
3
+ import { handleAfterInitEvent, fileUploadBeforeUpload } from "../../../../utils/events/event-util.js";
4
4
  import http from "agilebuilder-ui/src/utils/request";
5
5
  import { FsUploadNew } from "agilebuilder-ui";
6
6
  import eventBus from "../../../../utils/eventBus.js";
@@ -24,9 +24,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
24
24
  const pathFields = getFieldsByVariable(propsBase.prop);
25
25
  const nameFields = getFieldsByVariable(propsBase.propName);
26
26
  const pageCode = props.pageContext.code;
27
- console.log("pathFields-----", pathFields, "pageCode=", pageCode, "propsBase.prop=", propsBase.prop);
28
27
  const componentId = ref(pathFields ? pageCode + "__" + pathFields.join("__") : null);
29
- console.log("componentId-----", componentId.value);
30
28
  const initPaths = getVariableValue(entity, pathFields);
31
29
  const fileUploadRef = ref(null);
32
30
  const fileList = ref([]);
@@ -77,11 +75,31 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
77
75
  setVariableValue(props.pageContext.entity, pathFields, uuids.join(","));
78
76
  setVariableValue(props.pageContext.entity, nameFields, names.join(","));
79
77
  };
78
+ const formItemRef = ref(null);
79
+ const titleRef = ref(null);
80
80
  onMounted(() => {
81
81
  eventBus.$on(componentId.value + "-pickFileDone", (data) => {
82
82
  console.log("superPage4444---pickFileDone--componentId.value=", componentId.value, "data=", data);
83
83
  fileUploadRef.value.pickFileDone(data);
84
84
  });
85
+ nextTick(() => {
86
+ const pathFieldsValue = getVariableValue(entity, pathFields);
87
+ const nameFieldsValue = getVariableValue(entity, nameFields);
88
+ const value = { showName: nameFieldsValue, serverPath: pathFieldsValue };
89
+ handleAfterInitEvent(
90
+ value,
91
+ props.pageContext,
92
+ props.configure,
93
+ {
94
+ formItemRef: formItemRef.value,
95
+ componentRef: fileUploadRef.value,
96
+ titleRef: titleRef.value,
97
+ value,
98
+ entity: props.pageContext.entity.data,
99
+ pageData: props.pageContext.entity.page
100
+ }
101
+ );
102
+ });
85
103
  });
86
104
  onUnmounted(() => {
87
105
  eventBus.$off(componentId.value + "-pickFileDone");
@@ -90,6 +108,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
90
108
  const _component_el_form_item = resolveComponent("el-form-item");
91
109
  return designProperty.value.tittleShow ? (openBlock(), createBlock(_component_el_form_item, {
92
110
  key: 0,
111
+ ref_key: "formItemRef",
112
+ ref: formItemRef,
93
113
  required: designProperty.value.required,
94
114
  class: normalizeClass(unref(runtimeClass)),
95
115
  "label-width": designProperty.value.labelWidth,
@@ -98,6 +118,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
98
118
  label: withCtx(() => [
99
119
  designProperty.value.tittleShow ? (openBlock(), createElementBlock("div", {
100
120
  key: 0,
121
+ ref_key: "titleRef",
122
+ ref: titleRef,
101
123
  style: normalizeStyle({ ...unref(headerStyle), ...unref(titleExceedStyle) })
102
124
  }, toDisplayString(unref($t)(designProperty.value.title)), 5)) : createCommentVNode("", true)
103
125
  ]),
@@ -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";
@@ -21,18 +21,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
21
21
  let dynamicFields = getFormModelFields(props.pageContext, props.configure);
22
22
  const isMobile = ref(isMobileBrowser());
23
23
  const pageCode = props.pageContext.code;
24
- console.log(
25
- "pathFields-----",
26
- dynamicFields,
27
- "pageCode=",
28
- pageCode,
29
- "props.configure=",
30
- props.configure
31
- );
32
24
  const componentId = ref(
33
25
  dynamicFields && dynamicFields.length > 0 ? pageCode + "__" + dynamicFields.join("__") : null
34
26
  );
35
- console.log("componentId-----", componentId.value);
36
27
  const dynamicModelMethod = computed({
37
28
  get() {
38
29
  return getVariableValue(entity, dynamicFields);
@@ -42,6 +33,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
42
33
  setVariableValue(entity, dynamicFields, value);
43
34
  }
44
35
  });
36
+ const formItemRef = ref(null);
37
+ const componentRef = ref(null);
38
+ const titleRef = ref(null);
45
39
  onMounted(() => {
46
40
  eventBus.$on(componentId.value + "-scanDone", (data) => {
47
41
  console.log(
@@ -52,6 +46,22 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
52
46
  );
53
47
  setValue(data.result);
54
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
+ });
55
65
  });
56
66
  onUnmounted(() => {
57
67
  eventBus.$off(componentId.value + "-scanDone");
@@ -66,11 +76,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
66
76
  } else {
67
77
  userAgent = "browser";
68
78
  }
69
- console.log("window.location.protocol---", window.location.protocol);
79
+ const isApk = isMobile.value && userAgent && userAgent === "app" ? true : false;
70
80
  const isShowScanIcon = ref(
71
- isMobile.value && scanEnable.value && window.location.protocol === "https:" ? true : false
81
+ isApk && scanEnable.value || isMobile.value && scanEnable.value && window.location.protocol === "https:" ? true : false
72
82
  );
73
- const isApk = isMobile.value && userAgent && userAgent === "app" ? true : false;
74
83
  let scanRuleSets = {};
75
84
  if (((_b = designProperty.value.scan) == null ? void 0 : _b.enable) && ((_c = designProperty.value.scan.ruleList) == null ? void 0 : _c.length) > 0) {
76
85
  setScanRuleSets();
@@ -129,6 +138,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
129
138
  const _component_scan_code_input_browser = resolveComponent("scan-code-input-browser");
130
139
  const _component_el_form_item = resolveComponent("el-form-item");
131
140
  return openBlock(), createBlock(_component_el_form_item, {
141
+ ref_key: "formItemRef",
142
+ ref: formItemRef,
132
143
  required: designProperty.value.required ? true : false,
133
144
  class: normalizeClass(unref(runtimeClass)),
134
145
  "label-width": designProperty.value.labelWidth,
@@ -137,6 +148,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
137
148
  label: withCtx(() => [
138
149
  designProperty.value.tittleShow ? (openBlock(), createElementBlock("div", {
139
150
  key: 0,
151
+ ref_key: "titleRef",
152
+ ref: titleRef,
140
153
  style: normalizeStyle({ ...unref(headerStyle), ...unref(titleExceedStyle) })
141
154
  }, [
142
155
  designProperty.value.prefixType ? (openBlock(), createBlock(_sfc_main$1, {
@@ -150,6 +163,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
150
163
  ]),
151
164
  default: withCtx(() => [
152
165
  createVNode(_component_el_input, {
166
+ ref_key: "componentRef",
167
+ ref: componentRef,
153
168
  disabled: designProperty.value.state === "disabled",
154
169
  readonly: designProperty.value.state === "readonly",
155
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,