super-page-runtime 2.0.8 → 2.0.10
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/components/runtime/index.d.ts +3 -3
- package/dist/es/components/runtime/utils/page-helper-util.d.ts +1 -1
- package/dist/es/components/runtime/utils/page-helper-util.js +4 -1
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +196 -18
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.js +44 -0
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue2.js +4 -0
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +76 -6
- package/dist/es/index.d.ts +2 -2
- package/dist/es/index.js +2 -2
- package/dist/lib/_virtual/AttributeMap.js +4 -0
- package/dist/lib/_virtual/Delta.js +4 -0
- package/dist/lib/_virtual/Op.js +4 -0
- package/dist/lib/_virtual/OpIterator.js +4 -0
- package/dist/lib/_virtual/__vite-browser-external.js +3 -0
- package/dist/lib/_virtual/_commonjsHelpers.js +8 -0
- package/dist/lib/_virtual/_plugin-vue_export-helper.js +9 -0
- package/dist/lib/_virtual/dayjs.min.js +4 -0
- package/dist/lib/_virtual/index.js +4 -0
- package/dist/lib/_virtual/index2.js +4 -0
- package/dist/lib/_virtual/index3.js +4 -0
- package/dist/lib/assets/chart-themes/theme1.d.ts +4 -0
- package/dist/lib/assets/chart-themes/theme1.js +7 -0
- package/dist/lib/assets/chart-themes/theme2.d.ts +4 -0
- package/dist/lib/assets/chart-themes/theme2.js +7 -0
- package/dist/lib/assets/chart-themes/theme3.d.ts +4 -0
- package/dist/lib/assets/chart-themes/theme3.js +7 -0
- package/dist/lib/components/runtime/index.d.ts +4 -0
- package/dist/lib/components/runtime/utils/api/api-util.d.ts +11 -0
- package/dist/lib/components/runtime/utils/api/api-util.js +128 -0
- package/dist/lib/components/runtime/utils/assemblys-config.js +258 -0
- package/dist/lib/components/runtime/utils/charts/chart-util.d.ts +11 -0
- package/dist/lib/components/runtime/utils/charts/chart-util.js +28 -0
- package/dist/lib/components/runtime/utils/common-util.d.ts +16 -0
- package/dist/lib/components/runtime/utils/common-util.js +94 -0
- package/dist/lib/components/runtime/utils/eventBus.d.ts +7 -0
- package/dist/lib/components/runtime/utils/eventBus.js +10 -0
- package/dist/lib/components/runtime/utils/events/event-util.d.ts +48 -0
- package/dist/lib/components/runtime/utils/events/event-util.js +526 -0
- package/dist/lib/components/runtime/utils/events/standard-event.d.ts +61 -0
- package/dist/lib/components/runtime/utils/events/standard-event.js +1625 -0
- package/dist/lib/components/runtime/utils/events/validator-util.d.ts +4 -0
- package/dist/lib/components/runtime/utils/events/validator-util.js +389 -0
- package/dist/lib/components/runtime/utils/global-refs.d.ts +59 -0
- package/dist/lib/components/runtime/utils/global-refs.js +65 -0
- package/dist/lib/components/runtime/utils/interfaces/page-design-types.d.ts +223 -0
- package/dist/lib/components/runtime/utils/interfaces/page-design-types.js +9 -0
- package/dist/lib/components/runtime/utils/page-helper-util.d.ts +106 -0
- package/dist/lib/components/runtime/utils/page-helper-util.js +622 -0
- package/dist/lib/components/runtime/utils/page-init-util.d.ts +38 -0
- package/dist/lib/components/runtime/utils/page-init-util.js +200 -0
- package/dist/lib/components/runtime/utils/page-permission-util.d.ts +26 -0
- package/dist/lib/components/runtime/utils/page-permission-util.js +525 -0
- package/dist/lib/components/runtime/utils/store-util.d.ts +15 -0
- package/dist/lib/components/runtime/utils/store-util.js +17 -0
- package/dist/lib/components/runtime/utils/store.d.ts +2 -0
- package/dist/lib/components/runtime/utils/store.js +3 -0
- package/dist/lib/components/runtime/utils/table-utils.js +24 -0
- package/dist/lib/components/runtime/views/assemblys/button/button/button-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +54 -0
- package/dist/lib/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +35 -0
- package/dist/lib/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +110 -0
- package/dist/lib/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +432 -0
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.js +43 -0
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +61 -0
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +126 -0
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +52 -0
- package/dist/lib/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +54 -0
- package/dist/lib/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +54 -0
- package/dist/lib/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +56 -0
- package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue.d.ts +24 -0
- package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +147 -0
- package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue.d.ts +35 -0
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +127 -0
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue.d.ts +26 -0
- package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +104 -0
- package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/container/card/card-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +72 -0
- package/dist/lib/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +74 -0
- package/dist/lib/components/runtime/views/assemblys/container/container/container-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +79 -0
- package/dist/lib/components/runtime/views/assemblys/container/flex/flex-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +43 -0
- package/dist/lib/components/runtime/views/assemblys/container/form/form-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +44 -0
- package/dist/lib/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +30 -0
- package/dist/lib/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +69 -0
- package/dist/lib/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +75 -0
- package/dist/lib/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +642 -0
- package/dist/lib/components/runtime/views/assemblys/data/table/main-table-runtime.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +453 -0
- package/dist/lib/components/runtime/views/assemblys/data/table/sub-table-runtime.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/data/table/table-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +88 -0
- package/dist/lib/components/runtime/views/assemblys/error-render.vue.d.ts +22 -0
- package/dist/lib/components/runtime/views/assemblys/error-render.vue.js +22 -0
- package/dist/lib/components/runtime/views/assemblys/error-render.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +156 -0
- package/dist/lib/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +82 -0
- package/dist/lib/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +64 -0
- package/dist/lib/components/runtime/views/assemblys/form/divider/divider-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +40 -0
- package/dist/lib/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +74 -0
- package/dist/lib/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +63 -0
- package/dist/lib/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +127 -0
- package/dist/lib/components/runtime/views/assemblys/form/label/label-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +127 -0
- package/dist/lib/components/runtime/views/assemblys/form/link/link-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +77 -0
- package/dist/lib/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +29 -0
- package/dist/lib/components/runtime/views/assemblys/form/radio/radio-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +157 -0
- package/dist/lib/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +164 -0
- package/dist/lib/components/runtime/views/assemblys/form/select/select-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +201 -0
- package/dist/lib/components/runtime/views/assemblys/form/switch/switch-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +63 -0
- package/dist/lib/components/runtime/views/assemblys/form/tag/tag-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +63 -0
- package/dist/lib/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +65 -0
- package/dist/lib/components/runtime/views/assemblys/object-render.vue.d.ts +17 -0
- package/dist/lib/components/runtime/views/assemblys/object-render.vue.js +142 -0
- package/dist/lib/components/runtime/views/assemblys/object-render.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +61 -0
- package/dist/lib/components/runtime/views/super-page-dialog.vue.d.ts +36 -0
- package/dist/lib/components/runtime/views/super-page-dialog.vue.js +73 -0
- package/dist/lib/components/runtime/views/super-page-dialog.vue2.js +3 -0
- package/dist/lib/components/runtime/views/super-page.vue.d.ts +91 -0
- package/dist/lib/components/runtime/views/super-page.vue.js +496 -0
- package/dist/lib/components/runtime/views/super-page.vue2.js +3 -0
- package/dist/lib/favicon.ico +0 -0
- package/dist/lib/index.d.ts +8 -0
- package/dist/lib/index.js +15 -0
- package/package.json +1 -1
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const Vue = require("vue");
|
|
3
|
+
const pageHelperUtil = require("../../../../utils/page-helper-util.js");
|
|
4
|
+
const pageInitUtil = require("../../../../utils/page-init-util.js");
|
|
5
|
+
const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
6
|
+
__name: "checkbox-runtime",
|
|
7
|
+
props: {
|
|
8
|
+
pageContext: {},
|
|
9
|
+
configure: {}
|
|
10
|
+
},
|
|
11
|
+
setup(__props, { expose: __expose }) {
|
|
12
|
+
const props = __props;
|
|
13
|
+
const entity = props.pageContext.entity ? props.pageContext.entity : {};
|
|
14
|
+
let dynamicFields = pageInitUtil.getFormModelFields(props.pageContext, props.configure);
|
|
15
|
+
const dynamicModelMethod = Vue.computed({
|
|
16
|
+
get() {
|
|
17
|
+
return pageHelperUtil.getVariableValue(entity, dynamicFields);
|
|
18
|
+
},
|
|
19
|
+
set(value) {
|
|
20
|
+
pageHelperUtil.setVariableValue(entity, dynamicFields, value);
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
|
|
24
|
+
const runtimeStyle = runtimeInfo.style;
|
|
25
|
+
const runtimeClass = runtimeInfo.class;
|
|
26
|
+
const headerStyle = runtimeInfo.headerStyle;
|
|
27
|
+
const designProperty = runtimeInfo.props ? runtimeInfo.props : {};
|
|
28
|
+
const listOptions = Vue.ref(designProperty.options ? designProperty.options : []);
|
|
29
|
+
const cacheOptions = pageHelperUtil.getOptionDatasFromPage(props.pageContext, props.configure);
|
|
30
|
+
if (cacheOptions.length > 0) {
|
|
31
|
+
listOptions.value = cacheOptions;
|
|
32
|
+
}
|
|
33
|
+
const dataOrigin = props.configure.props && props.configure.props.dataOrigin ? props.configure.props.dataOrigin : {};
|
|
34
|
+
const valueType = dataOrigin.optionValueSetType;
|
|
35
|
+
let autoSets = [];
|
|
36
|
+
if (valueType == "dynamicData" || valueType == "dynamicData" || valueType == "service") {
|
|
37
|
+
if (dataOrigin.autoSets) {
|
|
38
|
+
for (let obj of dataOrigin.autoSets) {
|
|
39
|
+
if (obj.source) {
|
|
40
|
+
autoSets.push(obj);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
if (props.configure && props.configure.props && props.configure.props.base && props.configure.props.base.optionProp) {
|
|
46
|
+
autoSets.push({
|
|
47
|
+
source: "label",
|
|
48
|
+
target: props.configure.props.base.optionProp
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
if (autoSets.length > -1) {
|
|
52
|
+
designProperty.changeMethod = optionChange;
|
|
53
|
+
}
|
|
54
|
+
const monitorFields = designProperty.monitorFields;
|
|
55
|
+
const monitorFieldInfos = [];
|
|
56
|
+
if (monitorFields) {
|
|
57
|
+
const preFields = [];
|
|
58
|
+
for (let propName of monitorFields) {
|
|
59
|
+
if (propName.startsWith("${")) {
|
|
60
|
+
propName = propName.substring(2, propName.length - 1);
|
|
61
|
+
const fields = propName.split(".");
|
|
62
|
+
if (fields[0] === "page" || fields[0] === "task" || fields[0] === "data") {
|
|
63
|
+
monitorFieldInfos.push(fields);
|
|
64
|
+
if (!preFields.includes(fields[0])) {
|
|
65
|
+
preFields.push(fields[0]);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
for (let preField of preFields) {
|
|
71
|
+
Vue.watch(entity[preField], () => {
|
|
72
|
+
monitorFieldChange();
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
function getMonitorFieldValues() {
|
|
77
|
+
let values = "";
|
|
78
|
+
for (let fieldInfo of monitorFieldInfos) {
|
|
79
|
+
values += "_" + pageHelperUtil.getVariableValue(entity, fieldInfo);
|
|
80
|
+
}
|
|
81
|
+
return values;
|
|
82
|
+
}
|
|
83
|
+
let initMonitorValue = getMonitorFieldValues();
|
|
84
|
+
let monitorTimeout = false;
|
|
85
|
+
const optionconfigInfo = designProperty.optionconfigInfo ? designProperty.optionconfigInfo : {};
|
|
86
|
+
function monitorFieldChange() {
|
|
87
|
+
if (monitorTimeout) {
|
|
88
|
+
clearTimeout(monitorTimeout);
|
|
89
|
+
}
|
|
90
|
+
monitorTimeout = setTimeout(function() {
|
|
91
|
+
const newValue = getMonitorFieldValues();
|
|
92
|
+
if (newValue == initMonitorValue) {
|
|
93
|
+
return;
|
|
94
|
+
}
|
|
95
|
+
initMonitorValue = newValue;
|
|
96
|
+
pageHelperUtil.queryOptionDatasources(props.pageContext, optionconfigInfo, void 0).then((error) => {
|
|
97
|
+
console.log("查询失败!", error);
|
|
98
|
+
});
|
|
99
|
+
}, 200);
|
|
100
|
+
}
|
|
101
|
+
function optionChange(value) {
|
|
102
|
+
let selItems = null;
|
|
103
|
+
if (listOptions.value && value != void 0 && value != null) {
|
|
104
|
+
selItems = listOptions.value.filter((item) => {
|
|
105
|
+
return Array.isArray(value) ? value.includes(item.value) : value === item.value;
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
pageHelperUtil.autoSetAfterSelect(props.configure, props.pageContext, autoSets, selItems);
|
|
109
|
+
}
|
|
110
|
+
function updateOptions(newOptions) {
|
|
111
|
+
listOptions.value = newOptions ? newOptions : [];
|
|
112
|
+
}
|
|
113
|
+
__expose({
|
|
114
|
+
updateOptions
|
|
115
|
+
});
|
|
116
|
+
return (_ctx, _cache) => {
|
|
117
|
+
const _component_el_checkbox = Vue.resolveComponent("el-checkbox");
|
|
118
|
+
const _component_el_checkbox_group = Vue.resolveComponent("el-checkbox-group");
|
|
119
|
+
const _component_el_form_item = Vue.resolveComponent("el-form-item");
|
|
120
|
+
return Vue.openBlock(), Vue.createBlock(_component_el_form_item, {
|
|
121
|
+
class: Vue.normalizeClass(Vue.unref(runtimeClass)),
|
|
122
|
+
"label-width": Vue.unref(designProperty).labelWidth,
|
|
123
|
+
style: Vue.normalizeStyle(Vue.unref(runtimeStyle))
|
|
124
|
+
}, {
|
|
125
|
+
label: Vue.withCtx(() => [
|
|
126
|
+
Vue.unref(designProperty).tittleShow ? (Vue.openBlock(), Vue.createElementBlock("div", {
|
|
127
|
+
key: 0,
|
|
128
|
+
style: Vue.normalizeStyle({ ...Vue.unref(headerStyle) })
|
|
129
|
+
}, Vue.toDisplayString(Vue.unref(designProperty).title), 5)) : Vue.createCommentVNode("", true)
|
|
130
|
+
]),
|
|
131
|
+
default: Vue.withCtx(() => [
|
|
132
|
+
Vue.createVNode(_component_el_checkbox_group, {
|
|
133
|
+
disabled: Vue.unref(designProperty).state === "disabled",
|
|
134
|
+
size: Vue.unref(designProperty).size,
|
|
135
|
+
onChange: Vue.unref(designProperty).changeMethod,
|
|
136
|
+
modelValue: dynamicModelMethod.value,
|
|
137
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => dynamicModelMethod.value = $event)
|
|
138
|
+
}, {
|
|
139
|
+
default: Vue.withCtx(() => [
|
|
140
|
+
(Vue.openBlock(true), Vue.createElementBlock(Vue.Fragment, null, Vue.renderList(listOptions.value, (item) => {
|
|
141
|
+
return Vue.openBlock(), Vue.createBlock(_component_el_checkbox, {
|
|
142
|
+
key: item.value,
|
|
143
|
+
value: item.value,
|
|
144
|
+
label: item.label
|
|
145
|
+
}, null, 8, ["value", "label"]);
|
|
146
|
+
}), 128))
|
|
147
|
+
]),
|
|
148
|
+
_: 1
|
|
149
|
+
}, 8, ["disabled", "size", "onChange", "modelValue"])
|
|
150
|
+
]),
|
|
151
|
+
_: 1
|
|
152
|
+
}, 8, ["class", "label-width", "style"]);
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
});
|
|
156
|
+
module.exports = _sfc_main;
|
package/dist/lib/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const Vue = require("vue");
|
|
3
|
+
const pageInitUtil = require("../../../../utils/page-init-util.js");
|
|
4
|
+
const pageHelperUtil = require("../../../../utils/page-helper-util.js");
|
|
5
|
+
const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
6
|
+
__name: "datepicker-runtime",
|
|
7
|
+
props: {
|
|
8
|
+
pageContext: {},
|
|
9
|
+
configure: {}
|
|
10
|
+
},
|
|
11
|
+
setup(__props) {
|
|
12
|
+
const props = __props;
|
|
13
|
+
const entity = props.pageContext.entity ? props.pageContext.entity : {};
|
|
14
|
+
let dynamicFields = pageInitUtil.getFormModelFields(props.pageContext, props.configure);
|
|
15
|
+
const dynamicModelMethod = Vue.computed({
|
|
16
|
+
get() {
|
|
17
|
+
return pageHelperUtil.getVariableValue(entity, dynamicFields);
|
|
18
|
+
},
|
|
19
|
+
set(value) {
|
|
20
|
+
pageHelperUtil.setVariableValue(entity, dynamicFields, value);
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
|
|
24
|
+
const runtimeStyle = runtimeInfo.style;
|
|
25
|
+
const runtimeClass = runtimeInfo.class;
|
|
26
|
+
const headerStyle = runtimeInfo.headerStyle;
|
|
27
|
+
const designProperty = runtimeInfo.props ? runtimeInfo.props : {};
|
|
28
|
+
return (_ctx, _cache) => {
|
|
29
|
+
const _component_el_time_picker = Vue.resolveComponent("el-time-picker");
|
|
30
|
+
const _component_el_date_picker = Vue.resolveComponent("el-date-picker");
|
|
31
|
+
const _component_el_form_item = Vue.resolveComponent("el-form-item");
|
|
32
|
+
return Vue.openBlock(), Vue.createBlock(_component_el_form_item, {
|
|
33
|
+
required: Vue.unref(designProperty).required,
|
|
34
|
+
class: Vue.normalizeClass(Vue.unref(runtimeClass)),
|
|
35
|
+
"label-width": Vue.unref(designProperty).labelWidth,
|
|
36
|
+
style: Vue.normalizeStyle(Vue.unref(runtimeStyle))
|
|
37
|
+
}, {
|
|
38
|
+
label: Vue.withCtx(() => [
|
|
39
|
+
Vue.unref(designProperty).tittleShow ? (Vue.openBlock(), Vue.createElementBlock("div", {
|
|
40
|
+
key: 0,
|
|
41
|
+
style: Vue.normalizeStyle({ ...Vue.unref(headerStyle) })
|
|
42
|
+
}, Vue.toDisplayString(Vue.unref(designProperty).title), 5)) : Vue.createCommentVNode("", true)
|
|
43
|
+
]),
|
|
44
|
+
default: Vue.withCtx(() => [
|
|
45
|
+
Vue.unref(designProperty).dateType == "time" || Vue.unref(designProperty).dateType == "timerange" ? (Vue.openBlock(), Vue.createBlock(_component_el_time_picker, {
|
|
46
|
+
key: 0,
|
|
47
|
+
"is-range": Vue.unref(designProperty).dateType == "timerange",
|
|
48
|
+
"range-separator": "-",
|
|
49
|
+
clearable: Vue.unref(designProperty).clearable,
|
|
50
|
+
disabled: Vue.unref(designProperty).state === "disabled",
|
|
51
|
+
readonly: Vue.unref(designProperty).state === "readonly",
|
|
52
|
+
size: Vue.unref(designProperty).size,
|
|
53
|
+
placeholder: Vue.unref(designProperty).placeholder,
|
|
54
|
+
"start-placeholder": Vue.unref(designProperty).placeholder,
|
|
55
|
+
"end-placeholder": Vue.unref(designProperty).endPlaceholder,
|
|
56
|
+
format: Vue.unref(designProperty).format,
|
|
57
|
+
modelValue: dynamicModelMethod.value,
|
|
58
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => dynamicModelMethod.value = $event),
|
|
59
|
+
shortcuts: Vue.unref(designProperty).shortcuts,
|
|
60
|
+
type: Vue.unref(designProperty).dateType
|
|
61
|
+
}, null, 8, ["is-range", "clearable", "disabled", "readonly", "size", "placeholder", "start-placeholder", "end-placeholder", "format", "modelValue", "shortcuts", "type"])) : (Vue.openBlock(), Vue.createBlock(_component_el_date_picker, {
|
|
62
|
+
key: 1,
|
|
63
|
+
clearable: Vue.unref(designProperty).clearable,
|
|
64
|
+
disabled: Vue.unref(designProperty).state === "disabled",
|
|
65
|
+
readonly: Vue.unref(designProperty).state === "readonly",
|
|
66
|
+
size: Vue.unref(designProperty).size,
|
|
67
|
+
placeholder: Vue.unref(designProperty).placeholder,
|
|
68
|
+
"start-placeholder": Vue.unref(designProperty).placeholder,
|
|
69
|
+
"end-placeholder": Vue.unref(designProperty).endPlaceholder,
|
|
70
|
+
format: Vue.unref(designProperty).format,
|
|
71
|
+
modelValue: dynamicModelMethod.value,
|
|
72
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => dynamicModelMethod.value = $event),
|
|
73
|
+
shortcuts: Vue.unref(designProperty).shortcuts,
|
|
74
|
+
type: Vue.unref(designProperty).dateType
|
|
75
|
+
}, null, 8, ["clearable", "disabled", "readonly", "size", "placeholder", "start-placeholder", "end-placeholder", "format", "modelValue", "shortcuts", "type"]))
|
|
76
|
+
]),
|
|
77
|
+
_: 1
|
|
78
|
+
}, 8, ["required", "class", "label-width", "style"]);
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
module.exports = _sfc_main;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const Vue = require("vue");
|
|
3
|
+
const pageInitUtil = require("../../../../utils/page-init-util.js");
|
|
4
|
+
require("../../../../../../node_modules/.pnpm/agilebuilder-ui@1.0.13_vue@3.4.21/node_modules/agilebuilder-ui/src/utils/request.js");
|
|
5
|
+
require("../../../../../../node_modules/.pnpm/dayjs@1.11.11/node_modules/dayjs/dayjs.min.js");
|
|
6
|
+
require("../../../../../../node_modules/.pnpm/agilebuilder-ui@1.0.13_vue@3.4.21/node_modules/agilebuilder-ui/src/i18n/i18n.js");
|
|
7
|
+
require("../../../../../../node_modules/.pnpm/js-cookie@3.0.5/node_modules/js-cookie/dist/js.cookie.js");
|
|
8
|
+
require("../../../../utils/global-refs.js");
|
|
9
|
+
const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
10
|
+
__name: "depttree-runtime",
|
|
11
|
+
props: {
|
|
12
|
+
pageContext: {},
|
|
13
|
+
configure: {}
|
|
14
|
+
},
|
|
15
|
+
setup(__props) {
|
|
16
|
+
const props = __props;
|
|
17
|
+
const entity = props.pageContext.entity ? props.pageContext.entity : {};
|
|
18
|
+
if (!entity.data) {
|
|
19
|
+
entity.data = {};
|
|
20
|
+
}
|
|
21
|
+
const dataModel = entity.data;
|
|
22
|
+
let dynamicFields = pageInitUtil.getFormModelFields(props.pageContext, props.configure);
|
|
23
|
+
const fieldName = dynamicFields.length > 0 ? dynamicFields[dynamicFields.length - 1] : props.configure.uuid;
|
|
24
|
+
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
|
|
25
|
+
const designProperty = runtimeInfo.props ? runtimeInfo.props : {};
|
|
26
|
+
const runtimeStyle = runtimeInfo.style;
|
|
27
|
+
const runtimeClass = runtimeInfo.class;
|
|
28
|
+
const headerStyle = runtimeInfo.headerStyle;
|
|
29
|
+
const autoSetFields = designProperty.autoSetFields ? designProperty.autoSetFields : [];
|
|
30
|
+
return (_ctx, _cache) => {
|
|
31
|
+
const _component_OrganizationInput = Vue.resolveComponent("OrganizationInput");
|
|
32
|
+
const _component_el_form_item = Vue.resolveComponent("el-form-item");
|
|
33
|
+
return Vue.openBlock(), Vue.createBlock(_component_el_form_item, {
|
|
34
|
+
required: Vue.unref(designProperty).required,
|
|
35
|
+
class: Vue.normalizeClass(Vue.unref(runtimeClass)),
|
|
36
|
+
"label-width": Vue.unref(designProperty).labelWidth,
|
|
37
|
+
style: Vue.normalizeStyle(Vue.unref(runtimeStyle))
|
|
38
|
+
}, {
|
|
39
|
+
label: Vue.withCtx(() => [
|
|
40
|
+
Vue.unref(designProperty).tittleShow ? (Vue.openBlock(), Vue.createElementBlock("div", {
|
|
41
|
+
key: 0,
|
|
42
|
+
style: Vue.normalizeStyle({ ...Vue.unref(headerStyle) })
|
|
43
|
+
}, Vue.toDisplayString(Vue.unref(designProperty).title), 5)) : Vue.createCommentVNode("", true)
|
|
44
|
+
]),
|
|
45
|
+
default: Vue.withCtx(() => [
|
|
46
|
+
Vue.createVNode(_component_OrganizationInput, {
|
|
47
|
+
disabled: Vue.unref(designProperty).state == "disabled",
|
|
48
|
+
multiple: Vue.unref(designProperty).multiple,
|
|
49
|
+
treeType: Vue.unref(designProperty).treeType,
|
|
50
|
+
modelValue: Vue.unref(dataModel)[Vue.unref(fieldName)],
|
|
51
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => Vue.unref(dataModel)[Vue.unref(fieldName)] = $event),
|
|
52
|
+
models: Vue.unref(dataModel),
|
|
53
|
+
fields: Vue.unref(autoSetFields),
|
|
54
|
+
size: Vue.unref(designProperty).size,
|
|
55
|
+
placeholder: "请选择",
|
|
56
|
+
separator: Vue.unref(designProperty).separator
|
|
57
|
+
}, null, 8, ["disabled", "multiple", "treeType", "modelValue", "models", "fields", "size", "separator"])
|
|
58
|
+
]),
|
|
59
|
+
_: 1
|
|
60
|
+
}, 8, ["required", "class", "label-width", "style"]);
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
module.exports = _sfc_main;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const Vue = require("vue");
|
|
3
|
+
const pageHelperUtil = require("../../../../utils/page-helper-util.js");
|
|
4
|
+
const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
5
|
+
__name: "divider-runtime",
|
|
6
|
+
props: {
|
|
7
|
+
pageContext: {},
|
|
8
|
+
configure: {}
|
|
9
|
+
},
|
|
10
|
+
setup(__props) {
|
|
11
|
+
const props = __props;
|
|
12
|
+
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
|
|
13
|
+
const headerStyle = runtimeInfo.headerStyle;
|
|
14
|
+
const designProperty = runtimeInfo.props ? runtimeInfo.props : {};
|
|
15
|
+
let contentVariable = designProperty.value;
|
|
16
|
+
const dynamicValue = Vue.computed(() => {
|
|
17
|
+
if (!contentVariable) {
|
|
18
|
+
return "";
|
|
19
|
+
}
|
|
20
|
+
const resultValue = pageHelperUtil.formatVariableValue(props.pageContext, contentVariable);
|
|
21
|
+
return resultValue == void 0 || resultValue == null ? "" : resultValue;
|
|
22
|
+
});
|
|
23
|
+
return (_ctx, _cache) => {
|
|
24
|
+
const _component_el_divider = Vue.resolveComponent("el-divider");
|
|
25
|
+
return Vue.openBlock(), Vue.createBlock(_component_el_divider, {
|
|
26
|
+
direction: Vue.unref(designProperty).direction,
|
|
27
|
+
"border-style": Vue.unref(designProperty).borderType,
|
|
28
|
+
"content-position": Vue.unref(designProperty).titlePosition
|
|
29
|
+
}, {
|
|
30
|
+
default: Vue.withCtx(() => [
|
|
31
|
+
Vue.createElementVNode("div", {
|
|
32
|
+
style: Vue.normalizeStyle(Vue.unref(headerStyle))
|
|
33
|
+
}, Vue.toDisplayString(dynamicValue.value), 5)
|
|
34
|
+
]),
|
|
35
|
+
_: 1
|
|
36
|
+
}, 8, ["direction", "border-style", "content-position"]);
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
module.exports = _sfc_main;
|
package/dist/lib/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const Vue = require("vue");
|
|
3
|
+
const pageHelperUtil = require("../../../../utils/page-helper-util.js");
|
|
4
|
+
const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
5
|
+
__name: "fileupload-runtime",
|
|
6
|
+
props: {
|
|
7
|
+
pageContext: {},
|
|
8
|
+
configure: {}
|
|
9
|
+
},
|
|
10
|
+
setup(__props) {
|
|
11
|
+
const props = __props;
|
|
12
|
+
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
|
|
13
|
+
const designProperty = runtimeInfo.props ? runtimeInfo.props : {};
|
|
14
|
+
const runtimeStyle = runtimeInfo.style;
|
|
15
|
+
const runtimeClass = runtimeInfo.class;
|
|
16
|
+
const headerStyle = runtimeInfo.headerStyle;
|
|
17
|
+
const entity = props.pageContext.entity ? props.pageContext.entity : {};
|
|
18
|
+
const propsBase = props.configure.props.base ? props.configure.props.base : {};
|
|
19
|
+
propsBase.prop;
|
|
20
|
+
const pathFields = getFieldsByVariable(propsBase.prop);
|
|
21
|
+
const nameFields = getFieldsByVariable(propsBase.propName);
|
|
22
|
+
const initNames = pageHelperUtil.getVariableValue(entity, nameFields);
|
|
23
|
+
const initPaths = pageHelperUtil.getVariableValue(entity, pathFields);
|
|
24
|
+
const fileInfo = ref({
|
|
25
|
+
name: initNames ? initNames : "",
|
|
26
|
+
serverPath: initPaths ? initPaths : ""
|
|
27
|
+
});
|
|
28
|
+
Vue.watch(fileInfo, () => {
|
|
29
|
+
pageHelperUtil.setVariableValue(entity, nameFields, fileInfo.name);
|
|
30
|
+
pageHelperUtil.setVariableValue(entity, pathFields, fileInfo.serverPath);
|
|
31
|
+
});
|
|
32
|
+
function getFieldsByVariable(variableName) {
|
|
33
|
+
if (!variableName) {
|
|
34
|
+
return [];
|
|
35
|
+
}
|
|
36
|
+
if (variableName.startsWith("${")) {
|
|
37
|
+
variableName = variableName.substring(2, variableName.length - 1);
|
|
38
|
+
}
|
|
39
|
+
return variableName.split(".");
|
|
40
|
+
}
|
|
41
|
+
return (_ctx, _cache) => {
|
|
42
|
+
const _component_FsUploadList = Vue.resolveComponent("FsUploadList");
|
|
43
|
+
const _component_el_form_item = Vue.resolveComponent("el-form-item");
|
|
44
|
+
return Vue.unref(designProperty).tittleShow ? (Vue.openBlock(), Vue.createBlock(_component_el_form_item, {
|
|
45
|
+
key: 0,
|
|
46
|
+
required: Vue.unref(designProperty).required,
|
|
47
|
+
class: Vue.normalizeClass(Vue.unref(runtimeClass)),
|
|
48
|
+
"label-width": Vue.unref(designProperty).labelWidth,
|
|
49
|
+
style: Vue.normalizeStyle(Vue.unref(runtimeStyle))
|
|
50
|
+
}, {
|
|
51
|
+
label: Vue.withCtx(() => [
|
|
52
|
+
Vue.unref(designProperty).tittleShow ? (Vue.openBlock(), Vue.createElementBlock("div", {
|
|
53
|
+
key: 0,
|
|
54
|
+
style: Vue.normalizeStyle({ ...Vue.unref(headerStyle) })
|
|
55
|
+
}, Vue.toDisplayString(Vue.unref(designProperty).title), 5)) : Vue.createCommentVNode("", true)
|
|
56
|
+
]),
|
|
57
|
+
default: Vue.withCtx(() => [
|
|
58
|
+
Vue.createVNode(_component_FsUploadList, {
|
|
59
|
+
disabled: Vue.unref(designProperty).state == "disabled",
|
|
60
|
+
fileSetObj: Vue.unref(designProperty).fileSetObj,
|
|
61
|
+
fileInfo: Vue.unref(fileInfo)
|
|
62
|
+
}, null, 8, ["disabled", "fileSetObj", "fileInfo"])
|
|
63
|
+
]),
|
|
64
|
+
_: 1
|
|
65
|
+
}, 8, ["required", "class", "label-width", "style"])) : (Vue.openBlock(), Vue.createBlock(_component_FsUploadList, {
|
|
66
|
+
key: 1,
|
|
67
|
+
disabled: Vue.unref(designProperty).state == "disabled",
|
|
68
|
+
fileSetObj: Vue.unref(designProperty).fileSetObj,
|
|
69
|
+
fileInfo: Vue.unref(fileInfo)
|
|
70
|
+
}, null, 8, ["disabled", "fileSetObj", "fileInfo"]));
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
module.exports = _sfc_main;
|
package/dist/lib/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const Vue = require("vue");
|
|
3
|
+
const pageInitUtil = require("../../../../utils/page-init-util.js");
|
|
4
|
+
const pageHelperUtil = require("../../../../utils/page-helper-util.js");
|
|
5
|
+
const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
6
|
+
__name: "input-number-runtime",
|
|
7
|
+
props: {
|
|
8
|
+
pageContext: {},
|
|
9
|
+
configure: {}
|
|
10
|
+
},
|
|
11
|
+
setup(__props) {
|
|
12
|
+
const props = __props;
|
|
13
|
+
const entity = props.pageContext.entity ? props.pageContext.entity : {};
|
|
14
|
+
let dynamicFields = pageInitUtil.getFormModelFields(props.pageContext, props.configure);
|
|
15
|
+
const dynamicModelMethod = Vue.computed({
|
|
16
|
+
get() {
|
|
17
|
+
return pageHelperUtil.getVariableValue(entity, dynamicFields);
|
|
18
|
+
},
|
|
19
|
+
set(value) {
|
|
20
|
+
pageHelperUtil.setVariableValue(entity, dynamicFields, value);
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
|
|
24
|
+
const runtimeStyle = runtimeInfo.style;
|
|
25
|
+
const runtimeClass = runtimeInfo.class;
|
|
26
|
+
const headerStyle = runtimeInfo.headerStyle;
|
|
27
|
+
const designProperty = runtimeInfo.props ? runtimeInfo.props : {};
|
|
28
|
+
return (_ctx, _cache) => {
|
|
29
|
+
const _component_el_input_number = Vue.resolveComponent("el-input-number");
|
|
30
|
+
const _component_el_form_item = Vue.resolveComponent("el-form-item");
|
|
31
|
+
return Vue.openBlock(), Vue.createBlock(_component_el_form_item, {
|
|
32
|
+
required: Vue.unref(designProperty).required,
|
|
33
|
+
class: Vue.normalizeClass(Vue.unref(runtimeClass)),
|
|
34
|
+
"label-width": Vue.unref(designProperty).labelWidth,
|
|
35
|
+
style: Vue.normalizeStyle(Vue.unref(runtimeStyle))
|
|
36
|
+
}, {
|
|
37
|
+
label: Vue.withCtx(() => [
|
|
38
|
+
Vue.unref(designProperty).tittleShow ? (Vue.openBlock(), Vue.createElementBlock("div", {
|
|
39
|
+
key: 0,
|
|
40
|
+
style: Vue.normalizeStyle({ ...Vue.unref(headerStyle) })
|
|
41
|
+
}, Vue.toDisplayString(Vue.unref(designProperty).title), 5)) : Vue.createCommentVNode("", true)
|
|
42
|
+
]),
|
|
43
|
+
default: Vue.withCtx(() => [
|
|
44
|
+
Vue.createVNode(_component_el_input_number, {
|
|
45
|
+
disabled: Vue.unref(designProperty).state === "disabled",
|
|
46
|
+
readonly: Vue.unref(designProperty).state === "readonly",
|
|
47
|
+
controls: Vue.unref(designProperty).showButton,
|
|
48
|
+
size: Vue.unref(designProperty).size,
|
|
49
|
+
placeholder: Vue.unref(designProperty).placeholder,
|
|
50
|
+
modelValue: dynamicModelMethod.value,
|
|
51
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => dynamicModelMethod.value = $event),
|
|
52
|
+
precision: Vue.unref(designProperty).precision,
|
|
53
|
+
step: Vue.unref(designProperty).step,
|
|
54
|
+
min: Vue.unref(designProperty).min,
|
|
55
|
+
max: Vue.unref(designProperty).max
|
|
56
|
+
}, null, 8, ["disabled", "readonly", "controls", "size", "placeholder", "modelValue", "precision", "step", "min", "max"])
|
|
57
|
+
]),
|
|
58
|
+
_: 1
|
|
59
|
+
}, 8, ["required", "class", "label-width", "style"]);
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
module.exports = _sfc_main;
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const Vue = require("vue");
|
|
3
|
+
const superUi = require("../../../../../../node_modules/.pnpm/agilebuilder-ui@1.0.13_vue@3.4.21/node_modules/agilebuilder-ui/lib/super-ui.js");
|
|
4
|
+
const pageInitUtil = require("../../../../utils/page-init-util.js");
|
|
5
|
+
const pageHelperUtil = require("../../../../utils/page-helper-util.js");
|
|
6
|
+
const eventUtil = require("../../../../utils/events/event-util.js");
|
|
7
|
+
const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
8
|
+
__name: "inputtext-runtime",
|
|
9
|
+
props: {
|
|
10
|
+
pageContext: {},
|
|
11
|
+
configure: {}
|
|
12
|
+
},
|
|
13
|
+
setup(__props, { expose: __expose }) {
|
|
14
|
+
const props = __props;
|
|
15
|
+
const entity = props.pageContext.entity ? props.pageContext.entity : {};
|
|
16
|
+
let dynamicFields = pageInitUtil.getFormModelFields(props.pageContext, props.configure);
|
|
17
|
+
const dynamicModelMethod = Vue.computed({
|
|
18
|
+
get() {
|
|
19
|
+
return pageHelperUtil.getVariableValue(entity, dynamicFields);
|
|
20
|
+
},
|
|
21
|
+
set(value) {
|
|
22
|
+
pageHelperUtil.setVariableValue(entity, dynamicFields, value);
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
|
|
26
|
+
const designProperty = runtimeInfo.props ? runtimeInfo.props : {};
|
|
27
|
+
const runtimeStyle = runtimeInfo.style;
|
|
28
|
+
const runtimeClass = runtimeInfo.class;
|
|
29
|
+
const headerStyle = runtimeInfo.headerStyle;
|
|
30
|
+
function getValue() {
|
|
31
|
+
return pageHelperUtil.getVariableValue(entity, dynamicFields);
|
|
32
|
+
}
|
|
33
|
+
function setValue(value) {
|
|
34
|
+
return pageHelperUtil.setVariableValue(entity, dynamicFields, value);
|
|
35
|
+
}
|
|
36
|
+
__expose({
|
|
37
|
+
getValue,
|
|
38
|
+
setValue
|
|
39
|
+
});
|
|
40
|
+
return (_ctx, _cache) => {
|
|
41
|
+
const _component_el_input = Vue.resolveComponent("el-input");
|
|
42
|
+
const _component_el_form_item = Vue.resolveComponent("el-form-item");
|
|
43
|
+
return Vue.openBlock(), Vue.createBlock(_component_el_form_item, {
|
|
44
|
+
required: Vue.unref(designProperty).required ? true : false,
|
|
45
|
+
class: Vue.normalizeClass(Vue.unref(runtimeClass)),
|
|
46
|
+
"label-width": Vue.unref(designProperty).labelWidth,
|
|
47
|
+
style: Vue.normalizeStyle(Vue.unref(runtimeStyle))
|
|
48
|
+
}, {
|
|
49
|
+
label: Vue.withCtx(() => [
|
|
50
|
+
Vue.unref(designProperty).tittleShow ? (Vue.openBlock(), Vue.createElementBlock("div", {
|
|
51
|
+
key: 0,
|
|
52
|
+
style: Vue.normalizeStyle({ ...Vue.unref(headerStyle) })
|
|
53
|
+
}, Vue.toDisplayString(Vue.unref(designProperty).title), 5)) : Vue.createCommentVNode("", true)
|
|
54
|
+
]),
|
|
55
|
+
default: Vue.withCtx(() => [
|
|
56
|
+
Vue.createVNode(_component_el_input, {
|
|
57
|
+
disabled: Vue.unref(designProperty).state === "disabled",
|
|
58
|
+
readonly: Vue.unref(designProperty).state === "readonly",
|
|
59
|
+
size: Vue.unref(designProperty).size,
|
|
60
|
+
clearable: Vue.unref(designProperty).clearable,
|
|
61
|
+
placeholder: Vue.unref(designProperty).placeholder,
|
|
62
|
+
maxlength: Vue.unref(designProperty).maxLength,
|
|
63
|
+
"show-word-limit": Vue.unref(designProperty).showInputNum,
|
|
64
|
+
modelValue: dynamicModelMethod.value,
|
|
65
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => dynamicModelMethod.value = $event),
|
|
66
|
+
onInput: _cache[1] || (_cache[1] = ($event) => Vue.unref(eventUtil.handleEvent)($event, _ctx.pageContext, _ctx.configure, "input")),
|
|
67
|
+
onChange: _cache[2] || (_cache[2] = ($event) => Vue.unref(eventUtil.handleEvent)($event, _ctx.pageContext, _ctx.configure, "change")),
|
|
68
|
+
onBlur: _cache[3] || (_cache[3] = ($event) => Vue.unref(eventUtil.handleEvent)($event, _ctx.pageContext, _ctx.configure, "blur")),
|
|
69
|
+
onFocus: _cache[4] || (_cache[4] = ($event) => Vue.unref(eventUtil.handleEvent)($event, _ctx.pageContext, _ctx.configure, "focus")),
|
|
70
|
+
onClick: _cache[5] || (_cache[5] = ($event) => Vue.unref(eventUtil.handleEvent)($event, _ctx.pageContext, _ctx.configure, "click"))
|
|
71
|
+
}, Vue.createSlots({ _: 2 }, [
|
|
72
|
+
Vue.unref(designProperty).iconPosition != "outer" && (Vue.unref(designProperty).preIconType && Vue.unref(designProperty).preIconValue || Vue.unref(designProperty).preText) ? {
|
|
73
|
+
name: "prefix",
|
|
74
|
+
fn: Vue.withCtx(() => [
|
|
75
|
+
Vue.unref(designProperty).preIconType && Vue.unref(designProperty).preIconValue ? (Vue.openBlock(), Vue.createBlock(Vue.unref(superUi.SuperIcon), {
|
|
76
|
+
key: 0,
|
|
77
|
+
iconType: Vue.unref(designProperty).preIconType,
|
|
78
|
+
iconValue: Vue.unref(designProperty).preIconValue
|
|
79
|
+
}, null, 8, ["iconType", "iconValue"])) : Vue.createCommentVNode("", true),
|
|
80
|
+
Vue.createTextVNode(" " + Vue.toDisplayString(Vue.unref(designProperty).preText), 1)
|
|
81
|
+
]),
|
|
82
|
+
key: "0"
|
|
83
|
+
} : void 0,
|
|
84
|
+
Vue.unref(designProperty).iconPosition == "outer" && (Vue.unref(designProperty).preIconType && Vue.unref(designProperty).preIconValue || Vue.unref(designProperty).preText) ? {
|
|
85
|
+
name: "prepend",
|
|
86
|
+
fn: Vue.withCtx(() => [
|
|
87
|
+
Vue.unref(designProperty).preIconType && Vue.unref(designProperty).preIconValue ? (Vue.openBlock(), Vue.createBlock(Vue.unref(superUi.SuperIcon), {
|
|
88
|
+
key: 0,
|
|
89
|
+
iconType: Vue.unref(designProperty).preIconType,
|
|
90
|
+
iconValue: Vue.unref(designProperty).preIconValue
|
|
91
|
+
}, null, 8, ["iconType", "iconValue"])) : Vue.createCommentVNode("", true),
|
|
92
|
+
Vue.createTextVNode(" " + Vue.toDisplayString(Vue.unref(designProperty).preText), 1)
|
|
93
|
+
]),
|
|
94
|
+
key: "1"
|
|
95
|
+
} : void 0,
|
|
96
|
+
Vue.unref(designProperty).iconPosition != "outer" && (Vue.unref(designProperty).sufIconType && Vue.unref(designProperty).sufIconValue || Vue.unref(designProperty).sufText) ? {
|
|
97
|
+
name: "suffix",
|
|
98
|
+
fn: Vue.withCtx(() => [
|
|
99
|
+
Vue.unref(designProperty).sufIconType && Vue.unref(designProperty).sufIconValue ? (Vue.openBlock(), Vue.createBlock(Vue.unref(superUi.SuperIcon), {
|
|
100
|
+
key: 0,
|
|
101
|
+
iconType: Vue.unref(designProperty).sufIconType,
|
|
102
|
+
iconValue: Vue.unref(designProperty).sufIconValue
|
|
103
|
+
}, null, 8, ["iconType", "iconValue"])) : Vue.createCommentVNode("", true),
|
|
104
|
+
Vue.createTextVNode(" " + Vue.toDisplayString(Vue.unref(designProperty).sufText), 1)
|
|
105
|
+
]),
|
|
106
|
+
key: "2"
|
|
107
|
+
} : void 0,
|
|
108
|
+
Vue.unref(designProperty).iconPosition == "outer" && (Vue.unref(designProperty).sufIconType && Vue.unref(designProperty).sufIconValue || Vue.unref(designProperty).sufText) ? {
|
|
109
|
+
name: "append",
|
|
110
|
+
fn: Vue.withCtx(() => [
|
|
111
|
+
Vue.unref(designProperty).sufIconType && Vue.unref(designProperty).sufIconValue ? (Vue.openBlock(), Vue.createBlock(Vue.unref(superUi.SuperIcon), {
|
|
112
|
+
key: 0,
|
|
113
|
+
iconType: Vue.unref(designProperty).sufIconType,
|
|
114
|
+
iconValue: Vue.unref(designProperty).sufIconValue
|
|
115
|
+
}, null, 8, ["iconType", "iconValue"])) : Vue.createCommentVNode("", true),
|
|
116
|
+
Vue.createTextVNode(" " + Vue.toDisplayString(Vue.unref(designProperty).sufText), 1)
|
|
117
|
+
]),
|
|
118
|
+
key: "3"
|
|
119
|
+
} : void 0
|
|
120
|
+
]), 1032, ["disabled", "readonly", "size", "clearable", "placeholder", "maxlength", "show-word-limit", "modelValue"])
|
|
121
|
+
]),
|
|
122
|
+
_: 1
|
|
123
|
+
}, 8, ["required", "class", "label-width", "style"]);
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
});
|
|
127
|
+
module.exports = _sfc_main;
|