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