super-page-runtime 2.0.16 → 2.0.22
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/utils/api/api-util.js +16 -14
- package/dist/es/components/runtime/utils/api/page-expose-util.d.ts +1 -0
- package/dist/es/components/runtime/utils/api/page-expose-util.js +202 -0
- package/dist/es/components/runtime/utils/assemblys-config.js +29 -7
- package/dist/es/components/runtime/utils/common-util.d.ts +3 -2
- package/dist/es/components/runtime/utils/common-util.js +21 -11
- package/dist/es/components/runtime/utils/events/event-util.js +9 -14
- package/dist/es/components/runtime/utils/events/standard-event.d.ts +1 -0
- package/dist/es/components/runtime/utils/events/standard-event.js +128 -110
- package/dist/es/components/runtime/utils/events/validator-util.js +4 -3
- package/dist/es/components/runtime/utils/global-refs.js +12 -0
- package/dist/es/components/runtime/utils/interfaces/page-design-types.d.ts +3 -1
- package/dist/es/components/runtime/utils/page-helper-util.js +4 -4
- package/dist/es/components/runtime/utils/page-init-util.js +6 -3
- package/dist/es/components/runtime/utils/table-utils.js +4 -5
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +17 -17
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +17 -17
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.d.ts +1 -1
- package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.d.ts +1 -1
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +5 -5
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +13 -8
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +12 -13
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +2 -1
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +11 -11
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +28 -28
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +12 -12
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +7 -5
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +14 -14
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +15 -15
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +33 -33
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +40 -37
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +10 -10
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +13 -13
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +91 -39
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +27 -27
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +42 -0
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +13 -13
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +10 -10
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +14 -14
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +8 -3
- package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue2.js +40 -0
- package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue2.js +40 -0
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +5 -7
- package/dist/es/components/runtime/views/super-page.vue.js +2 -2
- package/package.json +3 -2
- package/dist/lib/_virtual/AttributeMap.js +0 -4
- package/dist/lib/_virtual/Delta.js +0 -4
- package/dist/lib/_virtual/Op.js +0 -4
- package/dist/lib/_virtual/OpIterator.js +0 -4
- package/dist/lib/_virtual/__vite-browser-external.js +0 -3
- package/dist/lib/_virtual/_commonjsHelpers.js +0 -8
- package/dist/lib/_virtual/_plugin-vue_export-helper.js +0 -9
- package/dist/lib/_virtual/dayjs.min.js +0 -4
- package/dist/lib/_virtual/index.js +0 -4
- package/dist/lib/_virtual/index2.js +0 -4
- package/dist/lib/_virtual/index3.js +0 -4
- package/dist/lib/assets/chart-themes/theme1.d.ts +0 -4
- package/dist/lib/assets/chart-themes/theme1.js +0 -7
- package/dist/lib/assets/chart-themes/theme2.d.ts +0 -4
- package/dist/lib/assets/chart-themes/theme2.js +0 -7
- package/dist/lib/assets/chart-themes/theme3.d.ts +0 -4
- package/dist/lib/assets/chart-themes/theme3.js +0 -7
- package/dist/lib/components/runtime/index.d.ts +0 -4
- package/dist/lib/components/runtime/utils/api/api-util.d.ts +0 -11
- package/dist/lib/components/runtime/utils/api/api-util.js +0 -128
- package/dist/lib/components/runtime/utils/assemblys-config.js +0 -258
- package/dist/lib/components/runtime/utils/charts/chart-util.d.ts +0 -11
- package/dist/lib/components/runtime/utils/charts/chart-util.js +0 -28
- package/dist/lib/components/runtime/utils/common-util.d.ts +0 -16
- package/dist/lib/components/runtime/utils/common-util.js +0 -94
- package/dist/lib/components/runtime/utils/eventBus.d.ts +0 -7
- package/dist/lib/components/runtime/utils/eventBus.js +0 -10
- package/dist/lib/components/runtime/utils/events/event-util.d.ts +0 -48
- package/dist/lib/components/runtime/utils/events/event-util.js +0 -526
- package/dist/lib/components/runtime/utils/events/standard-event.d.ts +0 -61
- package/dist/lib/components/runtime/utils/events/standard-event.js +0 -1625
- package/dist/lib/components/runtime/utils/events/validator-util.d.ts +0 -4
- package/dist/lib/components/runtime/utils/events/validator-util.js +0 -389
- package/dist/lib/components/runtime/utils/global-refs.d.ts +0 -59
- package/dist/lib/components/runtime/utils/global-refs.js +0 -65
- package/dist/lib/components/runtime/utils/interfaces/page-design-types.d.ts +0 -223
- package/dist/lib/components/runtime/utils/interfaces/page-design-types.js +0 -9
- package/dist/lib/components/runtime/utils/page-helper-util.d.ts +0 -106
- package/dist/lib/components/runtime/utils/page-helper-util.js +0 -622
- package/dist/lib/components/runtime/utils/page-init-util.d.ts +0 -38
- package/dist/lib/components/runtime/utils/page-init-util.js +0 -200
- package/dist/lib/components/runtime/utils/page-permission-util.d.ts +0 -26
- package/dist/lib/components/runtime/utils/page-permission-util.js +0 -525
- package/dist/lib/components/runtime/utils/store-util.d.ts +0 -15
- package/dist/lib/components/runtime/utils/store-util.js +0 -17
- package/dist/lib/components/runtime/utils/store.d.ts +0 -2
- package/dist/lib/components/runtime/utils/store.js +0 -3
- package/dist/lib/components/runtime/utils/table-utils.js +0 -24
- package/dist/lib/components/runtime/views/assemblys/button/button/button-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +0 -54
- package/dist/lib/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +0 -35
- package/dist/lib/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +0 -110
- package/dist/lib/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +0 -432
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.js +0 -43
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue2.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +0 -61
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue2.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +0 -126
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header.vue2.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +0 -52
- package/dist/lib/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +0 -54
- package/dist/lib/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +0 -54
- package/dist/lib/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +0 -56
- package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue.d.ts +0 -24
- package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +0 -147
- package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue2.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue.d.ts +0 -35
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +0 -127
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue2.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue.d.ts +0 -26
- package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +0 -104
- package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue2.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/container/card/card-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +0 -72
- package/dist/lib/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +0 -74
- package/dist/lib/components/runtime/views/assemblys/container/container/container-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +0 -79
- package/dist/lib/components/runtime/views/assemblys/container/flex/flex-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +0 -43
- package/dist/lib/components/runtime/views/assemblys/container/form/form-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +0 -44
- package/dist/lib/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +0 -30
- package/dist/lib/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +0 -69
- package/dist/lib/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +0 -75
- package/dist/lib/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +0 -642
- package/dist/lib/components/runtime/views/assemblys/data/table/main-table-runtime.vue2.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +0 -453
- package/dist/lib/components/runtime/views/assemblys/data/table/sub-table-runtime.vue2.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/data/table/table-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +0 -88
- package/dist/lib/components/runtime/views/assemblys/error-render.vue.d.ts +0 -22
- package/dist/lib/components/runtime/views/assemblys/error-render.vue.js +0 -22
- package/dist/lib/components/runtime/views/assemblys/error-render.vue2.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +0 -156
- package/dist/lib/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +0 -82
- package/dist/lib/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +0 -64
- package/dist/lib/components/runtime/views/assemblys/form/divider/divider-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +0 -40
- package/dist/lib/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +0 -74
- package/dist/lib/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +0 -63
- package/dist/lib/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +0 -127
- package/dist/lib/components/runtime/views/assemblys/form/label/label-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +0 -127
- package/dist/lib/components/runtime/views/assemblys/form/link/link-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +0 -77
- package/dist/lib/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +0 -29
- package/dist/lib/components/runtime/views/assemblys/form/radio/radio-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +0 -157
- package/dist/lib/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +0 -164
- package/dist/lib/components/runtime/views/assemblys/form/select/select-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +0 -201
- package/dist/lib/components/runtime/views/assemblys/form/switch/switch-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +0 -63
- package/dist/lib/components/runtime/views/assemblys/form/tag/tag-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +0 -63
- package/dist/lib/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +0 -65
- package/dist/lib/components/runtime/views/assemblys/object-render.vue.d.ts +0 -17
- package/dist/lib/components/runtime/views/assemblys/object-render.vue.js +0 -142
- package/dist/lib/components/runtime/views/assemblys/object-render.vue2.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +0 -61
- package/dist/lib/components/runtime/views/super-page-dialog.vue.d.ts +0 -36
- package/dist/lib/components/runtime/views/super-page-dialog.vue.js +0 -73
- package/dist/lib/components/runtime/views/super-page-dialog.vue2.js +0 -3
- package/dist/lib/components/runtime/views/super-page.vue.d.ts +0 -91
- package/dist/lib/components/runtime/views/super-page.vue.js +0 -496
- package/dist/lib/components/runtime/views/super-page.vue2.js +0 -3
- package/dist/lib/favicon.ico +0 -0
- package/dist/lib/index.d.ts +0 -8
- package/dist/lib/index.js +0 -15
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, resolveComponent, openBlock, createBlock,
|
|
1
|
+
import { defineComponent, ref, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementBlock, toDisplayString, createCommentVNode, createVNode } from "vue";
|
|
2
2
|
import { getFormModelFields } from "../../../../utils/page-init-util.js";
|
|
3
3
|
import "agilebuilder-ui/src/utils/request";
|
|
4
4
|
import "dayjs";
|
|
@@ -21,11 +21,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
21
21
|
let dynamicFields = getFormModelFields(props.pageContext, props.configure);
|
|
22
22
|
const fieldName = dynamicFields.length > 0 ? dynamicFields[dynamicFields.length - 1] : props.configure.uuid;
|
|
23
23
|
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
|
|
24
|
-
const designProperty = runtimeInfo.props ? runtimeInfo.props : {};
|
|
24
|
+
const designProperty = ref(runtimeInfo.props ? runtimeInfo.props : {});
|
|
25
25
|
const runtimeStyle = runtimeInfo.style;
|
|
26
26
|
const runtimeClass = runtimeInfo.class;
|
|
27
27
|
const headerStyle = runtimeInfo.headerStyle;
|
|
28
|
-
const autoSetFields = designProperty.autoSetFields ? designProperty.autoSetFields : [];
|
|
28
|
+
const autoSetFields = designProperty.value.autoSetFields ? designProperty.value.autoSetFields : [];
|
|
29
29
|
function changeValue(value) {
|
|
30
30
|
handleEvent(value, props.pageContext, props.configure, "change");
|
|
31
31
|
}
|
|
@@ -36,29 +36,29 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
36
36
|
const _component_OrganizationInput = resolveComponent("OrganizationInput");
|
|
37
37
|
const _component_el_form_item = resolveComponent("el-form-item");
|
|
38
38
|
return openBlock(), createBlock(_component_el_form_item, {
|
|
39
|
-
required:
|
|
39
|
+
required: designProperty.value.required,
|
|
40
40
|
class: normalizeClass(unref(runtimeClass)),
|
|
41
|
-
"label-width":
|
|
41
|
+
"label-width": designProperty.value.labelWidth,
|
|
42
42
|
style: normalizeStyle(unref(runtimeStyle))
|
|
43
43
|
}, {
|
|
44
44
|
label: withCtx(() => [
|
|
45
|
-
|
|
45
|
+
designProperty.value.tittleShow ? (openBlock(), createElementBlock("div", {
|
|
46
46
|
key: 0,
|
|
47
47
|
style: normalizeStyle({ ...unref(headerStyle) })
|
|
48
|
-
}, toDisplayString(
|
|
48
|
+
}, toDisplayString(designProperty.value.title), 5)) : createCommentVNode("", true)
|
|
49
49
|
]),
|
|
50
50
|
default: withCtx(() => [
|
|
51
51
|
createVNode(_component_OrganizationInput, {
|
|
52
|
-
disabled:
|
|
53
|
-
multiple:
|
|
54
|
-
treeType:
|
|
52
|
+
disabled: designProperty.value.state == "disabled",
|
|
53
|
+
multiple: designProperty.value.multiple,
|
|
54
|
+
treeType: designProperty.value.treeType,
|
|
55
55
|
modelValue: unref(dataModel)[unref(fieldName)],
|
|
56
56
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(dataModel)[unref(fieldName)] = $event),
|
|
57
57
|
models: unref(dataModel),
|
|
58
58
|
fields: unref(autoSetFields),
|
|
59
|
-
size:
|
|
59
|
+
size: designProperty.value.size,
|
|
60
60
|
placeholder: "请选择",
|
|
61
|
-
separator:
|
|
61
|
+
separator: designProperty.value.separator,
|
|
62
62
|
onChange: changeValue,
|
|
63
63
|
onShowTree: showTree
|
|
64
64
|
}, null, 8, ["disabled", "multiple", "treeType", "modelValue", "models", "fields", "size", "separator"])
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { defineComponent, computed, resolveComponent, openBlock, createBlock, unref, withCtx, createElementVNode, normalizeStyle, toDisplayString } from "vue";
|
|
1
|
+
import { defineComponent, ref, computed, resolveComponent, openBlock, createBlock, unref, withCtx, createElementVNode, normalizeStyle, toDisplayString } from "vue";
|
|
2
2
|
import { formatVariableValue } from "../../../../utils/page-helper-util.js";
|
|
3
|
+
import { handleEvent } from "../../../../utils/events/event-util.js";
|
|
3
4
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
5
|
__name: "divider-runtime",
|
|
5
6
|
props: {
|
|
@@ -10,7 +11,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
10
11
|
const props = __props;
|
|
11
12
|
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
|
|
12
13
|
const headerStyle = runtimeInfo.headerStyle;
|
|
13
|
-
const designProperty = runtimeInfo.props ? runtimeInfo.props : {};
|
|
14
|
+
const designProperty = ref(runtimeInfo.props ? runtimeInfo.props : {});
|
|
14
15
|
let contentVariable = designProperty.value;
|
|
15
16
|
const dynamicValue = computed(() => {
|
|
16
17
|
if (!contentVariable) {
|
|
@@ -22,9 +23,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
22
23
|
return (_ctx, _cache) => {
|
|
23
24
|
const _component_el_divider = resolveComponent("el-divider");
|
|
24
25
|
return openBlock(), createBlock(_component_el_divider, {
|
|
25
|
-
direction:
|
|
26
|
-
"border-style":
|
|
27
|
-
"content-position":
|
|
26
|
+
direction: designProperty.value.direction,
|
|
27
|
+
"border-style": designProperty.value.borderType,
|
|
28
|
+
"content-position": designProperty.value.titlePosition,
|
|
29
|
+
onClick: _cache[0] || (_cache[0] = ($event) => unref(handleEvent)($event, _ctx.pageContext, _ctx.configure, "click"))
|
|
28
30
|
}, {
|
|
29
31
|
default: withCtx(() => [
|
|
30
32
|
createElementVNode("div", {
|
package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, watch, resolveComponent,
|
|
1
|
+
import { defineComponent, ref, watch, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementBlock, toDisplayString, createCommentVNode, createVNode } from "vue";
|
|
2
2
|
import { getVariableValue, setVariableValue } from "../../../../utils/page-helper-util.js";
|
|
3
3
|
import { fileUploadBeforeUpload, fileUploadUploaded, fileUploadBeforeDelete, fileUploadDeleted } from "../../../../utils/events/event-util.js";
|
|
4
4
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -10,11 +10,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
10
10
|
setup(__props) {
|
|
11
11
|
const props = __props;
|
|
12
12
|
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
|
|
13
|
-
const designProperty = runtimeInfo.props ? runtimeInfo.props : {};
|
|
13
|
+
const designProperty = ref(runtimeInfo.props ? runtimeInfo.props : {});
|
|
14
14
|
const runtimeStyle = runtimeInfo.style;
|
|
15
15
|
const runtimeClass = runtimeInfo.class;
|
|
16
16
|
const headerStyle = runtimeInfo.headerStyle;
|
|
17
|
-
const fileSetObj = designProperty.fileSetObj;
|
|
17
|
+
const fileSetObj = designProperty.value.fileSetObj;
|
|
18
18
|
fileSetObj.beforeUpload = beforeUpload;
|
|
19
19
|
fileSetObj.pageContext = props.pageContext;
|
|
20
20
|
fileSetObj.configureObj = props.configure;
|
|
@@ -57,24 +57,24 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
57
57
|
return (_ctx, _cache) => {
|
|
58
58
|
const _component_FsUploadList = resolveComponent("FsUploadList");
|
|
59
59
|
const _component_el_form_item = resolveComponent("el-form-item");
|
|
60
|
-
return
|
|
60
|
+
return designProperty.value.tittleShow ? (openBlock(), createBlock(_component_el_form_item, {
|
|
61
61
|
key: 0,
|
|
62
|
-
required:
|
|
62
|
+
required: designProperty.value.required,
|
|
63
63
|
class: normalizeClass(unref(runtimeClass)),
|
|
64
|
-
"label-width":
|
|
64
|
+
"label-width": designProperty.value.labelWidth,
|
|
65
65
|
style: normalizeStyle(unref(runtimeStyle))
|
|
66
66
|
}, {
|
|
67
67
|
label: withCtx(() => [
|
|
68
|
-
|
|
68
|
+
designProperty.value.tittleShow ? (openBlock(), createElementBlock("div", {
|
|
69
69
|
key: 0,
|
|
70
70
|
style: normalizeStyle({ ...unref(headerStyle) })
|
|
71
|
-
}, toDisplayString(
|
|
71
|
+
}, toDisplayString(designProperty.value.title), 5)) : createCommentVNode("", true)
|
|
72
72
|
]),
|
|
73
73
|
default: withCtx(() => [
|
|
74
74
|
createVNode(_component_FsUploadList, {
|
|
75
|
-
disabled:
|
|
76
|
-
fileSetObj:
|
|
77
|
-
fileInfo:
|
|
75
|
+
disabled: designProperty.value.state == "disabled",
|
|
76
|
+
fileSetObj: designProperty.value.fileSetObj,
|
|
77
|
+
fileInfo: fileInfo.value,
|
|
78
78
|
onUploaded: uploaded,
|
|
79
79
|
onBeforeDelete: beforeDelete,
|
|
80
80
|
onDeleted: deleted
|
|
@@ -83,9 +83,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
83
83
|
_: 1
|
|
84
84
|
}, 8, ["required", "class", "label-width", "style"])) : (openBlock(), createBlock(_component_FsUploadList, {
|
|
85
85
|
key: 1,
|
|
86
|
-
disabled:
|
|
87
|
-
fileSetObj:
|
|
88
|
-
fileInfo:
|
|
86
|
+
disabled: designProperty.value.state == "disabled",
|
|
87
|
+
fileSetObj: designProperty.value.fileSetObj,
|
|
88
|
+
fileInfo: fileInfo.value,
|
|
89
89
|
onUploaded: uploaded,
|
|
90
90
|
onBeforeDelete: beforeDelete,
|
|
91
91
|
onDeleted: deleted
|
package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, computed, resolveComponent, openBlock, createBlock,
|
|
1
|
+
import { defineComponent, computed, ref, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementBlock, toDisplayString, createCommentVNode, createVNode } from "vue";
|
|
2
2
|
import { getFormModelFields } from "../../../../utils/page-init-util.js";
|
|
3
3
|
import { getVariableValue, setVariableValue } from "../../../../utils/page-helper-util.js";
|
|
4
4
|
import { handleEvent } from "../../../../utils/events/event-util.js";
|
|
@@ -24,35 +24,35 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
24
24
|
const runtimeStyle = runtimeInfo.style;
|
|
25
25
|
const runtimeClass = runtimeInfo.class;
|
|
26
26
|
const headerStyle = runtimeInfo.headerStyle;
|
|
27
|
-
const designProperty = runtimeInfo.props ? runtimeInfo.props : {};
|
|
27
|
+
const designProperty = ref(runtimeInfo.props ? runtimeInfo.props : {});
|
|
28
28
|
return (_ctx, _cache) => {
|
|
29
29
|
const _component_el_input_number = resolveComponent("el-input-number");
|
|
30
30
|
const _component_el_form_item = resolveComponent("el-form-item");
|
|
31
31
|
return openBlock(), createBlock(_component_el_form_item, {
|
|
32
|
-
required:
|
|
32
|
+
required: designProperty.value.required,
|
|
33
33
|
class: normalizeClass(unref(runtimeClass)),
|
|
34
|
-
"label-width":
|
|
34
|
+
"label-width": designProperty.value.labelWidth,
|
|
35
35
|
style: normalizeStyle(unref(runtimeStyle))
|
|
36
36
|
}, {
|
|
37
37
|
label: withCtx(() => [
|
|
38
|
-
|
|
38
|
+
designProperty.value.tittleShow ? (openBlock(), createElementBlock("div", {
|
|
39
39
|
key: 0,
|
|
40
40
|
style: normalizeStyle({ ...unref(headerStyle) })
|
|
41
|
-
}, toDisplayString(
|
|
41
|
+
}, toDisplayString(designProperty.value.title), 5)) : createCommentVNode("", true)
|
|
42
42
|
]),
|
|
43
43
|
default: withCtx(() => [
|
|
44
44
|
createVNode(_component_el_input_number, {
|
|
45
|
-
disabled:
|
|
46
|
-
readonly:
|
|
47
|
-
controls:
|
|
48
|
-
size:
|
|
49
|
-
placeholder:
|
|
45
|
+
disabled: designProperty.value.state === "disabled",
|
|
46
|
+
readonly: designProperty.value.state === "readonly",
|
|
47
|
+
controls: designProperty.value.showButton,
|
|
48
|
+
size: designProperty.value.size,
|
|
49
|
+
placeholder: designProperty.value.placeholder,
|
|
50
50
|
modelValue: dynamicModelMethod.value,
|
|
51
51
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => dynamicModelMethod.value = $event),
|
|
52
|
-
precision:
|
|
53
|
-
step:
|
|
54
|
-
min:
|
|
55
|
-
max:
|
|
52
|
+
precision: designProperty.value.precision,
|
|
53
|
+
step: designProperty.value.step,
|
|
54
|
+
min: designProperty.value.min,
|
|
55
|
+
max: designProperty.value.max,
|
|
56
56
|
onChange: _cache[1] || (_cache[1] = ($event) => unref(handleEvent)($event, _ctx.pageContext, _ctx.configure, "change")),
|
|
57
57
|
onBlur: _cache[2] || (_cache[2] = ($event) => unref(handleEvent)($event, _ctx.pageContext, _ctx.configure, "blur")),
|
|
58
58
|
onFocus: _cache[3] || (_cache[3] = ($event) => unref(handleEvent)($event, _ctx.pageContext, _ctx.configure, "focus"))
|
package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, computed, resolveComponent, openBlock, createBlock,
|
|
1
|
+
import { defineComponent, computed, ref, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementBlock, toDisplayString, createCommentVNode, createVNode, createSlots, createTextVNode } from "vue";
|
|
2
2
|
import { SuperIcon } from "agilebuilder-ui";
|
|
3
3
|
import { getFormModelFields } from "../../../../utils/page-init-util.js";
|
|
4
4
|
import { getVariableValue, setVariableValue } from "../../../../utils/page-helper-util.js";
|
|
@@ -22,7 +22,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
22
22
|
}
|
|
23
23
|
});
|
|
24
24
|
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
|
|
25
|
-
const designProperty = runtimeInfo.props ? runtimeInfo.props : {};
|
|
25
|
+
const designProperty = ref(runtimeInfo.props ? runtimeInfo.props : {});
|
|
26
26
|
const runtimeStyle = runtimeInfo.style;
|
|
27
27
|
const runtimeClass = runtimeInfo.class;
|
|
28
28
|
const headerStyle = runtimeInfo.headerStyle;
|
|
@@ -40,26 +40,26 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
40
40
|
const _component_el_input = resolveComponent("el-input");
|
|
41
41
|
const _component_el_form_item = resolveComponent("el-form-item");
|
|
42
42
|
return openBlock(), createBlock(_component_el_form_item, {
|
|
43
|
-
required:
|
|
43
|
+
required: designProperty.value.required ? true : false,
|
|
44
44
|
class: normalizeClass(unref(runtimeClass)),
|
|
45
|
-
"label-width":
|
|
45
|
+
"label-width": designProperty.value.labelWidth,
|
|
46
46
|
style: normalizeStyle(unref(runtimeStyle))
|
|
47
47
|
}, {
|
|
48
48
|
label: withCtx(() => [
|
|
49
|
-
|
|
49
|
+
designProperty.value.tittleShow ? (openBlock(), createElementBlock("div", {
|
|
50
50
|
key: 0,
|
|
51
51
|
style: normalizeStyle({ ...unref(headerStyle) })
|
|
52
|
-
}, toDisplayString(
|
|
52
|
+
}, toDisplayString(designProperty.value.title), 5)) : createCommentVNode("", true)
|
|
53
53
|
]),
|
|
54
54
|
default: withCtx(() => [
|
|
55
55
|
createVNode(_component_el_input, {
|
|
56
|
-
disabled:
|
|
57
|
-
readonly:
|
|
58
|
-
size:
|
|
59
|
-
clearable:
|
|
60
|
-
placeholder:
|
|
61
|
-
maxlength:
|
|
62
|
-
"show-word-limit":
|
|
56
|
+
disabled: designProperty.value.state === "disabled",
|
|
57
|
+
readonly: designProperty.value.state === "readonly",
|
|
58
|
+
size: designProperty.value.size,
|
|
59
|
+
clearable: designProperty.value.clearable,
|
|
60
|
+
placeholder: designProperty.value.placeholder,
|
|
61
|
+
maxlength: designProperty.value.maxLength,
|
|
62
|
+
"show-word-limit": designProperty.value.showInputNum,
|
|
63
63
|
modelValue: dynamicModelMethod.value,
|
|
64
64
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => dynamicModelMethod.value = $event),
|
|
65
65
|
onInput: _cache[1] || (_cache[1] = ($event) => unref(handleEvent)($event, _ctx.pageContext, _ctx.configure, "input")),
|
|
@@ -68,51 +68,51 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
68
68
|
onFocus: _cache[4] || (_cache[4] = ($event) => unref(handleEvent)($event, _ctx.pageContext, _ctx.configure, "focus")),
|
|
69
69
|
onClick: _cache[5] || (_cache[5] = ($event) => unref(handleEvent)($event, _ctx.pageContext, _ctx.configure, "click"))
|
|
70
70
|
}, createSlots({ _: 2 }, [
|
|
71
|
-
|
|
71
|
+
designProperty.value.iconPosition != "outer" && (designProperty.value.preIconType && designProperty.value.preIconValue || designProperty.value.preText) ? {
|
|
72
72
|
name: "prefix",
|
|
73
73
|
fn: withCtx(() => [
|
|
74
|
-
|
|
74
|
+
designProperty.value.preIconType && designProperty.value.preIconValue ? (openBlock(), createBlock(unref(SuperIcon), {
|
|
75
75
|
key: 0,
|
|
76
|
-
iconType:
|
|
77
|
-
iconValue:
|
|
76
|
+
iconType: designProperty.value.preIconType,
|
|
77
|
+
iconValue: designProperty.value.preIconValue
|
|
78
78
|
}, null, 8, ["iconType", "iconValue"])) : createCommentVNode("", true),
|
|
79
|
-
createTextVNode(" " + toDisplayString(
|
|
79
|
+
createTextVNode(" " + toDisplayString(designProperty.value.preText), 1)
|
|
80
80
|
]),
|
|
81
81
|
key: "0"
|
|
82
82
|
} : void 0,
|
|
83
|
-
|
|
83
|
+
designProperty.value.iconPosition == "outer" && (designProperty.value.preIconType && designProperty.value.preIconValue || designProperty.value.preText) ? {
|
|
84
84
|
name: "prepend",
|
|
85
85
|
fn: withCtx(() => [
|
|
86
|
-
|
|
86
|
+
designProperty.value.preIconType && designProperty.value.preIconValue ? (openBlock(), createBlock(unref(SuperIcon), {
|
|
87
87
|
key: 0,
|
|
88
|
-
iconType:
|
|
89
|
-
iconValue:
|
|
88
|
+
iconType: designProperty.value.preIconType,
|
|
89
|
+
iconValue: designProperty.value.preIconValue
|
|
90
90
|
}, null, 8, ["iconType", "iconValue"])) : createCommentVNode("", true),
|
|
91
|
-
createTextVNode(" " + toDisplayString(
|
|
91
|
+
createTextVNode(" " + toDisplayString(designProperty.value.preText), 1)
|
|
92
92
|
]),
|
|
93
93
|
key: "1"
|
|
94
94
|
} : void 0,
|
|
95
|
-
|
|
95
|
+
designProperty.value.iconPosition != "outer" && (designProperty.value.sufIconType && designProperty.value.sufIconValue || designProperty.value.sufText) ? {
|
|
96
96
|
name: "suffix",
|
|
97
97
|
fn: withCtx(() => [
|
|
98
|
-
|
|
98
|
+
designProperty.value.sufIconType && designProperty.value.sufIconValue ? (openBlock(), createBlock(unref(SuperIcon), {
|
|
99
99
|
key: 0,
|
|
100
|
-
iconType:
|
|
101
|
-
iconValue:
|
|
100
|
+
iconType: designProperty.value.sufIconType,
|
|
101
|
+
iconValue: designProperty.value.sufIconValue
|
|
102
102
|
}, null, 8, ["iconType", "iconValue"])) : createCommentVNode("", true),
|
|
103
|
-
createTextVNode(" " + toDisplayString(
|
|
103
|
+
createTextVNode(" " + toDisplayString(designProperty.value.sufText), 1)
|
|
104
104
|
]),
|
|
105
105
|
key: "2"
|
|
106
106
|
} : void 0,
|
|
107
|
-
|
|
107
|
+
designProperty.value.iconPosition == "outer" && (designProperty.value.sufIconType && designProperty.value.sufIconValue || designProperty.value.sufText) ? {
|
|
108
108
|
name: "append",
|
|
109
109
|
fn: withCtx(() => [
|
|
110
|
-
|
|
110
|
+
designProperty.value.sufIconType && designProperty.value.sufIconValue ? (openBlock(), createBlock(unref(SuperIcon), {
|
|
111
111
|
key: 0,
|
|
112
|
-
iconType:
|
|
113
|
-
iconValue:
|
|
112
|
+
iconType: designProperty.value.sufIconType,
|
|
113
|
+
iconValue: designProperty.value.sufIconValue
|
|
114
114
|
}, null, 8, ["iconType", "iconValue"])) : createCommentVNode("", true),
|
|
115
|
-
createTextVNode(" " + toDisplayString(
|
|
115
|
+
createTextVNode(" " + toDisplayString(designProperty.value.sufText), 1)
|
|
116
116
|
]),
|
|
117
117
|
key: "3"
|
|
118
118
|
} : void 0
|
|
@@ -1,14 +1,10 @@
|
|
|
1
|
-
import { defineComponent, computed, resolveComponent,
|
|
1
|
+
import { defineComponent, ref, computed, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementBlock, toDisplayString, createCommentVNode, createElementVNode, createTextVNode } from "vue";
|
|
2
2
|
import { getFormModelFields } from "../../../../utils/page-init-util.js";
|
|
3
3
|
import { queryOptions, formatVariableValue, formatValueByType } from "../../../../utils/page-helper-util.js";
|
|
4
4
|
import { SuperIcon } from "agilebuilder-ui";
|
|
5
|
-
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
key: 1,
|
|
9
|
-
style: { "display": "flex", "justify-content": "space-between" }
|
|
10
|
-
};
|
|
11
|
-
const _hoisted_4 = ["title"];
|
|
5
|
+
import { handleEvent } from "../../../../utils/events/event-util.js";
|
|
6
|
+
const _hoisted_1 = { style: { "overflow": "hidden", "white-space": "nowrap" } };
|
|
7
|
+
const _hoisted_2 = ["title"];
|
|
12
8
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
13
9
|
__name: "label-runtime",
|
|
14
10
|
props: {
|
|
@@ -24,8 +20,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
24
20
|
const headerStyle = runtimeInfo.headerStyle;
|
|
25
21
|
const appendClass = runtimeInfo.appendClass;
|
|
26
22
|
const appendStyle = runtimeInfo.appendStyle;
|
|
27
|
-
const designProperty = runtimeInfo.props ? runtimeInfo.props : {};
|
|
28
|
-
const listOptions = designProperty.options ? designProperty.options : [];
|
|
23
|
+
const designProperty = ref(runtimeInfo.props ? runtimeInfo.props : {});
|
|
24
|
+
const listOptions = designProperty.value.options ? designProperty.value.options : [];
|
|
29
25
|
const dataOrigin = props.configure.props && props.configure.props.dataOrigin ? props.configure.props.dataOrigin : {};
|
|
30
26
|
const valueType = dataOrigin.optionValueSetType;
|
|
31
27
|
if (valueType == "dynamicData" || valueType == "dynamicData" || valueType == "service") {
|
|
@@ -35,7 +31,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
35
31
|
console.log("lable组件查询数据源失败!", error);
|
|
36
32
|
});
|
|
37
33
|
}
|
|
38
|
-
let contentVariable = designProperty.formatting;
|
|
34
|
+
let contentVariable = designProperty.value.formatting;
|
|
39
35
|
if (!contentVariable) {
|
|
40
36
|
const propsBase = props.configure.props.base ? props.configure.props.base : {};
|
|
41
37
|
contentVariable = propsBase.prop;
|
|
@@ -43,12 +39,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
43
39
|
if (!contentVariable) {
|
|
44
40
|
contentVariable = "${page." + props.configure.uuid + "}";
|
|
45
41
|
}
|
|
46
|
-
const formatType = designProperty.formatType;
|
|
42
|
+
const formatType = designProperty.value.formatType;
|
|
47
43
|
const dynamicValue = computed(() => {
|
|
48
44
|
let resultValue = formatVariableValue(props.pageContext, contentVariable);
|
|
49
45
|
console.log("formatType", formatType);
|
|
50
46
|
if (formatType) {
|
|
51
|
-
if (designProperty.hasOptions) {
|
|
47
|
+
if (designProperty.value.hasOptions) {
|
|
52
48
|
let selItems = null;
|
|
53
49
|
if (listOptions.value) {
|
|
54
50
|
selItems = listOptions.value.filter((item) => item.value == resultValue);
|
|
@@ -57,68 +53,75 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
57
53
|
resultValue = selItems[0].label;
|
|
58
54
|
}
|
|
59
55
|
} else {
|
|
60
|
-
resultValue = formatValueByType(resultValue, formatType, designProperty);
|
|
56
|
+
resultValue = formatValueByType(resultValue, formatType, designProperty.value);
|
|
61
57
|
}
|
|
62
58
|
}
|
|
63
59
|
return resultValue == void 0 || resultValue == null ? "" : resultValue;
|
|
64
60
|
});
|
|
65
61
|
return (_ctx, _cache) => {
|
|
66
62
|
const _component_el_form_item = resolveComponent("el-form-item");
|
|
67
|
-
return
|
|
63
|
+
return designProperty.value.tittleShow ? (openBlock(), createBlock(_component_el_form_item, {
|
|
68
64
|
key: 0,
|
|
69
|
-
required:
|
|
65
|
+
required: designProperty.value.required ? true : false,
|
|
70
66
|
class: normalizeClass(unref(runtimeClass)),
|
|
71
|
-
"label-width":
|
|
67
|
+
"label-width": designProperty.value.labelWidth,
|
|
72
68
|
style: normalizeStyle(unref(runtimeStyle))
|
|
73
69
|
}, {
|
|
74
70
|
label: withCtx(() => [
|
|
75
|
-
|
|
71
|
+
designProperty.value.tittleShow ? (openBlock(), createElementBlock("div", {
|
|
76
72
|
key: 0,
|
|
77
73
|
style: normalizeStyle({ ...unref(headerStyle) })
|
|
78
|
-
}, toDisplayString(
|
|
74
|
+
}, toDisplayString(designProperty.value.title), 5)) : createCommentVNode("", true)
|
|
79
75
|
]),
|
|
80
76
|
default: withCtx(() => [
|
|
81
|
-
createElementVNode("div",
|
|
82
|
-
|
|
83
|
-
|
|
77
|
+
createElementVNode("div", {
|
|
78
|
+
style: { "display": "flex", "width": "100%", "justify-content": "space-between" },
|
|
79
|
+
onClick: _cache[0] || (_cache[0] = ($event) => unref(handleEvent)($event, _ctx.pageContext, _ctx.configure, "click"))
|
|
80
|
+
}, [
|
|
81
|
+
createElementVNode("span", _hoisted_1, [
|
|
82
|
+
designProperty.value.preIconValue || designProperty.value.preText ? (openBlock(), createElementBlock("span", {
|
|
84
83
|
key: 0,
|
|
85
|
-
class: normalizeClass({ "el-input__suffix":
|
|
84
|
+
class: normalizeClass({ "el-input__suffix": designProperty.value.iconPosition != "outer", "el-input-group__append": designProperty.value.iconPosition == "outer" }),
|
|
86
85
|
style: normalizeStyle(unref(appendStyle))
|
|
87
86
|
}, [
|
|
88
|
-
|
|
87
|
+
designProperty.value.preIconType && designProperty.value.preIconValue ? (openBlock(), createBlock(unref(SuperIcon), {
|
|
89
88
|
key: 0,
|
|
90
|
-
iconType:
|
|
91
|
-
iconValue:
|
|
89
|
+
iconType: designProperty.value.preIconType,
|
|
90
|
+
iconValue: designProperty.value.preIconValue
|
|
92
91
|
}, null, 8, ["iconType", "iconValue"])) : createCommentVNode("", true),
|
|
93
|
-
createTextVNode(" " + toDisplayString(
|
|
92
|
+
createTextVNode(" " + toDisplayString(designProperty.value.preText), 1)
|
|
94
93
|
], 6)) : createCommentVNode("", true),
|
|
95
94
|
createTextVNode(" " + toDisplayString(dynamicValue.value), 1)
|
|
96
95
|
]),
|
|
97
|
-
|
|
96
|
+
designProperty.value.sufIconValue || designProperty.value.sufText ? (openBlock(), createElementBlock("span", {
|
|
98
97
|
key: 0,
|
|
99
|
-
class: normalizeClass({ "el-input__suffix":
|
|
98
|
+
class: normalizeClass({ "el-input__suffix": designProperty.value.iconPosition != "outer", "el-input-group__append": designProperty.value.iconPosition == "outer" })
|
|
100
99
|
}, [
|
|
101
|
-
|
|
100
|
+
designProperty.value.sufIconType && designProperty.value.sufIconValue ? (openBlock(), createBlock(unref(SuperIcon), {
|
|
102
101
|
key: 0,
|
|
103
102
|
style: {},
|
|
104
|
-
iconType:
|
|
105
|
-
iconValue:
|
|
103
|
+
iconType: designProperty.value.sufIconType,
|
|
104
|
+
iconValue: designProperty.value.sufIconValue
|
|
106
105
|
}, null, 8, ["iconType", "iconValue"])) : createCommentVNode("", true),
|
|
107
|
-
createElementVNode("span", null, " " + toDisplayString(
|
|
106
|
+
createElementVNode("span", null, " " + toDisplayString(designProperty.value.sufText), 1)
|
|
108
107
|
], 2)) : createCommentVNode("", true)
|
|
109
108
|
])
|
|
110
109
|
]),
|
|
111
110
|
_: 1
|
|
112
|
-
}, 8, ["required", "class", "label-width", "style"])) : (openBlock(), createElementBlock("span",
|
|
111
|
+
}, 8, ["required", "class", "label-width", "style"])) : (openBlock(), createElementBlock("span", {
|
|
112
|
+
key: 1,
|
|
113
|
+
style: { "display": "flex", "justify-content": "space-between" },
|
|
114
|
+
onClick: _cache[1] || (_cache[1] = ($event) => unref(handleEvent)($event, _ctx.pageContext, _ctx.configure, "click"))
|
|
115
|
+
}, [
|
|
113
116
|
createElementVNode("span", {
|
|
114
117
|
style: { "overflow": "hidden", "white-space": "nowrap" },
|
|
115
118
|
title: dynamicValue.value
|
|
116
|
-
}, toDisplayString(
|
|
117
|
-
|
|
119
|
+
}, toDisplayString(designProperty.value.prefixIcon) + " " + toDisplayString(dynamicValue.value) + "222", 9, _hoisted_2),
|
|
120
|
+
designProperty.value.suffixTxt ? (openBlock(), createElementBlock("span", {
|
|
118
121
|
key: 0,
|
|
119
122
|
class: normalizeClass(unref(appendClass)),
|
|
120
123
|
style: normalizeStyle(unref(appendStyle))
|
|
121
|
-
}, toDisplayString(
|
|
124
|
+
}, toDisplayString(designProperty.value.suffixTxt) + "222", 7)) : createCommentVNode("", true)
|
|
122
125
|
]));
|
|
123
126
|
};
|
|
124
127
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, computed, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementBlock, toDisplayString, createCommentVNode, createVNode, createTextVNode } from "vue";
|
|
1
|
+
import { defineComponent, ref, computed, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementBlock, toDisplayString, createCommentVNode, createVNode, createTextVNode } from "vue";
|
|
2
2
|
import { getFormModelFields } from "../../../../utils/page-init-util.js";
|
|
3
3
|
import { formatVariableValue } from "../../../../utils/page-helper-util.js";
|
|
4
4
|
import { handleEvent } from "../../../../utils/events/event-util.js";
|
|
@@ -15,8 +15,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
15
15
|
const runtimeStyle = runtimeInfo.style;
|
|
16
16
|
const runtimeClass = runtimeInfo.class;
|
|
17
17
|
const headerStyle = runtimeInfo.headerStyle;
|
|
18
|
-
const designProperty = runtimeInfo.props ? runtimeInfo.props : {};
|
|
19
|
-
let contentVariable = designProperty.formatting;
|
|
18
|
+
const designProperty = ref(runtimeInfo.props ? runtimeInfo.props : {});
|
|
19
|
+
let contentVariable = designProperty.value.formatting;
|
|
20
20
|
if (!contentVariable) {
|
|
21
21
|
const propsBase = props.configure.props.base ? props.configure.props.base : {};
|
|
22
22
|
contentVariable = propsBase.prop;
|
|
@@ -28,7 +28,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
28
28
|
const resultValue = formatVariableValue(props.pageContext, contentVariable);
|
|
29
29
|
return resultValue == void 0 || resultValue == null ? "" : resultValue;
|
|
30
30
|
});
|
|
31
|
-
let tooltipVariable = designProperty.tooltip;
|
|
31
|
+
let tooltipVariable = designProperty.value.tooltip;
|
|
32
32
|
const tooltipValue = computed(() => {
|
|
33
33
|
const resultValue = formatVariableValue(props.pageContext, tooltipVariable);
|
|
34
34
|
return resultValue == void 0 || resultValue == null ? "" : resultValue;
|
|
@@ -39,14 +39,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
39
39
|
const _component_el_form_item = resolveComponent("el-form-item");
|
|
40
40
|
return openBlock(), createBlock(_component_el_form_item, {
|
|
41
41
|
class: normalizeClass(unref(runtimeClass)),
|
|
42
|
-
"label-width":
|
|
42
|
+
"label-width": designProperty.value.labelWidth,
|
|
43
43
|
style: normalizeStyle(unref(runtimeStyle))
|
|
44
44
|
}, {
|
|
45
45
|
label: withCtx(() => [
|
|
46
|
-
|
|
46
|
+
designProperty.value.tittleShow ? (openBlock(), createElementBlock("div", {
|
|
47
47
|
key: 0,
|
|
48
48
|
style: normalizeStyle({ ...unref(headerStyle) })
|
|
49
|
-
}, toDisplayString(
|
|
49
|
+
}, toDisplayString(designProperty.value.title), 5)) : createCommentVNode("", true)
|
|
50
50
|
]),
|
|
51
51
|
default: withCtx(() => [
|
|
52
52
|
createVNode(_component_el_tooltip, {
|
|
@@ -55,9 +55,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
55
55
|
}, {
|
|
56
56
|
default: withCtx(() => [
|
|
57
57
|
createVNode(_component_el_link, {
|
|
58
|
-
disabled:
|
|
59
|
-
type:
|
|
60
|
-
underline:
|
|
58
|
+
disabled: designProperty.value.state === "disabled",
|
|
59
|
+
type: designProperty.value.type,
|
|
60
|
+
underline: designProperty.value.underline,
|
|
61
61
|
onClick: _cache[0] || (_cache[0] = ($event) => unref(handleEvent)($event, _ctx.pageContext, _ctx.configure, "click"))
|
|
62
62
|
}, {
|
|
63
63
|
default: withCtx(() => [
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, computed, ref, watch, resolveComponent, openBlock, createBlock,
|
|
1
|
+
import { defineComponent, computed, ref, watch, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementBlock, toDisplayString, createCommentVNode, createVNode, Fragment, renderList } from "vue";
|
|
2
2
|
import { getVariableValue, setVariableValue, getOptionDatasFromPage, autoSetAfterSelect, queryOptionDatasources } from "../../../../utils/page-helper-util.js";
|
|
3
3
|
import { getFormModelFields } from "../../../../utils/page-init-util.js";
|
|
4
4
|
import { handleEvent } from "../../../../utils/events/event-util.js";
|
|
@@ -24,8 +24,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
24
24
|
const runtimeStyle = runtimeInfo.style;
|
|
25
25
|
const runtimeClass = runtimeInfo.class;
|
|
26
26
|
const headerStyle = runtimeInfo.headerStyle;
|
|
27
|
-
const designProperty = runtimeInfo.props ? runtimeInfo.props : {};
|
|
28
|
-
const listOptions = ref(designProperty.options ? designProperty.options : []);
|
|
27
|
+
const designProperty = ref(runtimeInfo.props ? runtimeInfo.props : {});
|
|
28
|
+
const listOptions = ref(designProperty.value.options ? designProperty.value.options : []);
|
|
29
29
|
const cacheOptions = getOptionDatasFromPage(props.pageContext, props.configure);
|
|
30
30
|
if (cacheOptions.length > 0) {
|
|
31
31
|
listOptions.value = cacheOptions;
|
|
@@ -48,8 +48,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
48
48
|
target: props.configure.props.base.optionProp
|
|
49
49
|
});
|
|
50
50
|
}
|
|
51
|
-
designProperty.changeMethod = optionChange;
|
|
52
|
-
const monitorFields = designProperty.monitorFields;
|
|
51
|
+
designProperty.value.changeMethod = optionChange;
|
|
52
|
+
const monitorFields = designProperty.value.monitorFields;
|
|
53
53
|
const monitorFieldInfos = [];
|
|
54
54
|
if (monitorFields) {
|
|
55
55
|
const preFields = [];
|
|
@@ -80,7 +80,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
80
80
|
}
|
|
81
81
|
let initMonitorValue = getMonitorFieldValues();
|
|
82
82
|
let monitorTimeout = false;
|
|
83
|
-
const optionconfigInfo = designProperty.optionconfigInfo ? designProperty.optionconfigInfo : {};
|
|
83
|
+
const optionconfigInfo = designProperty.value.optionconfigInfo ? designProperty.value.optionconfigInfo : {};
|
|
84
84
|
function monitorFieldChange() {
|
|
85
85
|
if (monitorTimeout) {
|
|
86
86
|
clearTimeout(monitorTimeout);
|
|
@@ -119,22 +119,22 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
119
119
|
const _component_el_radio_group = resolveComponent("el-radio-group");
|
|
120
120
|
const _component_el_form_item = resolveComponent("el-form-item");
|
|
121
121
|
return openBlock(), createBlock(_component_el_form_item, {
|
|
122
|
-
required:
|
|
122
|
+
required: designProperty.value.required,
|
|
123
123
|
class: normalizeClass(unref(runtimeClass)),
|
|
124
|
-
"label-width":
|
|
124
|
+
"label-width": designProperty.value.labelWidth,
|
|
125
125
|
style: normalizeStyle(unref(runtimeStyle))
|
|
126
126
|
}, {
|
|
127
127
|
label: withCtx(() => [
|
|
128
|
-
|
|
128
|
+
designProperty.value.tittleShow ? (openBlock(), createElementBlock("div", {
|
|
129
129
|
key: 0,
|
|
130
130
|
style: normalizeStyle({ ...unref(headerStyle) })
|
|
131
|
-
}, toDisplayString(
|
|
131
|
+
}, toDisplayString(designProperty.value.title), 5)) : createCommentVNode("", true)
|
|
132
132
|
]),
|
|
133
133
|
default: withCtx(() => [
|
|
134
134
|
createVNode(_component_el_radio_group, {
|
|
135
|
-
disabled:
|
|
136
|
-
size:
|
|
137
|
-
onChange:
|
|
135
|
+
disabled: designProperty.value.state === "disabled",
|
|
136
|
+
size: designProperty.value.size,
|
|
137
|
+
onChange: designProperty.value.changeMethod,
|
|
138
138
|
modelValue: dynamicModelMethod.value,
|
|
139
139
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => dynamicModelMethod.value = $event)
|
|
140
140
|
}, {
|