super-page-runtime 2.1.93 → 2.1.95
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/_virtual/_plugin-vue_export-helper.js +6 -7
- package/dist/es/assets/chart-themes/theme1.js +2 -6
- package/dist/es/assets/chart-themes/theme2.js +2 -6
- package/dist/es/assets/chart-themes/theme3.js +2 -6
- package/dist/es/components/runtime/utils/api/api-util.js +4 -7
- package/dist/es/components/runtime/utils/api/page-expose-util.js +137 -433
- package/dist/es/components/runtime/utils/assemblys-config.js +12 -366
- package/dist/es/components/runtime/utils/barcode-util.js +10 -33
- package/dist/es/components/runtime/utils/charts/chart-columnline-util.js +138 -303
- package/dist/es/components/runtime/utils/charts/chart-gauge-util.js +29 -66
- package/dist/es/components/runtime/utils/charts/chart-pie-util.js +71 -147
- package/dist/es/components/runtime/utils/charts/chart-radar-util.js +52 -122
- package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +40 -98
- package/dist/es/components/runtime/utils/charts/chart-util.js +237 -478
- package/dist/es/components/runtime/utils/common-util.js +82 -152
- package/dist/es/components/runtime/utils/eventBus.js +3 -9
- package/dist/es/components/runtime/utils/events/event-util.js +361 -727
- package/dist/es/components/runtime/utils/events/print-label.js +73 -140
- package/dist/es/components/runtime/utils/events/standard-event.js +835 -2283
- package/dist/es/components/runtime/utils/events/validator-util.js +236 -555
- package/dist/es/components/runtime/utils/form/date-shortcuts.js +29 -88
- package/dist/es/components/runtime/utils/form/scan-util.js +60 -154
- package/dist/es/components/runtime/utils/global-refs.js +45 -69
- package/dist/es/components/runtime/utils/i18n-util.js +12 -20
- package/dist/es/components/runtime/utils/interfaces/page-design-types.js +2 -7
- package/dist/es/components/runtime/utils/page-helper-util.js +295 -603
- package/dist/es/components/runtime/utils/page-init-util.js +134 -369
- package/dist/es/components/runtime/utils/page-permission-util.js +24 -531
- package/dist/es/components/runtime/utils/page-store.js +8 -12
- package/dist/es/components/runtime/utils/store-util.js +9 -13
- package/dist/es/components/runtime/utils/store.js +2 -2
- package/dist/es/components/runtime/utils/table-utils.js +49 -84
- package/dist/es/components/runtime/utils/tree-utils.js +18 -36
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +19 -75
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +14 -46
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +37 -132
- package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +4 -18
- package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +17 -107
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +54 -198
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.js +12 -42
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +7 -60
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +48 -169
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +32 -107
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +43 -164
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +32 -115
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +32 -116
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +208 -439
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue.js +4 -42
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue.js +8 -62
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.js +63 -226
- package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue.js +13 -62
- package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +168 -513
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +29 -139
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +23 -125
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +16 -102
- package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +18 -81
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +17 -82
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +14 -86
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +21 -79
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +16 -61
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +10 -37
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +38 -127
- package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +28 -76
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +61 -178
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +311 -800
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +251 -592
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +43 -115
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +56 -216
- package/dist/es/components/runtime/views/assemblys/error-render.vue.js +3 -21
- package/dist/es/components/runtime/views/assemblys/error-render.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +44 -154
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +36 -98
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +54 -200
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +69 -239
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +28 -98
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +22 -59
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +52 -173
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +22 -103
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +58 -249
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +34 -174
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +28 -107
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +4 -4
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +13 -50
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +66 -189
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +91 -243
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +82 -261
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +13 -57
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +30 -155
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +41 -129
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +22 -107
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +133 -252
- package/dist/es/components/runtime/views/assemblys/object-render.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue2.js +19 -46
- package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue2.js +22 -49
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +21 -58
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue2.js +16 -53
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +18 -134
- package/dist/es/components/runtime/views/super-page-dialog.vue2.js +2 -2
- package/dist/es/components/runtime/views/super-page.vue.js +232 -708
- package/dist/es/components/runtime/views/super-page.vue2.js +2 -2
- package/dist/es/i18n/langs/cn.js +2 -55
- package/dist/es/i18n/langs/en.js +2 -55
- package/package.json +74 -73
|
@@ -1,110 +1,31 @@
|
|
|
1
|
-
import { defineComponent, ref, computed, onMounted, nextTick, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementBlock, toDisplayString, createCommentVNode, createVNode, createTextVNode } from "vue";
|
|
2
|
-
import { getFormModelFields } from "../../../../utils/page-init-util.js";
|
|
3
|
-
import { getVariableValue } from "../../../../utils/page-helper-util.js";
|
|
4
|
-
import { handleAfterInitEvent, handleEvent } from "../../../../utils/events/event-util.js";
|
|
5
|
-
import { $t } from "../../../../utils/i18n-util.js";
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
const dynamicValue = computed(() => {
|
|
24
|
-
let resultValue = getVariableValue(entity, modelFields);
|
|
25
|
-
resultValue = resultValue == void 0 || resultValue == null ? "" : resultValue;
|
|
26
|
-
if (formatting) {
|
|
27
|
-
resultValue = formatting.replace(/\${value}/g, resultValue);
|
|
28
|
-
}
|
|
29
|
-
return resultValue;
|
|
1
|
+
import { defineComponent as e, ref as t, computed as l, onMounted as n, nextTick as a, resolveComponent as i, openBlock as u, createBlock as o, normalizeClass as r, unref as s, normalizeStyle as p, withCtx as f, createElementBlock as c, toDisplayString as d, createCommentVNode as m, createVNode as g, createTextVNode as v } from "vue";
|
|
2
|
+
import { getFormModelFields as y } from "../../../../utils/page-init-util.js";
|
|
3
|
+
import { getVariableValue as b } from "../../../../utils/page-helper-util.js";
|
|
4
|
+
import { handleAfterInitEvent as k, handleEvent as x } from "../../../../utils/events/event-util.js";
|
|
5
|
+
import { $t as C } from "../../../../utils/i18n-util.js";
|
|
6
|
+
const _ = e({ __name: "link-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
|
|
7
|
+
const _2 = e2, h = y(_2.pageContext, _2.configure), R = _2.configure.runtime ? _2.configure.runtime : {}, j = R.style, w = R.class, I = R.headerStyle, S = t(R.props ? R.props : {});
|
|
8
|
+
let $ = S.value.formatting;
|
|
9
|
+
const D = _2.pageContext.entity ? _2.pageContext.entity : {}, V = l(() => {
|
|
10
|
+
let e3 = b(D, h);
|
|
11
|
+
return e3 = null == e3 || null == e3 ? "" : e3, $ && (e3 = $.replace(/\${value}/g, e3)), e3;
|
|
12
|
+
});
|
|
13
|
+
let W = S.value.tooltip, q = null;
|
|
14
|
+
W && (q = l(() => {
|
|
15
|
+
let e3 = b(D, h);
|
|
16
|
+
return e3 = null == e3 || null == e3 ? "" : e3, W.replace(/\${value}/g, e3);
|
|
17
|
+
}));
|
|
18
|
+
const z = t(null), A = t(null), B = t(null);
|
|
19
|
+
return n(() => {
|
|
20
|
+
a(() => {
|
|
21
|
+
const e3 = V.value;
|
|
22
|
+
k(e3, _2.pageContext, _2.configure, { formItemRef: z.value, componentRef: A.value, titleRef: B.value, value: e3, entity: _2.pageContext.entity.data, pageData: _2.pageContext.entity.page });
|
|
30
23
|
});
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
resultValue = resultValue == void 0 || resultValue == null ? "" : resultValue;
|
|
37
|
-
return tooltipVariable.replace(/\${value}/g, resultValue);
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
const formItemRef = ref(null);
|
|
41
|
-
const componentRef = ref(null);
|
|
42
|
-
const titleRef = ref(null);
|
|
43
|
-
onMounted(() => {
|
|
44
|
-
nextTick(() => {
|
|
45
|
-
const value = dynamicValue.value;
|
|
46
|
-
handleAfterInitEvent(
|
|
47
|
-
value,
|
|
48
|
-
props.pageContext,
|
|
49
|
-
props.configure,
|
|
50
|
-
{
|
|
51
|
-
formItemRef: formItemRef.value,
|
|
52
|
-
componentRef: componentRef.value,
|
|
53
|
-
titleRef: titleRef.value,
|
|
54
|
-
value,
|
|
55
|
-
entity: props.pageContext.entity.data,
|
|
56
|
-
pageData: props.pageContext.entity.page
|
|
57
|
-
}
|
|
58
|
-
);
|
|
59
|
-
});
|
|
60
|
-
});
|
|
61
|
-
return (_ctx, _cache) => {
|
|
62
|
-
const _component_el_link = resolveComponent("el-link");
|
|
63
|
-
const _component_el_tooltip = resolveComponent("el-tooltip");
|
|
64
|
-
const _component_el_form_item = resolveComponent("el-form-item");
|
|
65
|
-
return openBlock(), createBlock(_component_el_form_item, {
|
|
66
|
-
ref_key: "formItemRef",
|
|
67
|
-
ref: formItemRef,
|
|
68
|
-
class: normalizeClass(unref(runtimeClass)),
|
|
69
|
-
"label-width": designProperty.value.labelWidth,
|
|
70
|
-
style: normalizeStyle(unref(runtimeStyle))
|
|
71
|
-
}, {
|
|
72
|
-
label: withCtx(() => [
|
|
73
|
-
designProperty.value.tittleShow ? (openBlock(), createElementBlock("div", {
|
|
74
|
-
key: 0,
|
|
75
|
-
ref_key: "titleRef",
|
|
76
|
-
ref: titleRef,
|
|
77
|
-
style: normalizeStyle({ ...unref(headerStyle) })
|
|
78
|
-
}, toDisplayString(unref($t)(designProperty.value.title)), 5)) : createCommentVNode("", true)
|
|
79
|
-
]),
|
|
80
|
-
default: withCtx(() => [
|
|
81
|
-
createVNode(_component_el_tooltip, {
|
|
82
|
-
disabled: !unref(tooltipValue),
|
|
83
|
-
content: unref(tooltipValue)
|
|
84
|
-
}, {
|
|
85
|
-
default: withCtx(() => [
|
|
86
|
-
createVNode(_component_el_link, {
|
|
87
|
-
ref_key: "componentRef",
|
|
88
|
-
ref: componentRef,
|
|
89
|
-
disabled: designProperty.value.state === "disabled",
|
|
90
|
-
type: designProperty.value.type,
|
|
91
|
-
underline: designProperty.value.underline,
|
|
92
|
-
onClick: _cache[0] || (_cache[0] = ($event) => unref(handleEvent)($event, _ctx.pageContext, _ctx.configure, "click", { skipValidate: true }))
|
|
93
|
-
}, {
|
|
94
|
-
default: withCtx(() => [
|
|
95
|
-
createTextVNode(toDisplayString(dynamicValue.value), 1)
|
|
96
|
-
]),
|
|
97
|
-
_: 1
|
|
98
|
-
}, 8, ["disabled", "type", "underline"])
|
|
99
|
-
]),
|
|
100
|
-
_: 1
|
|
101
|
-
}, 8, ["disabled", "content"])
|
|
102
|
-
]),
|
|
103
|
-
_: 1
|
|
104
|
-
}, 8, ["class", "label-width", "style"]);
|
|
105
|
-
};
|
|
106
|
-
}
|
|
107
|
-
});
|
|
24
|
+
}), (e3, t2) => {
|
|
25
|
+
const l2 = i("el-link"), n2 = i("el-tooltip"), a2 = i("el-form-item");
|
|
26
|
+
return u(), o(a2, { ref_key: "formItemRef", ref: z, class: r(s(w)), "label-width": S.value.labelWidth, style: p(s(j)) }, { label: f(() => [S.value.tittleShow ? (u(), c("div", { key: 0, ref_key: "titleRef", ref: B, style: p({ ...s(I) }) }, d(s(C)(S.value.title)), 5)) : m("", true)]), default: f(() => [g(n2, { disabled: !s(q), content: s(q) }, { default: f(() => [g(l2, { ref_key: "componentRef", ref: A, disabled: "disabled" === S.value.state, type: S.value.type, underline: S.value.underline, onClick: t2[0] || (t2[0] = (t3) => s(x)(t3, e3.pageContext, e3.configure, "click", { skipValidate: true })) }, { default: f(() => [v(d(V.value), 1)]), _: 1 }, 8, ["disabled", "type", "underline"])]), _: 1 }, 8, ["disabled", "content"])]), _: 1 }, 8, ["class", "label-width", "style"]);
|
|
27
|
+
};
|
|
28
|
+
} });
|
|
108
29
|
export {
|
|
109
|
-
|
|
30
|
+
_ as default
|
|
110
31
|
};
|
package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e from "./placeholder-runtime.vue2.js";
|
|
2
2
|
import "./placeholder-runtime.vue3.js";
|
|
3
|
-
import
|
|
4
|
-
const
|
|
3
|
+
import r from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const o = r(e, [["__scopeId", "data-v-96fc65d8"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
o as default
|
|
7
7
|
};
|
package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js
CHANGED
|
@@ -1,53 +1,16 @@
|
|
|
1
|
-
import { defineComponent, ref, onMounted, nextTick, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementVNode } from "vue";
|
|
2
|
-
import { handleAfterInitEvent } from "../../../../utils/events/event-util.js";
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
},
|
|
9
|
-
setup(__props) {
|
|
10
|
-
const props = __props;
|
|
11
|
-
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
|
|
12
|
-
const runtimeStyle = runtimeInfo.style;
|
|
13
|
-
const runtimeClass = runtimeInfo.class;
|
|
14
|
-
const formItemRef = ref(null);
|
|
15
|
-
const componentRef = ref(null);
|
|
16
|
-
onMounted(() => {
|
|
17
|
-
nextTick(() => {
|
|
18
|
-
handleAfterInitEvent(
|
|
19
|
-
null,
|
|
20
|
-
props.pageContext,
|
|
21
|
-
props.configure,
|
|
22
|
-
{
|
|
23
|
-
formItemRef: formItemRef.value,
|
|
24
|
-
componentRef: componentRef.value,
|
|
25
|
-
entity: props.pageContext.entity.data,
|
|
26
|
-
pageData: props.pageContext.entity.page
|
|
27
|
-
}
|
|
28
|
-
);
|
|
29
|
-
});
|
|
1
|
+
import { defineComponent as e, ref as t, onMounted as n, nextTick as o, resolveComponent as r, openBlock as l, createBlock as a, normalizeClass as u, unref as f, normalizeStyle as s, withCtx as i, createElementVNode as m } from "vue";
|
|
2
|
+
import { handleAfterInitEvent as p } from "../../../../utils/events/event-util.js";
|
|
3
|
+
const c = e({ __name: "placeholder-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
|
|
4
|
+
const c2 = e2, g = c2.configure.runtime ? c2.configure.runtime : {}, y = g.style, d = g.class, v = t(null), x = t(null);
|
|
5
|
+
return n(() => {
|
|
6
|
+
o(() => {
|
|
7
|
+
p(null, c2.pageContext, c2.configure, { formItemRef: v.value, componentRef: x.value, entity: c2.pageContext.entity.data, pageData: c2.pageContext.entity.page });
|
|
30
8
|
});
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
class: normalizeClass(unref(runtimeClass)),
|
|
37
|
-
style: normalizeStyle(unref(runtimeStyle))
|
|
38
|
-
}, {
|
|
39
|
-
default: withCtx(() => [
|
|
40
|
-
createElementVNode("div", {
|
|
41
|
-
ref_key: "componentRef",
|
|
42
|
-
ref: componentRef,
|
|
43
|
-
style: { "width": "100%", "height": "100%" }
|
|
44
|
-
}, " ", 512)
|
|
45
|
-
]),
|
|
46
|
-
_: 1
|
|
47
|
-
}, 8, ["class", "style"]);
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
});
|
|
9
|
+
}), (e3, t2) => {
|
|
10
|
+
const n2 = r("el-form-item");
|
|
11
|
+
return l(), a(n2, { ref_key: "formItemRef", ref: v, class: u(f(d)), style: s(f(y)) }, { default: i(() => [m("div", { ref_key: "componentRef", ref: x, style: { width: "100%", height: "100%" } }, " ", 512)]), _: 1 }, 8, ["class", "style"]);
|
|
12
|
+
};
|
|
13
|
+
} });
|
|
51
14
|
export {
|
|
52
|
-
|
|
15
|
+
c as default
|
|
53
16
|
};
|
|
@@ -1,195 +1,72 @@
|
|
|
1
|
-
import { defineComponent, computed, ref, watch, onMounted, nextTick, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementBlock, toDisplayString, createCommentVNode, createVNode, Fragment, renderList, createTextVNode } from "vue";
|
|
2
|
-
import { getVariableValue, setVariableValue, getOptionDatasFromPage, 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
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
setVariableValue(entity, dynamicFields, value);
|
|
26
|
-
}
|
|
27
|
-
});
|
|
28
|
-
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
|
|
29
|
-
const runtimeStyle = runtimeInfo.style;
|
|
30
|
-
const runtimeClass = runtimeInfo.class;
|
|
31
|
-
const headerStyle = runtimeInfo.headerStyle;
|
|
32
|
-
const titleExceedStyle = runtimeInfo.titleExceedStyle;
|
|
33
|
-
const designProperty = ref(runtimeInfo.props ? runtimeInfo.props : {});
|
|
34
|
-
const listOptions = ref(designProperty.value.options ? designProperty.value.options : []);
|
|
35
|
-
const cacheOptions = getOptionDatasFromPage(props.pageContext, props.configure);
|
|
36
|
-
if (cacheOptions.length > 0) {
|
|
37
|
-
listOptions.value = cacheOptions;
|
|
38
|
-
}
|
|
39
|
-
const dataOrigin = props.configure.props && props.configure.props.dataOrigin ? props.configure.props.dataOrigin : {};
|
|
40
|
-
const valueType = dataOrigin.optionValueSetType;
|
|
41
|
-
let autoSets = [];
|
|
42
|
-
if (valueType == "dynamicData" || valueType == "dataTable" || valueType == "service") {
|
|
43
|
-
if (dataOrigin.autoSets) {
|
|
44
|
-
for (let obj of dataOrigin.autoSets) {
|
|
45
|
-
if (obj.source) {
|
|
46
|
-
autoSets.push(obj);
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
if (props.configure && props.configure.props && props.configure.props.base && props.configure.props.base.optionProp) {
|
|
52
|
-
autoSets.push({
|
|
53
|
-
source: "label",
|
|
54
|
-
target: props.configure.props.base.optionProp
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
designProperty.value.changeMethod = optionChange;
|
|
58
|
-
const monitorFields = designProperty.value.monitorFields;
|
|
59
|
-
const monitorFieldInfos = [];
|
|
60
|
-
if (monitorFields) {
|
|
61
|
-
const preFields = [];
|
|
62
|
-
for (let propName of monitorFields) {
|
|
63
|
-
if (propName.startsWith("${")) {
|
|
64
|
-
propName = propName.substring(2, propName.length - 1);
|
|
65
|
-
const fields = propName.split(".");
|
|
66
|
-
if (fields[0] === "page" || fields[0] === "task" || fields[0] === "data") {
|
|
67
|
-
monitorFieldInfos.push(fields);
|
|
68
|
-
if (!preFields.includes(fields[0])) {
|
|
69
|
-
preFields.push(fields[0]);
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
for (let preField of preFields) {
|
|
75
|
-
watch(entity[preField], () => {
|
|
76
|
-
monitorFieldChange();
|
|
77
|
-
});
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
function getMonitorFieldValues() {
|
|
81
|
-
let values = "";
|
|
82
|
-
for (let fieldInfo of monitorFieldInfos) {
|
|
83
|
-
values += "_" + getVariableValue(entity, fieldInfo);
|
|
84
|
-
}
|
|
85
|
-
return values;
|
|
86
|
-
}
|
|
87
|
-
let initMonitorValue = getMonitorFieldValues();
|
|
88
|
-
let monitorTimeout = false;
|
|
89
|
-
const optionconfigInfo = designProperty.value.optionconfigInfo ? designProperty.value.optionconfigInfo : {};
|
|
90
|
-
function monitorFieldChange() {
|
|
91
|
-
if (monitorTimeout) {
|
|
92
|
-
clearTimeout(monitorTimeout);
|
|
93
|
-
}
|
|
94
|
-
monitorTimeout = setTimeout(function() {
|
|
95
|
-
const newValue = getMonitorFieldValues();
|
|
96
|
-
if (newValue == initMonitorValue) {
|
|
97
|
-
return;
|
|
98
|
-
}
|
|
99
|
-
initMonitorValue = newValue;
|
|
100
|
-
queryOptionDatasources(props.pageContext, optionconfigInfo, void 0).then((error) => {
|
|
101
|
-
console.log("查询失败!", error);
|
|
102
|
-
});
|
|
103
|
-
}, 200);
|
|
1
|
+
import { defineComponent as e, computed as t, ref as o, watch as l, onMounted as n, nextTick as a, resolveComponent as u, openBlock as i, createBlock as r, normalizeClass as s, unref as p, normalizeStyle as f, withCtx as c, createElementBlock as g, toDisplayString as d, createCommentVNode as v, createVNode as m, Fragment as h, renderList as y, createTextVNode as b } from "vue";
|
|
2
|
+
import { getVariableValue as C, setVariableValue as x, getOptionDatasFromPage as k, autoSetAfterSelect as _, queryOptionDatasources as R } from "../../../../utils/page-helper-util.js";
|
|
3
|
+
import { getFormModelFields as S } from "../../../../utils/page-init-util.js";
|
|
4
|
+
import { handleFormEvent as j, handleAfterInitEvent as I } from "../../../../utils/events/event-util.js";
|
|
5
|
+
import { $t as T } from "../../../../utils/i18n-util.js";
|
|
6
|
+
const V = e({ __name: "radio-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: V2 }) {
|
|
7
|
+
const q = e2, w = q.pageContext.entity ? q.pageContext.entity : {};
|
|
8
|
+
let z = S(q.pageContext, q.configure);
|
|
9
|
+
const O = t({ get() {
|
|
10
|
+
let e3 = C(w, z);
|
|
11
|
+
return null != e3 && (e3 += ""), e3;
|
|
12
|
+
}, set(e3) {
|
|
13
|
+
x(w, z, e3);
|
|
14
|
+
} }), D = q.configure.runtime ? q.configure.runtime : {}, M = D.style, P = D.class, W = D.headerStyle, E = D.titleExceedStyle, F = o(D.props ? D.props : {}), U = o(F.value.options ? F.value.options : []), $ = k(q.pageContext, q.configure);
|
|
15
|
+
$.length > 0 && (U.value = $);
|
|
16
|
+
const A = q.configure.props && q.configure.props.dataOrigin ? q.configure.props.dataOrigin : {}, B = A.optionValueSetType;
|
|
17
|
+
let G = [];
|
|
18
|
+
if (("dynamicData" == B || "dataTable" == B || "service" == B) && A.autoSets)
|
|
19
|
+
for (let e3 of A.autoSets)
|
|
20
|
+
e3.source && G.push(e3);
|
|
21
|
+
q.configure && q.configure.props && q.configure.props.base && q.configure.props.base.optionProp && G.push({ source: "label", target: q.configure.props.base.optionProp }), F.value.changeMethod = function(e3) {
|
|
22
|
+
if (G.length > 0) {
|
|
23
|
+
let t2 = null;
|
|
24
|
+
U.value && null != e3 && null != e3 && (t2 = U.value.filter((t3) => e3 === t3.value)), _(q.configure, q.pageContext, G, t2);
|
|
104
25
|
}
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
26
|
+
j(e3, q.pageContext, q.configure, "change");
|
|
27
|
+
};
|
|
28
|
+
const H = F.value.monitorFields, J = [];
|
|
29
|
+
if (H) {
|
|
30
|
+
const e3 = [];
|
|
31
|
+
for (let t2 of H)
|
|
32
|
+
if (t2.startsWith("${")) {
|
|
33
|
+
t2 = t2.substring(2, t2.length - 1);
|
|
34
|
+
const o2 = t2.split(".");
|
|
35
|
+
"page" !== o2[0] && "task" !== o2[0] && "data" !== o2[0] || (J.push(o2), e3.includes(o2[0]) || e3.push(o2[0]));
|
|
114
36
|
}
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
listOptions.value = newOptions ? newOptions : [];
|
|
119
|
-
}
|
|
120
|
-
const formItemRef = ref(null);
|
|
121
|
-
const componentRef = ref(null);
|
|
122
|
-
const titleRef = ref(null);
|
|
123
|
-
onMounted(() => {
|
|
124
|
-
nextTick(() => {
|
|
125
|
-
const value = dynamicModelMethod.value;
|
|
126
|
-
handleAfterInitEvent(value, props.pageContext, props.configure, {
|
|
127
|
-
formItemRef: formItemRef.value,
|
|
128
|
-
componentRef: componentRef.value,
|
|
129
|
-
titleRef: titleRef.value,
|
|
130
|
-
value,
|
|
131
|
-
entity: props.pageContext.entity.data,
|
|
132
|
-
pageData: props.pageContext.entity.page
|
|
133
|
-
});
|
|
37
|
+
for (let t2 of e3)
|
|
38
|
+
l(w[t2], () => {
|
|
39
|
+
X();
|
|
134
40
|
});
|
|
135
|
-
});
|
|
136
|
-
__expose({
|
|
137
|
-
updateOptions
|
|
138
|
-
});
|
|
139
|
-
return (_ctx, _cache) => {
|
|
140
|
-
const _component_el_radio = resolveComponent("el-radio");
|
|
141
|
-
const _component_el_radio_group = resolveComponent("el-radio-group");
|
|
142
|
-
const _component_el_form_item = resolveComponent("el-form-item");
|
|
143
|
-
return openBlock(), createBlock(_component_el_form_item, {
|
|
144
|
-
ref_key: "formItemRef",
|
|
145
|
-
ref: formItemRef,
|
|
146
|
-
required: designProperty.value.required,
|
|
147
|
-
class: normalizeClass(unref(runtimeClass)),
|
|
148
|
-
"label-width": designProperty.value.labelWidth,
|
|
149
|
-
style: normalizeStyle(unref(runtimeStyle))
|
|
150
|
-
}, {
|
|
151
|
-
label: withCtx(() => [
|
|
152
|
-
designProperty.value.tittleShow ? (openBlock(), createElementBlock("div", {
|
|
153
|
-
key: 0,
|
|
154
|
-
ref_key: "titleRef",
|
|
155
|
-
ref: titleRef,
|
|
156
|
-
style: normalizeStyle({ ...unref(headerStyle), ...unref(titleExceedStyle) })
|
|
157
|
-
}, toDisplayString(unref($t)(designProperty.value.title)), 5)) : createCommentVNode("", true)
|
|
158
|
-
]),
|
|
159
|
-
default: withCtx(() => [
|
|
160
|
-
createVNode(_component_el_radio_group, {
|
|
161
|
-
ref_key: "componentRef",
|
|
162
|
-
ref: componentRef,
|
|
163
|
-
disabled: designProperty.value.state === "disabled",
|
|
164
|
-
size: designProperty.value.size,
|
|
165
|
-
onChange: designProperty.value.changeMethod,
|
|
166
|
-
modelValue: dynamicModelMethod.value,
|
|
167
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => dynamicModelMethod.value = $event)
|
|
168
|
-
}, {
|
|
169
|
-
default: withCtx(() => [
|
|
170
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(listOptions.value, (item) => {
|
|
171
|
-
return openBlock(), createBlock(_component_el_radio, {
|
|
172
|
-
key: item.value,
|
|
173
|
-
label: item.value,
|
|
174
|
-
onClick: ($event) => unref(handleFormEvent)(item.value, _ctx.pageContext, _ctx.configure, "click", {
|
|
175
|
-
values: dynamicModelMethod.value
|
|
176
|
-
})
|
|
177
|
-
}, {
|
|
178
|
-
default: withCtx(() => [
|
|
179
|
-
createTextVNode(toDisplayString(item.label), 1)
|
|
180
|
-
]),
|
|
181
|
-
_: 2
|
|
182
|
-
}, 1032, ["label", "onClick"]);
|
|
183
|
-
}), 128))
|
|
184
|
-
]),
|
|
185
|
-
_: 1
|
|
186
|
-
}, 8, ["disabled", "size", "onChange", "modelValue"])
|
|
187
|
-
]),
|
|
188
|
-
_: 1
|
|
189
|
-
}, 8, ["required", "class", "label-width", "style"]);
|
|
190
|
-
};
|
|
191
41
|
}
|
|
192
|
-
|
|
42
|
+
function K() {
|
|
43
|
+
let e3 = "";
|
|
44
|
+
for (let t2 of J)
|
|
45
|
+
e3 += "_" + C(w, t2);
|
|
46
|
+
return e3;
|
|
47
|
+
}
|
|
48
|
+
let L = K(), N = false;
|
|
49
|
+
const Q = F.value.optionconfigInfo ? F.value.optionconfigInfo : {};
|
|
50
|
+
function X() {
|
|
51
|
+
N && clearTimeout(N), N = setTimeout(function() {
|
|
52
|
+
const e3 = K();
|
|
53
|
+
e3 != L && (L = e3, R(q.pageContext, Q, void 0).then((e4) => {
|
|
54
|
+
}));
|
|
55
|
+
}, 200);
|
|
56
|
+
}
|
|
57
|
+
const Y = o(null), Z = o(null), ee = o(null);
|
|
58
|
+
return n(() => {
|
|
59
|
+
a(() => {
|
|
60
|
+
const e3 = O.value;
|
|
61
|
+
I(e3, q.pageContext, q.configure, { formItemRef: Y.value, componentRef: Z.value, titleRef: ee.value, value: e3, entity: q.pageContext.entity.data, pageData: q.pageContext.entity.page });
|
|
62
|
+
});
|
|
63
|
+
}), V2({ updateOptions: function(e3) {
|
|
64
|
+
U.value = e3 || [];
|
|
65
|
+
} }), (e3, t2) => {
|
|
66
|
+
const o2 = u("el-radio"), l2 = u("el-radio-group"), n2 = u("el-form-item");
|
|
67
|
+
return i(), r(n2, { ref_key: "formItemRef", ref: Y, required: F.value.required, class: s(p(P)), "label-width": F.value.labelWidth, style: f(p(M)) }, { label: c(() => [F.value.tittleShow ? (i(), g("div", { key: 0, ref_key: "titleRef", ref: ee, style: f({ ...p(W), ...p(E) }) }, d(p(T)(F.value.title)), 5)) : v("", true)]), default: c(() => [m(l2, { ref_key: "componentRef", ref: Z, disabled: "disabled" === F.value.state, size: F.value.size, onChange: F.value.changeMethod, modelValue: O.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => O.value = e4) }, { default: c(() => [(i(true), g(h, null, y(U.value, (t3) => (i(), r(o2, { key: t3.value, label: t3.value, onClick: (o3) => p(j)(t3.value, e3.pageContext, e3.configure, "click", { values: O.value }) }, { default: c(() => [b(d(t3.label), 1)]), _: 2 }, 1032, ["label", "onClick"]))), 128))]), _: 1 }, 8, ["disabled", "size", "onChange", "modelValue"])]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
|
|
68
|
+
};
|
|
69
|
+
} });
|
|
193
70
|
export {
|
|
194
|
-
|
|
71
|
+
V as default
|
|
195
72
|
};
|