super-page-runtime 2.1.92 → 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/file-upload/fileupload-runtime.vue2.js
CHANGED
|
@@ -1,177 +1,56 @@
|
|
|
1
|
-
import { defineComponent, ref, onMounted, nextTick, onUnmounted, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementBlock, toDisplayString, createCommentVNode, createVNode } from "vue";
|
|
2
|
-
import { getVariableValue, setVariableValue } from "../../../../utils/page-helper-util.js";
|
|
3
|
-
import { handleAfterInitEvent, fileUploadBeforeUpload } from "../../../../utils/events/event-util.js";
|
|
4
|
-
import
|
|
5
|
-
import { FsUploadNew } from "agilebuilder-ui";
|
|
6
|
-
import
|
|
7
|
-
import { $t } from "../../../../utils/i18n-util.js";
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
const titleExceedStyle = runtimeInfo.titleExceedStyle;
|
|
22
|
-
const entity = props.pageContext.entity ? props.pageContext.entity : {};
|
|
23
|
-
const propsBase = props.configure.props.base ? props.configure.props.base : {};
|
|
24
|
-
const pathFields = getFieldsByVariable(propsBase.prop);
|
|
25
|
-
const nameFields = getFieldsByVariable(propsBase.propName);
|
|
26
|
-
const pageCode = props.pageContext.code;
|
|
27
|
-
const componentId = ref(pathFields ? pageCode + "__" + pathFields.join("__") : null);
|
|
28
|
-
const initPaths = getVariableValue(entity, pathFields);
|
|
29
|
-
const fileUploadRef = ref(null);
|
|
30
|
-
const fileList = ref([]);
|
|
31
|
-
const fileInfo = ref({});
|
|
32
|
-
if (initPaths) {
|
|
33
|
-
const uuids = initPaths.split(",");
|
|
34
|
-
if (uuids.length > 0) {
|
|
35
|
-
const backendUrl = props.pageContext.backendUrl;
|
|
36
|
-
http.post(backendUrl + "/common/fs-upload/search-file-names", uuids).then((result) => {
|
|
37
|
-
const names = [];
|
|
38
|
-
for (let index = 0; index < uuids.length; index++) {
|
|
39
|
-
const uuid = uuids[index];
|
|
40
|
-
names.push(result[uuid]);
|
|
41
|
-
fileList.value.push({ showName: result[uuid], serverPath: uuid });
|
|
42
|
-
}
|
|
43
|
-
if (designProperty.value.displayType === "input") {
|
|
44
|
-
fileInfo.value.showName = names.join(",");
|
|
45
|
-
fileInfo.value.serverPath = uuids.join(",");
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
function getFieldsByVariable(variableName) {
|
|
51
|
-
if (!variableName) {
|
|
52
|
-
return [];
|
|
53
|
-
}
|
|
54
|
-
if (variableName.startsWith("${")) {
|
|
55
|
-
variableName = variableName.substring(2, variableName.length - 1);
|
|
56
|
-
}
|
|
57
|
-
return variableName.split(".");
|
|
58
|
-
}
|
|
59
|
-
function beforeUpload(params) {
|
|
60
|
-
return fileUploadBeforeUpload(params);
|
|
61
|
-
}
|
|
62
|
-
const onSuccess = (response, uploadFile, uploadFiles) => {
|
|
63
|
-
updateValue();
|
|
64
|
-
};
|
|
65
|
-
const onRemove = (file) => {
|
|
66
|
-
updateValue();
|
|
67
|
-
};
|
|
68
|
-
const updateValue = () => {
|
|
69
|
-
const names = [];
|
|
70
|
-
const uuids = [];
|
|
71
|
-
for (let index = 0; index < fileList.value.length; index++) {
|
|
72
|
-
names.push(fileList.value[index].showName);
|
|
73
|
-
uuids.push(fileList.value[index].serverPath);
|
|
74
|
-
}
|
|
75
|
-
setVariableValue(props.pageContext.entity, pathFields, uuids.join(","));
|
|
76
|
-
setVariableValue(props.pageContext.entity, nameFields, names.join(","));
|
|
77
|
-
};
|
|
78
|
-
const formItemRef = ref(null);
|
|
79
|
-
const titleRef = ref(null);
|
|
80
|
-
onMounted(() => {
|
|
81
|
-
eventBus.$on(componentId.value + "-pickFileDone", (data) => {
|
|
82
|
-
console.log("superPage4444---pickFileDone--componentId.value=", componentId.value, "data=", data);
|
|
83
|
-
fileUploadRef.value.pickFileDone(data);
|
|
1
|
+
import { defineComponent as e, ref as t, onMounted as l, nextTick as o, onUnmounted as i, resolveComponent as a, openBlock as s, createBlock as n, normalizeClass as p, unref as u, normalizeStyle as r, withCtx as m, createElementBlock as f, toDisplayString as c, createCommentVNode as d, createVNode as v } from "vue";
|
|
2
|
+
import { getVariableValue as h, setVariableValue as y } from "../../../../utils/page-helper-util.js";
|
|
3
|
+
import { handleAfterInitEvent as g, fileUploadBeforeUpload as C } from "../../../../utils/events/event-util.js";
|
|
4
|
+
import x from "agilebuilder-ui/src/utils/request";
|
|
5
|
+
import { FsUploadNew as b } from "agilebuilder-ui";
|
|
6
|
+
import k from "../../../../utils/eventBus.js";
|
|
7
|
+
import { $t as _ } from "../../../../utils/i18n-util.js";
|
|
8
|
+
const w = e({ __name: "fileupload-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
|
|
9
|
+
const w2 = e2, P = w2.configure.runtime ? w2.configure.runtime : {}, j = t(P.props ? P.props : {}), R = P.style, T = P.class, z = P.headerStyle, I = P.titleExceedStyle, O = w2.pageContext.entity ? w2.pageContext.entity : {}, S = w2.configure.props.base ? w2.configure.props.base : {}, F = E(S.prop), N = E(S.propName), q = w2.pageContext.code, D = t(F ? q + "__" + F.join("__") : null), U = h(O, F), $ = t(null), W = t([]), B = t({});
|
|
10
|
+
if (U) {
|
|
11
|
+
const e3 = U.split(",");
|
|
12
|
+
if (e3.length > 0) {
|
|
13
|
+
const t2 = w2.pageContext.backendUrl;
|
|
14
|
+
x.post(t2 + "/common/fs-upload/search-file-names", e3).then((t3) => {
|
|
15
|
+
const l2 = [];
|
|
16
|
+
for (let o2 = 0; o2 < e3.length; o2++) {
|
|
17
|
+
const i2 = e3[o2];
|
|
18
|
+
l2.push(t3[i2]), W.value.push({ showName: t3[i2], serverPath: i2 });
|
|
19
|
+
}
|
|
20
|
+
"input" === j.value.displayType && (B.value.showName = l2.join(","), B.value.serverPath = e3.join(","));
|
|
84
21
|
});
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
handleAfterInitEvent(
|
|
90
|
-
value,
|
|
91
|
-
props.pageContext,
|
|
92
|
-
props.configure,
|
|
93
|
-
{
|
|
94
|
-
formItemRef: formItemRef.value,
|
|
95
|
-
componentRef: fileUploadRef.value,
|
|
96
|
-
titleRef: titleRef.value,
|
|
97
|
-
value,
|
|
98
|
-
entity: props.pageContext.entity.data,
|
|
99
|
-
pageData: props.pageContext.entity.page
|
|
100
|
-
}
|
|
101
|
-
);
|
|
102
|
-
});
|
|
103
|
-
});
|
|
104
|
-
onUnmounted(() => {
|
|
105
|
-
eventBus.$off(componentId.value + "-pickFileDone");
|
|
106
|
-
});
|
|
107
|
-
return (_ctx, _cache) => {
|
|
108
|
-
const _component_el_form_item = resolveComponent("el-form-item");
|
|
109
|
-
return designProperty.value.tittleShow ? (openBlock(), createBlock(_component_el_form_item, {
|
|
110
|
-
key: 0,
|
|
111
|
-
ref_key: "formItemRef",
|
|
112
|
-
ref: formItemRef,
|
|
113
|
-
required: designProperty.value.required,
|
|
114
|
-
class: normalizeClass(unref(runtimeClass)),
|
|
115
|
-
"label-width": designProperty.value.labelWidth,
|
|
116
|
-
style: normalizeStyle(unref(runtimeStyle))
|
|
117
|
-
}, {
|
|
118
|
-
label: withCtx(() => [
|
|
119
|
-
designProperty.value.tittleShow ? (openBlock(), createElementBlock("div", {
|
|
120
|
-
key: 0,
|
|
121
|
-
ref_key: "titleRef",
|
|
122
|
-
ref: titleRef,
|
|
123
|
-
style: normalizeStyle({ ...unref(headerStyle), ...unref(titleExceedStyle) })
|
|
124
|
-
}, toDisplayString(unref($t)(designProperty.value.title)), 5)) : createCommentVNode("", true)
|
|
125
|
-
]),
|
|
126
|
-
default: withCtx(() => [
|
|
127
|
-
createVNode(unref(FsUploadNew), {
|
|
128
|
-
ref_key: "fileUploadRef",
|
|
129
|
-
ref: fileUploadRef,
|
|
130
|
-
style: { "width": "100%" },
|
|
131
|
-
disabled: designProperty.value.state === "disabled",
|
|
132
|
-
displayType: designProperty.value.displayType,
|
|
133
|
-
accept: designProperty.value.accept,
|
|
134
|
-
multiple: designProperty.value.multiple,
|
|
135
|
-
placeholder: designProperty.value.placeholder,
|
|
136
|
-
limit: designProperty.value.limit,
|
|
137
|
-
"limit-file-size": designProperty.value.limitFileSize,
|
|
138
|
-
openCameraOrChoosePhoto: designProperty.value.openCameraOrChoosePhoto,
|
|
139
|
-
"file-info": fileInfo.value,
|
|
140
|
-
"file-list": fileList.value,
|
|
141
|
-
"system-code": _ctx.pageContext.systemCode,
|
|
142
|
-
componentId: componentId.value,
|
|
143
|
-
"on-success": onSuccess,
|
|
144
|
-
"on-remove": onRemove,
|
|
145
|
-
"before-upload": beforeUpload,
|
|
146
|
-
pageContext: _ctx.pageContext
|
|
147
|
-
}, null, 8, ["disabled", "displayType", "accept", "multiple", "placeholder", "limit", "limit-file-size", "openCameraOrChoosePhoto", "file-info", "file-list", "system-code", "componentId", "pageContext"])
|
|
148
|
-
]),
|
|
149
|
-
_: 1
|
|
150
|
-
}, 8, ["required", "class", "label-width", "style"])) : (openBlock(), createBlock(unref(FsUploadNew), {
|
|
151
|
-
key: 1,
|
|
152
|
-
ref_key: "fileUploadRef",
|
|
153
|
-
ref: fileUploadRef,
|
|
154
|
-
style: { "width": "100%" },
|
|
155
|
-
disabled: designProperty.value.state === "disabled",
|
|
156
|
-
displayType: designProperty.value.displayType,
|
|
157
|
-
accept: designProperty.value.accept,
|
|
158
|
-
multiple: designProperty.value.multiple,
|
|
159
|
-
placeholder: designProperty.value.placeholder,
|
|
160
|
-
limit: designProperty.value.limit,
|
|
161
|
-
"limit-file-size": designProperty.value.limitFileSize,
|
|
162
|
-
openCameraOrChoosePhoto: designProperty.value.openCameraOrChoosePhoto,
|
|
163
|
-
"file-info": fileInfo.value,
|
|
164
|
-
"file-list": fileList.value,
|
|
165
|
-
"system-code": _ctx.pageContext.systemCode,
|
|
166
|
-
componentId: componentId.value,
|
|
167
|
-
"on-success": onSuccess,
|
|
168
|
-
"on-remove": onRemove,
|
|
169
|
-
"before-upload": beforeUpload,
|
|
170
|
-
pageContext: _ctx.pageContext
|
|
171
|
-
}, null, 8, ["disabled", "displayType", "accept", "multiple", "placeholder", "limit", "limit-file-size", "openCameraOrChoosePhoto", "file-info", "file-list", "system-code", "componentId", "pageContext"]));
|
|
172
|
-
};
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
function E(e3) {
|
|
25
|
+
return e3 ? (e3.startsWith("${") && (e3 = e3.substring(2, e3.length - 1)), e3.split(".")) : [];
|
|
173
26
|
}
|
|
174
|
-
|
|
27
|
+
function A(e3) {
|
|
28
|
+
return C(e3);
|
|
29
|
+
}
|
|
30
|
+
const G = (e3, t2, l2) => {
|
|
31
|
+
J();
|
|
32
|
+
}, H = (e3) => {
|
|
33
|
+
J();
|
|
34
|
+
}, J = () => {
|
|
35
|
+
const e3 = [], t2 = [];
|
|
36
|
+
for (let l2 = 0; l2 < W.value.length; l2++)
|
|
37
|
+
e3.push(W.value[l2].showName), t2.push(W.value[l2].serverPath);
|
|
38
|
+
y(w2.pageContext.entity, F, t2.join(",")), y(w2.pageContext.entity, N, e3.join(","));
|
|
39
|
+
}, K = t(null), L = t(null);
|
|
40
|
+
return l(() => {
|
|
41
|
+
k.$on(D.value + "-pickFileDone", (e3) => {
|
|
42
|
+
$.value.pickFileDone(e3);
|
|
43
|
+
}), o(() => {
|
|
44
|
+
const e3 = h(O, F), t2 = { showName: h(O, N), serverPath: e3 };
|
|
45
|
+
g(t2, w2.pageContext, w2.configure, { formItemRef: K.value, componentRef: $.value, titleRef: L.value, value: t2, entity: w2.pageContext.entity.data, pageData: w2.pageContext.entity.page });
|
|
46
|
+
});
|
|
47
|
+
}), i(() => {
|
|
48
|
+
k.$off(D.value + "-pickFileDone");
|
|
49
|
+
}), (e3, t2) => {
|
|
50
|
+
const l2 = a("el-form-item");
|
|
51
|
+
return j.value.tittleShow ? (s(), n(l2, { key: 0, ref_key: "formItemRef", ref: K, required: j.value.required, class: p(u(T)), "label-width": j.value.labelWidth, style: r(u(R)) }, { label: m(() => [j.value.tittleShow ? (s(), f("div", { key: 0, ref_key: "titleRef", ref: L, style: r({ ...u(z), ...u(I) }) }, c(u(_)(j.value.title)), 5)) : d("", true)]), default: m(() => [v(u(b), { ref_key: "fileUploadRef", ref: $, style: { width: "100%" }, disabled: "disabled" === j.value.state, displayType: j.value.displayType, accept: j.value.accept, multiple: j.value.multiple, placeholder: j.value.placeholder, limit: j.value.limit, "limit-file-size": j.value.limitFileSize, openCameraOrChoosePhoto: j.value.openCameraOrChoosePhoto, "file-info": B.value, "file-list": W.value, "system-code": e3.pageContext.systemCode, componentId: D.value, "on-success": G, "on-remove": H, "before-upload": A, pageContext: e3.pageContext }, null, 8, ["disabled", "displayType", "accept", "multiple", "placeholder", "limit", "limit-file-size", "openCameraOrChoosePhoto", "file-info", "file-list", "system-code", "componentId", "pageContext"])]), _: 1 }, 8, ["required", "class", "label-width", "style"])) : (s(), n(u(b), { key: 1, ref_key: "fileUploadRef", ref: $, style: { width: "100%" }, disabled: "disabled" === j.value.state, displayType: j.value.displayType, accept: j.value.accept, multiple: j.value.multiple, placeholder: j.value.placeholder, limit: j.value.limit, "limit-file-size": j.value.limitFileSize, openCameraOrChoosePhoto: j.value.openCameraOrChoosePhoto, "file-info": B.value, "file-list": W.value, "system-code": e3.pageContext.systemCode, componentId: D.value, "on-success": G, "on-remove": H, "before-upload": A, pageContext: e3.pageContext }, null, 8, ["disabled", "displayType", "accept", "multiple", "placeholder", "limit", "limit-file-size", "openCameraOrChoosePhoto", "file-info", "file-list", "system-code", "componentId", "pageContext"]));
|
|
52
|
+
};
|
|
53
|
+
} });
|
|
175
54
|
export {
|
|
176
|
-
|
|
55
|
+
w as default
|
|
177
56
|
};
|
package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js
CHANGED
|
@@ -1,106 +1,25 @@
|
|
|
1
|
-
import { defineComponent, computed, 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 { getVariableValue, setVariableValue } from "../../../../utils/page-helper-util.js";
|
|
4
|
-
import { handleAfterInitEvent, handleFormEvent } from "../../../../utils/events/event-util.js";
|
|
5
|
-
import
|
|
6
|
-
import { $t } from "../../../../utils/i18n-util.js";
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
},
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
const dynamicModelMethod = computed({
|
|
18
|
-
get() {
|
|
19
|
-
return getVariableValue(entity, dynamicFields);
|
|
20
|
-
},
|
|
21
|
-
set(value) {
|
|
22
|
-
setVariableValue(entity, dynamicFields, value);
|
|
23
|
-
}
|
|
1
|
+
import { defineComponent as e, computed as t, ref as l, onMounted as o, nextTick as a, resolveComponent as n, openBlock as u, createBlock as r, normalizeClass as i, unref as p, normalizeStyle as s, withCtx as m, createElementBlock as f, Fragment as c, createTextVNode as d, toDisplayString as g, createCommentVNode as v, createVNode as y } from "vue";
|
|
2
|
+
import { getFormModelFields as x } from "../../../../utils/page-init-util.js";
|
|
3
|
+
import { getVariableValue as C, setVariableValue as h } from "../../../../utils/page-helper-util.js";
|
|
4
|
+
import { handleAfterInitEvent as b, handleFormEvent as k } from "../../../../utils/events/event-util.js";
|
|
5
|
+
import R from "../common/title-suffix-element.vue.js";
|
|
6
|
+
import { $t as _ } from "../../../../utils/i18n-util.js";
|
|
7
|
+
const j = e({ __name: "input-number-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
|
|
8
|
+
const j2 = e2, w = j2.pageContext.entity ? j2.pageContext.entity : {};
|
|
9
|
+
let q = x(j2.pageContext, j2.configure);
|
|
10
|
+
const z = t({ get: () => C(w, q), set(e3) {
|
|
11
|
+
h(w, q, e3);
|
|
12
|
+
} }), S = j2.configure.runtime ? j2.configure.runtime : {}, V = S.style, B = S.class, I = S.headerStyle, D = S.titleExceedStyle, E = l(S.props ? S.props : {}), F = l(null), T = l(null), U = l(null);
|
|
13
|
+
return o(() => {
|
|
14
|
+
a(() => {
|
|
15
|
+
const e3 = z.value;
|
|
16
|
+
b(e3, j2.pageContext, j2.configure, { formItemRef: F.value, componentRef: T.value, titleRef: U.value, value: e3, entity: j2.pageContext.entity.data, pageData: j2.pageContext.entity.page });
|
|
24
17
|
});
|
|
25
|
-
|
|
26
|
-
const
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
const designProperty = ref(runtimeInfo.props ? runtimeInfo.props : {});
|
|
31
|
-
const formItemRef = ref(null);
|
|
32
|
-
const componentRef = ref(null);
|
|
33
|
-
const titleRef = ref(null);
|
|
34
|
-
onMounted(() => {
|
|
35
|
-
nextTick(() => {
|
|
36
|
-
const value = dynamicModelMethod.value;
|
|
37
|
-
handleAfterInitEvent(
|
|
38
|
-
value,
|
|
39
|
-
props.pageContext,
|
|
40
|
-
props.configure,
|
|
41
|
-
{
|
|
42
|
-
formItemRef: formItemRef.value,
|
|
43
|
-
componentRef: componentRef.value,
|
|
44
|
-
titleRef: titleRef.value,
|
|
45
|
-
value,
|
|
46
|
-
entity: props.pageContext.entity.data,
|
|
47
|
-
pageData: props.pageContext.entity.page
|
|
48
|
-
}
|
|
49
|
-
);
|
|
50
|
-
});
|
|
51
|
-
});
|
|
52
|
-
return (_ctx, _cache) => {
|
|
53
|
-
const _component_el_input_number = resolveComponent("el-input-number");
|
|
54
|
-
const _component_el_form_item = resolveComponent("el-form-item");
|
|
55
|
-
return openBlock(), createBlock(_component_el_form_item, {
|
|
56
|
-
ref_key: "formItemRef",
|
|
57
|
-
ref: formItemRef,
|
|
58
|
-
required: designProperty.value.required,
|
|
59
|
-
class: normalizeClass(unref(runtimeClass)),
|
|
60
|
-
"label-width": designProperty.value.labelWidth,
|
|
61
|
-
style: normalizeStyle(unref(runtimeStyle))
|
|
62
|
-
}, {
|
|
63
|
-
label: withCtx(() => [
|
|
64
|
-
designProperty.value.tittleShow ? (openBlock(), createElementBlock("div", {
|
|
65
|
-
key: 0,
|
|
66
|
-
ref_key: "titleRef",
|
|
67
|
-
ref: titleRef,
|
|
68
|
-
style: normalizeStyle({ ...unref(headerStyle), ...unref(titleExceedStyle) })
|
|
69
|
-
}, [
|
|
70
|
-
designProperty.value.prefixType ? (openBlock(), createBlock(_sfc_main$1, {
|
|
71
|
-
key: 0,
|
|
72
|
-
pageContext: _ctx.pageContext,
|
|
73
|
-
property: designProperty.value
|
|
74
|
-
}, null, 8, ["pageContext", "property"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
75
|
-
createTextVNode(toDisplayString(unref($t)(designProperty.value.title)), 1)
|
|
76
|
-
], 64))
|
|
77
|
-
], 4)) : createCommentVNode("", true)
|
|
78
|
-
]),
|
|
79
|
-
default: withCtx(() => [
|
|
80
|
-
createVNode(_component_el_input_number, {
|
|
81
|
-
ref_key: "componentRef",
|
|
82
|
-
ref: componentRef,
|
|
83
|
-
disabled: designProperty.value.state === "disabled",
|
|
84
|
-
readonly: designProperty.value.state === "readonly",
|
|
85
|
-
controls: designProperty.value.showButton,
|
|
86
|
-
size: designProperty.value.size,
|
|
87
|
-
placeholder: designProperty.value.placeholder,
|
|
88
|
-
modelValue: dynamicModelMethod.value,
|
|
89
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => dynamicModelMethod.value = $event),
|
|
90
|
-
precision: designProperty.value.precision,
|
|
91
|
-
step: designProperty.value.step,
|
|
92
|
-
min: designProperty.value.min,
|
|
93
|
-
max: designProperty.value.max,
|
|
94
|
-
onChange: _cache[1] || (_cache[1] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "change")),
|
|
95
|
-
onBlur: _cache[2] || (_cache[2] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "blur")),
|
|
96
|
-
onFocus: _cache[3] || (_cache[3] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "focus"))
|
|
97
|
-
}, null, 8, ["disabled", "readonly", "controls", "size", "placeholder", "modelValue", "precision", "step", "min", "max"])
|
|
98
|
-
]),
|
|
99
|
-
_: 1
|
|
100
|
-
}, 8, ["required", "class", "label-width", "style"]);
|
|
101
|
-
};
|
|
102
|
-
}
|
|
103
|
-
});
|
|
18
|
+
}), (e3, t2) => {
|
|
19
|
+
const l2 = n("el-input-number"), o2 = n("el-form-item");
|
|
20
|
+
return u(), r(o2, { ref_key: "formItemRef", ref: F, required: E.value.required, class: i(p(B)), "label-width": E.value.labelWidth, style: s(p(V)) }, { label: m(() => [E.value.tittleShow ? (u(), f("div", { key: 0, ref_key: "titleRef", ref: U, style: s({ ...p(I), ...p(D) }) }, [E.value.prefixType ? (u(), r(R, { key: 0, pageContext: e3.pageContext, property: E.value }, null, 8, ["pageContext", "property"])) : (u(), f(c, { key: 1 }, [d(g(p(_)(E.value.title)), 1)], 64))], 4)) : v("", true)]), default: m(() => [y(l2, { ref_key: "componentRef", ref: T, disabled: "disabled" === E.value.state, readonly: "readonly" === E.value.state, controls: E.value.showButton, size: E.value.size, placeholder: E.value.placeholder, modelValue: z.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => z.value = e4), precision: E.value.precision, step: E.value.step, min: E.value.min, max: E.value.max, onChange: t2[1] || (t2[1] = (t3) => p(k)(t3, e3.pageContext, e3.configure, "change")), onBlur: t2[2] || (t2[2] = (t3) => p(k)(t3, e3.pageContext, e3.configure, "blur")), onFocus: t2[3] || (t2[3] = (t3) => p(k)(t3, e3.pageContext, e3.configure, "focus")) }, null, 8, ["disabled", "readonly", "controls", "size", "placeholder", "modelValue", "precision", "step", "min", "max"])]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
|
|
21
|
+
};
|
|
22
|
+
} });
|
|
104
23
|
export {
|
|
105
|
-
|
|
24
|
+
j as default
|
|
106
25
|
};
|