super-page-runtime 2.2.29-tmp2 → 2.2.32
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/utils/api/api-util.js +4 -7
- package/dist/es/components/runtime/utils/api/page-expose-util.js +135 -443
- package/dist/es/components/runtime/utils/assemblys-config.js +13 -369
- 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.js +224 -522
- package/dist/es/components/runtime/utils/common-util.js +76 -156
- package/dist/es/components/runtime/utils/eventBus.js +3 -8
- package/dist/es/components/runtime/utils/events/event-util.js +362 -775
- package/dist/es/components/runtime/utils/events/print-label.js +72 -140
- package/dist/es/components/runtime/utils/events/standard-event.js +808 -2320
- package/dist/es/components/runtime/utils/events/validator-util.js +224 -560
- 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 +6 -0
- package/dist/es/components/runtime/utils/interfaces/page-design-types.js +2 -7
- package/dist/es/components/runtime/utils/page-helper-util.js +280 -660
- package/dist/es/components/runtime/utils/page-init-util.js +141 -406
- package/dist/es/components/runtime/utils/page-permission-util.js +22 -531
- package/dist/es/components/runtime/utils/page-store.js +23 -68
- 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.d.ts +4 -0
- package/dist/es/components/runtime/utils/table-utils.js +40 -81
- 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 +21 -83
- 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 -203
- 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 +46 -162
- 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 -109
- 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 -166
- 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 -117
- 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 -118
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +246 -597
- 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 +29 -160
- 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 +212 -594
- 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.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.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 +317 -810
- 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 +262 -635
- 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.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 +68 -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 -109
- 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 +56 -188
- 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 -245
- 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 +64 -194
- 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 +88 -249
- 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 +80 -263
- 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.js +89 -188
- 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 +133 -272
- 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.js +41 -160
- package/dist/es/components/runtime/views/home-chart.vue2.js +2 -2
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +20 -139
- package/dist/es/components/runtime/views/super-page-dialog.vue2.js +2 -2
- package/dist/es/components/runtime/views/super-page.vue.js +226 -754
- 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/package.json +2 -2
|
@@ -1,133 +1,44 @@
|
|
|
1
|
-
import { defineComponent, ref, computed, onMounted, nextTick, resolveComponent, createBlock, openBlock, normalizeStyle, normalizeClass, unref, withCtx, createElementBlock, Fragment, renderList, createTextVNode, toDisplayString, createCommentVNode } from "vue";
|
|
2
|
-
import { getFormModelFields } from "../../../../utils/page-init-util.js";
|
|
3
|
-
import { getVariableValue, setVariableValue } from "../../../../utils/page-helper-util.js";
|
|
4
|
-
import { handleAfterInitEvent, handleFormEvent } from "../../../../utils/events/event-util.js";
|
|
5
|
-
import { $t } from "../../../../utils/i18n-util.js";
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
const headerStyle = runtimeInfo.headerStyle;
|
|
19
|
-
const titleExceedStyle = runtimeInfo.titleExceedStyle;
|
|
20
|
-
const designProperty = ref(runtimeInfo.props ? runtimeInfo.props : {});
|
|
21
|
-
let formatting = designProperty.value.formatting;
|
|
22
|
-
const entity = props.pageContext.entity ? props.pageContext.entity : {};
|
|
23
|
-
const dynamicValues = computed(() => {
|
|
24
|
-
let resultValue = getVariableValue(entity, modelFields);
|
|
25
|
-
if (resultValue === void 0 || resultValue === null) {
|
|
26
|
-
resultValue = [];
|
|
27
|
-
}
|
|
28
|
-
if (!Array.isArray(resultValue)) {
|
|
29
|
-
resultValue = (resultValue + "").split(",");
|
|
30
|
-
}
|
|
31
|
-
const options = [];
|
|
32
|
-
let no = 1;
|
|
33
|
-
for (const val of resultValue) {
|
|
34
|
-
if (val === void 0 || val === null || val === "") {
|
|
35
|
-
continue;
|
|
36
|
-
}
|
|
37
|
-
const o = {
|
|
38
|
-
value: val,
|
|
39
|
-
label: val
|
|
40
|
-
};
|
|
41
|
-
if (formatting) {
|
|
42
|
-
o.label = formatting.replace(/\${value}/g, o.value).replace(/\${no}/g, no);
|
|
43
|
-
}
|
|
44
|
-
options.push(o);
|
|
45
|
-
no++;
|
|
46
|
-
}
|
|
47
|
-
return options;
|
|
48
|
-
});
|
|
49
|
-
function closeTag($event, tag) {
|
|
50
|
-
if (designProperty.value.closable) {
|
|
51
|
-
let resultValue = getVariableValue(entity, modelFields);
|
|
52
|
-
if (resultValue === void 0 || resultValue === null) {
|
|
53
|
-
resultValue = [];
|
|
54
|
-
}
|
|
55
|
-
const isArray = Array.isArray(resultValue);
|
|
56
|
-
if (!isArray) {
|
|
57
|
-
resultValue = (resultValue + "").split(",");
|
|
58
|
-
}
|
|
59
|
-
const index = resultValue.indexOf(tag.value);
|
|
60
|
-
if (index > -1) {
|
|
61
|
-
resultValue.splice(index, 1);
|
|
62
|
-
}
|
|
63
|
-
if (!isArray) {
|
|
64
|
-
resultValue = resultValue.join(",");
|
|
65
|
-
}
|
|
66
|
-
setVariableValue(entity, modelFields, resultValue);
|
|
67
|
-
}
|
|
68
|
-
handleFormEvent($event, props.pageContext, props.configure, "remove");
|
|
1
|
+
import { defineComponent as e, ref as t, computed as l, onMounted as a, nextTick as i, resolveComponent as o, createBlock as n, openBlock as r, normalizeStyle as u, normalizeClass as s, unref as p, withCtx as c, createElementBlock as f, Fragment as g, renderList as m, createTextVNode as v, toDisplayString as y, createCommentVNode as d } from "vue";
|
|
2
|
+
import { getFormModelFields as x } from "../../../../utils/page-init-util.js";
|
|
3
|
+
import { getVariableValue as C, setVariableValue as b } from "../../../../utils/page-helper-util.js";
|
|
4
|
+
import { handleAfterInitEvent as h, handleFormEvent as k } from "../../../../utils/events/event-util.js";
|
|
5
|
+
import { $t as _ } from "../../../../utils/i18n-util.js";
|
|
6
|
+
const j = e({ __name: "tag-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
|
|
7
|
+
const j2 = e2, A = x(j2.pageContext, j2.configure), R = j2.configure.runtime ? j2.configure.runtime : {}, q = R.style, w = R.class, z = R.headerStyle, S = R.titleExceedStyle, I = t(R.props ? R.props : {});
|
|
8
|
+
let $ = I.value.formatting;
|
|
9
|
+
const D = j2.pageContext.entity ? j2.pageContext.entity : {}, E = l(() => {
|
|
10
|
+
let e3 = C(D, A);
|
|
11
|
+
null == e3 && (e3 = []), Array.isArray(e3) || (e3 = (e3 + "").split(","));
|
|
12
|
+
const t2 = [];
|
|
13
|
+
let l2 = 1;
|
|
14
|
+
for (const a2 of e3) {
|
|
15
|
+
if (null == a2 || "" === a2) continue;
|
|
16
|
+
const e4 = { value: a2, label: a2 };
|
|
17
|
+
$ && (e4.label = $.replace(/\${value}/g, e4.value).replace(/\${no}/g, l2)), t2.push(e4), l2++;
|
|
69
18
|
}
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
props.pageContext,
|
|
78
|
-
props.configure,
|
|
79
|
-
{
|
|
80
|
-
formItemRef: formItemRef.value,
|
|
81
|
-
titleRef: titleRef.value,
|
|
82
|
-
value,
|
|
83
|
-
entity: props.pageContext.entity.data,
|
|
84
|
-
pageData: props.pageContext.entity.page
|
|
85
|
-
}
|
|
86
|
-
);
|
|
87
|
-
});
|
|
19
|
+
return t2;
|
|
20
|
+
});
|
|
21
|
+
const O = t(null), W = t(null);
|
|
22
|
+
return a(() => {
|
|
23
|
+
i(() => {
|
|
24
|
+
const e3 = E.value;
|
|
25
|
+
h(e3, j2.pageContext, j2.configure, { formItemRef: O.value, titleRef: W.value, value: e3, entity: j2.pageContext.entity.data, pageData: j2.pageContext.entity.page });
|
|
88
26
|
});
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
ref: titleRef,
|
|
105
|
-
style: normalizeStyle({ ...unref(headerStyle), ...unref(titleExceedStyle) })
|
|
106
|
-
}, toDisplayString(unref($t)(designProperty.value.title)), 5)) : createCommentVNode("", true)
|
|
107
|
-
]),
|
|
108
|
-
default: withCtx(() => [
|
|
109
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(dynamicValues.value, (tag) => {
|
|
110
|
-
return openBlock(), createBlock(_component_el_tag, {
|
|
111
|
-
key: tag,
|
|
112
|
-
size: designProperty.value.size,
|
|
113
|
-
closable: designProperty.value.closable,
|
|
114
|
-
type: designProperty.value.type,
|
|
115
|
-
style: { "margin-right": "4px" },
|
|
116
|
-
onClose: ($event) => closeTag($event, tag),
|
|
117
|
-
onClick: _cache[0] || (_cache[0] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "click"))
|
|
118
|
-
}, {
|
|
119
|
-
default: withCtx(() => [
|
|
120
|
-
createTextVNode(toDisplayString(tag.label), 1)
|
|
121
|
-
]),
|
|
122
|
-
_: 2
|
|
123
|
-
}, 1032, ["size", "closable", "type", "onClose"]);
|
|
124
|
-
}), 128))
|
|
125
|
-
]),
|
|
126
|
-
_: 1
|
|
127
|
-
}, 8, ["required", "class", "label-width", "style"]);
|
|
128
|
-
};
|
|
129
|
-
}
|
|
130
|
-
});
|
|
27
|
+
}), (e3, t2) => {
|
|
28
|
+
const l2 = o("el-tag"), a2 = o("el-form-item");
|
|
29
|
+
return r(), n(a2, { ref_key: "formItemRef", ref: O, required: I.value.required, class: s(p(w)), "label-width": I.value.labelWidth, style: u(p(q)) }, { label: c(() => [I.value.tittleShow ? (r(), f("div", { key: 0, ref_key: "titleRef", ref: W, style: u({ ...p(z), ...p(S) }) }, y(p(_)(I.value.title)), 5)) : d("", true)]), default: c(() => [(r(true), f(g, null, m(E.value, (a3) => (r(), n(l2, { key: a3, size: I.value.size, closable: I.value.closable, type: I.value.type, style: { "margin-right": "4px" }, onClose: (e4) => function(e5, t3) {
|
|
30
|
+
if (I.value.closable) {
|
|
31
|
+
let e6 = C(D, A);
|
|
32
|
+
null == e6 && (e6 = []);
|
|
33
|
+
const l3 = Array.isArray(e6);
|
|
34
|
+
l3 || (e6 = (e6 + "").split(","));
|
|
35
|
+
const a4 = e6.indexOf(t3.value);
|
|
36
|
+
a4 > -1 && e6.splice(a4, 1), l3 || (e6 = e6.join(",")), b(D, A, e6);
|
|
37
|
+
}
|
|
38
|
+
k(e5, j2.pageContext, j2.configure, "remove");
|
|
39
|
+
}(e4, a3), onClick: t2[0] || (t2[0] = (t3) => p(k)(t3, e3.pageContext, e3.configure, "click")) }, { default: c(() => [v(y(a3.label), 1)]), _: 2 }, 1032, ["size", "closable", "type", "onClose"]))), 128))]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
|
|
40
|
+
};
|
|
41
|
+
} });
|
|
131
42
|
export {
|
|
132
|
-
|
|
43
|
+
j as default
|
|
133
44
|
};
|
|
@@ -1,110 +1,25 @@
|
|
|
1
|
-
import { defineComponent, computed, ref, onMounted, nextTick, resolveComponent, createElementBlock, openBlock, createVNode, normalizeStyle, normalizeClass, unref, withCtx, createCommentVNode, createBlock, Fragment, createTextVNode, toDisplayString } from "vue";
|
|
2
|
-
import { getFormModelFields } from "../../../../utils/page-init-util.js";
|
|
3
|
-
import { setVariableValue, getVariableValue } from "../../../../utils/page-helper-util.js";
|
|
4
|
-
import { handleAfterInitEvent, handleFormEvent } from "../../../../utils/events/event-util.js";
|
|
5
|
-
import
|
|
6
|
-
import { $t } from "../../../../utils/i18n-util.js";
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
},
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
const dynamicModelMethod = computed({
|
|
18
|
-
get() {
|
|
19
|
-
return getVariableValue(entity, dynamicFields);
|
|
20
|
-
},
|
|
21
|
-
set(value) {
|
|
22
|
-
setVariableValue(entity, dynamicFields, value);
|
|
23
|
-
}
|
|
1
|
+
import { defineComponent as e, computed as t, ref as l, onMounted as a, nextTick as o, resolveComponent as n, createElementBlock as r, openBlock as u, createVNode as i, normalizeStyle as p, normalizeClass as s, unref as f, withCtx as m, createCommentVNode as g, createBlock as c, Fragment as d, createTextVNode as v, toDisplayString as x } from "vue";
|
|
2
|
+
import { getFormModelFields as y } from "../../../../utils/page-init-util.js";
|
|
3
|
+
import { setVariableValue as h, getVariableValue as C } from "../../../../utils/page-helper-util.js";
|
|
4
|
+
import { handleAfterInitEvent as w, handleFormEvent as b } from "../../../../utils/events/event-util.js";
|
|
5
|
+
import k from "../common/title-suffix-element.vue.js";
|
|
6
|
+
import { $t as R } from "../../../../utils/i18n-util.js";
|
|
7
|
+
const _ = e({ __name: "textarea-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
|
|
8
|
+
const _2 = e2, j = _2.pageContext.entity ? _2.pageContext.entity : {};
|
|
9
|
+
let I = y(_2.pageContext, _2.configure);
|
|
10
|
+
const q = t({ get: () => C(j, I), set(e3) {
|
|
11
|
+
h(j, I, e3);
|
|
12
|
+
} }), z = _2.configure.runtime ? _2.configure.runtime : {}, S = l(z.props ? z.props : {}), V = z.style, B = z.class, D = z.headerStyle, E = z.titleExceedStyle, F = l(null), L = l(null), N = l(null);
|
|
13
|
+
return a(() => {
|
|
14
|
+
o(() => {
|
|
15
|
+
const e3 = q.value;
|
|
16
|
+
w(e3, _2.pageContext, _2.configure, { formItemRef: F.value, componentRef: L.value, titleRef: N.value, value: e3, entity: _2.pageContext.entity.data, pageData: _2.pageContext.entity.page });
|
|
24
17
|
});
|
|
25
|
-
|
|
26
|
-
const
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
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 = 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
|
-
});
|
|
52
|
-
return (_ctx, _cache) => {
|
|
53
|
-
const _component_el_input = resolveComponent("el-input");
|
|
54
|
-
const _component_el_form_item = resolveComponent("el-form-item");
|
|
55
|
-
return openBlock(), createElementBlock("div", null, [
|
|
56
|
-
createVNode(_component_el_form_item, {
|
|
57
|
-
ref_key: "formItemRef",
|
|
58
|
-
ref: formItemRef,
|
|
59
|
-
required: designProperty.value.required ? true : false,
|
|
60
|
-
class: normalizeClass(unref(runtimeClass)),
|
|
61
|
-
"label-width": designProperty.value.labelWidth,
|
|
62
|
-
style: normalizeStyle(unref(runtimeStyle))
|
|
63
|
-
}, {
|
|
64
|
-
label: withCtx(() => [
|
|
65
|
-
designProperty.value.tittleShow ? (openBlock(), createElementBlock("div", {
|
|
66
|
-
key: 0,
|
|
67
|
-
ref_key: "titleRef",
|
|
68
|
-
ref: titleRef,
|
|
69
|
-
style: normalizeStyle({ ...unref(headerStyle), ...unref(titleExceedStyle) })
|
|
70
|
-
}, [
|
|
71
|
-
designProperty.value.prefixType ? (openBlock(), createBlock(_sfc_main$1, {
|
|
72
|
-
key: 0,
|
|
73
|
-
pageContext: _ctx.pageContext,
|
|
74
|
-
property: designProperty.value
|
|
75
|
-
}, null, 8, ["pageContext", "property"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
76
|
-
createTextVNode(toDisplayString(unref($t)(designProperty.value.title)), 1)
|
|
77
|
-
], 64))
|
|
78
|
-
], 4)) : createCommentVNode("", true)
|
|
79
|
-
]),
|
|
80
|
-
default: withCtx(() => [
|
|
81
|
-
createVNode(_component_el_input, {
|
|
82
|
-
ref_key: "componentRef",
|
|
83
|
-
ref: componentRef,
|
|
84
|
-
disabled: designProperty.value.state === "disabled",
|
|
85
|
-
readonly: designProperty.value.state === "readonly",
|
|
86
|
-
size: designProperty.value.size,
|
|
87
|
-
clearable: designProperty.value.clearable,
|
|
88
|
-
placeholder: designProperty.value.placeholder,
|
|
89
|
-
modelValue: dynamicModelMethod.value,
|
|
90
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => dynamicModelMethod.value = $event),
|
|
91
|
-
rows: designProperty.value.rows ? designProperty.value.rows : 2,
|
|
92
|
-
maxlength: designProperty.value.maxLength,
|
|
93
|
-
"show-word-limit": designProperty.value.showInputNum,
|
|
94
|
-
type: "textarea",
|
|
95
|
-
onInput: _cache[1] || (_cache[1] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "input")),
|
|
96
|
-
onChange: _cache[2] || (_cache[2] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "change")),
|
|
97
|
-
onBlur: _cache[3] || (_cache[3] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "blur")),
|
|
98
|
-
onFocus: _cache[4] || (_cache[4] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "focus")),
|
|
99
|
-
onClick: _cache[5] || (_cache[5] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "click"))
|
|
100
|
-
}, null, 8, ["disabled", "readonly", "size", "clearable", "placeholder", "modelValue", "rows", "maxlength", "show-word-limit"])
|
|
101
|
-
]),
|
|
102
|
-
_: 1
|
|
103
|
-
}, 8, ["required", "class", "label-width", "style"])
|
|
104
|
-
]);
|
|
105
|
-
};
|
|
106
|
-
}
|
|
107
|
-
});
|
|
18
|
+
}), (e3, t2) => {
|
|
19
|
+
const l2 = n("el-input"), a2 = n("el-form-item");
|
|
20
|
+
return u(), r("div", null, [i(a2, { ref_key: "formItemRef", ref: F, required: !!S.value.required, class: s(f(B)), "label-width": S.value.labelWidth, style: p(f(V)) }, { label: m(() => [S.value.tittleShow ? (u(), r("div", { key: 0, ref_key: "titleRef", ref: N, style: p({ ...f(D), ...f(E) }) }, [S.value.prefixType ? (u(), c(k, { key: 0, pageContext: e3.pageContext, property: S.value }, null, 8, ["pageContext", "property"])) : (u(), r(d, { key: 1 }, [v(x(f(R)(S.value.title)), 1)], 64))], 4)) : g("", true)]), default: m(() => [i(l2, { ref_key: "componentRef", ref: L, disabled: "disabled" === S.value.state, readonly: "readonly" === S.value.state, size: S.value.size, clearable: S.value.clearable, placeholder: S.value.placeholder, modelValue: q.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => q.value = e4), rows: S.value.rows ? S.value.rows : 2, maxlength: S.value.maxLength, "show-word-limit": S.value.showInputNum, type: "textarea", onInput: t2[1] || (t2[1] = (t3) => f(b)(t3, e3.pageContext, e3.configure, "input")), onChange: t2[2] || (t2[2] = (t3) => f(b)(t3, e3.pageContext, e3.configure, "change")), onBlur: t2[3] || (t2[3] = (t3) => f(b)(t3, e3.pageContext, e3.configure, "blur")), onFocus: t2[4] || (t2[4] = (t3) => f(b)(t3, e3.pageContext, e3.configure, "focus")), onClick: t2[5] || (t2[5] = (t3) => f(b)(t3, e3.pageContext, e3.configure, "click")) }, null, 8, ["disabled", "readonly", "size", "clearable", "placeholder", "modelValue", "rows", "maxlength", "show-word-limit"])]), _: 1 }, 8, ["required", "class", "label-width", "style"])]);
|
|
21
|
+
};
|
|
22
|
+
} });
|
|
108
23
|
export {
|
|
109
|
-
|
|
24
|
+
_ as default
|
|
110
25
|
};
|
|
@@ -1,196 +1,97 @@
|
|
|
1
|
-
import { defineComponent, ref, markRaw, onMounted, resolveDirective, withDirectives, createCommentVNode, unref, createBlock, openBlock, resolveDynamicComponent, normalizeClass, normalizeStyle, vShow, nextTick } from "vue";
|
|
2
|
-
import
|
|
3
|
-
import { getRuntimeComponentByName } from "../../utils/assemblys-config.js";
|
|
4
|
-
import { PageDimensions } from "../../utils/interfaces/page-design-types.js";
|
|
5
|
-
import { addComponentRef, addComponentRefByCode } from "../../utils/global-refs.js";
|
|
6
|
-
import { getPermissionCodes, controlObjectRenderState } from "../../utils/page-init-util.js";
|
|
7
|
-
import { getFormPropName, getSizeConfig } from "../../utils/page-helper-util.js";
|
|
8
|
-
import { getPropClassName, isNumber } from "../../utils/common-util.js";
|
|
9
|
-
import { isShowComponent } from "../../utils/events/event-util.js";
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
const
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
if (
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
runtimeClass.value += " " + commonRuntime.class;
|
|
44
|
-
}
|
|
45
|
-
if (commonRuntime.style) {
|
|
46
|
-
Object.assign(runtimeStyle.value, commonRuntime.style);
|
|
47
|
-
const pageDimensions = props.pageContext && props.pageContext.dimensions ? props.pageContext.dimensions : PageDimensions.PC;
|
|
48
|
-
const sizeStyle = commonRuntime.style[pageDimensions + "_style"];
|
|
49
|
-
if (sizeStyle) {
|
|
50
|
-
Object.assign(runtimeStyle.value, sizeStyle);
|
|
51
|
-
}
|
|
52
|
-
const sizeClass = commonRuntime.style[pageDimensions + "_class"];
|
|
53
|
-
if (sizeClass) {
|
|
54
|
-
runtimeClass.value += " " + sizeClass;
|
|
1
|
+
import { defineComponent as e, ref as t, markRaw as o, onMounted as n, resolveDirective as i, withDirectives as u, createCommentVNode as s, unref as r, createBlock as l, openBlock as c, resolveDynamicComponent as p, normalizeClass as a, normalizeStyle as f, vShow as g, nextTick as v } from "vue";
|
|
2
|
+
import m from "./error-render.vue.js";
|
|
3
|
+
import { getRuntimeComponentByName as d } from "../../utils/assemblys-config.js";
|
|
4
|
+
import { PageDimensions as x } from "../../utils/interfaces/page-design-types.js";
|
|
5
|
+
import { addComponentRef as h, addComponentRefByCode as C } from "../../utils/global-refs.js";
|
|
6
|
+
import { getPermissionCodes as y, controlObjectRenderState as b } from "../../utils/page-init-util.js";
|
|
7
|
+
import { getFormPropName as w, getSizeConfig as j } from "../../utils/page-helper-util.js";
|
|
8
|
+
import { getPropClassName as _, isNumber as B } from "../../utils/common-util.js";
|
|
9
|
+
import { isShowComponent as R } from "../../utils/events/event-util.js";
|
|
10
|
+
const O = e({ __name: "home-chart-render", props: { pageContext: {}, configure: {} }, setup(e2) {
|
|
11
|
+
const O2 = e2;
|
|
12
|
+
null == O2.configure.style && (O2.configure.style = {});
|
|
13
|
+
const $ = y(O2.configure, O2.pageContext);
|
|
14
|
+
O2.configure && O2.configure.props && O2.configure.props.base && (O2.configure.props.base.functionCode = $);
|
|
15
|
+
let H = t(true), N = t(true);
|
|
16
|
+
const k = t({});
|
|
17
|
+
k.value = o(d(O2.configure.name));
|
|
18
|
+
const P = t(true);
|
|
19
|
+
null == k.value && (k.value = m, P.value = false);
|
|
20
|
+
const S = t(null), W = t({}), q = t(""), z = _(O2.configure);
|
|
21
|
+
z && (q.value = z);
|
|
22
|
+
const A = O2.configure.runtime && O2.configure.runtime.common ? O2.configure.runtime.common : {};
|
|
23
|
+
if (A.class && (q.value += " " + A.class), A.style) {
|
|
24
|
+
Object.assign(W.value, A.style);
|
|
25
|
+
const e3 = O2.pageContext && O2.pageContext.dimensions ? O2.pageContext.dimensions : x.PC, t2 = A.style[e3 + "_style"];
|
|
26
|
+
t2 && Object.assign(W.value, t2);
|
|
27
|
+
const o2 = A.style[e3 + "_class"];
|
|
28
|
+
o2 && (q.value += " " + o2);
|
|
29
|
+
}
|
|
30
|
+
function D(e3) {
|
|
31
|
+
if (S.value = e3, e3 && !e3.show && (e3.show = function() {
|
|
32
|
+
H.value = true;
|
|
33
|
+
}), e3 && !e3.hide && (e3.hide = function() {
|
|
34
|
+
H.value = false;
|
|
35
|
+
}), e3 && !e3.getConfigure && (e3.getConfigure = function() {
|
|
36
|
+
return O2.configure;
|
|
37
|
+
}), O2.configure.uuid && h(O2.pageContext, O2.configure.uuid, S), O2.configure.code) C(O2.pageContext, O2.configure.code, S);
|
|
38
|
+
else if (O2.configure.props && O2.configure.props.base) {
|
|
39
|
+
const e4 = O2.configure.props.base;
|
|
40
|
+
if (e4.prop) {
|
|
41
|
+
let t3 = e4.prop;
|
|
42
|
+
t3.startsWith("${") && (t3 = t3.substring(2, t3.length - 1)), t3.includes(".") && (t3 = t3.substring(t3.indexOf(".") + 1)), C(O2.pageContext, t3, S);
|
|
55
43
|
}
|
|
56
44
|
}
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
handleShowFlag.value = true;
|
|
62
|
-
};
|
|
63
|
-
}
|
|
64
|
-
if (el && !el.hide) {
|
|
65
|
-
el.hide = function() {
|
|
66
|
-
handleShowFlag.value = false;
|
|
67
|
-
};
|
|
68
|
-
}
|
|
69
|
-
if (el && !el.getConfigure) {
|
|
70
|
-
el.getConfigure = function() {
|
|
71
|
-
return props.configure;
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
if (props.configure.uuid) {
|
|
75
|
-
addComponentRef(props.pageContext, props.configure.uuid, thisRef);
|
|
76
|
-
}
|
|
77
|
-
if (props.configure.code) {
|
|
78
|
-
addComponentRefByCode(props.pageContext, props.configure.code, thisRef);
|
|
79
|
-
} else if (props.configure.props && props.configure.props.base) {
|
|
80
|
-
const propsBase2 = props.configure.props.base;
|
|
81
|
-
if (propsBase2.prop) {
|
|
82
|
-
let propName = propsBase2.prop;
|
|
83
|
-
if (propName.startsWith("${")) {
|
|
84
|
-
propName = propName.substring(2, propName.length - 1);
|
|
85
|
-
}
|
|
86
|
-
if (propName.includes(".")) {
|
|
87
|
-
propName = propName.substring(propName.indexOf(".") + 1);
|
|
88
|
-
}
|
|
89
|
-
addComponentRefByCode(props.pageContext, propName, thisRef);
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
const propsBase = props.configure.props ? props.configure.props.base : null;
|
|
93
|
-
if (propsBase && propsBase.prop) {
|
|
94
|
-
let propName = propsBase.prop;
|
|
95
|
-
propName = getFormPropName(propName);
|
|
96
|
-
controlObjectRenderState(props.pageContext, propName);
|
|
97
|
-
}
|
|
98
|
-
setComponentHeight();
|
|
45
|
+
const t2 = O2.configure.props ? O2.configure.props.base : null;
|
|
46
|
+
if (t2 && t2.prop) {
|
|
47
|
+
let e4 = t2.prop;
|
|
48
|
+
e4 = w(e4), b(O2.pageContext, e4);
|
|
99
49
|
}
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
50
|
+
!function() {
|
|
51
|
+
if (!S.value) return;
|
|
52
|
+
const e4 = j(O2.pageContext, O2.configure);
|
|
53
|
+
"table" !== O2.configure.name && e4 && e4.isCalcHeight && v(() => {
|
|
54
|
+
let e5 = S.value.$el;
|
|
55
|
+
e5 || (e5 = S.value);
|
|
56
|
+
const t3 = e5.parentNode;
|
|
57
|
+
if (!e5 || !t3) return;
|
|
58
|
+
const o2 = e5.getBoundingClientRect();
|
|
59
|
+
let n2 = window.innerHeight - o2.y - 80, i2 = n2 + "";
|
|
60
|
+
B(n2) && (i2 = n2 + "px"), W.value.height = i2, W.value["overflow-y"] = "auto", W.value["overflow-x"] = "hidden", O2.configure.sytle || (O2.configure.sytle = {}), O2.configure.sytle._heightStyle = i2;
|
|
61
|
+
});
|
|
62
|
+
}();
|
|
63
|
+
}
|
|
64
|
+
n(() => {
|
|
65
|
+
E();
|
|
66
|
+
});
|
|
67
|
+
const E = () => {
|
|
68
|
+
if (!S.value) return;
|
|
69
|
+
let e3 = S.value.$el;
|
|
70
|
+
e3 || (e3 = S.value);
|
|
71
|
+
const t2 = e3.parentNode;
|
|
72
|
+
if (!e3 || !t2) return;
|
|
73
|
+
const o2 = O2.configure.props ? O2.configure.props : {}, n2 = O2.configure.style ? O2.configure.style : {}, i2 = o2.position;
|
|
74
|
+
if ("top" == i2 || "bottom" == i2) {
|
|
75
|
+
const o3 = [t2];
|
|
76
|
+
if (o3 && o3.length > 0) {
|
|
77
|
+
const e4 = o3[0].getBoundingClientRect();
|
|
78
|
+
"top" == i2 && (W.value.top = e4.top + "px"), "bottom" == i2 && (W.value.bottom = "10px");
|
|
106
79
|
}
|
|
107
|
-
const
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
}
|
|
114
|
-
const parentNode = thisRefDom.parentNode;
|
|
115
|
-
if (!thisRefDom || !parentNode) {
|
|
116
|
-
return;
|
|
117
|
-
}
|
|
118
|
-
const rect = thisRefDom.getBoundingClientRect();
|
|
119
|
-
let contentHeight = window.innerHeight - rect.y - 80;
|
|
120
|
-
let heightStyle = contentHeight + "";
|
|
121
|
-
if (isNumber(contentHeight)) {
|
|
122
|
-
heightStyle = contentHeight + "px";
|
|
123
|
-
}
|
|
124
|
-
runtimeStyle.value["height"] = heightStyle;
|
|
125
|
-
runtimeStyle.value["overflow-y"] = "auto";
|
|
126
|
-
runtimeStyle.value["overflow-x"] = "hidden";
|
|
127
|
-
if (!props.configure.sytle) {
|
|
128
|
-
props.configure.sytle = {};
|
|
129
|
-
}
|
|
130
|
-
props.configure.sytle._heightStyle = heightStyle;
|
|
131
|
-
});
|
|
80
|
+
const n3 = e3.getBoundingClientRect();
|
|
81
|
+
W.value.width = n3.width + "px";
|
|
82
|
+
} else if (n2.position && (W.value.position = n2.position, "relative" != W.value.position)) {
|
|
83
|
+
if (!W.value.width) {
|
|
84
|
+
const t3 = e3.getBoundingClientRect();
|
|
85
|
+
W.value.width = t3.width + "px";
|
|
132
86
|
}
|
|
87
|
+
n2.left && (W.value.left = n2.left + "px"), n2.top && (W.value.top = n2.top + "px");
|
|
133
88
|
}
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
thisRefDom = thisRef.value;
|
|
141
|
-
}
|
|
142
|
-
const parentNode = thisRefDom.parentNode;
|
|
143
|
-
if (!thisRefDom || !parentNode) {
|
|
144
|
-
return;
|
|
145
|
-
}
|
|
146
|
-
const thisProps = props.configure.props ? props.configure.props : {};
|
|
147
|
-
const thisStyle = props.configure.style ? props.configure.style : {};
|
|
148
|
-
const position = thisProps.position;
|
|
149
|
-
if (position == "top" || position == "bottom") {
|
|
150
|
-
const contentObj = [parentNode];
|
|
151
|
-
if (contentObj && contentObj.length > 0) {
|
|
152
|
-
const contentRec = contentObj[0].getBoundingClientRect();
|
|
153
|
-
if (position == "top") {
|
|
154
|
-
runtimeStyle.value["top"] = contentRec.top + "px";
|
|
155
|
-
}
|
|
156
|
-
if (position == "bottom") {
|
|
157
|
-
runtimeStyle.value["bottom"] = "10px";
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
const thisRec = thisRefDom.getBoundingClientRect();
|
|
161
|
-
runtimeStyle.value["width"] = thisRec.width + "px";
|
|
162
|
-
} else if (thisStyle.position) {
|
|
163
|
-
runtimeStyle.value["position"] = thisStyle.position;
|
|
164
|
-
if (runtimeStyle.value.position != "relative") {
|
|
165
|
-
if (!runtimeStyle.value["width"]) {
|
|
166
|
-
const thisRec = thisRefDom.getBoundingClientRect();
|
|
167
|
-
runtimeStyle.value["width"] = thisRec.width + "px";
|
|
168
|
-
}
|
|
169
|
-
if (thisStyle.left) {
|
|
170
|
-
runtimeStyle.value["left"] = thisStyle.left + "px";
|
|
171
|
-
}
|
|
172
|
-
if (thisStyle.top) {
|
|
173
|
-
runtimeStyle.value["top"] = thisStyle.top + "px";
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
};
|
|
178
|
-
return (_ctx, _cache) => {
|
|
179
|
-
const _directive_permission = resolveDirective("permission");
|
|
180
|
-
return unref(isShowComponent)(_ctx.configure) ? withDirectives((openBlock(), createBlock(resolveDynamicComponent(dynamicComponent.value), {
|
|
181
|
-
key: 0,
|
|
182
|
-
ref: setComponentRef,
|
|
183
|
-
style: normalizeStyle(runtimeStyle.value),
|
|
184
|
-
class: normalizeClass(runtimeClass.value),
|
|
185
|
-
configure: _ctx.configure,
|
|
186
|
-
pageContext: _ctx.pageContext
|
|
187
|
-
}, null, 8, ["style", "class", "configure", "pageContext"])), [
|
|
188
|
-
[vShow, unref(showFlag)],
|
|
189
|
-
[_directive_permission, unref(permissionCodes) ? unref(permissionCodes) : "true"]
|
|
190
|
-
]) : createCommentVNode("", true);
|
|
191
|
-
};
|
|
192
|
-
}
|
|
193
|
-
});
|
|
89
|
+
};
|
|
90
|
+
return (e3, t2) => {
|
|
91
|
+
const o2 = i("permission");
|
|
92
|
+
return r(R)(e3.configure) ? u((c(), l(p(k.value), { key: 0, ref: D, style: f(W.value), class: a(q.value), configure: e3.configure, pageContext: e3.pageContext }, null, 8, ["style", "class", "configure", "pageContext"])), [[g, r(N)], [o2, r($) ? r($) : "true"]]) : s("", true);
|
|
93
|
+
};
|
|
94
|
+
} });
|
|
194
95
|
export {
|
|
195
|
-
|
|
96
|
+
O as default
|
|
196
97
|
};
|