super-page-runtime 2.1.933 → 2.2.1
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 +5 -7
- package/dist/es/assets/chart-themes/theme1.js +2 -6
- package/dist/es/assets/chart-themes/theme2.js +2 -6
- package/dist/es/assets/chart-themes/theme3.js +2 -6
- package/dist/es/components/runtime/index.d.ts +2 -1
- package/dist/es/components/runtime/utils/api/api-util.js +4 -7
- package/dist/es/components/runtime/utils/api/page-expose-util.js +137 -435
- package/dist/es/components/runtime/utils/assemblys-config.js +11 -367
- package/dist/es/components/runtime/utils/barcode-util.js +9 -33
- package/dist/es/components/runtime/utils/charts/chart-columnline-util.js +122 -306
- package/dist/es/components/runtime/utils/charts/chart-gauge-util.js +29 -68
- package/dist/es/components/runtime/utils/charts/chart-pie-util.js +68 -152
- package/dist/es/components/runtime/utils/charts/chart-radar-util.js +46 -124
- package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +36 -99
- package/dist/es/components/runtime/utils/charts/chart-util.d.ts +1 -0
- package/dist/es/components/runtime/utils/charts/chart-util.js +226 -485
- package/dist/es/components/runtime/utils/common-util.js +76 -153
- package/dist/es/components/runtime/utils/eventBus.js +3 -9
- package/dist/es/components/runtime/utils/events/event-util.js +343 -727
- package/dist/es/components/runtime/utils/events/print-label.js +72 -140
- package/dist/es/components/runtime/utils/events/standard-event.d.ts +2 -2
- package/dist/es/components/runtime/utils/events/standard-event.js +810 -2299
- package/dist/es/components/runtime/utils/events/validator-util.js +222 -552
- package/dist/es/components/runtime/utils/form/date-shortcuts.js +28 -88
- package/dist/es/components/runtime/utils/form/scan-util.js +61 -162
- package/dist/es/components/runtime/utils/global-refs.js +53 -84
- package/dist/es/components/runtime/utils/i18n-util.js +11 -20
- package/dist/es/components/runtime/utils/interfaces/page-design-types.d.ts +2 -0
- package/dist/es/components/runtime/utils/interfaces/page-design-types.js +2 -7
- package/dist/es/components/runtime/utils/page-helper-util.js +278 -658
- package/dist/es/components/runtime/utils/page-init-util.d.ts +6 -1
- package/dist/es/components/runtime/utils/page-init-util.js +132 -370
- package/dist/es/components/runtime/utils/page-permission-util.js +22 -531
- package/dist/es/components/runtime/utils/page-store.d.ts +2 -2
- package/dist/es/components/runtime/utils/page-store.js +8 -12
- package/dist/es/components/runtime/utils/store-util.js +9 -13
- package/dist/es/components/runtime/utils/store.js +2 -2
- package/dist/es/components/runtime/utils/table-utils.js +45 -84
- package/dist/es/components/runtime/utils/tree-utils.js +17 -37
- 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 +19 -75
- 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 +14 -46
- 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 +36 -132
- 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 +4 -18
- 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 +17 -107
- 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 +50 -198
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.js +12 -42
- 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 +7 -60
- 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 +52 -169
- 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 +44 -0
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +4 -0
- 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 +32 -107
- 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 +43 -164
- 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 +32 -115
- 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 +32 -116
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.d.ts +34 -1
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +253 -449
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue.js +4 -42
- 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 +8 -62
- 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 +37 -231
- 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 +13 -62
- 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 +197 -510
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.d.ts +4 -4
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +29 -139
- 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.d.ts +6 -6
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +21 -125
- 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.d.ts +6 -6
- package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +16 -102
- 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 +18 -81
- 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 +17 -82
- 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 +14 -86
- 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 +21 -79
- 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 +16 -61
- 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 +10 -37
- 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 +38 -127
- 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 +28 -76
- 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 +61 -178
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +302 -803
- 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 +249 -594
- 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 +40 -115
- 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 +56 -215
- package/dist/es/components/runtime/views/assemblys/error-render.vue.d.ts +4 -4
- package/dist/es/components/runtime/views/assemblys/error-render.vue.js +3 -21
- 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 +42 -154
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +34 -98
- 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 +52 -200
- 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 +66 -239
- 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 +31 -104
- 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 +21 -59
- 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 +51 -173
- 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 +22 -103
- 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 +57 -249
- 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 +32 -174
- 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 +28 -107
- 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 +13 -50
- 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 +61 -189
- 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 +87 -244
- 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 +77 -261
- 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 +13 -57
- 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 +30 -155
- 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 +40 -129
- 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 +22 -107
- package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.d.ts +17 -0
- package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +97 -0
- package/dist/es/components/runtime/views/assemblys/home-chart-render.vue2.js +4 -0
- package/dist/es/components/runtime/views/assemblys/object-render.vue.d.ts +1 -1
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +125 -254
- 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 +18 -46
- 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 +21 -49
- 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 +20 -58
- 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 +16 -53
- package/dist/es/components/runtime/views/home-chart.vue.d.ts +23 -0
- package/dist/es/components/runtime/views/home-chart.vue.js +36 -0
- package/dist/es/components/runtime/views/home-chart.vue2.js +4 -0
- package/dist/es/components/runtime/views/super-page-dialog.vue.d.ts +3 -3
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +20 -134
- package/dist/es/components/runtime/views/super-page-dialog.vue2.js +2 -2
- package/dist/es/components/runtime/views/super-page.vue.d.ts +15 -6
- package/dist/es/components/runtime/views/super-page.vue.js +222 -708
- package/dist/es/components/runtime/views/super-page.vue2.js +2 -2
- package/dist/es/i18n/langs/cn.js +2 -55
- package/dist/es/i18n/langs/en.js +2 -55
- package/dist/es/index.d.ts +2 -2
- package/dist/es/index.js +6 -4
- package/package.json +3 -2
|
@@ -1,84 +1,21 @@
|
|
|
1
|
-
import { defineComponent, ref, onMounted, nextTick
|
|
2
|
-
import { ElCard } from "element-plus";
|
|
3
|
-
import { SuperIcon } from "agilebuilder-ui";
|
|
4
|
-
import
|
|
5
|
-
import { $t } from "../../../../utils/i18n-util.js";
|
|
6
|
-
import { handleAfterInitEvent } from "../../../../utils/events/event-util.js";
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
const props = __props;
|
|
15
|
-
if (!props.configure.items) {
|
|
16
|
-
props.configure.items = [];
|
|
17
|
-
}
|
|
18
|
-
const thisRef = ref(null);
|
|
19
|
-
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
|
|
20
|
-
const runtimeStyle = runtimeInfo.style;
|
|
21
|
-
const runtimeClass = runtimeInfo.class;
|
|
22
|
-
const headerStyle = runtimeInfo.headerStyle;
|
|
23
|
-
const contentStyle = runtimeInfo.contentStyle;
|
|
24
|
-
function test() {
|
|
25
|
-
props.configure.props.title = "teee";
|
|
26
|
-
}
|
|
27
|
-
onMounted(() => {
|
|
28
|
-
nextTick(() => {
|
|
29
|
-
handleAfterInitEvent(null, props.pageContext, props.configure, {
|
|
30
|
-
componentRef: thisRef.value,
|
|
31
|
-
entity: props.pageContext.entity.data,
|
|
32
|
-
pageData: props.pageContext.entity.page
|
|
33
|
-
});
|
|
34
|
-
});
|
|
1
|
+
import { defineComponent as e, ref as t, onMounted as o, nextTick as n, createBlock as i, openBlock as r, unref as u, normalizeClass as p, normalizeStyle as s, createSlots as l, withCtx as c, createElementVNode as a, createElementBlock as f, Fragment as g, renderList as m, createCommentVNode as y, createTextVNode as d, toDisplayString as x } from "vue";
|
|
2
|
+
import { ElCard as v } from "element-plus";
|
|
3
|
+
import { SuperIcon as C } from "agilebuilder-ui";
|
|
4
|
+
import h from "../../object-render.vue.js";
|
|
5
|
+
import { $t as b } from "../../../../utils/i18n-util.js";
|
|
6
|
+
import { handleAfterInitEvent as j } from "../../../../utils/events/event-util.js";
|
|
7
|
+
const k = e({ __name: "card-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: k2 }) {
|
|
8
|
+
const T = e2;
|
|
9
|
+
T.configure.items || (T.configure.items = []);
|
|
10
|
+
const V = t(null), _ = T.configure.runtime ? T.configure.runtime : {}, S = _.style, R = _.class, w = _.headerStyle, D = _.contentStyle;
|
|
11
|
+
return o(() => {
|
|
12
|
+
n(() => {
|
|
13
|
+
j(null, T.pageContext, T.configure, { componentRef: V.value, entity: T.pageContext.entity.data, pageData: T.pageContext.entity.page });
|
|
35
14
|
});
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
return openBlock(), createBlock(unref(ElCard), {
|
|
41
|
-
ref_key: "thisRef",
|
|
42
|
-
ref: thisRef,
|
|
43
|
-
style: normalizeStyle([unref(runtimeStyle), { "margin-top": "20px" }]),
|
|
44
|
-
class: normalizeClass(unref(runtimeClass))
|
|
45
|
-
}, createSlots({
|
|
46
|
-
default: withCtx(() => [
|
|
47
|
-
createElementVNode("div", {
|
|
48
|
-
style: normalizeStyle(unref(contentStyle))
|
|
49
|
-
}, [
|
|
50
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.configure.items, (element, itemIndex) => {
|
|
51
|
-
return openBlock(), createBlock(_sfc_main$1, {
|
|
52
|
-
key: element.uuid,
|
|
53
|
-
pageContext: _ctx.pageContext,
|
|
54
|
-
configure: element
|
|
55
|
-
}, null, 8, ["pageContext", "configure"]);
|
|
56
|
-
}), 128))
|
|
57
|
-
], 4)
|
|
58
|
-
]),
|
|
59
|
-
_: 2
|
|
60
|
-
}, [
|
|
61
|
-
_ctx.configure.props.base.tittleShow ? {
|
|
62
|
-
name: "header",
|
|
63
|
-
fn: withCtx(() => [
|
|
64
|
-
createElementVNode("div", {
|
|
65
|
-
style: normalizeStyle(unref(headerStyle))
|
|
66
|
-
}, [
|
|
67
|
-
_ctx.configure.props.iconType && _ctx.configure.props.iconValue ? (openBlock(), createBlock(unref(SuperIcon), {
|
|
68
|
-
key: 0,
|
|
69
|
-
iconType: _ctx.configure.props.iconType,
|
|
70
|
-
iconValue: _ctx.configure.props.iconValue,
|
|
71
|
-
style: { "margin-right": "2px" }
|
|
72
|
-
}, null, 8, ["iconType", "iconValue"])) : createCommentVNode("", true),
|
|
73
|
-
createTextVNode(" " + toDisplayString(unref($t)(_ctx.configure.props.base.title)), 1)
|
|
74
|
-
], 4)
|
|
75
|
-
]),
|
|
76
|
-
key: "0"
|
|
77
|
-
} : void 0
|
|
78
|
-
]), 1032, ["style", "class"]);
|
|
79
|
-
};
|
|
80
|
-
}
|
|
81
|
-
});
|
|
15
|
+
}), k2({ test: function() {
|
|
16
|
+
T.configure.props.title = "teee";
|
|
17
|
+
} }), (e3, t2) => (r(), i(u(v), { ref_key: "thisRef", ref: V, style: s([u(S), { "margin-top": "20px" }]), class: p(u(R)) }, l({ default: c(() => [a("div", { style: s(u(D)) }, [(r(true), f(g, null, m(e3.configure.items, (t3, o2) => (r(), i(h, { key: t3.uuid, pageContext: e3.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"]))), 128))], 4)]), _: 2 }, [e3.configure.props.base.tittleShow ? { name: "header", fn: c(() => [a("div", { style: s(u(w)) }, [e3.configure.props.iconType && e3.configure.props.iconValue ? (r(), i(u(C), { key: 0, iconType: e3.configure.props.iconType, iconValue: e3.configure.props.iconValue, style: { "margin-right": "2px" } }, null, 8, ["iconType", "iconValue"])) : y("", true), d(" " + x(u(b)(e3.configure.props.base.title)), 1)], 4)]), key: "0" } : void 0]), 1032, ["style", "class"]));
|
|
18
|
+
} });
|
|
82
19
|
export {
|
|
83
|
-
|
|
20
|
+
k as default
|
|
84
21
|
};
|
package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js
CHANGED
|
@@ -1,86 +1,21 @@
|
|
|
1
|
-
import { defineComponent, ref, onMounted, nextTick, resolveComponent, openBlock,
|
|
2
|
-
import
|
|
1
|
+
import { defineComponent as e, ref as t, onMounted as n, nextTick as o, resolveComponent as l, createBlock as i, openBlock as u, normalizeClass as r, unref as a, normalizeStyle as p, isRef as s, withCtx as c, createElementBlock as f, Fragment as g, renderList as m, createElementVNode as d, createCommentVNode as y, createTextVNode as x, toDisplayString as v } from "vue";
|
|
2
|
+
import C from "../../object-render.vue.js";
|
|
3
3
|
import "../../../../utils/global-refs.js";
|
|
4
|
-
import { $t } from "../../../../utils/i18n-util.js";
|
|
5
|
-
import { handleAfterInitEvent } from "../../../../utils/events/event-util.js";
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
props
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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
|
-
});
|
|
4
|
+
import { $t as V } from "../../../../utils/i18n-util.js";
|
|
5
|
+
import { handleAfterInitEvent as j } from "../../../../utils/events/event-util.js";
|
|
6
|
+
const _ = e({ __name: "collapse-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
|
|
7
|
+
const _2 = e2;
|
|
8
|
+
_2.configure.props || (_2.configure.props = {});
|
|
9
|
+
const h = _2.configure.props.defaultOpens ? _2.configure.props.defaultOpens : [1], T = !!_2.configure.props.accordion, b = t(null), k = _2.configure.runtime ? _2.configure.runtime : {}, O = k.style, R = k.class, S = k.headerStyle;
|
|
10
|
+
return n(() => {
|
|
11
|
+
o(() => {
|
|
12
|
+
j(null, _2.pageContext, _2.configure, { componentRef: b.value, entity: _2.pageContext.entity.data, pageData: _2.pageContext.entity.page });
|
|
32
13
|
});
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
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
|
-
});
|
|
14
|
+
}), (e3, t2) => {
|
|
15
|
+
const n2 = l("SuperIcon"), o2 = l("el-collapse-item"), j2 = l("el-collapse");
|
|
16
|
+
return u(), i(j2, { ref_key: "thisRef", ref: b, modelValue: a(h), "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => s(h) ? h.value = e4 : null), style: p(a(O)), accordion: a(T), class: r(a(R)) }, { default: c(() => [(u(true), f(g, null, m(e3.configure.items, (t3, l2) => (u(), i(o2, { name: t3.index }, { title: c(() => [d("div", { style: p([a(S), { width: "100%" }]) }, [t3.iconType && t3.iconValue ? (u(), i(n2, { key: 0, iconType: t3.iconType, iconValue: t3.iconValue, style: { "margin-right": "2px" } }, null, 8, ["iconType", "iconValue"])) : y("", true), x(" " + v(a(V)(t3.label)), 1)], 4)]), default: c(() => [d("div", null, [(u(true), f(g, null, m(t3.items, (t4, n3) => (u(), i(C, { key: t4.uuid, configure: t4, pageContext: e3.pageContext }, null, 8, ["configure", "pageContext"]))), 128))])]), _: 2 }, 1032, ["name"]))), 256))]), _: 1 }, 8, ["modelValue", "style", "accordion", "class"]);
|
|
17
|
+
};
|
|
18
|
+
} });
|
|
84
19
|
export {
|
|
85
|
-
|
|
20
|
+
_ as default
|
|
86
21
|
};
|
package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js
CHANGED
|
@@ -1,90 +1,18 @@
|
|
|
1
|
-
import { defineComponent, ref, onMounted, nextTick, resolveComponent
|
|
2
|
-
import
|
|
1
|
+
import { defineComponent as e, ref as t, onMounted as n, nextTick as o, resolveComponent as u, createBlock as l, openBlock as i, withCtx as r, createCommentVNode as s, createVNode as a, normalizeStyle as g, unref as f, createElementBlock as p, Fragment as c, renderList as y, normalizeClass as m } from "vue";
|
|
2
|
+
import x from "../../object-render.vue.js";
|
|
3
3
|
import "../../../../utils/global-refs.js";
|
|
4
|
-
import { handleAfterInitEvent } from "../../../../utils/events/event-util.js";
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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
|
-
});
|
|
4
|
+
import { handleAfterInitEvent as d } from "../../../../utils/events/event-util.js";
|
|
5
|
+
const C = e({ __name: "container-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
|
|
6
|
+
const C2 = e2, _ = t(null), k = C2.configure.runtime ? C2.configure.runtime : {}, v = k.leftStyle, h = k.rightStyle, j = k.style, R = k.class;
|
|
7
|
+
return n(() => {
|
|
8
|
+
o(() => {
|
|
9
|
+
d(null, C2.pageContext, C2.configure, { componentRef: _.value, entity: C2.pageContext.entity.data, pageData: C2.pageContext.entity.page });
|
|
27
10
|
});
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
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
|
-
});
|
|
11
|
+
}), (e3, t2) => {
|
|
12
|
+
const n2 = u("el-aside"), o2 = u("el-main"), d2 = u("el-container");
|
|
13
|
+
return i(), l(d2, { ref_key: "thisRef", ref: _ }, { default: r(() => [e3.configure.props.useLeft ? (i(), l(n2, { key: 0, style: g(f(v)) }, { default: r(() => [(i(true), p(c, null, y(e3.configure.leftAslides, (t3, n3) => (i(), l(x, { key: t3.uuid, pageContext: e3.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"]))), 128))]), _: 1 }, 8, ["style"])) : s("", true), a(o2, { style: g(f(j)), class: m(f(R)) }, { default: r(() => [(i(true), p(c, null, y(e3.configure.items, (t3, n3) => (i(), l(x, { key: t3.uuid, pageContext: e3.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"]))), 128))]), _: 1 }, 8, ["style", "class"]), e3.configure.props.useRight ? (i(), l(n2, { key: 1, style: g(f(h)) }, { default: r(() => [(i(true), p(c, null, y(e3.configure.rightAslides, (t3, n3) => (i(), l(x, { key: t3.uuid, pageContext: e3.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"]))), 128))]), _: 1 }, 8, ["style"])) : s("", true)]), _: 1 }, 512);
|
|
14
|
+
};
|
|
15
|
+
} });
|
|
88
16
|
export {
|
|
89
|
-
|
|
17
|
+
C as default
|
|
90
18
|
};
|
|
@@ -1,83 +1,25 @@
|
|
|
1
|
-
import { defineComponent, ref, onMounted, nextTick, resolveComponent, openBlock,
|
|
2
|
-
import
|
|
3
|
-
import { PageDimensions } from "../../../../utils/interfaces/page-design-types.js";
|
|
4
|
-
import { handleAfterInitEvent } from "../../../../utils/events/event-util.js";
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
pageContext:
|
|
9
|
-
configure
|
|
10
|
-
|
|
11
|
-
|
|
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
|
-
}
|
|
1
|
+
import { defineComponent as e, ref as t, onMounted as n, nextTick as s, resolveComponent as l, createBlock as i, openBlock as o, normalizeClass as a, normalizeStyle as u, unref as r, withCtx as f, createElementBlock as p, Fragment as g, renderList as m, withDirectives as c, createVNode as y, vShow as x } from "vue";
|
|
2
|
+
import d from "../../object-render.vue.js";
|
|
3
|
+
import { PageDimensions as C } from "../../../../utils/interfaces/page-design-types.js";
|
|
4
|
+
import { handleAfterInitEvent as v } from "../../../../utils/events/event-util.js";
|
|
5
|
+
const _ = e({ __name: "flex-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
|
|
6
|
+
const _2 = e2, j = t(null), S = _2.configure.runtime ? _2.configure.runtime : {}, h = S.style, w = S.class, b = t(S.props ? S.props : {});
|
|
7
|
+
if (_2.configure.items) {
|
|
8
|
+
const e3 = _2.pageContext && _2.pageContext.dimensions ? _2.pageContext.dimensions : C.PC;
|
|
9
|
+
for (let t2 of _2.configure.items) {
|
|
10
|
+
const n2 = t2.runtime && t2.runtime.common ? t2.runtime.common : {}, s2 = n2.style ? n2.style[e3 + "_style"] : void 0, l2 = {};
|
|
11
|
+
s2 && (t2.flexSpan = s2.flexSpan ? s2.flexSpan : -2, Object.assign(l2, s2), delete l2.height, delete s2.width), t2.itemStyle = l2, n2.style && (n2.style[e3 + "_class"] = "");
|
|
35
12
|
}
|
|
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
|
-
});
|
|
44
|
-
});
|
|
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
13
|
}
|
|
80
|
-
|
|
14
|
+
return n(() => {
|
|
15
|
+
s(() => {
|
|
16
|
+
v(null, _2.pageContext, _2.configure, { componentRef: j.value, entity: _2.pageContext.entity.data, pageData: _2.pageContext.entity.page });
|
|
17
|
+
});
|
|
18
|
+
}), (e3, t2) => {
|
|
19
|
+
const n2 = l("el-col"), s2 = l("el-row");
|
|
20
|
+
return o(), i(s2, { ref_key: "thisRef", ref: j, justify: b.value.flexJustify, gutter: b.value.flexGutter, align: b.value.alignItems, style: u([{ display: "flex" }, r(h)]), class: a(r(w)) }, { default: f(() => [(o(true), p(g, null, m(e3.configure.items, (t3, s3) => c((o(), i(n2, { key: t3.uuid, style: u(t3.itemStyle), span: t3.flexSpan }, { default: f(() => [y(d, { pageContext: e3.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"])]), _: 2 }, 1032, ["style", "span"])), [[x, t3._dynamicShowFlag]])), 128))]), _: 1 }, 8, ["justify", "gutter", "align", "style", "class"]);
|
|
21
|
+
};
|
|
22
|
+
} });
|
|
81
23
|
export {
|
|
82
|
-
|
|
24
|
+
_ as default
|
|
83
25
|
};
|
|
@@ -1,70 +1,25 @@
|
|
|
1
|
-
import { defineComponent, ref, onMounted, nextTick, resolveComponent
|
|
2
|
-
import
|
|
1
|
+
import { defineComponent as e, ref as t, onMounted as i, nextTick as l, resolveComponent as o, createElementBlock as r, openBlock as u, createVNode as s, normalizeClass as n, normalizeStyle as a, unref as p, withCtx as c, createCommentVNode as m, toDisplayString as f, Fragment as g, renderList as d, createBlock as y } from "vue";
|
|
2
|
+
import b 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 { handleAfterInitEvent } from "../../../../utils/events/event-util.js";
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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
|
-
handleAfterInitEvent(null, props.pageContext, props.configure, {
|
|
30
|
-
componentRef: thisRef.value,
|
|
31
|
-
entity: props.pageContext.entity.data,
|
|
32
|
-
pageData: props.pageContext.entity.page
|
|
33
|
-
});
|
|
34
|
-
});
|
|
9
|
+
import { handleAfterInitEvent as v } from "../../../../utils/events/event-util.js";
|
|
10
|
+
const x = e({ __name: "form-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
|
|
11
|
+
const x2 = e2;
|
|
12
|
+
x2.configure.items || (x2.configure.items = []);
|
|
13
|
+
const C = x2.configure.runtime ? x2.configure.runtime : {}, j = C.props ? C.props : {}, h = t(C.style ? C.style : {}), _ = C.class, k = t(C.titleStyle ? C.titleStyle : {}), w = t(null);
|
|
14
|
+
return i(() => {
|
|
15
|
+
l(() => {
|
|
16
|
+
v(null, x2.pageContext, x2.configure, { componentRef: w.value, entity: x2.pageContext.entity.data, pageData: x2.pageContext.entity.page });
|
|
35
17
|
});
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
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
|
-
});
|
|
18
|
+
}), (e3, t2) => {
|
|
19
|
+
const i2 = o("el-form");
|
|
20
|
+
return u(), r("div", null, [s(i2, { ref_key: "thisRef", ref: w, "label-width": p(j).labelWidth, "label-position": p(j).labelPosition, size: p(j).componentSize, style: a(h.value), class: n(p(_)) }, { default: c(() => [p(j).formTitle ? (u(), r("div", { key: 0, class: "amb-widget-form-title", style: a(k.value) }, f(p(j).formTitle), 5)) : m("", true), (u(true), r(g, null, d(e3.configure.items, (t3, i3) => (u(), y(b, { key: t3.uuid, pageContext: e3.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"]))), 128))]), _: 1 }, 8, ["label-width", "label-position", "size", "style", "class"])]);
|
|
21
|
+
};
|
|
22
|
+
} });
|
|
68
23
|
export {
|
|
69
|
-
|
|
24
|
+
x as default
|
|
70
25
|
};
|
|
@@ -1,41 +1,14 @@
|
|
|
1
|
-
import { defineComponent, ref, onMounted, nextTick, openBlock,
|
|
1
|
+
import { defineComponent as e, ref as t, onMounted as n, nextTick as r, createElementBlock as i, openBlock as o, normalizeStyle as s, normalizeClass as a, unref as u } from "vue";
|
|
2
2
|
import "../../../../utils/global-refs.js";
|
|
3
|
-
import { handleAfterInitEvent } from "../../../../utils/events/event-util.js";
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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
|
-
});
|
|
3
|
+
import { handleAfterInitEvent as l } from "../../../../utils/events/event-util.js";
|
|
4
|
+
const f = ["src"], p = e({ __name: "iframe-runtime", props: { pageContext: {}, configure: {}, indexObj: {}, selectWidget: {} }, setup(e2) {
|
|
5
|
+
const p2 = e2, c = t(null), g = p2.configure.runtime ? p2.configure.runtime : {}, m = g.style, x = g.class;
|
|
6
|
+
return n(() => {
|
|
7
|
+
r(() => {
|
|
8
|
+
l(null, p2.pageContext, p2.configure, { componentRef: c.value, entity: p2.pageContext.entity.data, pageData: p2.pageContext.entity.page });
|
|
27
9
|
});
|
|
28
|
-
|
|
29
|
-
|
|
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
|
-
});
|
|
10
|
+
}), (e3, t2) => (o(), i("iframe", { ref_key: "thisRef", ref: c, src: e3.configure.props.src, class: a(["amb-widget-container-iframe", u(x)]), style: s(u(m)) }, null, 14, f));
|
|
11
|
+
} });
|
|
39
12
|
export {
|
|
40
|
-
|
|
13
|
+
p as default
|
|
41
14
|
};
|