super-page-runtime 2.2.29-tmp1 → 2.2.29-tmp2
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 +7 -5
- package/dist/es/assets/chart-themes/theme1.js +6 -2
- package/dist/es/assets/chart-themes/theme2.js +6 -2
- package/dist/es/assets/chart-themes/theme3.js +6 -2
- package/dist/es/components/runtime/utils/api/api-util.js +7 -4
- package/dist/es/components/runtime/utils/api/page-expose-util.js +443 -135
- package/dist/es/components/runtime/utils/assemblys-config.js +369 -13
- package/dist/es/components/runtime/utils/barcode-util.js +33 -9
- package/dist/es/components/runtime/utils/charts/chart-columnline-util.js +306 -122
- package/dist/es/components/runtime/utils/charts/chart-gauge-util.js +68 -29
- package/dist/es/components/runtime/utils/charts/chart-pie-util.js +152 -69
- package/dist/es/components/runtime/utils/charts/chart-radar-util.js +124 -46
- package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +99 -38
- package/dist/es/components/runtime/utils/charts/chart-util.js +522 -226
- package/dist/es/components/runtime/utils/common-util.js +156 -76
- package/dist/es/components/runtime/utils/eventBus.js +8 -3
- package/dist/es/components/runtime/utils/events/event-util.js +775 -362
- package/dist/es/components/runtime/utils/events/print-label.js +140 -73
- package/dist/es/components/runtime/utils/events/standard-event.js +2320 -820
- package/dist/es/components/runtime/utils/events/validator-util.js +560 -224
- package/dist/es/components/runtime/utils/form/date-shortcuts.js +88 -28
- package/dist/es/components/runtime/utils/form/scan-util.js +162 -62
- package/dist/es/components/runtime/utils/global-refs.js +84 -53
- package/dist/es/components/runtime/utils/i18n-util.js +20 -11
- package/dist/es/components/runtime/utils/interfaces/page-design-types.js +7 -2
- package/dist/es/components/runtime/utils/page-helper-util.js +660 -280
- package/dist/es/components/runtime/utils/page-init-util.js +405 -144
- package/dist/es/components/runtime/utils/page-permission-util.js +531 -22
- package/dist/es/components/runtime/utils/page-store.js +68 -23
- package/dist/es/components/runtime/utils/store-util.js +13 -9
- package/dist/es/components/runtime/utils/store.js +2 -2
- package/dist/es/components/runtime/utils/table-utils.js +81 -40
- package/dist/es/components/runtime/utils/tree-utils.js +37 -17
- 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 +83 -21
- 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 +46 -14
- 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 +132 -36
- 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 +18 -4
- 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 +107 -17
- 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 +198 -54
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.js +42 -12
- 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 +60 -11
- 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 +203 -54
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue.js +4 -4
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +162 -46
- 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 +109 -33
- 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 +166 -44
- 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 +117 -33
- 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 +118 -33
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +599 -253
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue.js +42 -4
- 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 +62 -8
- 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 +160 -29
- 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 +62 -13
- 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 +594 -213
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +139 -33
- 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 +125 -21
- 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 +102 -16
- 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 +81 -18
- 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 +82 -17
- 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 +86 -14
- 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 +79 -21
- 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 +61 -16
- 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 +37 -10
- 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 +127 -38
- 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 +76 -28
- 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 +178 -63
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +810 -305
- 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 +635 -265
- 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 +115 -40
- 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 +215 -56
- package/dist/es/components/runtime/views/assemblys/error-render.vue.js +21 -3
- 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 +154 -43
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +98 -34
- 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 +200 -52
- 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 +239 -70
- 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 +109 -31
- 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 +59 -21
- 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 +188 -56
- 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 +103 -22
- 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 +246 -59
- 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 +174 -34
- 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 +107 -29
- 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 +50 -13
- 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 +194 -65
- 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 +249 -89
- 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 +263 -80
- 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 +57 -13
- 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 +155 -30
- 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 +129 -40
- 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 +107 -22
- package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +188 -89
- package/dist/es/components/runtime/views/assemblys/home-chart-render.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +272 -133
- 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 +46 -18
- 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 +49 -21
- 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 +58 -20
- 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 +53 -16
- package/dist/es/components/runtime/views/home-chart.vue.js +160 -41
- package/dist/es/components/runtime/views/home-chart.vue2.js +2 -2
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +139 -21
- package/dist/es/components/runtime/views/super-page-dialog.vue2.js +2 -2
- package/dist/es/components/runtime/views/super-page.vue.js +756 -230
- package/dist/es/components/runtime/views/super-page.vue2.js +2 -2
- package/dist/es/i18n/langs/cn.js +55 -2
- package/dist/es/i18n/langs/en.js +55 -2
- package/package.json +2 -2
package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js
CHANGED
|
@@ -1,62 +1,249 @@
|
|
|
1
|
-
import { defineComponent
|
|
2
|
-
import { SuperIcon
|
|
3
|
-
import { getFormModelFields
|
|
4
|
-
import { setVariableValue
|
|
5
|
-
import { handleAfterInitEvent
|
|
6
|
-
import { formatScanRuleSets
|
|
7
|
-
import
|
|
8
|
-
import { isMobileBrowser
|
|
9
|
-
import
|
|
10
|
-
import { $t
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
const
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
1
|
+
import { defineComponent, ref, computed, onMounted, nextTick, onUnmounted, watch, resolveComponent, createBlock, openBlock, normalizeStyle, normalizeClass, unref, withCtx, createVNode, createCommentVNode, createSlots, createTextVNode, toDisplayString, createElementBlock, Fragment } from "vue";
|
|
2
|
+
import { SuperIcon } from "agilebuilder-ui";
|
|
3
|
+
import { getFormModelFields } from "../../../../utils/page-init-util.js";
|
|
4
|
+
import { setVariableValue, getVariableValue } from "../../../../utils/page-helper-util.js";
|
|
5
|
+
import { handleAfterInitEvent, handleFormEvent, doSuffixOrPrefixClickEvent } from "../../../../utils/events/event-util.js";
|
|
6
|
+
import { formatScanRuleSets, analysisScanValue, setScanAnalysisValue } from "../../../../utils/form/scan-util.js";
|
|
7
|
+
import _sfc_main$1 from "../common/title-suffix-element.vue.js";
|
|
8
|
+
import { isMobileBrowser } from "agilebuilder-ui/src/utils/common-util";
|
|
9
|
+
import bus from "../../../../utils/eventBus.js";
|
|
10
|
+
import { $t } from "../../../../utils/i18n-util.js";
|
|
11
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
12
|
+
__name: "inputtext-runtime",
|
|
13
|
+
props: {
|
|
14
|
+
pageContext: {},
|
|
15
|
+
configure: {}
|
|
16
|
+
},
|
|
17
|
+
setup(__props, { expose: __expose }) {
|
|
18
|
+
var _a, _b, _c;
|
|
19
|
+
const props = __props;
|
|
20
|
+
const entity = props.pageContext.entity ? props.pageContext.entity : {};
|
|
21
|
+
let dynamicFields = getFormModelFields(props.pageContext, props.configure);
|
|
22
|
+
const isMobile = ref(isMobileBrowser());
|
|
23
|
+
const pageCode = props.pageContext.code;
|
|
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
|
+
}
|
|
35
|
+
});
|
|
36
|
+
const formItemRef = ref(null);
|
|
37
|
+
const componentRef = ref(null);
|
|
38
|
+
const titleRef = ref(null);
|
|
39
|
+
onMounted(() => {
|
|
40
|
+
bus.$on(componentId.value + "-scanDone", (data) => {
|
|
41
|
+
console.log(
|
|
42
|
+
"superPage4444---scanDone--componentId.value=",
|
|
43
|
+
componentId.value,
|
|
44
|
+
"data=",
|
|
45
|
+
JSON.stringify(data)
|
|
46
|
+
);
|
|
47
|
+
setValue(data.result);
|
|
48
|
+
});
|
|
49
|
+
nextTick(() => {
|
|
50
|
+
const value = dynamicModelMethod.value;
|
|
51
|
+
handleAfterInitEvent(value, props.pageContext, props.configure, {
|
|
52
|
+
formItemRef: formItemRef.value,
|
|
53
|
+
componentRef: componentRef.value,
|
|
54
|
+
titleRef: titleRef.value,
|
|
55
|
+
value,
|
|
56
|
+
entity: props.pageContext.entity.data,
|
|
57
|
+
pageData: props.pageContext.entity.page
|
|
58
|
+
});
|
|
59
|
+
});
|
|
60
|
+
console.log("input-text");
|
|
61
|
+
});
|
|
62
|
+
onUnmounted(() => {
|
|
63
|
+
bus.$off(componentId.value + "-scanDone");
|
|
64
|
+
});
|
|
65
|
+
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
|
|
66
|
+
const designProperty = ref(runtimeInfo.props ? runtimeInfo.props : {});
|
|
67
|
+
const scanEnable = ref(((_a = designProperty.value.scan) == null ? void 0 : _a.enable) ? true : false);
|
|
68
|
+
let userAgent;
|
|
69
|
+
const userAgentOrg = navigator.userAgent;
|
|
70
|
+
if (userAgentOrg.indexOf(" uni-app ") > 0) {
|
|
71
|
+
userAgent = "app";
|
|
72
|
+
} else {
|
|
73
|
+
userAgent = "browser";
|
|
74
|
+
}
|
|
75
|
+
const isApk = isMobile.value && userAgent && userAgent === "app" ? true : false;
|
|
76
|
+
const isShowScanIcon = ref(
|
|
77
|
+
isApk && scanEnable.value || isMobile.value && scanEnable.value && window.location.protocol === "https:" ? true : false
|
|
78
|
+
);
|
|
79
|
+
let scanRuleSets = {};
|
|
80
|
+
if (((_b = designProperty.value.scan) == null ? void 0 : _b.enable) && ((_c = designProperty.value.scan.ruleList) == null ? void 0 : _c.length) > 0) {
|
|
81
|
+
setScanRuleSets();
|
|
82
|
+
watchScanValueChange();
|
|
83
|
+
}
|
|
84
|
+
const runtimeStyle = runtimeInfo.style;
|
|
85
|
+
const runtimeClass = runtimeInfo.class;
|
|
86
|
+
const headerStyle = runtimeInfo.headerStyle;
|
|
87
|
+
const titleExceedStyle = runtimeInfo.titleExceedStyle;
|
|
88
|
+
function getValue() {
|
|
89
|
+
return getVariableValue(entity, dynamicFields);
|
|
90
|
+
}
|
|
91
|
+
function setValue(value) {
|
|
92
|
+
return setVariableValue(entity, dynamicFields, value);
|
|
93
|
+
}
|
|
94
|
+
function setScanRuleSets() {
|
|
95
|
+
formatScanRuleSets(designProperty.value.scan.ruleList).then((res) => {
|
|
96
|
+
scanRuleSets = res;
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
function watchScanValueChange() {
|
|
100
|
+
watch(
|
|
101
|
+
() => dynamicModelMethod.value,
|
|
102
|
+
(newValue) => {
|
|
103
|
+
const valueSet = analysisScanValue(newValue, scanRuleSets);
|
|
104
|
+
if (valueSet) {
|
|
105
|
+
setScanAnalysisValue(props.pageContext, valueSet.scanSet, valueSet.params);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
);
|
|
109
|
+
}
|
|
110
|
+
const isShowBrowserScan = ref(false);
|
|
111
|
+
function scanClick() {
|
|
112
|
+
console.log("scanClick----userAgent=", userAgent);
|
|
113
|
+
if (isApk) {
|
|
114
|
+
const message = {
|
|
115
|
+
type: "scan",
|
|
116
|
+
componentId: componentId.value,
|
|
117
|
+
systemCode: props.pageContext.systemCode
|
|
118
|
+
};
|
|
119
|
+
window.parent.postMessage(JSON.stringify(message), "*");
|
|
120
|
+
} else {
|
|
121
|
+
isShowBrowserScan.value = true;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
function closeBrowserScan(value) {
|
|
125
|
+
isShowBrowserScan.value = false;
|
|
126
|
+
setValue(value);
|
|
127
|
+
}
|
|
128
|
+
__expose({
|
|
129
|
+
getValue,
|
|
130
|
+
setValue
|
|
131
|
+
});
|
|
132
|
+
return (_ctx, _cache) => {
|
|
133
|
+
const _component_el_input = resolveComponent("el-input");
|
|
134
|
+
const _component_scan_code_input_browser = resolveComponent("scan-code-input-browser");
|
|
135
|
+
const _component_el_form_item = resolveComponent("el-form-item");
|
|
136
|
+
return openBlock(), createBlock(_component_el_form_item, {
|
|
137
|
+
ref_key: "formItemRef",
|
|
138
|
+
ref: formItemRef,
|
|
139
|
+
required: designProperty.value.required ? true : false,
|
|
140
|
+
class: normalizeClass(unref(runtimeClass)),
|
|
141
|
+
"label-width": designProperty.value.labelWidth,
|
|
142
|
+
style: normalizeStyle(unref(runtimeStyle))
|
|
143
|
+
}, {
|
|
144
|
+
label: withCtx(() => [
|
|
145
|
+
designProperty.value.tittleShow ? (openBlock(), createElementBlock("div", {
|
|
146
|
+
key: 0,
|
|
147
|
+
ref_key: "titleRef",
|
|
148
|
+
ref: titleRef,
|
|
149
|
+
style: normalizeStyle({ ...unref(headerStyle), ...unref(titleExceedStyle) })
|
|
150
|
+
}, [
|
|
151
|
+
designProperty.value.prefixType ? (openBlock(), createBlock(_sfc_main$1, {
|
|
152
|
+
key: 0,
|
|
153
|
+
pageContext: _ctx.pageContext,
|
|
154
|
+
property: designProperty.value
|
|
155
|
+
}, null, 8, ["pageContext", "property"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
156
|
+
createTextVNode(toDisplayString(unref($t)(designProperty.value.title)), 1)
|
|
157
|
+
], 64))
|
|
158
|
+
], 4)) : createCommentVNode("", true)
|
|
159
|
+
]),
|
|
160
|
+
default: withCtx(() => [
|
|
161
|
+
createVNode(_component_el_input, {
|
|
162
|
+
ref_key: "componentRef",
|
|
163
|
+
ref: componentRef,
|
|
164
|
+
disabled: designProperty.value.state === "disabled",
|
|
165
|
+
readonly: designProperty.value.state === "readonly",
|
|
166
|
+
size: designProperty.value.size,
|
|
167
|
+
clearable: designProperty.value.clearable,
|
|
168
|
+
placeholder: designProperty.value.placeholder,
|
|
169
|
+
maxlength: designProperty.value.maxLength,
|
|
170
|
+
"show-word-limit": designProperty.value.showInputNum,
|
|
171
|
+
modelValue: dynamicModelMethod.value,
|
|
172
|
+
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => dynamicModelMethod.value = $event),
|
|
173
|
+
onInput: _cache[6] || (_cache[6] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "input")),
|
|
174
|
+
onChange: _cache[7] || (_cache[7] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "change")),
|
|
175
|
+
onBlur: _cache[8] || (_cache[8] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "blur")),
|
|
176
|
+
onFocus: _cache[9] || (_cache[9] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "focus")),
|
|
177
|
+
onClick: _cache[10] || (_cache[10] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "click"))
|
|
178
|
+
}, createSlots({ _: 2 }, [
|
|
179
|
+
designProperty.value.iconPosition != "outer" && (designProperty.value.preIconType && designProperty.value.preIconValue || designProperty.value.preText) ? {
|
|
180
|
+
name: "prefix",
|
|
181
|
+
fn: withCtx(() => [
|
|
182
|
+
designProperty.value.preIconType && designProperty.value.preIconValue ? (openBlock(), createBlock(unref(SuperIcon), {
|
|
183
|
+
key: 0,
|
|
184
|
+
iconType: designProperty.value.preIconType,
|
|
185
|
+
iconValue: designProperty.value.preIconValue,
|
|
186
|
+
onClick: _cache[0] || (_cache[0] = ($event) => unref(doSuffixOrPrefixClickEvent)(dynamicModelMethod.value, _ctx.pageContext, _ctx.configure, "prefixClick"))
|
|
187
|
+
}, null, 8, ["iconType", "iconValue"])) : createCommentVNode("", true),
|
|
188
|
+
createTextVNode(" " + toDisplayString(unref($t)(designProperty.value.preText)), 1)
|
|
189
|
+
]),
|
|
190
|
+
key: "0"
|
|
191
|
+
} : void 0,
|
|
192
|
+
designProperty.value.iconPosition == "outer" && (designProperty.value.preIconType && designProperty.value.preIconValue || designProperty.value.preText) ? {
|
|
193
|
+
name: "prepend",
|
|
194
|
+
fn: withCtx(() => [
|
|
195
|
+
designProperty.value.preIconType && designProperty.value.preIconValue ? (openBlock(), createBlock(unref(SuperIcon), {
|
|
196
|
+
key: 0,
|
|
197
|
+
iconType: designProperty.value.preIconType,
|
|
198
|
+
iconValue: designProperty.value.preIconValue,
|
|
199
|
+
onClick: _cache[1] || (_cache[1] = ($event) => unref(doSuffixOrPrefixClickEvent)(dynamicModelMethod.value, _ctx.pageContext, _ctx.configure, "prefixClick"))
|
|
200
|
+
}, null, 8, ["iconType", "iconValue"])) : createCommentVNode("", true),
|
|
201
|
+
createTextVNode(" " + toDisplayString(unref($t)(designProperty.value.preText)), 1)
|
|
202
|
+
]),
|
|
203
|
+
key: "1"
|
|
204
|
+
} : void 0,
|
|
205
|
+
designProperty.value.iconPosition != "outer" && (designProperty.value.sufIconType && designProperty.value.sufIconValue || designProperty.value.sufText) ? {
|
|
206
|
+
name: "suffix",
|
|
207
|
+
fn: withCtx(() => [
|
|
208
|
+
designProperty.value.sufIconType && designProperty.value.sufIconValue ? (openBlock(), createBlock(unref(SuperIcon), {
|
|
209
|
+
key: 0,
|
|
210
|
+
iconType: designProperty.value.sufIconType,
|
|
211
|
+
iconValue: designProperty.value.sufIconValue,
|
|
212
|
+
onClick: _cache[2] || (_cache[2] = ($event) => unref(doSuffixOrPrefixClickEvent)(dynamicModelMethod.value, _ctx.pageContext, _ctx.configure, "suffixClick"))
|
|
213
|
+
}, null, 8, ["iconType", "iconValue"])) : createCommentVNode("", true),
|
|
214
|
+
createTextVNode(" " + toDisplayString(unref($t)(designProperty.value.sufText)), 1)
|
|
215
|
+
]),
|
|
216
|
+
key: "2"
|
|
217
|
+
} : void 0,
|
|
218
|
+
isShowScanIcon.value || designProperty.value.iconPosition == "outer" && (designProperty.value.sufIconType && designProperty.value.sufIconValue || designProperty.value.sufText) ? {
|
|
219
|
+
name: "append",
|
|
220
|
+
fn: withCtx(() => [
|
|
221
|
+
isShowScanIcon.value ? (openBlock(), createBlock(unref(SuperIcon), {
|
|
222
|
+
key: 0,
|
|
223
|
+
iconValue: "fa-barcode",
|
|
224
|
+
onClick: _cache[3] || (_cache[3] = ($event) => scanClick())
|
|
225
|
+
})) : createCommentVNode("", true),
|
|
226
|
+
designProperty.value.sufIconType && designProperty.value.sufIconValue ? (openBlock(), createBlock(unref(SuperIcon), {
|
|
227
|
+
key: 1,
|
|
228
|
+
iconType: designProperty.value.sufIconType,
|
|
229
|
+
iconValue: designProperty.value.sufIconValue,
|
|
230
|
+
onClick: _cache[4] || (_cache[4] = ($event) => unref(doSuffixOrPrefixClickEvent)(dynamicModelMethod.value, _ctx.pageContext, _ctx.configure, "suffixClick"))
|
|
231
|
+
}, null, 8, ["iconType", "iconValue"])) : createCommentVNode("", true),
|
|
232
|
+
createTextVNode(" " + toDisplayString(unref($t)(designProperty.value.sufText)), 1)
|
|
233
|
+
]),
|
|
234
|
+
key: "3"
|
|
235
|
+
} : void 0
|
|
236
|
+
]), 1032, ["disabled", "readonly", "size", "clearable", "placeholder", "maxlength", "show-word-limit", "modelValue"]),
|
|
237
|
+
isShowBrowserScan.value ? (openBlock(), createBlock(_component_scan_code_input_browser, {
|
|
238
|
+
key: 0,
|
|
239
|
+
onClose: closeBrowserScan
|
|
240
|
+
})) : createCommentVNode("", true)
|
|
241
|
+
]),
|
|
242
|
+
_: 1
|
|
243
|
+
}, 8, ["required", "class", "label-width", "style"]);
|
|
244
|
+
};
|
|
43
245
|
}
|
|
44
|
-
|
|
45
|
-
function ae(e3) {
|
|
46
|
-
ue.value = false, te(e3);
|
|
47
|
-
}
|
|
48
|
-
return L2({ getValue: function() {
|
|
49
|
-
return h(O, A);
|
|
50
|
-
}, setValue: te }), (e3, l2) => {
|
|
51
|
-
const o2 = i("el-input"), n2 = i("scan-code-input-browser"), t2 = i("el-form-item");
|
|
52
|
-
return c(), r(t2, { ref_key: "formItemRef", ref: F, required: !!G.value.required, class: s(v(le)), "label-width": G.value.labelWidth, style: p(v(ee)) }, { label: f(() => [G.value.tittleShow ? (c(), C("div", { key: 0, ref_key: "titleRef", ref: U, style: p({ ...v(oe), ...v(ne) }) }, [G.value.prefixType ? (c(), r(P, { key: 0, pageContext: e3.pageContext, property: G.value }, null, 8, ["pageContext", "property"])) : (c(), C(I, { key: 1 }, [d(x(v(z)(G.value.title)), 1)], 64))], 4)) : y("", true)]), default: f(() => [g(o2, { ref_key: "componentRef", ref: M, disabled: "disabled" === G.value.state, readonly: "readonly" === G.value.state, size: G.value.size, clearable: G.value.clearable, placeholder: G.value.placeholder, maxlength: G.value.maxLength, "show-word-limit": G.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")) }, m({ _: 2 }, ["outer" != G.value.iconPosition && (G.value.preIconType && G.value.preIconValue || G.value.preText) ? { name: "prefix", fn: f(() => [G.value.preIconType && G.value.preIconValue ? (c(), r(v(T), { key: 0, iconType: G.value.preIconType, iconValue: G.value.preIconValue, onClick: l2[0] || (l2[0] = (l3) => v(_)(E.value, e3.pageContext, e3.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : y("", true), d(" " + x(v(z)(G.value.preText)), 1)]), key: "0" } : void 0, "outer" == G.value.iconPosition && (G.value.preIconType && G.value.preIconValue || G.value.preText) ? { name: "prepend", fn: f(() => [G.value.preIconType && G.value.preIconValue ? (c(), r(v(T), { key: 0, iconType: G.value.preIconType, iconValue: G.value.preIconValue, onClick: l2[1] || (l2[1] = (l3) => v(_)(E.value, e3.pageContext, e3.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : y("", true), d(" " + x(v(z)(G.value.preText)), 1)]), key: "1" } : void 0, "outer" != G.value.iconPosition && (G.value.sufIconType && G.value.sufIconValue || G.value.sufText) ? { name: "suffix", fn: f(() => [G.value.sufIconType && G.value.sufIconValue ? (c(), r(v(T), { key: 0, iconType: G.value.sufIconType, iconValue: G.value.sufIconValue, onClick: l2[2] || (l2[2] = (l3) => v(_)(E.value, e3.pageContext, e3.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : y("", true), d(" " + x(v(z)(G.value.sufText)), 1)]), key: "2" } : void 0, Y.value || "outer" == G.value.iconPosition && (G.value.sufIconType && G.value.sufIconValue || G.value.sufText) ? { name: "append", fn: f(() => [Y.value ? (c(), r(v(T), { key: 0, iconValue: "fa-barcode", onClick: l2[3] || (l2[3] = (e4) => function() {
|
|
53
|
-
if (console.log("scanClick----userAgent=", K), X) {
|
|
54
|
-
const e5 = { type: "scan", componentId: $.value, systemCode: N.pageContext.systemCode };
|
|
55
|
-
window.parent.postMessage(JSON.stringify(e5), "*");
|
|
56
|
-
} else ue.value = true;
|
|
57
|
-
}()) })) : y("", true), G.value.sufIconType && G.value.sufIconValue ? (c(), r(v(T), { key: 1, iconType: G.value.sufIconType, iconValue: G.value.sufIconValue, onClick: l2[4] || (l2[4] = (l3) => v(_)(E.value, e3.pageContext, e3.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : y("", true), d(" " + x(v(z)(G.value.sufText)), 1)]), key: "3" } : void 0]), 1032, ["disabled", "readonly", "size", "clearable", "placeholder", "maxlength", "show-word-limit", "modelValue"]), ue.value ? (c(), r(n2, { key: 0, onClose: ae })) : y("", true)]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
|
|
58
|
-
};
|
|
59
|
-
} });
|
|
246
|
+
});
|
|
60
247
|
export {
|
|
61
|
-
|
|
248
|
+
_sfc_main as default
|
|
62
249
|
};
|
|
@@ -1,37 +1,177 @@
|
|
|
1
|
-
import { defineComponent
|
|
2
|
-
import { getFormModelFields
|
|
3
|
-
import { getVariableValue
|
|
4
|
-
import { SuperIcon
|
|
5
|
-
import { getCustomFunc
|
|
6
|
-
import { $t
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
1
|
+
import { defineComponent, ref, computed, onMounted, nextTick, resolveComponent, createElementBlock, createBlock, openBlock, normalizeStyle, normalizeClass, unref, createElementVNode, toDisplayString, withCtx, createCommentVNode, createTextVNode } from "vue";
|
|
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 _hoisted_1 = { style: { "width": "100%", "text-align": "center", "font-weight": "700", "font-size": "24px", "margin-bottom": "20px" } };
|
|
8
|
+
const _hoisted_2 = { style: { "overflow": "hidden", "white-space": "nowrap" } };
|
|
9
|
+
const _hoisted_3 = ["title"];
|
|
10
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
11
|
+
__name: "label-runtime",
|
|
12
|
+
props: {
|
|
13
|
+
pageContext: {},
|
|
14
|
+
configure: {}
|
|
15
|
+
},
|
|
16
|
+
setup(__props, { expose: __expose }) {
|
|
17
|
+
const props = __props;
|
|
18
|
+
const entity = props.pageContext.entity ? props.pageContext.entity : {};
|
|
19
|
+
let dynamicFields = getFormModelFields(props.pageContext, props.configure);
|
|
20
|
+
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
|
|
21
|
+
const runtimeStyle = runtimeInfo.style;
|
|
22
|
+
const runtimeClass = runtimeInfo.class;
|
|
23
|
+
const headerStyle = runtimeInfo.headerStyle;
|
|
24
|
+
const appendClass = runtimeInfo.appendClass;
|
|
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;
|
|
27
59
|
});
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
60
|
+
const formItemRef = ref(null);
|
|
61
|
+
const componentRef = ref(null);
|
|
62
|
+
const titleRef = ref(null);
|
|
63
|
+
onMounted(() => {
|
|
64
|
+
nextTick(() => {
|
|
65
|
+
const value = dynamicValue.value;
|
|
66
|
+
handleAfterInitEvent(
|
|
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
|
+
});
|
|
35
175
|
export {
|
|
36
|
-
|
|
176
|
+
_sfc_main as default
|
|
37
177
|
};
|