super-page-runtime 2.1.93 → 2.1.95
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 +6 -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 +137 -433
- package/dist/es/components/runtime/utils/assemblys-config.js +12 -366
- package/dist/es/components/runtime/utils/barcode-util.js +10 -33
- package/dist/es/components/runtime/utils/charts/chart-columnline-util.js +138 -303
- package/dist/es/components/runtime/utils/charts/chart-gauge-util.js +29 -66
- package/dist/es/components/runtime/utils/charts/chart-pie-util.js +71 -147
- package/dist/es/components/runtime/utils/charts/chart-radar-util.js +52 -122
- package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +40 -98
- package/dist/es/components/runtime/utils/charts/chart-util.js +237 -478
- package/dist/es/components/runtime/utils/common-util.js +82 -152
- package/dist/es/components/runtime/utils/eventBus.js +3 -9
- package/dist/es/components/runtime/utils/events/event-util.js +361 -727
- package/dist/es/components/runtime/utils/events/print-label.js +73 -140
- package/dist/es/components/runtime/utils/events/standard-event.js +835 -2283
- package/dist/es/components/runtime/utils/events/validator-util.js +236 -555
- package/dist/es/components/runtime/utils/form/date-shortcuts.js +29 -88
- package/dist/es/components/runtime/utils/form/scan-util.js +60 -154
- package/dist/es/components/runtime/utils/global-refs.js +45 -69
- package/dist/es/components/runtime/utils/i18n-util.js +12 -20
- package/dist/es/components/runtime/utils/interfaces/page-design-types.js +2 -7
- package/dist/es/components/runtime/utils/page-helper-util.js +295 -603
- package/dist/es/components/runtime/utils/page-init-util.js +134 -369
- package/dist/es/components/runtime/utils/page-permission-util.js +24 -531
- 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 +49 -84
- package/dist/es/components/runtime/utils/tree-utils.js +18 -36
- 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 +37 -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 +54 -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 +48 -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/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.js +208 -439
- 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 +63 -226
- 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 +168 -513
- 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 +23 -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 +311 -800
- 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 +251 -592
- 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 +43 -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 -216
- 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 +44 -154
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +36 -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 +54 -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 +69 -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 +28 -98
- 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 +22 -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 +52 -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 +58 -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 +34 -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 +66 -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 +91 -243
- 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 +82 -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 +41 -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/object-render.vue.js +133 -252
- 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 +19 -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 +22 -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 +21 -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/super-page-dialog.vue.js +18 -134
- package/dist/es/components/runtime/views/super-page-dialog.vue2.js +2 -2
- package/dist/es/components/runtime/views/super-page.vue.js +232 -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/package.json +74 -73
package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js
CHANGED
|
@@ -1,247 +1,77 @@
|
|
|
1
|
-
import { defineComponent, ref, onMounted, nextTick, computed, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementBlock, Fragment, createTextVNode, toDisplayString, createCommentVNode } from "vue";
|
|
2
|
-
import { getFormModelFields } from "../../../../utils/page-init-util.js";
|
|
3
|
-
import { getDateShortCuts } from "../../../../utils/form/date-shortcuts.js";
|
|
4
|
-
import { getValueFromVariable, setVariableValue, getVariableValue } from "../../../../utils/page-helper-util.js";
|
|
5
|
-
import { handleAfterInitEvent, getCustomFunc, handleFormEvent } from "../../../../utils/events/event-util.js";
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import { $t } from "../../../../utils/i18n-util.js";
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
|
|
19
|
-
const runtimeStyle = runtimeInfo.style;
|
|
20
|
-
const runtimeClass = runtimeInfo.class;
|
|
21
|
-
const headerStyle = runtimeInfo.headerStyle;
|
|
22
|
-
const titleExceedStyle = runtimeInfo.titleExceedStyle;
|
|
23
|
-
const designProperty = ref(runtimeInfo.props ? runtimeInfo.props : {});
|
|
24
|
-
let dynamicFields = getFormModelFields(props.pageContext, props.configure);
|
|
25
|
-
console.log("designProperty", designProperty);
|
|
26
|
-
let dynamicFields2 = null;
|
|
27
|
-
let isRange = false;
|
|
28
|
-
if (designProperty.value.dateType && designProperty.value.dateType.includes("range")) {
|
|
29
|
-
isRange = true;
|
|
30
|
-
let propName = designProperty.value.prop2;
|
|
31
|
-
if (!propName || !propName.startsWith("${")) {
|
|
32
|
-
propName = "${page." + props.configure.uuid + "-2}";
|
|
33
|
-
}
|
|
34
|
-
propName = propName.substring(2, propName.length - 1);
|
|
35
|
-
dynamicFields2 = propName.split(".");
|
|
36
|
-
if (!entity.data || !entity.data.id && !entity.data.ID) {
|
|
37
|
-
if (designProperty.value.defaultValue2) {
|
|
38
|
-
const defaultValue2 = getValueFromVariable(entity, designProperty.value.defaultValue2);
|
|
39
|
-
setVariableValue(entity, dynamicFields2, defaultValue2);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
const formItemRef = ref(null);
|
|
44
|
-
const componentRef = ref(null);
|
|
45
|
-
const titleRef = ref(null);
|
|
46
|
-
onMounted(() => {
|
|
47
|
-
nextTick(() => {
|
|
48
|
-
const value = dynamicModelMethod.value;
|
|
49
|
-
handleAfterInitEvent(
|
|
50
|
-
value,
|
|
51
|
-
props.pageContext,
|
|
52
|
-
props.configure,
|
|
53
|
-
{
|
|
54
|
-
formItemRef: formItemRef.value,
|
|
55
|
-
componentRef: componentRef.value,
|
|
56
|
-
titleRef: titleRef.value,
|
|
57
|
-
value,
|
|
58
|
-
entity: props.pageContext.entity.data,
|
|
59
|
-
pageData: props.pageContext.entity.page
|
|
60
|
-
}
|
|
61
|
-
);
|
|
62
|
-
});
|
|
63
|
-
});
|
|
64
|
-
function formatDate(value, formatStr) {
|
|
65
|
-
if (!value) {
|
|
66
|
-
return value;
|
|
67
|
-
}
|
|
68
|
-
if (formatStr) {
|
|
69
|
-
try {
|
|
70
|
-
const convertValue = dayjs(value);
|
|
71
|
-
let value2 = null;
|
|
72
|
-
if (formatStr === "x") {
|
|
73
|
-
value2 = convertValue.toDate().getTime();
|
|
74
|
-
} else {
|
|
75
|
-
value2 = dayjs(value).format(formatStr);
|
|
76
|
-
}
|
|
77
|
-
return value2;
|
|
78
|
-
} catch (e) {
|
|
79
|
-
console.error("日期值格式化错误", e);
|
|
80
|
-
console.error(`value: ${value} ,valueFormat: ${designProperty.value.valueFormat}`);
|
|
81
|
-
return value;
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
return value;
|
|
85
|
-
}
|
|
86
|
-
if (dynamicFields) {
|
|
87
|
-
const hisValue = getVariableValue(entity, dynamicFields);
|
|
88
|
-
const newValue = formatDate(hisValue, designProperty.value.valueFormat);
|
|
89
|
-
if (hisValue !== newValue) {
|
|
90
|
-
setVariableValue(entity, dynamicFields, newValue);
|
|
91
|
-
}
|
|
1
|
+
import { defineComponent as e, ref as a, onMounted as l, nextTick as t, computed as r, resolveComponent as o, openBlock as u, createBlock as n, normalizeClass as i, unref as p, normalizeStyle as s, withCtx as c, createElementBlock as d, Fragment as v, createTextVNode as f, toDisplayString as g, createCommentVNode as m } from "vue";
|
|
2
|
+
import { getFormModelFields as h } from "../../../../utils/page-init-util.js";
|
|
3
|
+
import { getDateShortCuts as y } from "../../../../utils/form/date-shortcuts.js";
|
|
4
|
+
import { getValueFromVariable as C, setVariableValue as x, getVariableValue as b } from "../../../../utils/page-helper-util.js";
|
|
5
|
+
import { handleAfterInitEvent as k, getCustomFunc as F, handleFormEvent as T } from "../../../../utils/events/event-util.js";
|
|
6
|
+
import V from "../common/title-suffix-element.vue.js";
|
|
7
|
+
import j from "dayjs";
|
|
8
|
+
import { $t as R } from "../../../../utils/i18n-util.js";
|
|
9
|
+
const _ = e({ __name: "datepicker-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
|
|
10
|
+
const _2 = e2, z = _2.pageContext.entity ? _2.pageContext.entity : {}, P = _2.configure.runtime ? _2.configure.runtime : {}, w = P.style, A = P.class, D = P.headerStyle, S = P.titleExceedStyle, q = a(P.props ? P.props : {});
|
|
11
|
+
let I = h(_2.pageContext, _2.configure), B = null, U = false;
|
|
12
|
+
if (q.value.dateType && q.value.dateType.includes("range")) {
|
|
13
|
+
U = true;
|
|
14
|
+
let e3 = q.value.prop2;
|
|
15
|
+
if (e3 && e3.startsWith("${") || (e3 = "${page." + _2.configure.uuid + "-2}"), e3 = e3.substring(2, e3.length - 1), B = e3.split("."), (!z.data || !z.data.id && !z.data.ID) && q.value.defaultValue2) {
|
|
16
|
+
const e4 = C(z, q.value.defaultValue2);
|
|
17
|
+
x(z, B, e4);
|
|
92
18
|
}
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
values.push(formatDate(value1, designProperty.value.valueFormat));
|
|
106
|
-
let value2 = getVariableValue(entity, dynamicFields2);
|
|
107
|
-
values.push(formatDate(value2, designProperty.value.valueFormat));
|
|
108
|
-
return values;
|
|
109
|
-
} else {
|
|
110
|
-
let value1 = getVariableValue(entity, dynamicFields);
|
|
111
|
-
return formatDate(value1, designProperty.value.valueFormat);
|
|
112
|
-
}
|
|
113
|
-
},
|
|
114
|
-
set(value) {
|
|
115
|
-
if (isRange) {
|
|
116
|
-
if (Array.isArray(value)) {
|
|
117
|
-
setVariableValue(entity, dynamicFields, value[0]);
|
|
118
|
-
setVariableValue(entity, dynamicFields2, value[1]);
|
|
119
|
-
} else if (value === null) {
|
|
120
|
-
setVariableValue(entity, dynamicFields, null);
|
|
121
|
-
setVariableValue(entity, dynamicFields2, null);
|
|
122
|
-
}
|
|
123
|
-
} else {
|
|
124
|
-
setVariableValue(entity, dynamicFields, value);
|
|
125
|
-
}
|
|
19
|
+
}
|
|
20
|
+
const W = a(null), $ = a(null), E = a(null);
|
|
21
|
+
function O(e3, a2) {
|
|
22
|
+
if (!e3)
|
|
23
|
+
return e3;
|
|
24
|
+
if (a2)
|
|
25
|
+
try {
|
|
26
|
+
const l2 = j(e3);
|
|
27
|
+
let t2 = null;
|
|
28
|
+
return t2 = "x" === a2 ? l2.toDate().getTime() : j(e3).format(a2), t2;
|
|
29
|
+
} catch (a3) {
|
|
30
|
+
return e3;
|
|
126
31
|
}
|
|
32
|
+
return e3;
|
|
33
|
+
}
|
|
34
|
+
if (l(() => {
|
|
35
|
+
t(() => {
|
|
36
|
+
const e3 = G.value;
|
|
37
|
+
k(e3, _2.pageContext, _2.configure, { formItemRef: W.value, componentRef: $.value, titleRef: E.value, value: e3, entity: _2.pageContext.entity.data, pageData: _2.pageContext.entity.page });
|
|
127
38
|
});
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
);
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
}
|
|
39
|
+
}), I) {
|
|
40
|
+
const e3 = b(z, I), a2 = O(e3, q.value.valueFormat);
|
|
41
|
+
e3 !== a2 && x(z, I, a2);
|
|
42
|
+
}
|
|
43
|
+
if (B) {
|
|
44
|
+
const e3 = b(z, B), a2 = O(e3, q.value.valueFormat);
|
|
45
|
+
e3 !== a2 && x(z, B, a2);
|
|
46
|
+
}
|
|
47
|
+
const G = r({ get() {
|
|
48
|
+
if (U) {
|
|
49
|
+
const e3 = [];
|
|
50
|
+
let a2 = b(z, I);
|
|
51
|
+
e3.push(O(a2, q.value.valueFormat));
|
|
52
|
+
let l2 = b(z, B);
|
|
53
|
+
return e3.push(O(l2, q.value.valueFormat)), e3;
|
|
54
|
+
}
|
|
55
|
+
return O(b(z, I), q.value.valueFormat);
|
|
56
|
+
}, set(e3) {
|
|
57
|
+
U ? Array.isArray(e3) ? (x(z, I, e3[0]), x(z, B, e3[1])) : null === e3 && (x(z, I, null), x(z, B, null)) : x(z, I, e3);
|
|
58
|
+
} }), H = a(y(q.value.dateScopeDetails, q.value.sourceType, q.value.dateType));
|
|
59
|
+
if (q.value.shortcutsFunc) {
|
|
60
|
+
const e3 = F(_2.pageContext, q.value.shortcutsFunc);
|
|
61
|
+
if (e3) {
|
|
62
|
+
let a2 = e3.apply(e3, [{ pageContext: _2.pageContext, configureObj: _2.configure }]);
|
|
63
|
+
if (a2) {
|
|
64
|
+
Array.isArray(a2) || (a2 = [a2]), H.value || (H.value = []);
|
|
65
|
+
for (let e4 of a2)
|
|
66
|
+
e4.text && e4.value && H.value.push(e4);
|
|
157
67
|
}
|
|
158
68
|
}
|
|
159
|
-
return (_ctx, _cache) => {
|
|
160
|
-
const _component_el_time_picker = resolveComponent("el-time-picker");
|
|
161
|
-
const _component_el_date_picker = resolveComponent("el-date-picker");
|
|
162
|
-
const _component_el_form_item = resolveComponent("el-form-item");
|
|
163
|
-
return openBlock(), createBlock(_component_el_form_item, {
|
|
164
|
-
ref_key: "formItemRef",
|
|
165
|
-
ref: formItemRef,
|
|
166
|
-
required: designProperty.value.required,
|
|
167
|
-
class: normalizeClass(unref(runtimeClass)),
|
|
168
|
-
"label-width": designProperty.value.labelWidth,
|
|
169
|
-
style: normalizeStyle(unref(runtimeStyle))
|
|
170
|
-
}, {
|
|
171
|
-
label: withCtx(() => [
|
|
172
|
-
designProperty.value.tittleShow ? (openBlock(), createElementBlock("div", {
|
|
173
|
-
key: 0,
|
|
174
|
-
ref_key: "titleRef",
|
|
175
|
-
ref: titleRef,
|
|
176
|
-
style: normalizeStyle({ ...unref(headerStyle), ...unref(titleExceedStyle) })
|
|
177
|
-
}, [
|
|
178
|
-
designProperty.value.prefixType ? (openBlock(), createBlock(_sfc_main$1, {
|
|
179
|
-
key: 0,
|
|
180
|
-
pageContext: _ctx.pageContext,
|
|
181
|
-
property: designProperty.value
|
|
182
|
-
}, null, 8, ["pageContext", "property"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
183
|
-
createTextVNode(toDisplayString(unref($t)(designProperty.value.title)), 1)
|
|
184
|
-
], 64))
|
|
185
|
-
], 4)) : createCommentVNode("", true)
|
|
186
|
-
]),
|
|
187
|
-
default: withCtx(() => [
|
|
188
|
-
designProperty.value.dateType == "time" || designProperty.value.dateType == "timerange" ? (openBlock(), createBlock(_component_el_time_picker, {
|
|
189
|
-
key: 0,
|
|
190
|
-
ref_key: "componentRef",
|
|
191
|
-
ref: componentRef,
|
|
192
|
-
"is-range": designProperty.value.dateType == "timerange",
|
|
193
|
-
style: { "width": "100%" },
|
|
194
|
-
"range-separator": "-",
|
|
195
|
-
clearable: designProperty.value.clearable,
|
|
196
|
-
disabled: designProperty.value.state === "disabled",
|
|
197
|
-
readonly: designProperty.value.state === "readonly",
|
|
198
|
-
size: designProperty.value.size,
|
|
199
|
-
placeholder: designProperty.value.placeholder,
|
|
200
|
-
"start-placeholder": designProperty.value.placeholder,
|
|
201
|
-
"end-placeholder": designProperty.value.endPlaceholder ? designProperty.value.endPlaceholder : designProperty.value.placeholder,
|
|
202
|
-
format: designProperty.value.format,
|
|
203
|
-
"value-format": designProperty.value.valueFormat,
|
|
204
|
-
modelValue: dynamicModelMethod.value,
|
|
205
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => dynamicModelMethod.value = $event),
|
|
206
|
-
shortcuts: shortcuts.value,
|
|
207
|
-
type: designProperty.value.dateType,
|
|
208
|
-
onChange: _cache[1] || (_cache[1] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "change")),
|
|
209
|
-
onBlur: _cache[2] || (_cache[2] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "blur")),
|
|
210
|
-
onFocus: _cache[3] || (_cache[3] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "focus")),
|
|
211
|
-
onVisibleChange: _cache[4] || (_cache[4] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "visible-change")),
|
|
212
|
-
onPanelChange: _cache[5] || (_cache[5] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "panel-change")),
|
|
213
|
-
onClear: _cache[6] || (_cache[6] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "clear"))
|
|
214
|
-
}, null, 8, ["is-range", "clearable", "disabled", "readonly", "size", "placeholder", "start-placeholder", "end-placeholder", "format", "value-format", "modelValue", "shortcuts", "type"])) : (openBlock(), createBlock(_component_el_date_picker, {
|
|
215
|
-
key: 1,
|
|
216
|
-
ref_key: "componentRef",
|
|
217
|
-
ref: componentRef,
|
|
218
|
-
clearable: designProperty.value.clearable,
|
|
219
|
-
style: { "width": "100%" },
|
|
220
|
-
disabled: designProperty.value.state === "disabled",
|
|
221
|
-
readonly: designProperty.value.state === "readonly",
|
|
222
|
-
size: designProperty.value.size,
|
|
223
|
-
placeholder: designProperty.value.placeholder,
|
|
224
|
-
"start-placeholder": designProperty.value.placeholder,
|
|
225
|
-
"end-placeholder": designProperty.value.endPlaceholder ? designProperty.value.endPlaceholder : designProperty.value.placeholder,
|
|
226
|
-
format: designProperty.value.format,
|
|
227
|
-
"value-format": designProperty.value.valueFormat,
|
|
228
|
-
modelValue: dynamicModelMethod.value,
|
|
229
|
-
"onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => dynamicModelMethod.value = $event),
|
|
230
|
-
shortcuts: shortcuts.value,
|
|
231
|
-
type: designProperty.value.dateType,
|
|
232
|
-
onChange: _cache[8] || (_cache[8] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "change")),
|
|
233
|
-
onBlur: _cache[9] || (_cache[9] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "blur")),
|
|
234
|
-
onFocus: _cache[10] || (_cache[10] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "focus")),
|
|
235
|
-
onVisibleChange: _cache[11] || (_cache[11] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "visible-change")),
|
|
236
|
-
onPanelChange: _cache[12] || (_cache[12] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "panel-change")),
|
|
237
|
-
onClear: _cache[13] || (_cache[13] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "clear"))
|
|
238
|
-
}, null, 8, ["clearable", "disabled", "readonly", "size", "placeholder", "start-placeholder", "end-placeholder", "format", "value-format", "modelValue", "shortcuts", "type"]))
|
|
239
|
-
]),
|
|
240
|
-
_: 1
|
|
241
|
-
}, 8, ["required", "class", "label-width", "style"]);
|
|
242
|
-
};
|
|
243
69
|
}
|
|
244
|
-
|
|
70
|
+
return (e3, a2) => {
|
|
71
|
+
const l2 = o("el-time-picker"), t2 = o("el-date-picker"), r2 = o("el-form-item");
|
|
72
|
+
return u(), n(r2, { ref_key: "formItemRef", ref: W, required: q.value.required, class: i(p(A)), "label-width": q.value.labelWidth, style: s(p(w)) }, { label: c(() => [q.value.tittleShow ? (u(), d("div", { key: 0, ref_key: "titleRef", ref: E, style: s({ ...p(D), ...p(S) }) }, [q.value.prefixType ? (u(), n(V, { key: 0, pageContext: e3.pageContext, property: q.value }, null, 8, ["pageContext", "property"])) : (u(), d(v, { key: 1 }, [f(g(p(R)(q.value.title)), 1)], 64))], 4)) : m("", true)]), default: c(() => ["time" == q.value.dateType || "timerange" == q.value.dateType ? (u(), n(l2, { key: 0, ref_key: "componentRef", ref: $, "is-range": "timerange" == q.value.dateType, style: { width: "100%" }, "range-separator": "-", clearable: q.value.clearable, disabled: "disabled" === q.value.state, readonly: "readonly" === q.value.state, size: q.value.size, placeholder: q.value.placeholder, "start-placeholder": q.value.placeholder, "end-placeholder": q.value.endPlaceholder ? q.value.endPlaceholder : q.value.placeholder, format: q.value.format, "value-format": q.value.valueFormat, modelValue: G.value, "onUpdate:modelValue": a2[0] || (a2[0] = (e4) => G.value = e4), shortcuts: H.value, type: q.value.dateType, onChange: a2[1] || (a2[1] = (a3) => p(T)(a3, e3.pageContext, e3.configure, "change")), onBlur: a2[2] || (a2[2] = (a3) => p(T)(a3, e3.pageContext, e3.configure, "blur")), onFocus: a2[3] || (a2[3] = (a3) => p(T)(a3, e3.pageContext, e3.configure, "focus")), onVisibleChange: a2[4] || (a2[4] = (a3) => p(T)(a3, e3.pageContext, e3.configure, "visible-change")), onPanelChange: a2[5] || (a2[5] = (a3) => p(T)(a3, e3.pageContext, e3.configure, "panel-change")), onClear: a2[6] || (a2[6] = (a3) => p(T)(a3, e3.pageContext, e3.configure, "clear")) }, null, 8, ["is-range", "clearable", "disabled", "readonly", "size", "placeholder", "start-placeholder", "end-placeholder", "format", "value-format", "modelValue", "shortcuts", "type"])) : (u(), n(t2, { key: 1, ref_key: "componentRef", ref: $, clearable: q.value.clearable, style: { width: "100%" }, disabled: "disabled" === q.value.state, readonly: "readonly" === q.value.state, size: q.value.size, placeholder: q.value.placeholder, "start-placeholder": q.value.placeholder, "end-placeholder": q.value.endPlaceholder ? q.value.endPlaceholder : q.value.placeholder, format: q.value.format, "value-format": q.value.valueFormat, modelValue: G.value, "onUpdate:modelValue": a2[7] || (a2[7] = (e4) => G.value = e4), shortcuts: H.value, type: q.value.dateType, onChange: a2[8] || (a2[8] = (a3) => p(T)(a3, e3.pageContext, e3.configure, "change")), onBlur: a2[9] || (a2[9] = (a3) => p(T)(a3, e3.pageContext, e3.configure, "blur")), onFocus: a2[10] || (a2[10] = (a3) => p(T)(a3, e3.pageContext, e3.configure, "focus")), onVisibleChange: a2[11] || (a2[11] = (a3) => p(T)(a3, e3.pageContext, e3.configure, "visible-change")), onPanelChange: a2[12] || (a2[12] = (a3) => p(T)(a3, e3.pageContext, e3.configure, "panel-change")), onClear: a2[13] || (a2[13] = (a3) => p(T)(a3, e3.pageContext, e3.configure, "clear")) }, null, 8, ["clearable", "disabled", "readonly", "size", "placeholder", "start-placeholder", "end-placeholder", "format", "value-format", "modelValue", "shortcuts", "type"]))]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
|
|
73
|
+
};
|
|
74
|
+
} });
|
|
245
75
|
export {
|
|
246
|
-
|
|
76
|
+
_ as default
|
|
247
77
|
};
|
|
@@ -1,108 +1,38 @@
|
|
|
1
|
-
import { defineComponent, ref, onMounted, nextTick, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementBlock, Fragment, createTextVNode, toDisplayString, createCommentVNode, createVNode } from "vue";
|
|
2
|
-
import { getFormModelFields } from "../../../../utils/page-init-util.js";
|
|
3
|
-
import { handleAfterInitEvent, handleFormEvent } from "../../../../utils/events/event-util.js";
|
|
4
|
-
import
|
|
5
|
-
import { $t } from "../../../../utils/i18n-util.js";
|
|
1
|
+
import { defineComponent as e, ref as t, onMounted as l, nextTick as i, resolveComponent as u, openBlock as a, createBlock as r, normalizeClass as o, unref as n, normalizeStyle as s, withCtx as p, createElementBlock as f, Fragment as m, createTextVNode as c, toDisplayString as d, createCommentVNode as g, createVNode as v } from "vue";
|
|
2
|
+
import { getFormModelFields as y } from "../../../../utils/page-init-util.js";
|
|
3
|
+
import { handleAfterInitEvent as x, handleFormEvent as b } from "../../../../utils/events/event-util.js";
|
|
4
|
+
import C from "../common/title-suffix-element.vue.js";
|
|
5
|
+
import { $t as h } from "../../../../utils/i18n-util.js";
|
|
6
6
|
import "agilebuilder-ui/src/utils/request";
|
|
7
7
|
import "dayjs";
|
|
8
8
|
import "agilebuilder-ui/src/utils/calculator/calculator-util";
|
|
9
9
|
import "../../../../utils/global-refs.js";
|
|
10
10
|
import "agilebuilder-ui/src/utils/common-util";
|
|
11
11
|
import "agilebuilder-ui/src/utils/util";
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
},
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
entity.data = {};
|
|
23
|
-
}
|
|
24
|
-
const dataModel = entity.data;
|
|
25
|
-
let dynamicFields = getFormModelFields(props.pageContext, props.configure);
|
|
26
|
-
const fieldName = dynamicFields.length > 0 ? dynamicFields[dynamicFields.length - 1] : props.configure.uuid;
|
|
27
|
-
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
|
|
28
|
-
const designProperty = ref(runtimeInfo.props ? runtimeInfo.props : {});
|
|
29
|
-
const runtimeStyle = runtimeInfo.style;
|
|
30
|
-
const runtimeClass = runtimeInfo.class;
|
|
31
|
-
const headerStyle = runtimeInfo.headerStyle;
|
|
32
|
-
const titleExceedStyle = runtimeInfo.titleExceedStyle;
|
|
33
|
-
const formItemRef = ref(null);
|
|
34
|
-
const componentRef = ref(null);
|
|
35
|
-
const titleRef = ref(null);
|
|
36
|
-
onMounted(() => {
|
|
37
|
-
nextTick(() => {
|
|
38
|
-
const value = dataModel ? dataModel[fieldName] : null;
|
|
39
|
-
handleAfterInitEvent(value, props.pageContext, props.configure, {
|
|
40
|
-
formItemRef: formItemRef.value,
|
|
41
|
-
componentRef: componentRef.value,
|
|
42
|
-
titleRef: titleRef.value,
|
|
43
|
-
value,
|
|
44
|
-
entity: props.pageContext.entity.data,
|
|
45
|
-
pageData: props.pageContext.entity.page
|
|
46
|
-
});
|
|
47
|
-
});
|
|
12
|
+
const k = e({ __name: "depttree-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
|
|
13
|
+
const k2 = e2, S = k2.pageContext.entity ? k2.pageContext.entity : {};
|
|
14
|
+
S.data || (S.data = {});
|
|
15
|
+
const j = S.data;
|
|
16
|
+
let R = y(k2.pageContext, k2.configure);
|
|
17
|
+
const _ = R.length > 0 ? R[R.length - 1] : k2.configure.uuid, T = k2.configure.runtime ? k2.configure.runtime : {}, q = t(T.props ? T.props : {}), w = T.style, z = T.class, I = T.headerStyle, F = T.titleExceedStyle, D = t(null), E = t(null), O = t(null);
|
|
18
|
+
l(() => {
|
|
19
|
+
i(() => {
|
|
20
|
+
const e3 = j ? j[_] : null;
|
|
21
|
+
x(e3, k2.pageContext, k2.configure, { formItemRef: D.value, componentRef: E.value, titleRef: O.value, value: e3, entity: k2.pageContext.entity.data, pageData: k2.pageContext.entity.page });
|
|
48
22
|
});
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
function showTree() {
|
|
56
|
-
handleFormEvent(null, props.pageContext, props.configure, "click");
|
|
57
|
-
}
|
|
58
|
-
return (_ctx, _cache) => {
|
|
59
|
-
const _component_OrganizationInput = resolveComponent("OrganizationInput");
|
|
60
|
-
const _component_el_form_item = resolveComponent("el-form-item");
|
|
61
|
-
return openBlock(), createBlock(_component_el_form_item, {
|
|
62
|
-
ref_key: "formItemRef",
|
|
63
|
-
ref: formItemRef,
|
|
64
|
-
required: designProperty.value.required,
|
|
65
|
-
class: normalizeClass(unref(runtimeClass)),
|
|
66
|
-
"label-width": designProperty.value.labelWidth,
|
|
67
|
-
style: normalizeStyle(unref(runtimeStyle))
|
|
68
|
-
}, {
|
|
69
|
-
label: withCtx(() => [
|
|
70
|
-
designProperty.value.tittleShow ? (openBlock(), createElementBlock("div", {
|
|
71
|
-
key: 0,
|
|
72
|
-
ref_key: "titleRef",
|
|
73
|
-
ref: titleRef,
|
|
74
|
-
style: normalizeStyle({ ...unref(headerStyle), ...unref(titleExceedStyle) })
|
|
75
|
-
}, [
|
|
76
|
-
designProperty.value.prefixType ? (openBlock(), createBlock(_sfc_main$1, {
|
|
77
|
-
key: 0,
|
|
78
|
-
pageContext: _ctx.pageContext,
|
|
79
|
-
property: designProperty.value
|
|
80
|
-
}, null, 8, ["pageContext", "property"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
81
|
-
createTextVNode(toDisplayString(unref($t)(designProperty.value.title)), 1)
|
|
82
|
-
], 64))
|
|
83
|
-
], 4)) : createCommentVNode("", true)
|
|
84
|
-
]),
|
|
85
|
-
default: withCtx(() => [
|
|
86
|
-
createVNode(_component_OrganizationInput, {
|
|
87
|
-
ref_key: "componentRef",
|
|
88
|
-
ref: componentRef,
|
|
89
|
-
disabled: designProperty.value.state == "disabled",
|
|
90
|
-
multiple: designProperty.value.multiple,
|
|
91
|
-
treeType: designProperty.value.treeType,
|
|
92
|
-
value: unref(dataModel)[unref(fieldName)],
|
|
93
|
-
models: unref(dataModel),
|
|
94
|
-
fields: unref(autoSetFields),
|
|
95
|
-
size: designProperty.value.size,
|
|
96
|
-
separator: designProperty.value.separator,
|
|
97
|
-
onSetValue: changeValue,
|
|
98
|
-
onShowTree: showTree
|
|
99
|
-
}, null, 8, ["disabled", "multiple", "treeType", "value", "models", "fields", "size", "separator"])
|
|
100
|
-
]),
|
|
101
|
-
_: 1
|
|
102
|
-
}, 8, ["required", "class", "label-width", "style"]);
|
|
103
|
-
};
|
|
23
|
+
});
|
|
24
|
+
const V = q.value.autoSetFields ? q.value.autoSetFields : [];
|
|
25
|
+
function W(e3, t2) {
|
|
26
|
+
e3 === _ && b(t2, k2.pageContext, k2.configure, "change");
|
|
104
27
|
}
|
|
105
|
-
|
|
28
|
+
function A() {
|
|
29
|
+
b(null, k2.pageContext, k2.configure, "click");
|
|
30
|
+
}
|
|
31
|
+
return (e3, t2) => {
|
|
32
|
+
const l2 = u("OrganizationInput"), i2 = u("el-form-item");
|
|
33
|
+
return a(), r(i2, { ref_key: "formItemRef", ref: D, required: q.value.required, class: o(n(z)), "label-width": q.value.labelWidth, style: s(n(w)) }, { label: p(() => [q.value.tittleShow ? (a(), f("div", { key: 0, ref_key: "titleRef", ref: O, style: s({ ...n(I), ...n(F) }) }, [q.value.prefixType ? (a(), r(C, { key: 0, pageContext: e3.pageContext, property: q.value }, null, 8, ["pageContext", "property"])) : (a(), f(m, { key: 1 }, [c(d(n(h)(q.value.title)), 1)], 64))], 4)) : g("", true)]), default: p(() => [v(l2, { ref_key: "componentRef", ref: E, disabled: "disabled" == q.value.state, multiple: q.value.multiple, treeType: q.value.treeType, value: n(j)[n(_)], models: n(j), fields: n(V), size: q.value.size, separator: q.value.separator, onSetValue: W, onShowTree: A }, null, 8, ["disabled", "multiple", "treeType", "value", "models", "fields", "size", "separator"])]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
|
|
34
|
+
};
|
|
35
|
+
} });
|
|
106
36
|
export {
|
|
107
|
-
|
|
37
|
+
k as default
|
|
108
38
|
};
|
|
@@ -1,62 +1,25 @@
|
|
|
1
|
-
import { defineComponent, ref, computed, onMounted, nextTick, resolveComponent, openBlock, createBlock, unref, withCtx, createElementVNode, normalizeStyle, toDisplayString } from "vue";
|
|
2
|
-
import { formatVariableValue } from "../../../../utils/page-helper-util.js";
|
|
3
|
-
import { handleAfterInitEvent, handleFormEvent } from "../../../../utils/events/event-util.js";
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
if (!contentVariable) {
|
|
18
|
-
return "";
|
|
19
|
-
}
|
|
20
|
-
const resultValue = formatVariableValue(props.pageContext, contentVariable);
|
|
21
|
-
return resultValue == void 0 || resultValue == null ? "" : resultValue;
|
|
1
|
+
import { defineComponent as e, ref as t, computed as n, onMounted as o, nextTick as r, resolveComponent as i, openBlock as u, createBlock as l, unref as a, withCtx as p, createElementVNode as s, normalizeStyle as c, toDisplayString as d } from "vue";
|
|
2
|
+
import { formatVariableValue as f } from "../../../../utils/page-helper-util.js";
|
|
3
|
+
import { handleAfterInitEvent as v, handleFormEvent as g } from "../../../../utils/events/event-util.js";
|
|
4
|
+
const m = e({ __name: "divider-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
|
|
5
|
+
const m2 = e2, y = m2.configure.runtime ? m2.configure.runtime : {}, x = y.headerStyle, C = t(y.props ? y.props : {});
|
|
6
|
+
let _ = C.value.value;
|
|
7
|
+
const b = n(() => {
|
|
8
|
+
if (!_)
|
|
9
|
+
return "";
|
|
10
|
+
const e3 = f(m2.pageContext, _);
|
|
11
|
+
return null == e3 || null == e3 ? "" : e3;
|
|
12
|
+
}), k = t(null);
|
|
13
|
+
return o(() => {
|
|
14
|
+
r(() => {
|
|
15
|
+
const e3 = b.value;
|
|
16
|
+
v(e3, m2.pageContext, m2.configure, { componentRef: k.value, value: e3, entity: m2.pageContext.entity.data, pageData: m2.pageContext.entity.page });
|
|
22
17
|
});
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
content,
|
|
29
|
-
props.pageContext,
|
|
30
|
-
props.configure,
|
|
31
|
-
{
|
|
32
|
-
componentRef: componentRef.value,
|
|
33
|
-
value: content,
|
|
34
|
-
entity: props.pageContext.entity.data,
|
|
35
|
-
pageData: props.pageContext.entity.page
|
|
36
|
-
}
|
|
37
|
-
);
|
|
38
|
-
});
|
|
39
|
-
});
|
|
40
|
-
return (_ctx, _cache) => {
|
|
41
|
-
const _component_el_divider = resolveComponent("el-divider");
|
|
42
|
-
return openBlock(), createBlock(_component_el_divider, {
|
|
43
|
-
ref_key: "componentRef",
|
|
44
|
-
ref: componentRef,
|
|
45
|
-
direction: designProperty.value.direction,
|
|
46
|
-
"border-style": designProperty.value.borderType,
|
|
47
|
-
"content-position": designProperty.value.titlePosition,
|
|
48
|
-
onClick: _cache[0] || (_cache[0] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "click"))
|
|
49
|
-
}, {
|
|
50
|
-
default: withCtx(() => [
|
|
51
|
-
createElementVNode("div", {
|
|
52
|
-
style: normalizeStyle(unref(headerStyle))
|
|
53
|
-
}, toDisplayString(dynamicValue.value), 5)
|
|
54
|
-
]),
|
|
55
|
-
_: 1
|
|
56
|
-
}, 8, ["direction", "border-style", "content-position"]);
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
});
|
|
18
|
+
}), (e3, t2) => {
|
|
19
|
+
const n2 = i("el-divider");
|
|
20
|
+
return u(), l(n2, { ref_key: "componentRef", ref: k, direction: C.value.direction, "border-style": C.value.borderType, "content-position": C.value.titlePosition, onClick: t2[0] || (t2[0] = (t3) => a(g)(t3, e3.pageContext, e3.configure, "click")) }, { default: p(() => [s("div", { style: c(a(x)) }, d(b.value), 5)]), _: 1 }, 8, ["direction", "border-style", "content-position"]);
|
|
21
|
+
};
|
|
22
|
+
} });
|
|
60
23
|
export {
|
|
61
|
-
|
|
24
|
+
m as default
|
|
62
25
|
};
|