super-page-runtime 2.2.29-tmp1 → 2.2.29-tmp2
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.
- package/dist/es/_virtual/_plugin-vue_export-helper.js +7 -5
- package/dist/es/assets/chart-themes/theme1.js +6 -2
- package/dist/es/assets/chart-themes/theme2.js +6 -2
- package/dist/es/assets/chart-themes/theme3.js +6 -2
- package/dist/es/components/runtime/utils/api/api-util.js +7 -4
- package/dist/es/components/runtime/utils/api/page-expose-util.js +443 -135
- package/dist/es/components/runtime/utils/assemblys-config.js +369 -13
- package/dist/es/components/runtime/utils/barcode-util.js +33 -9
- package/dist/es/components/runtime/utils/charts/chart-columnline-util.js +306 -122
- package/dist/es/components/runtime/utils/charts/chart-gauge-util.js +68 -29
- package/dist/es/components/runtime/utils/charts/chart-pie-util.js +152 -69
- package/dist/es/components/runtime/utils/charts/chart-radar-util.js +124 -46
- package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +99 -38
- package/dist/es/components/runtime/utils/charts/chart-util.js +522 -226
- package/dist/es/components/runtime/utils/common-util.js +156 -76
- package/dist/es/components/runtime/utils/eventBus.js +8 -3
- package/dist/es/components/runtime/utils/events/event-util.js +775 -362
- package/dist/es/components/runtime/utils/events/print-label.js +140 -73
- package/dist/es/components/runtime/utils/events/standard-event.js +2320 -820
- package/dist/es/components/runtime/utils/events/validator-util.js +560 -224
- package/dist/es/components/runtime/utils/form/date-shortcuts.js +88 -28
- package/dist/es/components/runtime/utils/form/scan-util.js +162 -62
- package/dist/es/components/runtime/utils/global-refs.js +84 -53
- package/dist/es/components/runtime/utils/i18n-util.js +20 -11
- package/dist/es/components/runtime/utils/interfaces/page-design-types.js +7 -2
- package/dist/es/components/runtime/utils/page-helper-util.js +660 -280
- package/dist/es/components/runtime/utils/page-init-util.js +405 -144
- package/dist/es/components/runtime/utils/page-permission-util.js +531 -22
- package/dist/es/components/runtime/utils/page-store.js +68 -23
- package/dist/es/components/runtime/utils/store-util.js +13 -9
- package/dist/es/components/runtime/utils/store.js +2 -2
- package/dist/es/components/runtime/utils/table-utils.js +81 -40
- package/dist/es/components/runtime/utils/tree-utils.js +37 -17
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +83 -21
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +46 -14
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +132 -36
- package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +18 -4
- package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +107 -17
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +198 -54
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.js +42 -12
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +60 -11
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +203 -54
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue.js +4 -4
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +162 -46
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +109 -33
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +166 -44
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +117 -33
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +118 -33
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +599 -253
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue.js +42 -4
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue.js +62 -8
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.js +160 -29
- package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue.js +62 -13
- package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +594 -213
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +139 -33
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +125 -21
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +102 -16
- package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +81 -18
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +82 -17
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +86 -14
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +79 -21
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +61 -16
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +37 -10
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +127 -38
- package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +76 -28
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +178 -63
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +810 -305
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +635 -265
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +115 -40
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +215 -56
- package/dist/es/components/runtime/views/assemblys/error-render.vue.js +21 -3
- package/dist/es/components/runtime/views/assemblys/error-render.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +154 -43
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +98 -34
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +200 -52
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +239 -70
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +109 -31
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +59 -21
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +188 -56
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +103 -22
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +246 -59
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +174 -34
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +107 -29
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +4 -4
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +50 -13
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +194 -65
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +249 -89
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +263 -80
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +57 -13
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +155 -30
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +129 -40
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +107 -22
- package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +188 -89
- package/dist/es/components/runtime/views/assemblys/home-chart-render.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +272 -133
- package/dist/es/components/runtime/views/assemblys/object-render.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue2.js +46 -18
- package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue2.js +49 -21
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +58 -20
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue2.js +53 -16
- package/dist/es/components/runtime/views/home-chart.vue.js +160 -41
- package/dist/es/components/runtime/views/home-chart.vue2.js +2 -2
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +139 -21
- package/dist/es/components/runtime/views/super-page-dialog.vue2.js +2 -2
- package/dist/es/components/runtime/views/super-page.vue.js +756 -230
- package/dist/es/components/runtime/views/super-page.vue2.js +2 -2
- package/dist/es/i18n/langs/cn.js +55 -2
- package/dist/es/i18n/langs/en.js +55 -2
- package/package.json +2 -2
package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js
CHANGED
|
@@ -1,21 +1,86 @@
|
|
|
1
|
-
import { defineComponent
|
|
2
|
-
import
|
|
1
|
+
import { defineComponent, ref, onMounted, nextTick, resolveComponent, createBlock, openBlock, normalizeClass, unref, normalizeStyle, isRef, withCtx, createElementBlock, Fragment, renderList, createElementVNode, createCommentVNode, createTextVNode, toDisplayString } from "vue";
|
|
2
|
+
import _sfc_main$1 from "../../object-render.vue.js";
|
|
3
3
|
import "../../../../utils/global-refs.js";
|
|
4
|
-
import { $t
|
|
5
|
-
import { handleAfterInitEvent
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
4
|
+
import { $t } from "../../../../utils/i18n-util.js";
|
|
5
|
+
import { handleAfterInitEvent } from "../../../../utils/events/event-util.js";
|
|
6
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
|
+
__name: "collapse-runtime",
|
|
8
|
+
props: {
|
|
9
|
+
pageContext: {},
|
|
10
|
+
configure: {}
|
|
11
|
+
},
|
|
12
|
+
setup(__props) {
|
|
13
|
+
const props = __props;
|
|
14
|
+
if (!props.configure.props) {
|
|
15
|
+
props.configure.props = {};
|
|
16
|
+
}
|
|
17
|
+
const activeName = props.configure.props.defaultOpens ? props.configure.props.defaultOpens : [1];
|
|
18
|
+
const accordion = props.configure.props.accordion ? true : false;
|
|
19
|
+
const thisRef = ref(null);
|
|
20
|
+
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
|
|
21
|
+
const runtimeStyle = runtimeInfo.style;
|
|
22
|
+
const runtimeClass = runtimeInfo.class;
|
|
23
|
+
const headerStyle = runtimeInfo.headerStyle;
|
|
24
|
+
onMounted(() => {
|
|
25
|
+
nextTick(() => {
|
|
26
|
+
handleAfterInitEvent(null, props.pageContext, props.configure, {
|
|
27
|
+
componentRef: thisRef.value,
|
|
28
|
+
entity: props.pageContext.entity.data,
|
|
29
|
+
pageData: props.pageContext.entity.page
|
|
30
|
+
});
|
|
31
|
+
});
|
|
13
32
|
});
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
33
|
+
return (_ctx, _cache) => {
|
|
34
|
+
const _component_SuperIcon = resolveComponent("SuperIcon");
|
|
35
|
+
const _component_el_collapse_item = resolveComponent("el-collapse-item");
|
|
36
|
+
const _component_el_collapse = resolveComponent("el-collapse");
|
|
37
|
+
return openBlock(), createBlock(_component_el_collapse, {
|
|
38
|
+
ref_key: "thisRef",
|
|
39
|
+
ref: thisRef,
|
|
40
|
+
modelValue: unref(activeName),
|
|
41
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(activeName) ? activeName.value = $event : null),
|
|
42
|
+
style: normalizeStyle(unref(runtimeStyle)),
|
|
43
|
+
accordion: unref(accordion),
|
|
44
|
+
class: normalizeClass(unref(runtimeClass))
|
|
45
|
+
}, {
|
|
46
|
+
default: withCtx(() => [
|
|
47
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.configure.items, (item, index) => {
|
|
48
|
+
return openBlock(), createBlock(_component_el_collapse_item, {
|
|
49
|
+
name: item.index
|
|
50
|
+
}, {
|
|
51
|
+
title: withCtx(() => [
|
|
52
|
+
createElementVNode("div", {
|
|
53
|
+
style: normalizeStyle([unref(headerStyle), { "width": "100%" }])
|
|
54
|
+
}, [
|
|
55
|
+
item.iconType && item.iconValue ? (openBlock(), createBlock(_component_SuperIcon, {
|
|
56
|
+
key: 0,
|
|
57
|
+
iconType: item.iconType,
|
|
58
|
+
iconValue: item.iconValue,
|
|
59
|
+
style: { "margin-right": "2px" }
|
|
60
|
+
}, null, 8, ["iconType", "iconValue"])) : createCommentVNode("", true),
|
|
61
|
+
createTextVNode(" " + toDisplayString(unref($t)(item.label)), 1)
|
|
62
|
+
], 4)
|
|
63
|
+
]),
|
|
64
|
+
default: withCtx(() => [
|
|
65
|
+
createElementVNode("div", null, [
|
|
66
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(item.items, (element, itemIndex) => {
|
|
67
|
+
return openBlock(), createBlock(_sfc_main$1, {
|
|
68
|
+
key: element.uuid,
|
|
69
|
+
configure: element,
|
|
70
|
+
pageContext: _ctx.pageContext
|
|
71
|
+
}, null, 8, ["configure", "pageContext"]);
|
|
72
|
+
}), 128))
|
|
73
|
+
])
|
|
74
|
+
]),
|
|
75
|
+
_: 2
|
|
76
|
+
}, 1032, ["name"]);
|
|
77
|
+
}), 256))
|
|
78
|
+
]),
|
|
79
|
+
_: 1
|
|
80
|
+
}, 8, ["modelValue", "style", "accordion", "class"]);
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
});
|
|
19
84
|
export {
|
|
20
|
-
|
|
85
|
+
_sfc_main as default
|
|
21
86
|
};
|
package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js
CHANGED
|
@@ -1,18 +1,90 @@
|
|
|
1
|
-
import { defineComponent
|
|
2
|
-
import
|
|
1
|
+
import { defineComponent, ref, onMounted, nextTick, resolveComponent, createBlock, openBlock, withCtx, createCommentVNode, createVNode, normalizeStyle, unref, createElementBlock, Fragment, renderList, normalizeClass } from "vue";
|
|
2
|
+
import _sfc_main$1 from "../../object-render.vue.js";
|
|
3
3
|
import "../../../../utils/global-refs.js";
|
|
4
|
-
import { handleAfterInitEvent
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
4
|
+
import { handleAfterInitEvent } from "../../../../utils/events/event-util.js";
|
|
5
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
|
+
__name: "container-runtime",
|
|
7
|
+
props: {
|
|
8
|
+
pageContext: {},
|
|
9
|
+
configure: {}
|
|
10
|
+
},
|
|
11
|
+
setup(__props) {
|
|
12
|
+
const props = __props;
|
|
13
|
+
const thisRef = ref(null);
|
|
14
|
+
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
|
|
15
|
+
const leftStyle = runtimeInfo.leftStyle;
|
|
16
|
+
const rightStyle = runtimeInfo.rightStyle;
|
|
17
|
+
const mainStyle = runtimeInfo.style;
|
|
18
|
+
const mainClass = runtimeInfo.class;
|
|
19
|
+
onMounted(() => {
|
|
20
|
+
nextTick(() => {
|
|
21
|
+
handleAfterInitEvent(null, props.pageContext, props.configure, {
|
|
22
|
+
componentRef: thisRef.value,
|
|
23
|
+
entity: props.pageContext.entity.data,
|
|
24
|
+
pageData: props.pageContext.entity.page
|
|
25
|
+
});
|
|
26
|
+
});
|
|
10
27
|
});
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
28
|
+
return (_ctx, _cache) => {
|
|
29
|
+
const _component_el_aside = resolveComponent("el-aside");
|
|
30
|
+
const _component_el_main = resolveComponent("el-main");
|
|
31
|
+
const _component_el_container = resolveComponent("el-container");
|
|
32
|
+
return openBlock(), createBlock(_component_el_container, {
|
|
33
|
+
ref_key: "thisRef",
|
|
34
|
+
ref: thisRef
|
|
35
|
+
}, {
|
|
36
|
+
default: withCtx(() => [
|
|
37
|
+
_ctx.configure.props.useLeft ? (openBlock(), createBlock(_component_el_aside, {
|
|
38
|
+
key: 0,
|
|
39
|
+
style: normalizeStyle(unref(leftStyle))
|
|
40
|
+
}, {
|
|
41
|
+
default: withCtx(() => [
|
|
42
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.configure.leftAslides, (element, itemIndex) => {
|
|
43
|
+
return openBlock(), createBlock(_sfc_main$1, {
|
|
44
|
+
key: element.uuid,
|
|
45
|
+
pageContext: _ctx.pageContext,
|
|
46
|
+
configure: element
|
|
47
|
+
}, null, 8, ["pageContext", "configure"]);
|
|
48
|
+
}), 128))
|
|
49
|
+
]),
|
|
50
|
+
_: 1
|
|
51
|
+
}, 8, ["style"])) : createCommentVNode("", true),
|
|
52
|
+
createVNode(_component_el_main, {
|
|
53
|
+
style: normalizeStyle(unref(mainStyle)),
|
|
54
|
+
class: normalizeClass(unref(mainClass))
|
|
55
|
+
}, {
|
|
56
|
+
default: withCtx(() => [
|
|
57
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.configure.items, (element, itemIndex) => {
|
|
58
|
+
return openBlock(), createBlock(_sfc_main$1, {
|
|
59
|
+
key: element.uuid,
|
|
60
|
+
pageContext: _ctx.pageContext,
|
|
61
|
+
configure: element
|
|
62
|
+
}, null, 8, ["pageContext", "configure"]);
|
|
63
|
+
}), 128))
|
|
64
|
+
]),
|
|
65
|
+
_: 1
|
|
66
|
+
}, 8, ["style", "class"]),
|
|
67
|
+
_ctx.configure.props.useRight ? (openBlock(), createBlock(_component_el_aside, {
|
|
68
|
+
key: 1,
|
|
69
|
+
style: normalizeStyle(unref(rightStyle))
|
|
70
|
+
}, {
|
|
71
|
+
default: withCtx(() => [
|
|
72
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.configure.rightAslides, (element, itemIndex) => {
|
|
73
|
+
return openBlock(), createBlock(_sfc_main$1, {
|
|
74
|
+
key: element.uuid,
|
|
75
|
+
pageContext: _ctx.pageContext,
|
|
76
|
+
configure: element
|
|
77
|
+
}, null, 8, ["pageContext", "configure"]);
|
|
78
|
+
}), 128))
|
|
79
|
+
]),
|
|
80
|
+
_: 1
|
|
81
|
+
}, 8, ["style"])) : createCommentVNode("", true)
|
|
82
|
+
]),
|
|
83
|
+
_: 1
|
|
84
|
+
}, 512);
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
});
|
|
16
88
|
export {
|
|
17
|
-
|
|
89
|
+
_sfc_main as default
|
|
18
90
|
};
|
|
@@ -1,25 +1,83 @@
|
|
|
1
|
-
import { defineComponent
|
|
2
|
-
import
|
|
3
|
-
import { PageDimensions
|
|
4
|
-
import { handleAfterInitEvent
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import { defineComponent, ref, onMounted, nextTick, resolveComponent, createBlock, openBlock, normalizeClass, normalizeStyle, unref, withCtx, createElementBlock, Fragment, renderList, withDirectives, createVNode, vShow } from "vue";
|
|
2
|
+
import _sfc_main$1 from "../../object-render.vue.js";
|
|
3
|
+
import { PageDimensions } from "../../../../utils/interfaces/page-design-types.js";
|
|
4
|
+
import { handleAfterInitEvent } from "../../../../utils/events/event-util.js";
|
|
5
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
|
+
__name: "flex-runtime",
|
|
7
|
+
props: {
|
|
8
|
+
pageContext: {},
|
|
9
|
+
configure: {}
|
|
10
|
+
},
|
|
11
|
+
setup(__props) {
|
|
12
|
+
const props = __props;
|
|
13
|
+
const thisRef = ref(null);
|
|
14
|
+
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
|
|
15
|
+
const runtimeStyle = runtimeInfo.style;
|
|
16
|
+
const runtimeClass = runtimeInfo.class;
|
|
17
|
+
const designProperty = ref(runtimeInfo.props ? runtimeInfo.props : {});
|
|
18
|
+
if (props.configure.items) {
|
|
19
|
+
const pageDimensions = props.pageContext && props.pageContext.dimensions ? props.pageContext.dimensions : PageDimensions.PC;
|
|
20
|
+
for (let item of props.configure.items) {
|
|
21
|
+
const itemCommon = item.runtime && item.runtime.common ? item.runtime.common : {};
|
|
22
|
+
const sizeStyle = itemCommon.style ? itemCommon.style[pageDimensions + "_style"] : void 0;
|
|
23
|
+
const itemStyle = {};
|
|
24
|
+
if (sizeStyle) {
|
|
25
|
+
item.flexSpan = sizeStyle.flexSpan ? sizeStyle.flexSpan : -2;
|
|
26
|
+
Object.assign(itemStyle, sizeStyle);
|
|
27
|
+
delete itemStyle.height;
|
|
28
|
+
delete sizeStyle.width;
|
|
29
|
+
}
|
|
30
|
+
item.itemStyle = itemStyle;
|
|
31
|
+
if (itemCommon.style) {
|
|
32
|
+
itemCommon.style[pageDimensions + "_class"] = "";
|
|
33
|
+
}
|
|
34
|
+
}
|
|
12
35
|
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
36
|
+
onMounted(() => {
|
|
37
|
+
nextTick(() => {
|
|
38
|
+
handleAfterInitEvent(null, props.pageContext, props.configure, {
|
|
39
|
+
componentRef: thisRef.value,
|
|
40
|
+
entity: props.pageContext.entity.data,
|
|
41
|
+
pageData: props.pageContext.entity.page
|
|
42
|
+
});
|
|
43
|
+
});
|
|
17
44
|
});
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
45
|
+
return (_ctx, _cache) => {
|
|
46
|
+
const _component_el_col = resolveComponent("el-col");
|
|
47
|
+
const _component_el_row = resolveComponent("el-row");
|
|
48
|
+
return openBlock(), createBlock(_component_el_row, {
|
|
49
|
+
ref_key: "thisRef",
|
|
50
|
+
ref: thisRef,
|
|
51
|
+
justify: designProperty.value.flexJustify,
|
|
52
|
+
gutter: designProperty.value.flexGutter,
|
|
53
|
+
align: designProperty.value.alignItems,
|
|
54
|
+
style: normalizeStyle([{ "display": "flex" }, unref(runtimeStyle)]),
|
|
55
|
+
class: normalizeClass(unref(runtimeClass))
|
|
56
|
+
}, {
|
|
57
|
+
default: withCtx(() => [
|
|
58
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.configure.items, (element, itemIndex) => {
|
|
59
|
+
return withDirectives((openBlock(), createBlock(_component_el_col, {
|
|
60
|
+
key: element.uuid,
|
|
61
|
+
style: normalizeStyle(element.itemStyle),
|
|
62
|
+
span: element.flexSpan
|
|
63
|
+
}, {
|
|
64
|
+
default: withCtx(() => [
|
|
65
|
+
createVNode(_sfc_main$1, {
|
|
66
|
+
pageContext: _ctx.pageContext,
|
|
67
|
+
configure: element
|
|
68
|
+
}, null, 8, ["pageContext", "configure"])
|
|
69
|
+
]),
|
|
70
|
+
_: 2
|
|
71
|
+
}, 1032, ["style", "span"])), [
|
|
72
|
+
[vShow, element._dynamicShowFlag]
|
|
73
|
+
]);
|
|
74
|
+
}), 128))
|
|
75
|
+
]),
|
|
76
|
+
_: 1
|
|
77
|
+
}, 8, ["justify", "gutter", "align", "style", "class"]);
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
});
|
|
23
81
|
export {
|
|
24
|
-
|
|
82
|
+
_sfc_main as default
|
|
25
83
|
};
|
|
@@ -1,25 +1,70 @@
|
|
|
1
|
-
import { defineComponent
|
|
2
|
-
import
|
|
1
|
+
import { defineComponent, ref, onMounted, nextTick, resolveComponent, createElementBlock, openBlock, createVNode, normalizeClass, normalizeStyle, unref, withCtx, createCommentVNode, toDisplayString, Fragment, renderList, createBlock } from "vue";
|
|
2
|
+
import _sfc_main$1 from "../../object-render.vue.js";
|
|
3
3
|
import "../../../../utils/global-refs.js";
|
|
4
4
|
import "agilebuilder-ui/src/utils/common-util";
|
|
5
5
|
import "agilebuilder-ui/src/utils/util";
|
|
6
6
|
import "agilebuilder-ui/src/utils/request";
|
|
7
7
|
import "dayjs";
|
|
8
8
|
import "agilebuilder-ui/src/utils/calculator/calculator-util";
|
|
9
|
-
import { handleFormEvent
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
9
|
+
import { handleFormEvent } from "../../../../utils/events/event-util.js";
|
|
10
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
11
|
+
__name: "form-runtime",
|
|
12
|
+
props: {
|
|
13
|
+
pageContext: {},
|
|
14
|
+
configure: {}
|
|
15
|
+
},
|
|
16
|
+
setup(__props) {
|
|
17
|
+
const props = __props;
|
|
18
|
+
if (!props.configure.items) {
|
|
19
|
+
props.configure.items = [];
|
|
20
|
+
}
|
|
21
|
+
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
|
|
22
|
+
const runtimeProps = runtimeInfo.props ? runtimeInfo.props : {};
|
|
23
|
+
const runtimeStyle = ref(runtimeInfo.style ? runtimeInfo.style : {});
|
|
24
|
+
const runtimeClass = runtimeInfo.class;
|
|
25
|
+
const titleStyle = ref(runtimeInfo.titleStyle ? runtimeInfo.titleStyle : {});
|
|
26
|
+
const thisRef = ref(null);
|
|
27
|
+
onMounted(() => {
|
|
28
|
+
nextTick(() => {
|
|
29
|
+
handleFormEvent(null, props.pageContext, props.configure, "afterFormLoad", {
|
|
30
|
+
componentRef: thisRef.value,
|
|
31
|
+
entity: props.pageContext.entity.data,
|
|
32
|
+
pageData: props.pageContext.entity.page
|
|
33
|
+
});
|
|
34
|
+
});
|
|
17
35
|
});
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
36
|
+
return (_ctx, _cache) => {
|
|
37
|
+
const _component_el_form = resolveComponent("el-form");
|
|
38
|
+
return openBlock(), createElementBlock("div", null, [
|
|
39
|
+
createVNode(_component_el_form, {
|
|
40
|
+
ref_key: "thisRef",
|
|
41
|
+
ref: thisRef,
|
|
42
|
+
"label-width": unref(runtimeProps).labelWidth,
|
|
43
|
+
"label-position": unref(runtimeProps).labelPosition,
|
|
44
|
+
size: unref(runtimeProps).componentSize,
|
|
45
|
+
style: normalizeStyle(runtimeStyle.value),
|
|
46
|
+
class: normalizeClass(unref(runtimeClass))
|
|
47
|
+
}, {
|
|
48
|
+
default: withCtx(() => [
|
|
49
|
+
unref(runtimeProps).formTitle ? (openBlock(), createElementBlock("div", {
|
|
50
|
+
key: 0,
|
|
51
|
+
class: "amb-widget-form-title",
|
|
52
|
+
style: normalizeStyle(titleStyle.value)
|
|
53
|
+
}, toDisplayString(unref(runtimeProps).formTitle), 5)) : createCommentVNode("", true),
|
|
54
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.configure.items, (element, itemIndex) => {
|
|
55
|
+
return openBlock(), createBlock(_sfc_main$1, {
|
|
56
|
+
key: element.uuid,
|
|
57
|
+
pageContext: _ctx.pageContext,
|
|
58
|
+
configure: element
|
|
59
|
+
}, null, 8, ["pageContext", "configure"]);
|
|
60
|
+
}), 128))
|
|
61
|
+
]),
|
|
62
|
+
_: 1
|
|
63
|
+
}, 8, ["label-width", "label-position", "size", "style", "class"])
|
|
64
|
+
]);
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
});
|
|
23
68
|
export {
|
|
24
|
-
|
|
69
|
+
_sfc_main as default
|
|
25
70
|
};
|
|
@@ -1,14 +1,41 @@
|
|
|
1
|
-
import { defineComponent
|
|
1
|
+
import { defineComponent, ref, onMounted, nextTick, createElementBlock, openBlock, normalizeStyle, normalizeClass, unref } from "vue";
|
|
2
2
|
import "../../../../utils/global-refs.js";
|
|
3
|
-
import { handleAfterInitEvent
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
import { handleAfterInitEvent } from "../../../../utils/events/event-util.js";
|
|
4
|
+
const _hoisted_1 = ["src"];
|
|
5
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
|
+
__name: "iframe-runtime",
|
|
7
|
+
props: {
|
|
8
|
+
pageContext: {},
|
|
9
|
+
configure: {},
|
|
10
|
+
indexObj: {},
|
|
11
|
+
selectWidget: {}
|
|
12
|
+
},
|
|
13
|
+
setup(__props) {
|
|
14
|
+
const props = __props;
|
|
15
|
+
const thisRef = ref(null);
|
|
16
|
+
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
|
|
17
|
+
const runtimeStyle = runtimeInfo.style;
|
|
18
|
+
const runtimeClass = runtimeInfo.class;
|
|
19
|
+
onMounted(() => {
|
|
20
|
+
nextTick(() => {
|
|
21
|
+
handleAfterInitEvent(null, props.pageContext, props.configure, {
|
|
22
|
+
componentRef: thisRef.value,
|
|
23
|
+
entity: props.pageContext.entity.data,
|
|
24
|
+
pageData: props.pageContext.entity.page
|
|
25
|
+
});
|
|
26
|
+
});
|
|
9
27
|
});
|
|
10
|
-
|
|
11
|
-
|
|
28
|
+
return (_ctx, _cache) => {
|
|
29
|
+
return openBlock(), createElementBlock("iframe", {
|
|
30
|
+
ref_key: "thisRef",
|
|
31
|
+
ref: thisRef,
|
|
32
|
+
src: _ctx.configure.props.src,
|
|
33
|
+
class: normalizeClass(["amb-widget-container-iframe", unref(runtimeClass)]),
|
|
34
|
+
style: normalizeStyle(unref(runtimeStyle))
|
|
35
|
+
}, null, 14, _hoisted_1);
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
});
|
|
12
39
|
export {
|
|
13
|
-
|
|
40
|
+
_sfc_main as default
|
|
14
41
|
};
|