super-page-runtime 2.1.933 → 2.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/_virtual/_plugin-vue_export-helper.js +5 -7
- package/dist/es/assets/chart-themes/theme1.js +2 -6
- package/dist/es/assets/chart-themes/theme2.js +2 -6
- package/dist/es/assets/chart-themes/theme3.js +2 -6
- package/dist/es/components/runtime/index.d.ts +2 -1
- package/dist/es/components/runtime/utils/api/api-util.js +4 -7
- package/dist/es/components/runtime/utils/api/page-expose-util.js +137 -435
- package/dist/es/components/runtime/utils/assemblys-config.js +11 -367
- package/dist/es/components/runtime/utils/barcode-util.js +9 -33
- package/dist/es/components/runtime/utils/charts/chart-columnline-util.js +122 -306
- package/dist/es/components/runtime/utils/charts/chart-gauge-util.js +29 -68
- package/dist/es/components/runtime/utils/charts/chart-pie-util.js +68 -152
- package/dist/es/components/runtime/utils/charts/chart-radar-util.js +46 -124
- package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +36 -99
- package/dist/es/components/runtime/utils/charts/chart-util.d.ts +1 -0
- package/dist/es/components/runtime/utils/charts/chart-util.js +226 -485
- package/dist/es/components/runtime/utils/common-util.js +76 -153
- package/dist/es/components/runtime/utils/eventBus.js +3 -9
- package/dist/es/components/runtime/utils/events/event-util.js +343 -727
- package/dist/es/components/runtime/utils/events/print-label.js +72 -140
- package/dist/es/components/runtime/utils/events/standard-event.d.ts +2 -2
- package/dist/es/components/runtime/utils/events/standard-event.js +810 -2299
- package/dist/es/components/runtime/utils/events/validator-util.js +222 -552
- package/dist/es/components/runtime/utils/form/date-shortcuts.js +28 -88
- package/dist/es/components/runtime/utils/form/scan-util.js +61 -162
- package/dist/es/components/runtime/utils/global-refs.js +53 -84
- package/dist/es/components/runtime/utils/i18n-util.js +11 -20
- package/dist/es/components/runtime/utils/interfaces/page-design-types.d.ts +2 -0
- package/dist/es/components/runtime/utils/interfaces/page-design-types.js +2 -7
- package/dist/es/components/runtime/utils/page-helper-util.js +278 -658
- package/dist/es/components/runtime/utils/page-init-util.d.ts +6 -1
- package/dist/es/components/runtime/utils/page-init-util.js +132 -370
- package/dist/es/components/runtime/utils/page-permission-util.js +22 -531
- package/dist/es/components/runtime/utils/page-store.d.ts +2 -2
- package/dist/es/components/runtime/utils/page-store.js +8 -12
- package/dist/es/components/runtime/utils/store-util.js +9 -13
- package/dist/es/components/runtime/utils/store.js +2 -2
- package/dist/es/components/runtime/utils/table-utils.js +45 -84
- package/dist/es/components/runtime/utils/tree-utils.js +17 -37
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +19 -75
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +14 -46
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +36 -132
- package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +4 -18
- package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +17 -107
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +50 -198
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.js +12 -42
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +7 -60
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +52 -169
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue.js +44 -0
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +4 -0
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +32 -107
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +43 -164
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +32 -115
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +32 -116
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.d.ts +34 -1
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +253 -449
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue.js +4 -42
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue.js +8 -62
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.js +37 -231
- package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue.js +13 -62
- package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +197 -510
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.d.ts +4 -4
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +29 -139
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.d.ts +6 -6
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +21 -125
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.d.ts +6 -6
- package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +16 -102
- package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +18 -81
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +17 -82
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +14 -86
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +21 -79
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +16 -61
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +10 -37
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +38 -127
- package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +28 -76
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +61 -178
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +302 -803
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +249 -594
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +40 -115
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +56 -215
- package/dist/es/components/runtime/views/assemblys/error-render.vue.d.ts +4 -4
- package/dist/es/components/runtime/views/assemblys/error-render.vue.js +3 -21
- package/dist/es/components/runtime/views/assemblys/error-render.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +42 -154
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +34 -98
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +52 -200
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +66 -239
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +31 -104
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +21 -59
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +51 -173
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +22 -103
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +57 -249
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +32 -174
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +28 -107
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +4 -4
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +13 -50
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +61 -189
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +87 -244
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +77 -261
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +13 -57
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +30 -155
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +40 -129
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +22 -107
- package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.d.ts +17 -0
- package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +97 -0
- package/dist/es/components/runtime/views/assemblys/home-chart-render.vue2.js +4 -0
- package/dist/es/components/runtime/views/assemblys/object-render.vue.d.ts +1 -1
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +125 -254
- package/dist/es/components/runtime/views/assemblys/object-render.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue2.js +18 -46
- package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue2.js +21 -49
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +20 -58
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue2.js +16 -53
- package/dist/es/components/runtime/views/home-chart.vue.d.ts +23 -0
- package/dist/es/components/runtime/views/home-chart.vue.js +36 -0
- package/dist/es/components/runtime/views/home-chart.vue2.js +4 -0
- package/dist/es/components/runtime/views/super-page-dialog.vue.d.ts +3 -3
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +20 -134
- package/dist/es/components/runtime/views/super-page-dialog.vue2.js +2 -2
- package/dist/es/components/runtime/views/super-page.vue.d.ts +15 -6
- package/dist/es/components/runtime/views/super-page.vue.js +222 -708
- package/dist/es/components/runtime/views/super-page.vue2.js +2 -2
- package/dist/es/i18n/langs/cn.js +2 -55
- package/dist/es/i18n/langs/en.js +2 -55
- package/dist/es/index.d.ts +2 -2
- package/dist/es/index.js +6 -4
- package/package.json +3 -2
package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js
CHANGED
|
@@ -1,253 +1,61 @@
|
|
|
1
|
-
import { defineComponent, ref, computed, onMounted, nextTick, onUnmounted, watch, resolveComponent, openBlock,
|
|
2
|
-
import { SuperIcon } from "agilebuilder-ui";
|
|
3
|
-
import { getFormModelFields } from "../../../../utils/page-init-util.js";
|
|
4
|
-
import {
|
|
5
|
-
import { handleAfterInitEvent, handleFormEvent } from "../../../../utils/events/event-util.js";
|
|
6
|
-
import { formatScanRuleSets, analysisScanValue, setScanAnalysisValue } from "../../../../utils/form/scan-util.js";
|
|
7
|
-
import
|
|
8
|
-
import { isMobileBrowser } from "agilebuilder-ui/src/utils/common-util";
|
|
9
|
-
import
|
|
10
|
-
import { $t } from "../../../../utils/i18n-util.js";
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const componentId = ref(
|
|
25
|
-
dynamicFields && dynamicFields.length > 0 ? pageCode + "__" + dynamicFields.join("__") : null
|
|
26
|
-
);
|
|
27
|
-
const dynamicModelMethod = computed({
|
|
28
|
-
get() {
|
|
29
|
-
return getVariableValue(entity, dynamicFields);
|
|
30
|
-
},
|
|
31
|
-
set(value) {
|
|
32
|
-
value = value.trim();
|
|
33
|
-
setVariableValue(entity, dynamicFields, value);
|
|
34
|
-
}
|
|
1
|
+
import { defineComponent as e, ref as l, computed as n, onMounted as o, nextTick as u, onUnmounted as t, watch as a, resolveComponent as i, createBlock as r, openBlock as c, normalizeStyle as p, normalizeClass as s, unref as v, withCtx as f, createVNode as y, createCommentVNode as m, createSlots as g, createTextVNode as d, toDisplayString as x, createElementBlock as C, Fragment as I } from "vue";
|
|
2
|
+
import { SuperIcon as T } from "agilebuilder-ui";
|
|
3
|
+
import { getFormModelFields as k } from "../../../../utils/page-init-util.js";
|
|
4
|
+
import { setVariableValue as V, getVariableValue as h } from "../../../../utils/page-helper-util.js";
|
|
5
|
+
import { handleAfterInitEvent as b, handleFormEvent as w } from "../../../../utils/events/event-util.js";
|
|
6
|
+
import { formatScanRuleSets as _, analysisScanValue as j, setScanAnalysisValue as R } from "../../../../utils/form/scan-util.js";
|
|
7
|
+
import S from "../common/title-suffix-element.vue.js";
|
|
8
|
+
import { isMobileBrowser as P } from "agilebuilder-ui/src/utils/common-util";
|
|
9
|
+
import q from "../../../../utils/eventBus.js";
|
|
10
|
+
import { $t as z } from "../../../../utils/i18n-util.js";
|
|
11
|
+
const D = e({ __name: "inputtext-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: D2 }) {
|
|
12
|
+
var _a, _b, _c;
|
|
13
|
+
const L = e2, B = L.pageContext.entity ? L.pageContext.entity : {};
|
|
14
|
+
let N = k(L.pageContext, L.configure);
|
|
15
|
+
const O = l(P()), $ = L.pageContext.code, A = l(N && N.length > 0 ? $ + "__" + N.join("__") : null), E = n({ get: () => h(B, N), set(e3) {
|
|
16
|
+
e3 = e3.trim(), V(B, N, e3);
|
|
17
|
+
} }), F = l(null), J = l(null), M = l(null);
|
|
18
|
+
o(() => {
|
|
19
|
+
q.$on(A.value + "-scanDone", (e3) => {
|
|
20
|
+
ne(e3.result);
|
|
21
|
+
}), u(() => {
|
|
22
|
+
const e3 = E.value;
|
|
23
|
+
b(e3, L.pageContext, L.configure, { formItemRef: F.value, componentRef: J.value, titleRef: M.value, value: e3, entity: L.pageContext.entity.data, pageData: L.pageContext.entity.page });
|
|
35
24
|
});
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
componentRef: componentRef.value,
|
|
58
|
-
titleRef: titleRef.value,
|
|
59
|
-
value,
|
|
60
|
-
entity: props.pageContext.entity.data,
|
|
61
|
-
pageData: props.pageContext.entity.page
|
|
62
|
-
}
|
|
63
|
-
);
|
|
64
|
-
});
|
|
65
|
-
});
|
|
66
|
-
onUnmounted(() => {
|
|
67
|
-
eventBus.$off(componentId.value + "-scanDone");
|
|
68
|
-
});
|
|
69
|
-
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
|
|
70
|
-
const designProperty = ref(runtimeInfo.props ? runtimeInfo.props : {});
|
|
71
|
-
const scanEnable = ref(((_a = designProperty.value.scan) == null ? void 0 : _a.enable) ? true : false);
|
|
72
|
-
let userAgent;
|
|
73
|
-
const userAgentOrg = navigator.userAgent;
|
|
74
|
-
if (userAgentOrg.indexOf(" uni-app ") > 0) {
|
|
75
|
-
userAgent = "app";
|
|
76
|
-
} else {
|
|
77
|
-
userAgent = "browser";
|
|
78
|
-
}
|
|
79
|
-
const isApk = isMobile.value && userAgent && userAgent === "app" ? true : false;
|
|
80
|
-
const isShowScanIcon = ref(
|
|
81
|
-
isApk && scanEnable.value || isMobile.value && scanEnable.value && window.location.protocol === "https:" ? true : false
|
|
82
|
-
);
|
|
83
|
-
let scanRuleSets = {};
|
|
84
|
-
if (((_b = designProperty.value.scan) == null ? void 0 : _b.enable) && ((_c = designProperty.value.scan.ruleList) == null ? void 0 : _c.length) > 0) {
|
|
85
|
-
setScanRuleSets();
|
|
86
|
-
watchScanValueChange();
|
|
87
|
-
}
|
|
88
|
-
const runtimeStyle = runtimeInfo.style;
|
|
89
|
-
const runtimeClass = runtimeInfo.class;
|
|
90
|
-
const headerStyle = runtimeInfo.headerStyle;
|
|
91
|
-
const titleExceedStyle = runtimeInfo.titleExceedStyle;
|
|
92
|
-
function getValue() {
|
|
93
|
-
return getVariableValue(entity, dynamicFields);
|
|
94
|
-
}
|
|
95
|
-
function setValue(value) {
|
|
96
|
-
return setVariableValue(entity, dynamicFields, value);
|
|
97
|
-
}
|
|
98
|
-
function setScanRuleSets() {
|
|
99
|
-
formatScanRuleSets(designProperty.value.scan.ruleList).then((res) => {
|
|
100
|
-
scanRuleSets = res;
|
|
101
|
-
});
|
|
102
|
-
}
|
|
103
|
-
function watchScanValueChange() {
|
|
104
|
-
watch(
|
|
105
|
-
() => dynamicModelMethod.value,
|
|
106
|
-
(newValue) => {
|
|
107
|
-
const valueSet = analysisScanValue(newValue, scanRuleSets);
|
|
108
|
-
if (valueSet) {
|
|
109
|
-
setScanAnalysisValue(props.pageContext, valueSet.scanSet, valueSet.params);
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
);
|
|
113
|
-
}
|
|
114
|
-
const isShowBrowserScan = ref(false);
|
|
115
|
-
function scanClick() {
|
|
116
|
-
console.log("scanClick----userAgent=", userAgent);
|
|
117
|
-
if (isApk) {
|
|
118
|
-
const message = {
|
|
119
|
-
type: "scan",
|
|
120
|
-
componentId: componentId.value,
|
|
121
|
-
systemCode: props.pageContext.systemCode
|
|
122
|
-
};
|
|
123
|
-
window.parent.postMessage(JSON.stringify(message), "*");
|
|
124
|
-
} else {
|
|
125
|
-
isShowBrowserScan.value = true;
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
function closeBrowserScan(value) {
|
|
129
|
-
isShowBrowserScan.value = false;
|
|
130
|
-
setValue(value);
|
|
131
|
-
}
|
|
132
|
-
__expose({
|
|
133
|
-
getValue,
|
|
134
|
-
setValue
|
|
135
|
-
});
|
|
136
|
-
return (_ctx, _cache) => {
|
|
137
|
-
const _component_el_input = resolveComponent("el-input");
|
|
138
|
-
const _component_scan_code_input_browser = resolveComponent("scan-code-input-browser");
|
|
139
|
-
const _component_el_form_item = resolveComponent("el-form-item");
|
|
140
|
-
return openBlock(), createBlock(_component_el_form_item, {
|
|
141
|
-
ref_key: "formItemRef",
|
|
142
|
-
ref: formItemRef,
|
|
143
|
-
required: designProperty.value.required ? true : false,
|
|
144
|
-
class: normalizeClass(unref(runtimeClass)),
|
|
145
|
-
"label-width": designProperty.value.labelWidth,
|
|
146
|
-
style: normalizeStyle(unref(runtimeStyle))
|
|
147
|
-
}, {
|
|
148
|
-
label: withCtx(() => [
|
|
149
|
-
designProperty.value.tittleShow ? (openBlock(), createElementBlock("div", {
|
|
150
|
-
key: 0,
|
|
151
|
-
ref_key: "titleRef",
|
|
152
|
-
ref: titleRef,
|
|
153
|
-
style: normalizeStyle({ ...unref(headerStyle), ...unref(titleExceedStyle) })
|
|
154
|
-
}, [
|
|
155
|
-
designProperty.value.prefixType ? (openBlock(), createBlock(_sfc_main$1, {
|
|
156
|
-
key: 0,
|
|
157
|
-
pageContext: _ctx.pageContext,
|
|
158
|
-
property: designProperty.value
|
|
159
|
-
}, null, 8, ["pageContext", "property"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
160
|
-
createTextVNode(toDisplayString(unref($t)(designProperty.value.title)), 1)
|
|
161
|
-
], 64))
|
|
162
|
-
], 4)) : createCommentVNode("", true)
|
|
163
|
-
]),
|
|
164
|
-
default: withCtx(() => [
|
|
165
|
-
createVNode(_component_el_input, {
|
|
166
|
-
ref_key: "componentRef",
|
|
167
|
-
ref: componentRef,
|
|
168
|
-
disabled: designProperty.value.state === "disabled",
|
|
169
|
-
readonly: designProperty.value.state === "readonly",
|
|
170
|
-
size: designProperty.value.size,
|
|
171
|
-
clearable: designProperty.value.clearable,
|
|
172
|
-
placeholder: designProperty.value.placeholder,
|
|
173
|
-
maxlength: designProperty.value.maxLength,
|
|
174
|
-
"show-word-limit": designProperty.value.showInputNum,
|
|
175
|
-
modelValue: dynamicModelMethod.value,
|
|
176
|
-
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => dynamicModelMethod.value = $event),
|
|
177
|
-
onInput: _cache[6] || (_cache[6] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "input")),
|
|
178
|
-
onChange: _cache[7] || (_cache[7] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "change")),
|
|
179
|
-
onBlur: _cache[8] || (_cache[8] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "blur")),
|
|
180
|
-
onFocus: _cache[9] || (_cache[9] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "focus")),
|
|
181
|
-
onClick: _cache[10] || (_cache[10] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "click"))
|
|
182
|
-
}, createSlots({ _: 2 }, [
|
|
183
|
-
designProperty.value.iconPosition != "outer" && (designProperty.value.preIconType && designProperty.value.preIconValue || designProperty.value.preText) ? {
|
|
184
|
-
name: "prefix",
|
|
185
|
-
fn: withCtx(() => [
|
|
186
|
-
designProperty.value.preIconType && designProperty.value.preIconValue ? (openBlock(), createBlock(unref(SuperIcon), {
|
|
187
|
-
key: 0,
|
|
188
|
-
iconType: designProperty.value.preIconType,
|
|
189
|
-
iconValue: designProperty.value.preIconValue,
|
|
190
|
-
onClick: _cache[0] || (_cache[0] = ($event) => unref(handleFormEvent)(dynamicModelMethod.value, _ctx.pageContext, _ctx.configure, "prefixClick"))
|
|
191
|
-
}, null, 8, ["iconType", "iconValue"])) : createCommentVNode("", true),
|
|
192
|
-
createTextVNode(" " + toDisplayString(unref($t)(designProperty.value.preText)), 1)
|
|
193
|
-
]),
|
|
194
|
-
key: "0"
|
|
195
|
-
} : void 0,
|
|
196
|
-
designProperty.value.iconPosition == "outer" && (designProperty.value.preIconType && designProperty.value.preIconValue || designProperty.value.preText) ? {
|
|
197
|
-
name: "prepend",
|
|
198
|
-
fn: withCtx(() => [
|
|
199
|
-
designProperty.value.preIconType && designProperty.value.preIconValue ? (openBlock(), createBlock(unref(SuperIcon), {
|
|
200
|
-
key: 0,
|
|
201
|
-
iconType: designProperty.value.preIconType,
|
|
202
|
-
iconValue: designProperty.value.preIconValue,
|
|
203
|
-
onClick: _cache[1] || (_cache[1] = ($event) => unref(handleFormEvent)(dynamicModelMethod.value, _ctx.pageContext, _ctx.configure, "prefixClick"))
|
|
204
|
-
}, null, 8, ["iconType", "iconValue"])) : createCommentVNode("", true),
|
|
205
|
-
createTextVNode(" " + toDisplayString(unref($t)(designProperty.value.preText)), 1)
|
|
206
|
-
]),
|
|
207
|
-
key: "1"
|
|
208
|
-
} : void 0,
|
|
209
|
-
designProperty.value.iconPosition != "outer" && (designProperty.value.sufIconType && designProperty.value.sufIconValue || designProperty.value.sufText) ? {
|
|
210
|
-
name: "suffix",
|
|
211
|
-
fn: withCtx(() => [
|
|
212
|
-
designProperty.value.sufIconType && designProperty.value.sufIconValue ? (openBlock(), createBlock(unref(SuperIcon), {
|
|
213
|
-
key: 0,
|
|
214
|
-
iconType: designProperty.value.sufIconType,
|
|
215
|
-
iconValue: designProperty.value.sufIconValue,
|
|
216
|
-
onClick: _cache[2] || (_cache[2] = ($event) => unref(handleFormEvent)(dynamicModelMethod.value, _ctx.pageContext, _ctx.configure, "suffixClick"))
|
|
217
|
-
}, null, 8, ["iconType", "iconValue"])) : createCommentVNode("", true),
|
|
218
|
-
createTextVNode(" " + toDisplayString(unref($t)(designProperty.value.sufText)), 1)
|
|
219
|
-
]),
|
|
220
|
-
key: "2"
|
|
221
|
-
} : void 0,
|
|
222
|
-
isShowScanIcon.value || designProperty.value.iconPosition == "outer" && (designProperty.value.sufIconType && designProperty.value.sufIconValue || designProperty.value.sufText) ? {
|
|
223
|
-
name: "append",
|
|
224
|
-
fn: withCtx(() => [
|
|
225
|
-
isShowScanIcon.value ? (openBlock(), createBlock(unref(SuperIcon), {
|
|
226
|
-
key: 0,
|
|
227
|
-
iconValue: "fa-barcode",
|
|
228
|
-
onClick: _cache[3] || (_cache[3] = ($event) => scanClick())
|
|
229
|
-
})) : createCommentVNode("", true),
|
|
230
|
-
designProperty.value.sufIconType && designProperty.value.sufIconValue ? (openBlock(), createBlock(unref(SuperIcon), {
|
|
231
|
-
key: 1,
|
|
232
|
-
iconType: designProperty.value.sufIconType,
|
|
233
|
-
iconValue: designProperty.value.sufIconValue,
|
|
234
|
-
onClick: _cache[4] || (_cache[4] = ($event) => unref(handleFormEvent)(dynamicModelMethod.value, _ctx.pageContext, _ctx.configure, "suffixClick"))
|
|
235
|
-
}, null, 8, ["iconType", "iconValue"])) : createCommentVNode("", true),
|
|
236
|
-
createTextVNode(" " + toDisplayString(unref($t)(designProperty.value.sufText)), 1)
|
|
237
|
-
]),
|
|
238
|
-
key: "3"
|
|
239
|
-
} : void 0
|
|
240
|
-
]), 1032, ["disabled", "readonly", "size", "clearable", "placeholder", "maxlength", "show-word-limit", "modelValue"]),
|
|
241
|
-
isShowBrowserScan.value ? (openBlock(), createBlock(_component_scan_code_input_browser, {
|
|
242
|
-
key: 0,
|
|
243
|
-
onClose: closeBrowserScan
|
|
244
|
-
})) : createCommentVNode("", true)
|
|
245
|
-
]),
|
|
246
|
-
_: 1
|
|
247
|
-
}, 8, ["required", "class", "label-width", "style"]);
|
|
248
|
-
};
|
|
25
|
+
}), t(() => {
|
|
26
|
+
q.$off(A.value + "-scanDone");
|
|
27
|
+
});
|
|
28
|
+
const U = L.configure.runtime ? L.configure.runtime : {}, W = l(U.props ? U.props : {}), G = l(!!((_a = W.value.scan) == null ? void 0 : _a.enable));
|
|
29
|
+
let H;
|
|
30
|
+
H = navigator.userAgent.indexOf(" uni-app ") > 0 ? "app" : "browser";
|
|
31
|
+
const K = !(!O.value || !H || "app" !== H), Q = l(!!(K && G.value || O.value && G.value && "https:" === window.location.protocol));
|
|
32
|
+
let X = {};
|
|
33
|
+
((_b = W.value.scan) == null ? void 0 : _b.enable) && ((_c = W.value.scan.ruleList) == null ? void 0 : _c.length) > 0 && (_(W.value.scan.ruleList).then((e3) => {
|
|
34
|
+
X = e3;
|
|
35
|
+
}), a(() => E.value, (e3) => {
|
|
36
|
+
const l2 = j(e3, X);
|
|
37
|
+
l2 && R(L.pageContext, l2.scanSet, l2.params);
|
|
38
|
+
}));
|
|
39
|
+
const Y = U.style, Z = U.class, ee = U.headerStyle, le = U.titleExceedStyle;
|
|
40
|
+
function ne(e3) {
|
|
41
|
+
return V(B, N, e3);
|
|
42
|
+
}
|
|
43
|
+
const oe = l(false);
|
|
44
|
+
function ue(e3) {
|
|
45
|
+
oe.value = false, ne(e3);
|
|
249
46
|
}
|
|
250
|
-
|
|
47
|
+
return D2({ getValue: function() {
|
|
48
|
+
return h(B, N);
|
|
49
|
+
}, setValue: ne }), (e3, l2) => {
|
|
50
|
+
const n2 = i("el-input"), o2 = i("scan-code-input-browser"), u2 = i("el-form-item");
|
|
51
|
+
return c(), r(u2, { ref_key: "formItemRef", ref: F, required: !!W.value.required, class: s(v(Z)), "label-width": W.value.labelWidth, style: p(v(Y)) }, { label: f(() => [W.value.tittleShow ? (c(), C("div", { key: 0, ref_key: "titleRef", ref: M, style: p({ ...v(ee), ...v(le) }) }, [W.value.prefixType ? (c(), r(S, { key: 0, pageContext: e3.pageContext, property: W.value }, null, 8, ["pageContext", "property"])) : (c(), C(I, { key: 1 }, [d(x(v(z)(W.value.title)), 1)], 64))], 4)) : m("", true)]), default: f(() => [y(n2, { ref_key: "componentRef", ref: J, disabled: "disabled" === W.value.state, readonly: "readonly" === W.value.state, size: W.value.size, clearable: W.value.clearable, placeholder: W.value.placeholder, maxlength: W.value.maxLength, "show-word-limit": W.value.showInputNum, modelValue: E.value, "onUpdate:modelValue": l2[5] || (l2[5] = (e4) => E.value = e4), onInput: l2[6] || (l2[6] = (l3) => v(w)(l3, e3.pageContext, e3.configure, "input")), onChange: l2[7] || (l2[7] = (l3) => v(w)(l3, e3.pageContext, e3.configure, "change")), onBlur: l2[8] || (l2[8] = (l3) => v(w)(l3, e3.pageContext, e3.configure, "blur")), onFocus: l2[9] || (l2[9] = (l3) => v(w)(l3, e3.pageContext, e3.configure, "focus")), onClick: l2[10] || (l2[10] = (l3) => v(w)(l3, e3.pageContext, e3.configure, "click")) }, g({ _: 2 }, ["outer" != W.value.iconPosition && (W.value.preIconType && W.value.preIconValue || W.value.preText) ? { name: "prefix", fn: f(() => [W.value.preIconType && W.value.preIconValue ? (c(), r(v(T), { key: 0, iconType: W.value.preIconType, iconValue: W.value.preIconValue, onClick: l2[0] || (l2[0] = (l3) => v(w)(E.value, e3.pageContext, e3.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : m("", true), d(" " + x(v(z)(W.value.preText)), 1)]), key: "0" } : void 0, "outer" == W.value.iconPosition && (W.value.preIconType && W.value.preIconValue || W.value.preText) ? { name: "prepend", fn: f(() => [W.value.preIconType && W.value.preIconValue ? (c(), r(v(T), { key: 0, iconType: W.value.preIconType, iconValue: W.value.preIconValue, onClick: l2[1] || (l2[1] = (l3) => v(w)(E.value, e3.pageContext, e3.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : m("", true), d(" " + x(v(z)(W.value.preText)), 1)]), key: "1" } : void 0, "outer" != W.value.iconPosition && (W.value.sufIconType && W.value.sufIconValue || W.value.sufText) ? { name: "suffix", fn: f(() => [W.value.sufIconType && W.value.sufIconValue ? (c(), r(v(T), { key: 0, iconType: W.value.sufIconType, iconValue: W.value.sufIconValue, onClick: l2[2] || (l2[2] = (l3) => v(w)(E.value, e3.pageContext, e3.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : m("", true), d(" " + x(v(z)(W.value.sufText)), 1)]), key: "2" } : void 0, Q.value || "outer" == W.value.iconPosition && (W.value.sufIconType && W.value.sufIconValue || W.value.sufText) ? { name: "append", fn: f(() => [Q.value ? (c(), r(v(T), { key: 0, iconValue: "fa-barcode", onClick: l2[3] || (l2[3] = (e4) => function() {
|
|
52
|
+
if (K) {
|
|
53
|
+
const e5 = { type: "scan", componentId: A.value, systemCode: L.pageContext.systemCode };
|
|
54
|
+
window.parent.postMessage(JSON.stringify(e5), "*");
|
|
55
|
+
} else oe.value = true;
|
|
56
|
+
}()) })) : m("", true), W.value.sufIconType && W.value.sufIconValue ? (c(), r(v(T), { key: 1, iconType: W.value.sufIconType, iconValue: W.value.sufIconValue, onClick: l2[4] || (l2[4] = (l3) => v(w)(E.value, e3.pageContext, e3.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : m("", true), d(" " + x(v(z)(W.value.sufText)), 1)]), key: "3" } : void 0]), 1032, ["disabled", "readonly", "size", "clearable", "placeholder", "maxlength", "show-word-limit", "modelValue"]), oe.value ? (c(), r(o2, { key: 0, onClose: ue })) : m("", true)]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
|
|
57
|
+
};
|
|
58
|
+
} });
|
|
251
59
|
export {
|
|
252
|
-
|
|
60
|
+
D as default
|
|
253
61
|
};
|
|
@@ -1,177 +1,35 @@
|
|
|
1
|
-
import { defineComponent, ref, computed, onMounted, nextTick, resolveComponent, openBlock,
|
|
2
|
-
import { getFormModelFields } from "../../../../utils/page-init-util.js";
|
|
3
|
-
import { getVariableValue, formatValueByType } from "../../../../utils/page-helper-util.js";
|
|
4
|
-
import { SuperIcon } from "agilebuilder-ui";
|
|
5
|
-
import { getCustomFunc, handleAfterInitEvent, handleFormEvent } from "../../../../utils/events/event-util.js";
|
|
6
|
-
import { $t } from "../../../../utils/i18n-util.js";
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
const appendStyle = runtimeInfo.appendStyle;
|
|
26
|
-
const titleExceedStyle = runtimeInfo.titleExceedStyle;
|
|
27
|
-
const designProperty = ref(runtimeInfo.props ? runtimeInfo.props : {});
|
|
28
|
-
const listOptions = ref(designProperty.value.options ? designProperty.value.options : []);
|
|
29
|
-
const formatType = designProperty.value.formatType;
|
|
30
|
-
console.log("designProperty.value", designProperty.value);
|
|
31
|
-
const dynamicValue = computed(() => {
|
|
32
|
-
let resultValue = getVariableValue(entity, dynamicFields);
|
|
33
|
-
if (formatType) {
|
|
34
|
-
if (designProperty.value.hasOptions) {
|
|
35
|
-
let selItems = null;
|
|
36
|
-
if (listOptions.value) {
|
|
37
|
-
selItems = listOptions.value.filter((item) => item.value == resultValue);
|
|
38
|
-
}
|
|
39
|
-
if (selItems && selItems.length > 0) {
|
|
40
|
-
resultValue = selItems[0].label;
|
|
41
|
-
}
|
|
42
|
-
} else if ("custom" === formatType) {
|
|
43
|
-
const func = getCustomFunc(props.pageContext, designProperty.value.formatFunc);
|
|
44
|
-
if (func) {
|
|
45
|
-
resultValue = func.apply(func, [
|
|
46
|
-
{
|
|
47
|
-
pageContext: props.pageContext,
|
|
48
|
-
configureObj: props.configure,
|
|
49
|
-
value: resultValue
|
|
50
|
-
}
|
|
51
|
-
]);
|
|
52
|
-
}
|
|
53
|
-
} else {
|
|
54
|
-
resultValue = formatValueByType(resultValue, formatType, designProperty.value);
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
resultValue = resultValue === void 0 || resultValue === null ? "" : resultValue;
|
|
58
|
-
return resultValue;
|
|
1
|
+
import { defineComponent as e, ref as t, computed as l, onMounted as u, nextTick as a, resolveComponent as n, createElementBlock as i, createBlock as o, openBlock as p, normalizeStyle as s, normalizeClass as r, unref as f, createElementVNode as c, toDisplayString as v, withCtx as y, createCommentVNode as g, createTextVNode as x } from "vue";
|
|
2
|
+
import { getFormModelFields as d } from "../../../../utils/page-init-util.js";
|
|
3
|
+
import { getVariableValue as m, formatValueByType as h } from "../../../../utils/page-helper-util.js";
|
|
4
|
+
import { SuperIcon as k } from "agilebuilder-ui";
|
|
5
|
+
import { getCustomFunc as w, handleAfterInitEvent as T, handleFormEvent as C } from "../../../../utils/events/event-util.js";
|
|
6
|
+
import { $t as _ } from "../../../../utils/i18n-util.js";
|
|
7
|
+
const I = { style: { width: "100%", "text-align": "center", "font-weight": "700", "font-size": "24px", "margin-bottom": "20px" } }, b = { style: { overflow: "hidden", "white-space": "nowrap" } }, V = ["title"], j = e({ __name: "label-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: j2 }) {
|
|
8
|
+
const R = e2, S = R.pageContext.entity ? R.pageContext.entity : {};
|
|
9
|
+
let P = d(R.pageContext, R.configure);
|
|
10
|
+
const q = R.configure.runtime ? R.configure.runtime : {}, O = q.style, z = q.class, D = q.headerStyle, E = q.appendClass, F = q.appendStyle, W = q.titleExceedStyle, A = t(q.props ? q.props : {}), B = t(A.value.options ? A.value.options : []), G = A.value.formatType, H = l(() => {
|
|
11
|
+
let e3 = m(S, P);
|
|
12
|
+
if (G) if (A.value.hasOptions) {
|
|
13
|
+
let t2 = null;
|
|
14
|
+
B.value && (t2 = B.value.filter((t3) => t3.value == e3)), t2 && t2.length > 0 && (e3 = t2[0].label);
|
|
15
|
+
} else if ("custom" === G) {
|
|
16
|
+
const t2 = w(R.pageContext, A.value.formatFunc);
|
|
17
|
+
t2 && (e3 = t2.apply(t2, [{ pageContext: R.pageContext, configureObj: R.configure, value: e3 }]));
|
|
18
|
+
} else e3 = h(e3, G, A.value);
|
|
19
|
+
return e3 = null == e3 ? "" : e3, e3;
|
|
20
|
+
}), J = t(null), K = t(null), L = t(null);
|
|
21
|
+
return u(() => {
|
|
22
|
+
a(() => {
|
|
23
|
+
const e3 = H.value;
|
|
24
|
+
T(e3, R.pageContext, R.configure, { formItemRef: J.value, componentRef: K.value, titleRef: L.value, value: e3, entity: R.pageContext.entity.data, pageData: R.pageContext.entity.page });
|
|
59
25
|
});
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
value,
|
|
68
|
-
props.pageContext,
|
|
69
|
-
props.configure,
|
|
70
|
-
{
|
|
71
|
-
formItemRef: formItemRef.value,
|
|
72
|
-
componentRef: componentRef.value,
|
|
73
|
-
titleRef: titleRef.value,
|
|
74
|
-
value,
|
|
75
|
-
entity: props.pageContext.entity.data,
|
|
76
|
-
pageData: props.pageContext.entity.page
|
|
77
|
-
}
|
|
78
|
-
);
|
|
79
|
-
});
|
|
80
|
-
});
|
|
81
|
-
function updateOptions(newOptions) {
|
|
82
|
-
listOptions.value = newOptions ? newOptions : [];
|
|
83
|
-
}
|
|
84
|
-
__expose({
|
|
85
|
-
updateOptions
|
|
86
|
-
});
|
|
87
|
-
return (_ctx, _cache) => {
|
|
88
|
-
const _component_el_form_item = resolveComponent("el-form-item");
|
|
89
|
-
return designProperty.value.whetherTittle ? (openBlock(), createElementBlock("div", {
|
|
90
|
-
key: 0,
|
|
91
|
-
ref_key: "titleRef",
|
|
92
|
-
ref: titleRef,
|
|
93
|
-
class: normalizeClass(unref(runtimeClass)),
|
|
94
|
-
style: normalizeStyle(unref(runtimeStyle))
|
|
95
|
-
}, [
|
|
96
|
-
createElementVNode("div", _hoisted_1, toDisplayString(designProperty.value.title), 1)
|
|
97
|
-
], 6)) : designProperty.value.tittleShow ? (openBlock(), createBlock(_component_el_form_item, {
|
|
98
|
-
key: 1,
|
|
99
|
-
ref_key: "formItemRef",
|
|
100
|
-
ref: formItemRef,
|
|
101
|
-
required: designProperty.value.required ? true : false,
|
|
102
|
-
class: normalizeClass(unref(runtimeClass)),
|
|
103
|
-
"label-width": designProperty.value.labelWidth,
|
|
104
|
-
style: normalizeStyle(unref(runtimeStyle))
|
|
105
|
-
}, {
|
|
106
|
-
label: withCtx(() => [
|
|
107
|
-
designProperty.value.tittleShow ? (openBlock(), createElementBlock("div", {
|
|
108
|
-
key: 0,
|
|
109
|
-
ref_key: "titleRef",
|
|
110
|
-
ref: titleRef,
|
|
111
|
-
style: normalizeStyle({ ...unref(headerStyle), ...unref(titleExceedStyle) })
|
|
112
|
-
}, toDisplayString(unref($t)(designProperty.value.title)), 5)) : createCommentVNode("", true)
|
|
113
|
-
]),
|
|
114
|
-
default: withCtx(() => [
|
|
115
|
-
createElementVNode("div", {
|
|
116
|
-
style: { "display": "flex", "width": "100%", "justify-content": "space-between" },
|
|
117
|
-
ref_key: "componentRef",
|
|
118
|
-
ref: componentRef,
|
|
119
|
-
onClick: _cache[0] || (_cache[0] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "click"))
|
|
120
|
-
}, [
|
|
121
|
-
createElementVNode("span", _hoisted_2, [
|
|
122
|
-
designProperty.value.preIconValue || designProperty.value.preText ? (openBlock(), createElementBlock("span", {
|
|
123
|
-
key: 0,
|
|
124
|
-
class: normalizeClass({
|
|
125
|
-
"el-input__suffix": designProperty.value.iconPosition != "outer",
|
|
126
|
-
"el-input-group__append": designProperty.value.iconPosition == "outer"
|
|
127
|
-
}),
|
|
128
|
-
style: normalizeStyle(unref(appendStyle))
|
|
129
|
-
}, [
|
|
130
|
-
designProperty.value.preIconType && designProperty.value.preIconValue ? (openBlock(), createBlock(unref(SuperIcon), {
|
|
131
|
-
key: 0,
|
|
132
|
-
iconType: designProperty.value.preIconType,
|
|
133
|
-
iconValue: designProperty.value.preIconValue
|
|
134
|
-
}, null, 8, ["iconType", "iconValue"])) : createCommentVNode("", true),
|
|
135
|
-
createTextVNode(" " + toDisplayString(unref($t)(designProperty.value.preText)), 1)
|
|
136
|
-
], 6)) : createCommentVNode("", true),
|
|
137
|
-
createTextVNode(" " + toDisplayString(dynamicValue.value), 1)
|
|
138
|
-
]),
|
|
139
|
-
designProperty.value.sufIconValue || designProperty.value.sufText ? (openBlock(), createElementBlock("span", {
|
|
140
|
-
key: 0,
|
|
141
|
-
class: normalizeClass({
|
|
142
|
-
"el-input__suffix": designProperty.value.iconPosition != "outer",
|
|
143
|
-
"el-input-group__append": designProperty.value.iconPosition == "outer"
|
|
144
|
-
})
|
|
145
|
-
}, [
|
|
146
|
-
designProperty.value.sufIconType && designProperty.value.sufIconValue ? (openBlock(), createBlock(unref(SuperIcon), {
|
|
147
|
-
key: 0,
|
|
148
|
-
style: {},
|
|
149
|
-
iconType: designProperty.value.sufIconType,
|
|
150
|
-
iconValue: designProperty.value.sufIconValue
|
|
151
|
-
}, null, 8, ["iconType", "iconValue"])) : createCommentVNode("", true),
|
|
152
|
-
createElementVNode("span", null, " " + toDisplayString(unref($t)(designProperty.value.sufText)), 1)
|
|
153
|
-
], 2)) : createCommentVNode("", true)
|
|
154
|
-
], 512)
|
|
155
|
-
]),
|
|
156
|
-
_: 1
|
|
157
|
-
}, 8, ["required", "class", "label-width", "style"])) : (openBlock(), createElementBlock("span", {
|
|
158
|
-
key: 2,
|
|
159
|
-
style: { "display": "flex", "justify-content": "space-between" },
|
|
160
|
-
onClick: _cache[1] || (_cache[1] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "click"))
|
|
161
|
-
}, [
|
|
162
|
-
createElementVNode("span", {
|
|
163
|
-
style: { "overflow": "hidden", "white-space": "nowrap" },
|
|
164
|
-
title: dynamicValue.value
|
|
165
|
-
}, toDisplayString(designProperty.value.prefixIcon) + " " + toDisplayString(dynamicValue.value), 9, _hoisted_3),
|
|
166
|
-
designProperty.value.suffixTxt ? (openBlock(), createElementBlock("span", {
|
|
167
|
-
key: 0,
|
|
168
|
-
class: normalizeClass(unref(appendClass)),
|
|
169
|
-
style: normalizeStyle(unref(appendStyle))
|
|
170
|
-
}, toDisplayString(designProperty.value.suffixTxt), 7)) : createCommentVNode("", true)
|
|
171
|
-
]));
|
|
172
|
-
};
|
|
173
|
-
}
|
|
174
|
-
});
|
|
26
|
+
}), j2({ updateOptions: function(e3) {
|
|
27
|
+
B.value = e3 || [];
|
|
28
|
+
} }), (e3, t2) => {
|
|
29
|
+
const l2 = n("el-form-item");
|
|
30
|
+
return A.value.whetherTittle ? (p(), i("div", { key: 0, ref_key: "titleRef", ref: L, class: r(f(z)), style: s(f(O)) }, [c("div", I, v(A.value.title), 1)], 6)) : A.value.tittleShow ? (p(), o(l2, { key: 1, ref_key: "formItemRef", ref: J, required: !!A.value.required, class: r(f(z)), "label-width": A.value.labelWidth, style: s(f(O)) }, { label: y(() => [A.value.tittleShow ? (p(), i("div", { key: 0, ref_key: "titleRef", ref: L, style: s({ ...f(D), ...f(W) }) }, v(f(_)(A.value.title)), 5)) : g("", true)]), default: y(() => [c("div", { style: { display: "flex", width: "100%", "justify-content": "space-between" }, ref_key: "componentRef", ref: K, onClick: t2[0] || (t2[0] = (t3) => f(C)(t3, e3.pageContext, e3.configure, "click")) }, [c("span", b, [A.value.preIconValue || A.value.preText ? (p(), i("span", { key: 0, class: r({ "el-input__suffix": "outer" != A.value.iconPosition, "el-input-group__append": "outer" == A.value.iconPosition }), style: s(f(F)) }, [A.value.preIconType && A.value.preIconValue ? (p(), o(f(k), { key: 0, iconType: A.value.preIconType, iconValue: A.value.preIconValue }, null, 8, ["iconType", "iconValue"])) : g("", true), x(" " + v(f(_)(A.value.preText)), 1)], 6)) : g("", true), x(" " + v(H.value), 1)]), A.value.sufIconValue || A.value.sufText ? (p(), i("span", { key: 0, class: r({ "el-input__suffix": "outer" != A.value.iconPosition, "el-input-group__append": "outer" == A.value.iconPosition }) }, [A.value.sufIconType && A.value.sufIconValue ? (p(), o(f(k), { key: 0, style: {}, iconType: A.value.sufIconType, iconValue: A.value.sufIconValue }, null, 8, ["iconType", "iconValue"])) : g("", true), c("span", null, " " + v(f(_)(A.value.sufText)), 1)], 2)) : g("", true)], 512)]), _: 1 }, 8, ["required", "class", "label-width", "style"])) : (p(), i("span", { key: 2, style: { display: "flex", "justify-content": "space-between" }, onClick: t2[1] || (t2[1] = (t3) => f(C)(t3, e3.pageContext, e3.configure, "click")) }, [c("span", { style: { overflow: "hidden", "white-space": "nowrap" }, title: H.value }, v(A.value.prefixIcon) + " " + v(H.value), 9, V), A.value.suffixTxt ? (p(), i("span", { key: 0, class: r(f(E)), style: s(f(F)) }, v(A.value.suffixTxt), 7)) : g("", true)]));
|
|
31
|
+
};
|
|
32
|
+
} });
|
|
175
33
|
export {
|
|
176
|
-
|
|
34
|
+
j as default
|
|
177
35
|
};
|