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
|
@@ -1,159 +1,49 @@
|
|
|
1
|
-
import { defineComponent, computed, ref, onMounted, nextTick, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementBlock, toDisplayString, createCommentVNode, createVNode, Fragment, renderList } from "vue";
|
|
2
|
-
import { getVariableValue, setVariableValue, getOptionDatasFromPage, monitorFieldChange, autoSetAfterSelect, queryOptionDatasources } from "../../../../utils/page-helper-util.js";
|
|
3
|
-
import { getFormModelFields } from "../../../../utils/page-init-util.js";
|
|
4
|
-
import { handleFormEvent, handleAfterInitEvent } from "../../../../utils/events/event-util.js";
|
|
5
|
-
import { $t } from "../../../../utils/i18n-util.js";
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
if (value && value.length > 0) {
|
|
26
|
-
value = value.join(",");
|
|
27
|
-
}
|
|
28
|
-
setVariableValue(entity, dynamicFields, value);
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
|
|
32
|
-
const runtimeStyle = runtimeInfo.style;
|
|
33
|
-
const runtimeClass = runtimeInfo.class;
|
|
34
|
-
const headerStyle = runtimeInfo.headerStyle;
|
|
35
|
-
const titleExceedStyle = runtimeInfo.titleExceedStyle;
|
|
36
|
-
const designProperty = ref(runtimeInfo.props ? runtimeInfo.props : {});
|
|
37
|
-
const listOptions = ref(designProperty.value.options ? designProperty.value.options : []);
|
|
38
|
-
const cacheOptions = getOptionDatasFromPage(props.pageContext, props.configure);
|
|
39
|
-
if (cacheOptions.length > 0) {
|
|
40
|
-
listOptions.value = cacheOptions;
|
|
41
|
-
}
|
|
42
|
-
const dataOrigin = props.configure.props && props.configure.props.dataOrigin ? props.configure.props.dataOrigin : {};
|
|
43
|
-
const valueType = dataOrigin.optionValueSetType;
|
|
44
|
-
let autoSets = [];
|
|
45
|
-
if (valueType == "dynamicData" || valueType == "dynamicData" || valueType == "service") {
|
|
46
|
-
if (dataOrigin.autoSets) {
|
|
47
|
-
for (let obj of dataOrigin.autoSets) {
|
|
48
|
-
if (obj.source) {
|
|
49
|
-
autoSets.push(obj);
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
if (props.configure && props.configure.props && props.configure.props.base && props.configure.props.base.optionProp) {
|
|
55
|
-
autoSets.push({
|
|
56
|
-
source: "label",
|
|
57
|
-
target: props.configure.props.base.optionProp
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
designProperty.value.changeMethod = optionChange;
|
|
61
|
-
const optionconfigInfo = designProperty.value.optionconfigInfo ? designProperty.value.optionconfigInfo : {};
|
|
62
|
-
function refreshOptions() {
|
|
63
|
-
queryOptionDatasources(props.pageContext, optionconfigInfo, void 0).then((result) => {
|
|
64
|
-
console.log("动态查询结果", result);
|
|
65
|
-
});
|
|
66
|
-
}
|
|
67
|
-
const monitorFields = designProperty.value.monitorFields;
|
|
68
|
-
monitorFieldChange(props.pageContext, monitorFields, refreshOptions);
|
|
69
|
-
function optionChange(value) {
|
|
70
|
-
if (autoSets.length > -1) {
|
|
71
|
-
let selItems = null;
|
|
72
|
-
if (listOptions.value && value != void 0 && value != null) {
|
|
73
|
-
selItems = listOptions.value.filter((item) => {
|
|
74
|
-
return Array.isArray(value) ? value.includes(item.value) : value === item.value;
|
|
75
|
-
});
|
|
76
|
-
}
|
|
77
|
-
autoSetAfterSelect(props.configure, props.pageContext, autoSets, selItems);
|
|
78
|
-
}
|
|
79
|
-
handleFormEvent(value, props.pageContext, props.configure, "change");
|
|
80
|
-
}
|
|
81
|
-
function updateOptions(newOptions) {
|
|
82
|
-
listOptions.value = newOptions ? newOptions : [];
|
|
1
|
+
import { defineComponent as e, computed as t, ref as l, onMounted as o, nextTick as n, resolveComponent as a, openBlock as u, createBlock as i, normalizeClass as r, unref as s, normalizeStyle as p, withCtx as c, createElementBlock as f, toDisplayString as g, createCommentVNode as v, createVNode as d, Fragment as m, renderList as h } from "vue";
|
|
2
|
+
import { getVariableValue as y, setVariableValue as x, getOptionDatasFromPage as b, monitorFieldChange as C, autoSetAfterSelect as k, queryOptionDatasources as _ } from "../../../../utils/page-helper-util.js";
|
|
3
|
+
import { getFormModelFields as R } from "../../../../utils/page-init-util.js";
|
|
4
|
+
import { handleFormEvent as S, handleAfterInitEvent as j } from "../../../../utils/events/event-util.js";
|
|
5
|
+
import { $t as I } from "../../../../utils/i18n-util.js";
|
|
6
|
+
const V = e({ __name: "checkbox-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: V2 }) {
|
|
7
|
+
const w = e2, z = w.pageContext.entity ? w.pageContext.entity : {};
|
|
8
|
+
let D = R(w.pageContext, w.configure);
|
|
9
|
+
const O = t({ get() {
|
|
10
|
+
let e3 = y(z, D);
|
|
11
|
+
return e3 && "string" == typeof e3 && (e3 = e3.split(",")), e3;
|
|
12
|
+
}, set(e3) {
|
|
13
|
+
e3 && e3.length > 0 && (e3 = e3.join(",")), x(z, D, e3);
|
|
14
|
+
} }), A = w.configure.runtime ? w.configure.runtime : {}, M = A.style, P = A.class, E = A.headerStyle, F = A.titleExceedStyle, T = l(A.props ? A.props : {}), U = l(T.value.options ? T.value.options : []), W = b(w.pageContext, w.configure);
|
|
15
|
+
W.length > 0 && (U.value = W);
|
|
16
|
+
const q = w.configure.props && w.configure.props.dataOrigin ? w.configure.props.dataOrigin : {}, B = q.optionValueSetType;
|
|
17
|
+
let G = [];
|
|
18
|
+
if (("dynamicData" == B || "dynamicData" == B || "service" == B) && q.autoSets)
|
|
19
|
+
for (let e3 of q.autoSets)
|
|
20
|
+
e3.source && G.push(e3);
|
|
21
|
+
w.configure && w.configure.props && w.configure.props.base && w.configure.props.base.optionProp && G.push({ source: "label", target: w.configure.props.base.optionProp }), T.value.changeMethod = function(e3) {
|
|
22
|
+
if (G.length > -1) {
|
|
23
|
+
let t2 = null;
|
|
24
|
+
U.value && null != e3 && null != e3 && (t2 = U.value.filter((t3) => Array.isArray(e3) ? e3.includes(t3.value) : e3 === t3.value)), k(w.configure, w.pageContext, G, t2);
|
|
83
25
|
}
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
handleAfterInitEvent(
|
|
91
|
-
value,
|
|
92
|
-
props.pageContext,
|
|
93
|
-
props.configure,
|
|
94
|
-
{
|
|
95
|
-
formItemRef: formItemRef.value,
|
|
96
|
-
componentRef: componentRef.value,
|
|
97
|
-
titleRef: titleRef.value,
|
|
98
|
-
value,
|
|
99
|
-
entity: props.pageContext.entity.data,
|
|
100
|
-
pageData: props.pageContext.entity.page
|
|
101
|
-
}
|
|
102
|
-
);
|
|
103
|
-
});
|
|
26
|
+
S(e3, w.pageContext, w.configure, "change");
|
|
27
|
+
};
|
|
28
|
+
const H = T.value.optionconfigInfo ? T.value.optionconfigInfo : {};
|
|
29
|
+
const J = T.value.monitorFields;
|
|
30
|
+
C(w.pageContext, J, function() {
|
|
31
|
+
_(w.pageContext, H, void 0).then((e3) => {
|
|
104
32
|
});
|
|
105
|
-
|
|
106
|
-
|
|
33
|
+
});
|
|
34
|
+
const K = l(null), L = l(null), N = l(null);
|
|
35
|
+
return o(() => {
|
|
36
|
+
n(() => {
|
|
37
|
+
const e3 = O.value;
|
|
38
|
+
j(e3, w.pageContext, w.configure, { formItemRef: K.value, componentRef: L.value, titleRef: N.value, value: e3, entity: w.pageContext.entity.data, pageData: w.pageContext.entity.page });
|
|
107
39
|
});
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
class: normalizeClass(unref(runtimeClass)),
|
|
116
|
-
"label-width": designProperty.value.labelWidth,
|
|
117
|
-
style: normalizeStyle(unref(runtimeStyle))
|
|
118
|
-
}, {
|
|
119
|
-
label: withCtx(() => [
|
|
120
|
-
designProperty.value.tittleShow ? (openBlock(), createElementBlock("div", {
|
|
121
|
-
key: 0,
|
|
122
|
-
ref_key: "titleRef",
|
|
123
|
-
ref: titleRef,
|
|
124
|
-
style: normalizeStyle({ ...unref(headerStyle), ...unref(titleExceedStyle) })
|
|
125
|
-
}, toDisplayString(unref($t)(designProperty.value.title)), 5)) : createCommentVNode("", true)
|
|
126
|
-
]),
|
|
127
|
-
default: withCtx(() => [
|
|
128
|
-
createVNode(_component_el_checkbox_group, {
|
|
129
|
-
ref_key: "componentRef",
|
|
130
|
-
ref: componentRef,
|
|
131
|
-
disabled: designProperty.value.state === "disabled",
|
|
132
|
-
size: designProperty.value.size,
|
|
133
|
-
onChange: designProperty.value.changeMethod,
|
|
134
|
-
modelValue: dynamicModelMethod.value,
|
|
135
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => dynamicModelMethod.value = $event)
|
|
136
|
-
}, {
|
|
137
|
-
default: withCtx(() => [
|
|
138
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(listOptions.value, (item) => {
|
|
139
|
-
return openBlock(), createBlock(_component_el_checkbox, {
|
|
140
|
-
key: item.value,
|
|
141
|
-
value: item.value,
|
|
142
|
-
label: item.label,
|
|
143
|
-
onClick: ($event) => unref(handleFormEvent)(item.value, _ctx.pageContext, _ctx.configure, "click", {
|
|
144
|
-
values: dynamicModelMethod.value
|
|
145
|
-
})
|
|
146
|
-
}, null, 8, ["value", "label", "onClick"]);
|
|
147
|
-
}), 128))
|
|
148
|
-
]),
|
|
149
|
-
_: 1
|
|
150
|
-
}, 8, ["disabled", "size", "onChange", "modelValue"])
|
|
151
|
-
]),
|
|
152
|
-
_: 1
|
|
153
|
-
}, 8, ["class", "label-width", "style"]);
|
|
154
|
-
};
|
|
155
|
-
}
|
|
156
|
-
});
|
|
40
|
+
}), V2({ updateOptions: function(e3) {
|
|
41
|
+
U.value = e3 || [];
|
|
42
|
+
} }), (e3, t2) => {
|
|
43
|
+
const l2 = a("el-checkbox"), o2 = a("el-checkbox-group"), n2 = a("el-form-item");
|
|
44
|
+
return u(), i(n2, { ref_key: "formItemRef", ref: K, class: r(s(P)), "label-width": T.value.labelWidth, style: p(s(M)) }, { label: c(() => [T.value.tittleShow ? (u(), f("div", { key: 0, ref_key: "titleRef", ref: N, style: p({ ...s(E), ...s(F) }) }, g(s(I)(T.value.title)), 5)) : v("", true)]), default: c(() => [d(o2, { ref_key: "componentRef", ref: L, disabled: "disabled" === T.value.state, size: T.value.size, onChange: T.value.changeMethod, modelValue: O.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => O.value = e4) }, { default: c(() => [(u(true), f(m, null, h(U.value, (t3) => (u(), i(l2, { key: t3.value, value: t3.value, label: t3.label, onClick: (l3) => s(S)(t3.value, e3.pageContext, e3.configure, "click", { values: O.value }) }, null, 8, ["value", "label", "onClick"]))), 128))]), _: 1 }, 8, ["disabled", "size", "onChange", "modelValue"])]), _: 1 }, 8, ["class", "label-width", "style"]);
|
|
45
|
+
};
|
|
46
|
+
} });
|
|
157
47
|
export {
|
|
158
|
-
|
|
48
|
+
V as default
|
|
159
49
|
};
|
|
@@ -1,102 +1,40 @@
|
|
|
1
|
-
import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, Fragment, createBlock, unref, isRef, createCommentVNode } from "vue";
|
|
2
|
-
import { formatVariableValue, setVariableValue, getVariableValue } from "../../../../utils/page-helper-util.js";
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
property
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
let propName = props.property.prefixPro;
|
|
17
|
-
propName = propName.substring(2, propName.length - 1);
|
|
18
|
-
fields = propName.split(".");
|
|
1
|
+
import { defineComponent as e, computed as l, resolveComponent as r, openBlock as t, createElementBlock as p, Fragment as o, createBlock as u, unref as a, isRef as i, createCommentVNode as n } from "vue";
|
|
2
|
+
import { formatVariableValue as s, setVariableValue as y, getVariableValue as f } from "../../../../utils/page-helper-util.js";
|
|
3
|
+
const x = e({ __name: "title-suffix-element", props: { pageContext: {}, property: {} }, setup(e2) {
|
|
4
|
+
const x2 = e2, c = x2.pageContext.entity;
|
|
5
|
+
let d = [];
|
|
6
|
+
if (x2.property.prefixPro && x2.property.prefixPro.startsWith("${")) {
|
|
7
|
+
let e3 = x2.property.prefixPro;
|
|
8
|
+
e3 = e3.substring(2, e3.length - 1), d = e3.split(".");
|
|
9
|
+
} else
|
|
10
|
+
d = [];
|
|
11
|
+
if (d.length > 0 && x2.property.prefixDefault) {
|
|
12
|
+
const e3 = x2.property.prefixDefault;
|
|
13
|
+
let l2 = s(x2.pageContext, e3);
|
|
14
|
+
if (null != l2 && null != l2) {
|
|
15
|
+
"checkbox" === x2.property.prefixType && (l2 = (l2 + "").split(",")), y(c, d, l2);
|
|
19
16
|
}
|
|
20
|
-
if (fields.length > 0 && props.property.prefixDefault) {
|
|
21
|
-
const prefixDefault = props.property.prefixDefault;
|
|
22
|
-
let defaultValue = formatVariableValue(props.pageContext, prefixDefault);
|
|
23
|
-
if (defaultValue != null && defaultValue != void 0) {
|
|
24
|
-
let isMultiple = props.property.prefixType === "checkbox";
|
|
25
|
-
if (isMultiple) {
|
|
26
|
-
defaultValue = (defaultValue + "").split(",");
|
|
27
|
-
}
|
|
28
|
-
setVariableValue(entity, fields, defaultValue);
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
const prefixType = props.property.prefixType;
|
|
32
|
-
let prefixValue = props.property.prefixValue;
|
|
33
|
-
prefixValue = prefixValue == void 0 || prefixValue == null ? "" : prefixValue;
|
|
34
|
-
let dynamicModelMethod = null;
|
|
35
|
-
if (fields.length > 0) {
|
|
36
|
-
dynamicModelMethod = computed({
|
|
37
|
-
get() {
|
|
38
|
-
const value = getVariableValue(entity, fields);
|
|
39
|
-
if (prefixType === "checkbox") {
|
|
40
|
-
if (value === null || value === void 0) {
|
|
41
|
-
return false;
|
|
42
|
-
}
|
|
43
|
-
if (Array.isArray(value)) {
|
|
44
|
-
return value.includes(prefixValue);
|
|
45
|
-
} else {
|
|
46
|
-
return value === prefixValue;
|
|
47
|
-
}
|
|
48
|
-
} else {
|
|
49
|
-
return value;
|
|
50
|
-
}
|
|
51
|
-
},
|
|
52
|
-
set(value) {
|
|
53
|
-
if (prefixType === "checkbox") {
|
|
54
|
-
let newValues = getVariableValue(entity, fields);
|
|
55
|
-
if (!newValues) {
|
|
56
|
-
newValues = [];
|
|
57
|
-
}
|
|
58
|
-
if (!Array.isArray(newValues)) {
|
|
59
|
-
newValues = [newValues];
|
|
60
|
-
}
|
|
61
|
-
const index = newValues.indexOf(prefixValue);
|
|
62
|
-
if (value) {
|
|
63
|
-
if (index == -1) {
|
|
64
|
-
newValues.push(prefixValue);
|
|
65
|
-
}
|
|
66
|
-
} else {
|
|
67
|
-
if (index > -1) {
|
|
68
|
-
newValues.splice(index, 1);
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
setVariableValue(entity, fields, newValues);
|
|
72
|
-
} else {
|
|
73
|
-
setVariableValue(entity, fields, value);
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
});
|
|
77
|
-
}
|
|
78
|
-
return (_ctx, _cache) => {
|
|
79
|
-
const _component_el_radio = resolveComponent("el-radio");
|
|
80
|
-
const _component_el_checkbox = resolveComponent("el-checkbox");
|
|
81
|
-
return openBlock(), createElementBlock(Fragment, null, [
|
|
82
|
-
_ctx.property.prefixType === "radio" ? (openBlock(), createBlock(_component_el_radio, {
|
|
83
|
-
key: 0,
|
|
84
|
-
value: _ctx.property.prefixValue,
|
|
85
|
-
label: _ctx.property.title,
|
|
86
|
-
modelValue: unref(dynamicModelMethod),
|
|
87
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(dynamicModelMethod) ? dynamicModelMethod.value = $event : dynamicModelMethod = $event)
|
|
88
|
-
}, null, 8, ["value", "label", "modelValue"])) : createCommentVNode("", true),
|
|
89
|
-
_ctx.property.prefixType === "checkbox" ? (openBlock(), createBlock(_component_el_checkbox, {
|
|
90
|
-
key: 1,
|
|
91
|
-
label: _ctx.property.title,
|
|
92
|
-
value: _ctx.property.prefixValue,
|
|
93
|
-
modelValue: unref(dynamicModelMethod),
|
|
94
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(dynamicModelMethod) ? dynamicModelMethod.value = $event : dynamicModelMethod = $event)
|
|
95
|
-
}, null, 8, ["label", "value", "modelValue"])) : createCommentVNode("", true)
|
|
96
|
-
], 64);
|
|
97
|
-
};
|
|
98
17
|
}
|
|
99
|
-
|
|
18
|
+
const m = x2.property.prefixType;
|
|
19
|
+
let h = x2.property.prefixValue;
|
|
20
|
+
h = null == h || null == h ? "" : h;
|
|
21
|
+
let b = null;
|
|
22
|
+
return d.length > 0 && (b = l({ get() {
|
|
23
|
+
const e3 = f(c, d);
|
|
24
|
+
return "checkbox" === m ? null != e3 && (Array.isArray(e3) ? e3.includes(h) : e3 === h) : e3;
|
|
25
|
+
}, set(e3) {
|
|
26
|
+
if ("checkbox" === m) {
|
|
27
|
+
let l2 = f(c, d);
|
|
28
|
+
l2 || (l2 = []), Array.isArray(l2) || (l2 = [l2]);
|
|
29
|
+
const r2 = l2.indexOf(h);
|
|
30
|
+
e3 ? -1 == r2 && l2.push(h) : r2 > -1 && l2.splice(r2, 1), y(c, d, l2);
|
|
31
|
+
} else
|
|
32
|
+
y(c, d, e3);
|
|
33
|
+
} })), (e3, l2) => {
|
|
34
|
+
const s2 = r("el-radio"), y2 = r("el-checkbox");
|
|
35
|
+
return t(), p(o, null, ["radio" === e3.property.prefixType ? (t(), u(s2, { key: 0, value: e3.property.prefixValue, label: e3.property.title, modelValue: a(b), "onUpdate:modelValue": l2[0] || (l2[0] = (e4) => i(b) ? b.value = e4 : b = e4) }, null, 8, ["value", "label", "modelValue"])) : n("", true), "checkbox" === e3.property.prefixType ? (t(), u(y2, { key: 1, label: e3.property.title, value: e3.property.prefixValue, modelValue: a(b), "onUpdate:modelValue": l2[1] || (l2[1] = (e4) => i(b) ? b.value = e4 : b = e4) }, null, 8, ["label", "value", "modelValue"])) : n("", true)], 64);
|
|
36
|
+
};
|
|
37
|
+
} });
|
|
100
38
|
export {
|
|
101
|
-
|
|
39
|
+
x as default
|
|
102
40
|
};
|
|
@@ -1,204 +1,58 @@
|
|
|
1
|
-
import { defineComponent, computed, ref, onMounted, nextTick, onUnmounted, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementBlock, toDisplayString, createCommentVNode, resolveDynamicComponent } from "vue";
|
|
2
|
-
import { getFormModelFields } from "../../../../utils/page-init-util.js";
|
|
3
|
-
import { getVariableValue, setVariableValue, formatVariableValue, getFormPropName, setVariableValueWithProp } from "../../../../utils/page-helper-util.js";
|
|
4
|
-
import { handleAfterInitEvent, handleEvent } from "../../../../utils/events/event-util.js";
|
|
5
|
-
import { updateFormItemEditState } from "../../../../utils/events/validator-util.js";
|
|
6
|
-
import { getListCode } from "../../../../utils/common-util.js";
|
|
7
|
-
import { getComponentRef } from "../../../../utils/global-refs.js";
|
|
8
|
-
import { getAdditionalParamMap } from "../../../../utils/events/standard-event.js";
|
|
9
|
-
import { $t } from "../../../../utils/i18n-util.js";
|
|
10
|
-
import
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
pageContext
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
const dynamicModelMethod = computed({
|
|
31
|
-
get() {
|
|
32
|
-
return getVariableValue(entity, dynamicFields);
|
|
33
|
-
},
|
|
34
|
-
set(value) {
|
|
35
|
-
setVariableValue(entity, dynamicFields, value);
|
|
36
|
-
}
|
|
37
|
-
});
|
|
38
|
-
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
|
|
39
|
-
const runtimeStyle = runtimeInfo.style;
|
|
40
|
-
const runtimeClass = runtimeInfo.class;
|
|
41
|
-
const headerStyle = runtimeInfo.headerStyle;
|
|
42
|
-
const designProperty = ref(runtimeInfo.props ? runtimeInfo.props : {});
|
|
43
|
-
const customParams = getCustomParams(runtimeInfo.customParams ? runtimeInfo.customParams : {});
|
|
44
|
-
const additionalParamMap = getAdditionalParamMap(props.pageContext);
|
|
45
|
-
const componentName = ref(
|
|
46
|
-
props.configure.props && props.configure.props.base ? props.configure.props.base.name : null
|
|
47
|
-
);
|
|
48
|
-
console.log("自定义控件----componentName=", componentName, "designProperty=", designProperty);
|
|
49
|
-
if (props.configure.props.verification.custom && props.configure.props.verification.custom.enabled) {
|
|
50
|
-
if (!props.pageContext.customValidatorUuids) {
|
|
51
|
-
props.pageContext.customValidatorUuids = [];
|
|
52
|
-
}
|
|
53
|
-
props.pageContext.customValidatorUuids.push(props.configure.uuid);
|
|
54
|
-
}
|
|
55
|
-
function getCustomParams(customParams2) {
|
|
56
|
-
if (customParams2) {
|
|
57
|
-
for (let key in customParams2) {
|
|
58
|
-
customParams2.value[key] = formatVariableValue(props.pageContext, key);
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
function customControlSetValue(prop, value) {
|
|
63
|
-
setVariableValueWithProp(entity, prop, value);
|
|
64
|
-
}
|
|
65
|
-
function setCustomvalidateRules(customRules) {
|
|
66
|
-
updateFormItemEditState(props.pageContext, customRules);
|
|
67
|
-
}
|
|
68
|
-
function restoreGridEdit() {
|
|
69
|
-
const tableUuids = props.pageContext.tableUuids;
|
|
70
|
-
if (tableUuids) {
|
|
71
|
-
tableUuids.forEach((tableUuid) => {
|
|
72
|
-
const listCode = getListCode(
|
|
73
|
-
props.pageContext.code,
|
|
74
|
-
props.pageContext.version,
|
|
75
|
-
props.configure.uuid
|
|
76
|
-
);
|
|
77
|
-
const gridRef = getComponentRef(props.pageContext, tableUuid);
|
|
78
|
-
if (gridRef) {
|
|
79
|
-
gridRef.restoreGridEdit(listCode);
|
|
80
|
-
}
|
|
81
|
-
});
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
const pageCode = props.pageContext.code;
|
|
85
|
-
const componentId = ref(
|
|
86
|
-
dynamicFields && dynamicFields.length > 0 ? pageCode + "__" + dynamicFields.join("__") : null
|
|
87
|
-
);
|
|
88
|
-
const customRef = ref(null);
|
|
89
|
-
const formItemRef = ref(null);
|
|
90
|
-
const titleRef = ref(null);
|
|
91
|
-
onMounted(() => {
|
|
92
|
-
eventBus.$on(componentId.value + "-scanDone", (data) => {
|
|
93
|
-
const value = data.result;
|
|
94
|
-
setVariableValue(entity, dynamicFields, value);
|
|
95
|
-
});
|
|
96
|
-
eventBus.$on(componentId.value + "-pickFileDone", (data) => {
|
|
97
|
-
console.log(
|
|
98
|
-
"superPage4444---pickFileDone--componentId.value=",
|
|
99
|
-
componentId.value,
|
|
100
|
-
"data=",
|
|
101
|
-
data
|
|
102
|
-
);
|
|
103
|
-
customRef.value.pickFileDone(data);
|
|
104
|
-
});
|
|
105
|
-
nextTick(() => {
|
|
106
|
-
const value = dynamicModelMethod.value;
|
|
107
|
-
handleAfterInitEvent(value, props.pageContext, props.configure, {
|
|
108
|
-
formItemRef: formItemRef.value,
|
|
109
|
-
componentRef: customRef.value,
|
|
110
|
-
titleRef: titleRef.value,
|
|
111
|
-
value,
|
|
112
|
-
entity: props.pageContext.entity.data,
|
|
113
|
-
pageData: props.pageContext.entity.page
|
|
114
|
-
});
|
|
115
|
-
});
|
|
116
|
-
});
|
|
117
|
-
function handleCustomEvent(eventType) {
|
|
118
|
-
handleEvent(dynamicModelMethod.value, props.pageContext, props.configure, eventType);
|
|
119
|
-
}
|
|
120
|
-
onUnmounted(() => {
|
|
121
|
-
eventBus.$off(componentId.value + "-scanDone");
|
|
122
|
-
eventBus.$off(componentId.value + "-pickFileDone");
|
|
123
|
-
});
|
|
124
|
-
function getCustomRef() {
|
|
125
|
-
return customRef.value;
|
|
126
|
-
}
|
|
127
|
-
__expose({
|
|
128
|
-
getCustomRef
|
|
1
|
+
import { defineComponent as e, computed as t, ref as o, onMounted as a, nextTick as n, onUnmounted as i, resolveComponent as u, openBlock as l, createBlock as r, normalizeClass as s, unref as p, normalizeStyle as g, withCtx as c, createElementBlock as m, toDisplayString as f, createCommentVNode as d, resolveDynamicComponent as v } from "vue";
|
|
2
|
+
import { getFormModelFields as C } from "../../../../utils/page-init-util.js";
|
|
3
|
+
import { getVariableValue as x, setVariableValue as y, formatVariableValue as b, getFormPropName as h, setVariableValueWithProp as j } from "../../../../utils/page-helper-util.js";
|
|
4
|
+
import { handleAfterInitEvent as R, handleEvent as k } from "../../../../utils/events/event-util.js";
|
|
5
|
+
import { updateFormItemEditState as V } from "../../../../utils/events/validator-util.js";
|
|
6
|
+
import { getListCode as _ } from "../../../../utils/common-util.js";
|
|
7
|
+
import { getComponentRef as D } from "../../../../utils/global-refs.js";
|
|
8
|
+
import { getAdditionalParamMap as E } from "../../../../utils/events/standard-event.js";
|
|
9
|
+
import { $t as w } from "../../../../utils/i18n-util.js";
|
|
10
|
+
import S from "../../../../utils/eventBus.js";
|
|
11
|
+
const U = { key: 0, style: { width: "100%", height: "100%" } }, O = { key: 1, style: { width: "100%", height: "100%" }, class: "amb-widget-richtext-single" }, $ = e({ __name: "custom-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: $2 }) {
|
|
12
|
+
const q = e2, z = q.pageContext.entity ? q.pageContext.entity : {}, F = C(q.pageContext, q.configure), G = t({ get: () => x(z, F), set(e3) {
|
|
13
|
+
y(z, F, e3);
|
|
14
|
+
} }), H = q.configure.runtime ? q.configure.runtime : {}, I = H.style, P = H.class, B = H.headerStyle, W = o(H.props ? H.props : {}), A = function(e3) {
|
|
15
|
+
if (e3)
|
|
16
|
+
for (let t2 in e3)
|
|
17
|
+
e3.value[t2] = b(q.pageContext, t2);
|
|
18
|
+
}(H.customParams ? H.customParams : {}), J = E(q.pageContext), K = o(q.configure.props && q.configure.props.base ? q.configure.props.base.name : null);
|
|
19
|
+
function L(e3, t2) {
|
|
20
|
+
j(z, e3, t2);
|
|
21
|
+
}
|
|
22
|
+
function M(e3) {
|
|
23
|
+
V(q.pageContext, e3);
|
|
24
|
+
}
|
|
25
|
+
function N() {
|
|
26
|
+
const e3 = q.pageContext.tableUuids;
|
|
27
|
+
e3 && e3.forEach((e4) => {
|
|
28
|
+
const t2 = _(q.pageContext.code, q.pageContext.version, q.configure.uuid), o2 = D(q.pageContext, e4);
|
|
29
|
+
o2 && o2.restoreGridEdit(t2);
|
|
129
30
|
});
|
|
130
|
-
return (_ctx, _cache) => {
|
|
131
|
-
const _component_el_form_item = resolveComponent("el-form-item");
|
|
132
|
-
return designProperty.value.tittleShow ? (openBlock(), createBlock(_component_el_form_item, {
|
|
133
|
-
key: 0,
|
|
134
|
-
ref_key: "formItemRef",
|
|
135
|
-
ref: formItemRef,
|
|
136
|
-
required: designProperty.value.required,
|
|
137
|
-
class: normalizeClass(unref(runtimeClass)),
|
|
138
|
-
"label-width": designProperty.value.labelWidth,
|
|
139
|
-
style: normalizeStyle(unref(runtimeStyle))
|
|
140
|
-
}, {
|
|
141
|
-
label: withCtx(() => [
|
|
142
|
-
designProperty.value.tittleShow ? (openBlock(), createElementBlock("div", {
|
|
143
|
-
key: 0,
|
|
144
|
-
ref_key: "titleRef",
|
|
145
|
-
ref: titleRef,
|
|
146
|
-
style: normalizeStyle({ ...unref(headerStyle) })
|
|
147
|
-
}, toDisplayString(unref($t)(designProperty.value.title)), 5)) : createCommentVNode("", true)
|
|
148
|
-
]),
|
|
149
|
-
default: withCtx(() => [
|
|
150
|
-
componentName.value ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
151
|
-
(openBlock(), createBlock(resolveDynamicComponent(componentName.value), {
|
|
152
|
-
ref_key: "customRef",
|
|
153
|
-
ref: customRef,
|
|
154
|
-
size: designProperty.value.size,
|
|
155
|
-
entity: _ctx.pageContext.entity.data,
|
|
156
|
-
pageData: _ctx.pageContext.entity.page,
|
|
157
|
-
pageContext: _ctx.pageContext,
|
|
158
|
-
configureObj: _ctx.configure,
|
|
159
|
-
prop: unref(getFormPropName)(
|
|
160
|
-
_ctx.configure.props && _ctx.configure.props.base ? _ctx.configure.props.base.prop : null
|
|
161
|
-
),
|
|
162
|
-
"custom-params": unref(customParams),
|
|
163
|
-
modelValue: dynamicModelMethod.value,
|
|
164
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => dynamicModelMethod.value = $event),
|
|
165
|
-
disabled: designProperty.value.state === "disabled",
|
|
166
|
-
"additional-param-map": unref(additionalParamMap),
|
|
167
|
-
"component-id": componentId.value,
|
|
168
|
-
onSetEntityValue: customControlSetValue,
|
|
169
|
-
onSetCustomRules: setCustomvalidateRules,
|
|
170
|
-
onRestoreGridEdit: restoreGridEdit,
|
|
171
|
-
onHandleEvent: handleCustomEvent,
|
|
172
|
-
onChange: _cache[1] || (_cache[1] = ($event) => unref(handleEvent)(dynamicModelMethod.value, _ctx.pageContext, _ctx.configure, "change"))
|
|
173
|
-
}, null, 40, ["size", "entity", "pageData", "pageContext", "configureObj", "prop", "custom-params", "modelValue", "disabled", "additional-param-map", "component-id"]))
|
|
174
|
-
])) : createCommentVNode("", true)
|
|
175
|
-
]),
|
|
176
|
-
_: 1
|
|
177
|
-
}, 8, ["required", "class", "label-width", "style"])) : componentName.value ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
178
|
-
(openBlock(), createBlock(resolveDynamicComponent(componentName.value), {
|
|
179
|
-
ref_key: "customRef",
|
|
180
|
-
ref: customRef,
|
|
181
|
-
entity: _ctx.pageContext.entity.data,
|
|
182
|
-
pageData: _ctx.pageContext.entity.page,
|
|
183
|
-
pageContext: _ctx.pageContext,
|
|
184
|
-
configureObj: _ctx.configure,
|
|
185
|
-
prop: unref(getFormPropName)(_ctx.configure.props && _ctx.configure.props.base ? _ctx.configure.props.base.prop : null),
|
|
186
|
-
"custom-params": unref(customParams),
|
|
187
|
-
modelValue: dynamicModelMethod.value,
|
|
188
|
-
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => dynamicModelMethod.value = $event),
|
|
189
|
-
disabled: designProperty.value.state === "disabled",
|
|
190
|
-
"additional-param-map": unref(additionalParamMap),
|
|
191
|
-
"component-id": componentId.value,
|
|
192
|
-
onSetEntityValue: customControlSetValue,
|
|
193
|
-
onSetCustomRules: setCustomvalidateRules,
|
|
194
|
-
onRestoreGridEdit: restoreGridEdit,
|
|
195
|
-
onHandleEvent: handleCustomEvent,
|
|
196
|
-
onChange: _cache[3] || (_cache[3] = ($event) => unref(handleEvent)(dynamicModelMethod.value, _ctx.pageContext, _ctx.configure, "change"))
|
|
197
|
-
}, null, 40, ["entity", "pageData", "pageContext", "configureObj", "prop", "custom-params", "modelValue", "disabled", "additional-param-map", "component-id"]))
|
|
198
|
-
])) : createCommentVNode("", true);
|
|
199
|
-
};
|
|
200
31
|
}
|
|
201
|
-
|
|
32
|
+
q.configure.props.verification.custom && q.configure.props.verification.custom.enabled && (q.pageContext.customValidatorUuids || (q.pageContext.customValidatorUuids = []), q.pageContext.customValidatorUuids.push(q.configure.uuid));
|
|
33
|
+
const Q = q.pageContext.code, T = o(F && F.length > 0 ? Q + "__" + F.join("__") : null), X = o(null), Y = o(null), Z = o(null);
|
|
34
|
+
function ee(e3) {
|
|
35
|
+
k(G.value, q.pageContext, q.configure, e3);
|
|
36
|
+
}
|
|
37
|
+
return a(() => {
|
|
38
|
+
S.$on(T.value + "-scanDone", (e3) => {
|
|
39
|
+
const t2 = e3.result;
|
|
40
|
+
y(z, F, t2);
|
|
41
|
+
}), S.$on(T.value + "-pickFileDone", (e3) => {
|
|
42
|
+
X.value.pickFileDone(e3);
|
|
43
|
+
}), n(() => {
|
|
44
|
+
const e3 = G.value;
|
|
45
|
+
R(e3, q.pageContext, q.configure, { formItemRef: Y.value, componentRef: X.value, titleRef: Z.value, value: e3, entity: q.pageContext.entity.data, pageData: q.pageContext.entity.page });
|
|
46
|
+
});
|
|
47
|
+
}), i(() => {
|
|
48
|
+
S.$off(T.value + "-scanDone"), S.$off(T.value + "-pickFileDone");
|
|
49
|
+
}), $2({ getCustomRef: function() {
|
|
50
|
+
return X.value;
|
|
51
|
+
} }), (e3, t2) => {
|
|
52
|
+
const o2 = u("el-form-item");
|
|
53
|
+
return W.value.tittleShow ? (l(), r(o2, { key: 0, ref_key: "formItemRef", ref: Y, required: W.value.required, class: s(p(P)), "label-width": W.value.labelWidth, style: g(p(I)) }, { label: c(() => [W.value.tittleShow ? (l(), m("div", { key: 0, ref_key: "titleRef", ref: Z, style: g({ ...p(B) }) }, f(p(w)(W.value.title)), 5)) : d("", true)]), default: c(() => [K.value ? (l(), m("div", U, [(l(), r(v(K.value), { ref_key: "customRef", ref: X, size: W.value.size, entity: e3.pageContext.entity.data, pageData: e3.pageContext.entity.page, pageContext: e3.pageContext, configureObj: e3.configure, prop: p(h)(e3.configure.props && e3.configure.props.base ? e3.configure.props.base.prop : null), "custom-params": p(A), modelValue: G.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => G.value = e4), disabled: "disabled" === W.value.state, "additional-param-map": p(J), "component-id": T.value, onSetEntityValue: L, onSetCustomRules: M, onRestoreGridEdit: N, onHandleEvent: ee, onChange: t2[1] || (t2[1] = (t3) => p(k)(G.value, e3.pageContext, e3.configure, "change")) }, null, 40, ["size", "entity", "pageData", "pageContext", "configureObj", "prop", "custom-params", "modelValue", "disabled", "additional-param-map", "component-id"]))])) : d("", true)]), _: 1 }, 8, ["required", "class", "label-width", "style"])) : K.value ? (l(), m("div", O, [(l(), r(v(K.value), { ref_key: "customRef", ref: X, entity: e3.pageContext.entity.data, pageData: e3.pageContext.entity.page, pageContext: e3.pageContext, configureObj: e3.configure, prop: p(h)(e3.configure.props && e3.configure.props.base ? e3.configure.props.base.prop : null), "custom-params": p(A), modelValue: G.value, "onUpdate:modelValue": t2[2] || (t2[2] = (e4) => G.value = e4), disabled: "disabled" === W.value.state, "additional-param-map": p(J), "component-id": T.value, onSetEntityValue: L, onSetCustomRules: M, onRestoreGridEdit: N, onHandleEvent: ee, onChange: t2[3] || (t2[3] = (t3) => p(k)(G.value, e3.pageContext, e3.configure, "change")) }, null, 40, ["entity", "pageData", "pageContext", "configureObj", "prop", "custom-params", "modelValue", "disabled", "additional-param-map", "component-id"]))])) : d("", true);
|
|
54
|
+
};
|
|
55
|
+
} });
|
|
202
56
|
export {
|
|
203
|
-
|
|
57
|
+
$ as default
|
|
204
58
|
};
|