super-page-runtime 3.0.5 → 3.0.7
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 +1 -2
- package/dist/es/components/runtime/index.js +4 -0
- package/dist/es/components/runtime/utils/api/api-util.js +3 -3
- package/dist/es/components/runtime/utils/assemblys-config.js +1 -1
- package/dist/es/components/runtime/utils/common-util.js +2 -2
- package/dist/es/components/runtime/utils/eventBus.js +1 -1
- package/dist/es/components/runtime/utils/events/event-util.js +3 -3
- package/dist/es/components/runtime/utils/events/standard-event.js +6 -7
- package/dist/es/components/runtime/utils/events/validator-util.js +4 -4
- package/dist/es/components/runtime/utils/global-refs.js +1 -1
- package/dist/es/components/runtime/utils/page-helper-util.js +3 -3
- package/dist/es/components/runtime/utils/page-init-util.js +2 -2
- package/dist/es/components/runtime/utils/table-utils.js +1 -1
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +16 -22
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +13 -16
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +14 -18
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +14 -18
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +15 -20
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +4 -4
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +6 -6
- package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +5 -6
- package/dist/es/components/runtime/views/assemblys/error-render.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +4 -5
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +6 -6
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +4 -4
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +3 -5
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/super-page.vue.js +7 -8
- package/dist/es/components/super-page-dialog/index.d.ts +3 -0
- package/dist/es/components/{runtime/views → super-page-dialog}/super-page-dialog.vue.js +2 -2
- package/dist/es/components/super-page-dialog/super-page-dialog.vue2.js +4 -0
- package/dist/es/components/wf-editor/index.d.ts +3 -0
- package/dist/es/components/wf-editor/index.js +4 -0
- package/dist/es/components/wf-editor/wf-editor.css +4 -0
- package/dist/es/components/wf-editor/wf-editor.vue.d.ts +2 -0
- package/dist/es/components/wf-editor/wf-editor.vue.js +16 -0
- package/dist/es/index.d.ts +4 -2
- package/dist/es/index.js +4 -2
- package/dist/favicon.ico +0 -0
- package/dist/lib/components/runtime/index.d.ts +1 -2
- package/dist/lib/components/runtime/index.js +3 -0
- package/dist/lib/components/runtime/utils/api/api-util.js +12 -12
- package/dist/lib/components/runtime/utils/assemblys-config.js +35 -35
- package/dist/lib/components/runtime/utils/common-util.js +4 -4
- package/dist/lib/components/runtime/utils/eventBus.js +1 -1
- package/dist/lib/components/runtime/utils/events/event-util.js +8 -8
- package/dist/lib/components/runtime/utils/events/standard-event.js +105 -106
- package/dist/lib/components/runtime/utils/events/validator-util.js +15 -15
- package/dist/lib/components/runtime/utils/global-refs.js +1 -1
- package/dist/lib/components/runtime/utils/page-helper-util.js +8 -8
- package/dist/lib/components/runtime/utils/page-init-util.js +5 -5
- package/dist/lib/components/runtime/utils/table-utils.js +2 -2
- package/dist/lib/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +31 -31
- package/dist/lib/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +9 -9
- package/dist/lib/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +41 -41
- package/dist/lib/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +24 -30
- package/dist/lib/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +21 -24
- package/dist/lib/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +22 -26
- package/dist/lib/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +22 -26
- package/dist/lib/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +23 -28
- package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +21 -21
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +30 -30
- package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +27 -27
- package/dist/lib/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +20 -20
- package/dist/lib/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +25 -25
- package/dist/lib/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +26 -26
- package/dist/lib/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +13 -13
- package/dist/lib/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +12 -12
- package/dist/lib/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +6 -6
- package/dist/lib/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +23 -23
- package/dist/lib/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +12 -12
- package/dist/lib/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +26 -26
- package/dist/lib/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +15 -15
- package/dist/lib/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +11 -12
- package/dist/lib/components/runtime/views/assemblys/error-render.vue.js +3 -3
- package/dist/lib/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +24 -24
- package/dist/lib/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +39 -39
- package/dist/lib/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +27 -28
- package/dist/lib/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +12 -12
- package/dist/lib/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +23 -23
- package/dist/lib/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +25 -25
- package/dist/lib/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +58 -58
- package/dist/lib/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +42 -42
- package/dist/lib/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +25 -25
- package/dist/lib/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +8 -8
- package/dist/lib/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +25 -25
- package/dist/lib/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +37 -39
- package/dist/lib/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +41 -41
- package/dist/lib/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +24 -24
- package/dist/lib/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +21 -21
- package/dist/lib/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +25 -25
- package/dist/lib/components/runtime/views/assemblys/object-render.vue.js +18 -18
- package/dist/lib/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +9 -9
- package/dist/lib/components/runtime/views/super-page.vue.js +61 -62
- package/dist/lib/components/super-page-dialog/index.d.ts +3 -0
- package/dist/lib/components/{runtime/views → super-page-dialog}/super-page-dialog.vue.js +14 -14
- package/dist/lib/components/super-page-dialog/super-page-dialog.vue2.js +3 -0
- package/dist/lib/components/wf-editor/index.d.ts +3 -0
- package/dist/lib/components/wf-editor/index.js +3 -0
- package/dist/lib/components/wf-editor/wf-editor.css +4 -0
- package/dist/lib/components/wf-editor/wf-editor.vue.d.ts +2 -0
- package/dist/lib/components/wf-editor/wf-editor.vue.js +15 -0
- package/dist/lib/index.d.ts +4 -2
- package/dist/lib/index.js +3 -1
- package/dist/super-page-runtime.umd.js +213932 -0
- package/package.json +3 -4
- package/dist/es/_virtual/AttributeMap.js +0 -4
- package/dist/es/_virtual/Delta.js +0 -4
- package/dist/es/_virtual/Op.js +0 -4
- package/dist/es/_virtual/OpIterator.js +0 -4
- package/dist/es/_virtual/__vite-browser-external.js +0 -4
- package/dist/es/_virtual/_commonjsHelpers.js +0 -8
- package/dist/es/_virtual/dayjs.min.js +0 -4
- package/dist/es/_virtual/index.js +0 -4
- package/dist/es/_virtual/index2.js +0 -4
- package/dist/es/_virtual/index3.js +0 -4
- 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/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/es/components/{runtime/views/super-page-dialog.vue2.js → super-page-dialog/index.js} +0 -0
- /package/dist/es/components/{runtime/views → super-page-dialog}/super-page-dialog.vue.d.ts +0 -0
- /package/dist/lib/components/{runtime/views/super-page-dialog.vue2.js → super-page-dialog/index.js} +0 -0
- /package/dist/lib/components/{runtime/views → super-page-dialog}/super-page-dialog.vue.d.ts +0 -0
|
@@ -1,18 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const
|
|
2
|
+
const vue_runtime_esmBundler_js = require("D:/MyToolbox/ws-idea/agile-builder/dev-platform/agile-builder-super-design/node_modules/.pnpm/vue@3.4.21_typescript@5.4.5/node_modules/vue/dist/vue.runtime.esm-bundler.js");
|
|
3
3
|
const pageInitUtil = require("../../../../utils/page-init-util.js");
|
|
4
4
|
const pageHelperUtil = require("../../../../utils/page-helper-util.js");
|
|
5
|
-
require("
|
|
6
|
-
|
|
7
|
-
require("../../../../../../node_modules/.pnpm/quill@2.0.2/node_modules/quill/core.js");
|
|
8
|
-
const quill = require("../../../../../../node_modules/.pnpm/quill@2.0.2/node_modules/quill/core/quill.js");
|
|
5
|
+
const Quill = require("D:/MyToolbox/ws-idea/agile-builder/dev-platform/agile-builder-super-design/node_modules/.pnpm/quill@2.0.2/node_modules/quill/quill.js");
|
|
6
|
+
require("D:/MyToolbox/ws-idea/agile-builder/dev-platform/agile-builder-super-design/node_modules/.pnpm/quill@2.0.2/node_modules/quill/dist/quill.snow.css");
|
|
9
7
|
const _hoisted_1 = { style: { "width": "100%", "height": "100%" } };
|
|
10
8
|
const _hoisted_2 = {
|
|
11
9
|
key: 1,
|
|
12
10
|
style: { "width": "100%", "height": "100%" },
|
|
13
11
|
class: "amb-widget-richtext-single"
|
|
14
12
|
};
|
|
15
|
-
const _sfc_main = /* @__PURE__ */
|
|
13
|
+
const _sfc_main = /* @__PURE__ */ vue_runtime_esmBundler_js.defineComponent({
|
|
16
14
|
__name: "richtext-runtime",
|
|
17
15
|
props: {
|
|
18
16
|
pageContext: {},
|
|
@@ -29,11 +27,11 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
|
29
27
|
const designProperty = runtimeInfo.props ? runtimeInfo.props : {};
|
|
30
28
|
let contentVariable = designProperty.value;
|
|
31
29
|
const initValue = pageHelperUtil.formatVariableValue(props.pageContext, contentVariable);
|
|
32
|
-
const quillEditorRef =
|
|
33
|
-
const quill
|
|
34
|
-
const fileBtn =
|
|
30
|
+
const quillEditorRef = vue_runtime_esmBundler_js.ref(null);
|
|
31
|
+
const quill = vue_runtime_esmBundler_js.ref(null);
|
|
32
|
+
const fileBtn = vue_runtime_esmBundler_js.ref(null);
|
|
35
33
|
const fontSize = ["12px", "13px", "14px", "15px", "16px", "18px", "20px", "24px", "28px", "32px", "36px"];
|
|
36
|
-
const option =
|
|
34
|
+
const option = vue_runtime_esmBundler_js.ref({
|
|
37
35
|
modules: {
|
|
38
36
|
toolbar: [
|
|
39
37
|
["bold", "italic", "underline", "strike"],
|
|
@@ -69,16 +67,16 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
|
69
67
|
readOnly: designProperty.state == "readonly"
|
|
70
68
|
});
|
|
71
69
|
function updateEditorHeight() {
|
|
72
|
-
if (quill
|
|
73
|
-
if (quill
|
|
74
|
-
const parentNode = quill
|
|
70
|
+
if (quill && quill.value) {
|
|
71
|
+
if (quill.value.container) {
|
|
72
|
+
const parentNode = quill.value.container.parentNode;
|
|
75
73
|
const parentRect = parentNode.getBoundingClientRect();
|
|
76
|
-
const thisRect = quill
|
|
74
|
+
const thisRect = quill.value.container.getBoundingClientRect();
|
|
77
75
|
let newHeight = parentRect.height - (thisRect.top - parentRect.top);
|
|
78
76
|
if (newHeight < 100) {
|
|
79
77
|
newHeight = 100;
|
|
80
78
|
}
|
|
81
|
-
quill
|
|
79
|
+
quill.value.container.style.height = newHeight + "px";
|
|
82
80
|
}
|
|
83
81
|
}
|
|
84
82
|
}
|
|
@@ -96,43 +94,43 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
|
96
94
|
formdata.append("file", files[0]);
|
|
97
95
|
alert("TODO:上传图片");
|
|
98
96
|
};
|
|
99
|
-
|
|
100
|
-
quill
|
|
101
|
-
quill
|
|
102
|
-
quill
|
|
97
|
+
vue_runtime_esmBundler_js.onMounted(() => {
|
|
98
|
+
quill.value = new Quill(quillEditorRef.value, option.value);
|
|
99
|
+
quill.value.getModule("toolbar").addHandler("image", imgHandler);
|
|
100
|
+
quill.value.on("text-change", function(delta, oldDelta, source) {
|
|
103
101
|
if (window.updateQuillTimeout) {
|
|
104
102
|
clearTimeout(window.updateQuillTimeout);
|
|
105
103
|
}
|
|
106
104
|
window.updateQuillTimeout = setTimeout(function() {
|
|
107
|
-
pageHelperUtil.setVariableValue(entity, dynamicFields, quill
|
|
105
|
+
pageHelperUtil.setVariableValue(entity, dynamicFields, quill.value.root.innerHTML);
|
|
108
106
|
console.log("new entity", entity);
|
|
109
107
|
}, 1e3);
|
|
110
108
|
});
|
|
111
109
|
updateEditorHeight();
|
|
112
110
|
});
|
|
113
111
|
return (_ctx, _cache) => {
|
|
114
|
-
const _component_el_form_item =
|
|
115
|
-
return
|
|
112
|
+
const _component_el_form_item = vue_runtime_esmBundler_js.resolveComponent("el-form-item");
|
|
113
|
+
return vue_runtime_esmBundler_js.unref(designProperty).tittleShow ? (vue_runtime_esmBundler_js.openBlock(), vue_runtime_esmBundler_js.createBlock(_component_el_form_item, {
|
|
116
114
|
key: 0,
|
|
117
|
-
required:
|
|
118
|
-
class:
|
|
119
|
-
"label-width":
|
|
120
|
-
style:
|
|
115
|
+
required: vue_runtime_esmBundler_js.unref(designProperty).required,
|
|
116
|
+
class: vue_runtime_esmBundler_js.normalizeClass(vue_runtime_esmBundler_js.unref(runtimeClass)),
|
|
117
|
+
"label-width": vue_runtime_esmBundler_js.unref(designProperty).labelWidth,
|
|
118
|
+
style: vue_runtime_esmBundler_js.normalizeStyle(vue_runtime_esmBundler_js.unref(runtimeStyle))
|
|
121
119
|
}, {
|
|
122
|
-
label:
|
|
123
|
-
|
|
120
|
+
label: vue_runtime_esmBundler_js.withCtx(() => [
|
|
121
|
+
vue_runtime_esmBundler_js.unref(designProperty).tittleShow ? (vue_runtime_esmBundler_js.openBlock(), vue_runtime_esmBundler_js.createElementBlock("div", {
|
|
124
122
|
key: 0,
|
|
125
|
-
style:
|
|
126
|
-
},
|
|
123
|
+
style: vue_runtime_esmBundler_js.normalizeStyle({ ...vue_runtime_esmBundler_js.unref(headerStyle) })
|
|
124
|
+
}, vue_runtime_esmBundler_js.toDisplayString(vue_runtime_esmBundler_js.unref(designProperty).title), 5)) : vue_runtime_esmBundler_js.createCommentVNode("", true)
|
|
127
125
|
]),
|
|
128
|
-
default:
|
|
129
|
-
|
|
130
|
-
|
|
126
|
+
default: vue_runtime_esmBundler_js.withCtx(() => [
|
|
127
|
+
vue_runtime_esmBundler_js.createElementVNode("div", _hoisted_1, [
|
|
128
|
+
vue_runtime_esmBundler_js.createElementVNode("div", {
|
|
131
129
|
ref_key: "quillEditorRef",
|
|
132
130
|
ref: quillEditorRef,
|
|
133
131
|
style: { "width": "100%" }
|
|
134
|
-
},
|
|
135
|
-
|
|
132
|
+
}, vue_runtime_esmBundler_js.toDisplayString(vue_runtime_esmBundler_js.unref(initValue)), 513),
|
|
133
|
+
vue_runtime_esmBundler_js.createElementVNode("input", {
|
|
136
134
|
type: "file",
|
|
137
135
|
hidden: "",
|
|
138
136
|
accept: ".jpg,.png",
|
|
@@ -143,13 +141,13 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
|
143
141
|
])
|
|
144
142
|
]),
|
|
145
143
|
_: 1
|
|
146
|
-
}, 8, ["required", "class", "label-width", "style"])) : (
|
|
147
|
-
|
|
144
|
+
}, 8, ["required", "class", "label-width", "style"])) : (vue_runtime_esmBundler_js.openBlock(), vue_runtime_esmBundler_js.createElementBlock("div", _hoisted_2, [
|
|
145
|
+
vue_runtime_esmBundler_js.createElementVNode("div", {
|
|
148
146
|
ref_key: "quillEditorRef",
|
|
149
147
|
ref: quillEditorRef,
|
|
150
148
|
style: { "width": "100%" }
|
|
151
|
-
},
|
|
152
|
-
|
|
149
|
+
}, vue_runtime_esmBundler_js.toDisplayString(vue_runtime_esmBundler_js.unref(initValue)), 513),
|
|
150
|
+
vue_runtime_esmBundler_js.createElementVNode("input", {
|
|
153
151
|
type: "file",
|
|
154
152
|
hidden: "",
|
|
155
153
|
accept: ".jpg,.png",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const
|
|
2
|
+
const vue_runtime_esmBundler_js = require("D:/MyToolbox/ws-idea/agile-builder/dev-platform/agile-builder-super-design/node_modules/.pnpm/vue@3.4.21_typescript@5.4.5/node_modules/vue/dist/vue.runtime.esm-bundler.js");
|
|
3
3
|
const pageHelperUtil = require("../../../../utils/page-helper-util.js");
|
|
4
4
|
const pageInitUtil = require("../../../../utils/page-init-util.js");
|
|
5
5
|
const _hoisted_1 = { style: { "float": "left" } };
|
|
6
6
|
const _hoisted_2 = { style: { "float": "right", "color": "var(--el-text-color-secondary)", "font-size": "13px" } };
|
|
7
|
-
const _sfc_main = /* @__PURE__ */
|
|
7
|
+
const _sfc_main = /* @__PURE__ */ vue_runtime_esmBundler_js.defineComponent({
|
|
8
8
|
__name: "select-runtime",
|
|
9
9
|
props: {
|
|
10
10
|
pageContext: {},
|
|
@@ -14,7 +14,7 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
|
14
14
|
const props = __props;
|
|
15
15
|
const entity = props.pageContext.entity ? props.pageContext.entity : {};
|
|
16
16
|
let dynamicFields = pageInitUtil.getFormModelFields(props.pageContext, props.configure);
|
|
17
|
-
const dynamicModelMethod =
|
|
17
|
+
const dynamicModelMethod = vue_runtime_esmBundler_js.computed({
|
|
18
18
|
get() {
|
|
19
19
|
return pageHelperUtil.getVariableValue(entity, dynamicFields);
|
|
20
20
|
},
|
|
@@ -27,12 +27,12 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
|
27
27
|
const runtimeClass = runtimeInfo.class;
|
|
28
28
|
const headerStyle = runtimeInfo.headerStyle;
|
|
29
29
|
const designProperty = runtimeInfo.props ? runtimeInfo.props : {};
|
|
30
|
-
const listOptions =
|
|
30
|
+
const listOptions = vue_runtime_esmBundler_js.ref(designProperty.options ? designProperty.options : []);
|
|
31
31
|
const cacheOptions = pageHelperUtil.getOptionDatasFromPage(props.pageContext, props.configure);
|
|
32
32
|
if (cacheOptions.length > 0) {
|
|
33
33
|
listOptions.value = cacheOptions;
|
|
34
34
|
}
|
|
35
|
-
const queryLoadingFlag =
|
|
35
|
+
const queryLoadingFlag = vue_runtime_esmBundler_js.ref(false);
|
|
36
36
|
const dataOrigin = props.configure.props && props.configure.props.dataOrigin ? props.configure.props.dataOrigin : {};
|
|
37
37
|
const valueType = dataOrigin.optionValueSetType;
|
|
38
38
|
let autoSets = [];
|
|
@@ -92,7 +92,7 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
94
|
for (let preField of preFields) {
|
|
95
|
-
|
|
95
|
+
vue_runtime_esmBundler_js.watch(entity[preField], () => {
|
|
96
96
|
monitorFieldChange();
|
|
97
97
|
});
|
|
98
98
|
}
|
|
@@ -139,52 +139,52 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
|
139
139
|
updateOptions
|
|
140
140
|
});
|
|
141
141
|
return (_ctx, _cache) => {
|
|
142
|
-
const _component_el_option =
|
|
143
|
-
const _component_el_select =
|
|
144
|
-
const _component_el_form_item =
|
|
145
|
-
return
|
|
146
|
-
required:
|
|
147
|
-
class:
|
|
148
|
-
"label-width":
|
|
149
|
-
style:
|
|
142
|
+
const _component_el_option = vue_runtime_esmBundler_js.resolveComponent("el-option");
|
|
143
|
+
const _component_el_select = vue_runtime_esmBundler_js.resolveComponent("el-select");
|
|
144
|
+
const _component_el_form_item = vue_runtime_esmBundler_js.resolveComponent("el-form-item");
|
|
145
|
+
return vue_runtime_esmBundler_js.openBlock(), vue_runtime_esmBundler_js.createBlock(_component_el_form_item, {
|
|
146
|
+
required: vue_runtime_esmBundler_js.unref(designProperty).required ? true : false,
|
|
147
|
+
class: vue_runtime_esmBundler_js.normalizeClass(vue_runtime_esmBundler_js.unref(runtimeClass)),
|
|
148
|
+
"label-width": vue_runtime_esmBundler_js.unref(designProperty).labelWidth,
|
|
149
|
+
style: vue_runtime_esmBundler_js.normalizeStyle(vue_runtime_esmBundler_js.unref(runtimeStyle))
|
|
150
150
|
}, {
|
|
151
|
-
label:
|
|
152
|
-
|
|
151
|
+
label: vue_runtime_esmBundler_js.withCtx(() => [
|
|
152
|
+
vue_runtime_esmBundler_js.unref(designProperty).tittleShow ? (vue_runtime_esmBundler_js.openBlock(), vue_runtime_esmBundler_js.createElementBlock("div", {
|
|
153
153
|
key: 0,
|
|
154
|
-
style:
|
|
155
|
-
},
|
|
154
|
+
style: vue_runtime_esmBundler_js.normalizeStyle({ ...vue_runtime_esmBundler_js.unref(headerStyle) })
|
|
155
|
+
}, vue_runtime_esmBundler_js.toDisplayString(vue_runtime_esmBundler_js.unref(designProperty).title), 5)) : vue_runtime_esmBundler_js.createCommentVNode("", true)
|
|
156
156
|
]),
|
|
157
|
-
default:
|
|
158
|
-
|
|
159
|
-
disabled:
|
|
160
|
-
size:
|
|
161
|
-
clearable:
|
|
162
|
-
multiple:
|
|
163
|
-
"collapse-tags":
|
|
164
|
-
"collapse-tags-tooltip":
|
|
165
|
-
filterable:
|
|
166
|
-
"allow-create":
|
|
167
|
-
placeholder:
|
|
168
|
-
"remote-show-suffix":
|
|
169
|
-
remote:
|
|
170
|
-
"remote-method":
|
|
157
|
+
default: vue_runtime_esmBundler_js.withCtx(() => [
|
|
158
|
+
vue_runtime_esmBundler_js.createVNode(_component_el_select, {
|
|
159
|
+
disabled: vue_runtime_esmBundler_js.unref(designProperty).state === "disabled",
|
|
160
|
+
size: vue_runtime_esmBundler_js.unref(designProperty).size,
|
|
161
|
+
clearable: vue_runtime_esmBundler_js.unref(designProperty).clearable,
|
|
162
|
+
multiple: vue_runtime_esmBundler_js.unref(designProperty).multiple,
|
|
163
|
+
"collapse-tags": vue_runtime_esmBundler_js.unref(designProperty).collapseTags,
|
|
164
|
+
"collapse-tags-tooltip": vue_runtime_esmBundler_js.unref(designProperty).collapseTagsTooltip,
|
|
165
|
+
filterable: vue_runtime_esmBundler_js.unref(designProperty).filterable,
|
|
166
|
+
"allow-create": vue_runtime_esmBundler_js.unref(designProperty).allowCreate,
|
|
167
|
+
placeholder: vue_runtime_esmBundler_js.unref(designProperty).placeholder,
|
|
168
|
+
"remote-show-suffix": vue_runtime_esmBundler_js.unref(designProperty).remoteShowSuffix,
|
|
169
|
+
remote: vue_runtime_esmBundler_js.unref(designProperty).remote,
|
|
170
|
+
"remote-method": vue_runtime_esmBundler_js.unref(designProperty).remoteMethod,
|
|
171
171
|
loading: queryLoadingFlag.value,
|
|
172
|
-
onChange:
|
|
172
|
+
onChange: vue_runtime_esmBundler_js.unref(designProperty).changeMethod,
|
|
173
173
|
modelValue: dynamicModelMethod.value,
|
|
174
174
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => dynamicModelMethod.value = $event)
|
|
175
175
|
}, {
|
|
176
|
-
default:
|
|
177
|
-
(
|
|
178
|
-
return
|
|
176
|
+
default: vue_runtime_esmBundler_js.withCtx(() => [
|
|
177
|
+
(vue_runtime_esmBundler_js.openBlock(true), vue_runtime_esmBundler_js.createElementBlock(vue_runtime_esmBundler_js.Fragment, null, vue_runtime_esmBundler_js.renderList(listOptions.value, (item) => {
|
|
178
|
+
return vue_runtime_esmBundler_js.openBlock(), vue_runtime_esmBundler_js.createBlock(_component_el_option, {
|
|
179
179
|
key: item.value,
|
|
180
180
|
label: item.label,
|
|
181
181
|
value: item.value
|
|
182
182
|
}, {
|
|
183
|
-
default:
|
|
184
|
-
item._description_ ? (
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
], 64)) :
|
|
183
|
+
default: vue_runtime_esmBundler_js.withCtx(() => [
|
|
184
|
+
item._description_ ? (vue_runtime_esmBundler_js.openBlock(), vue_runtime_esmBundler_js.createElementBlock(vue_runtime_esmBundler_js.Fragment, { key: 0 }, [
|
|
185
|
+
vue_runtime_esmBundler_js.createElementVNode("span", _hoisted_1, vue_runtime_esmBundler_js.toDisplayString(item.label), 1),
|
|
186
|
+
vue_runtime_esmBundler_js.createElementVNode("span", _hoisted_2, vue_runtime_esmBundler_js.toDisplayString(item._description_), 1)
|
|
187
|
+
], 64)) : vue_runtime_esmBundler_js.createCommentVNode("", true)
|
|
188
188
|
]),
|
|
189
189
|
_: 2
|
|
190
190
|
}, 1032, ["label", "value"]);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const
|
|
2
|
+
const vue_runtime_esmBundler_js = require("D:/MyToolbox/ws-idea/agile-builder/dev-platform/agile-builder-super-design/node_modules/.pnpm/vue@3.4.21_typescript@5.4.5/node_modules/vue/dist/vue.runtime.esm-bundler.js");
|
|
3
3
|
const pageInitUtil = require("../../../../utils/page-init-util.js");
|
|
4
4
|
const pageHelperUtil = require("../../../../utils/page-helper-util.js");
|
|
5
|
-
const _sfc_main = /* @__PURE__ */
|
|
5
|
+
const _sfc_main = /* @__PURE__ */ vue_runtime_esmBundler_js.defineComponent({
|
|
6
6
|
__name: "switch-runtime",
|
|
7
7
|
props: {
|
|
8
8
|
pageContext: {},
|
|
@@ -12,7 +12,7 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
|
12
12
|
const props = __props;
|
|
13
13
|
const entity = props.pageContext.entity ? props.pageContext.entity : {};
|
|
14
14
|
let dynamicFields = pageInitUtil.getFormModelFields(props.pageContext, props.configure);
|
|
15
|
-
const dynamicModelMethod =
|
|
15
|
+
const dynamicModelMethod = vue_runtime_esmBundler_js.computed({
|
|
16
16
|
get() {
|
|
17
17
|
return pageHelperUtil.getVariableValue(entity, dynamicFields);
|
|
18
18
|
},
|
|
@@ -27,30 +27,30 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
|
27
27
|
const designProperty = runtimeInfo.props ? runtimeInfo.props : {};
|
|
28
28
|
const switchStyle = runtimeInfo.switchStyle;
|
|
29
29
|
return (_ctx, _cache) => {
|
|
30
|
-
const _component_el_switch =
|
|
31
|
-
const _component_el_form_item =
|
|
32
|
-
return
|
|
33
|
-
required:
|
|
34
|
-
class:
|
|
35
|
-
"label-width":
|
|
36
|
-
style:
|
|
30
|
+
const _component_el_switch = vue_runtime_esmBundler_js.resolveComponent("el-switch");
|
|
31
|
+
const _component_el_form_item = vue_runtime_esmBundler_js.resolveComponent("el-form-item");
|
|
32
|
+
return vue_runtime_esmBundler_js.openBlock(), vue_runtime_esmBundler_js.createBlock(_component_el_form_item, {
|
|
33
|
+
required: vue_runtime_esmBundler_js.unref(designProperty).required,
|
|
34
|
+
class: vue_runtime_esmBundler_js.normalizeClass(vue_runtime_esmBundler_js.unref(runtimeClass)),
|
|
35
|
+
"label-width": vue_runtime_esmBundler_js.unref(designProperty).labelWidth,
|
|
36
|
+
style: vue_runtime_esmBundler_js.normalizeStyle(vue_runtime_esmBundler_js.unref(runtimeStyle))
|
|
37
37
|
}, {
|
|
38
|
-
label:
|
|
39
|
-
|
|
38
|
+
label: vue_runtime_esmBundler_js.withCtx(() => [
|
|
39
|
+
vue_runtime_esmBundler_js.unref(designProperty).tittleShow ? (vue_runtime_esmBundler_js.openBlock(), vue_runtime_esmBundler_js.createElementBlock("div", {
|
|
40
40
|
key: 0,
|
|
41
|
-
style:
|
|
42
|
-
},
|
|
41
|
+
style: vue_runtime_esmBundler_js.normalizeStyle({ ...vue_runtime_esmBundler_js.unref(headerStyle) })
|
|
42
|
+
}, vue_runtime_esmBundler_js.toDisplayString(vue_runtime_esmBundler_js.unref(designProperty).title), 5)) : vue_runtime_esmBundler_js.createCommentVNode("", true)
|
|
43
43
|
]),
|
|
44
|
-
default:
|
|
45
|
-
|
|
46
|
-
disabled:
|
|
47
|
-
"active-value:":
|
|
48
|
-
"active-text":
|
|
49
|
-
"inactive-value":
|
|
50
|
-
"inactive-text":
|
|
51
|
-
width:
|
|
52
|
-
size:
|
|
53
|
-
style:
|
|
44
|
+
default: vue_runtime_esmBundler_js.withCtx(() => [
|
|
45
|
+
vue_runtime_esmBundler_js.createVNode(_component_el_switch, {
|
|
46
|
+
disabled: vue_runtime_esmBundler_js.unref(designProperty).state === "disabled",
|
|
47
|
+
"active-value:": vue_runtime_esmBundler_js.unref(designProperty).activeValue,
|
|
48
|
+
"active-text": vue_runtime_esmBundler_js.unref(designProperty).activeText,
|
|
49
|
+
"inactive-value": vue_runtime_esmBundler_js.unref(designProperty).inactiveValue,
|
|
50
|
+
"inactive-text": vue_runtime_esmBundler_js.unref(designProperty).inactiveText,
|
|
51
|
+
width: vue_runtime_esmBundler_js.unref(designProperty).offOnWidth,
|
|
52
|
+
size: vue_runtime_esmBundler_js.unref(designProperty).size,
|
|
53
|
+
style: vue_runtime_esmBundler_js.normalizeStyle(vue_runtime_esmBundler_js.unref(switchStyle)),
|
|
54
54
|
modelValue: dynamicModelMethod.value,
|
|
55
55
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => dynamicModelMethod.value = $event)
|
|
56
56
|
}, null, 8, ["disabled", "active-value:", "active-text", "inactive-value", "inactive-text", "width", "size", "style", "modelValue"])
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const
|
|
2
|
+
const vue_runtime_esmBundler_js = require("D:/MyToolbox/ws-idea/agile-builder/dev-platform/agile-builder-super-design/node_modules/.pnpm/vue@3.4.21_typescript@5.4.5/node_modules/vue/dist/vue.runtime.esm-bundler.js");
|
|
3
3
|
const pageInitUtil = require("../../../../utils/page-init-util.js");
|
|
4
4
|
const pageHelperUtil = require("../../../../utils/page-helper-util.js");
|
|
5
|
-
const _sfc_main = /* @__PURE__ */
|
|
5
|
+
const _sfc_main = /* @__PURE__ */ vue_runtime_esmBundler_js.defineComponent({
|
|
6
6
|
__name: "tag-runtime",
|
|
7
7
|
props: {
|
|
8
8
|
pageContext: {},
|
|
@@ -24,33 +24,33 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
|
24
24
|
if (!contentVariable) {
|
|
25
25
|
contentVariable = "${page." + props.configure.uuid + "}";
|
|
26
26
|
}
|
|
27
|
-
const dynamicValue =
|
|
27
|
+
const dynamicValue = vue_runtime_esmBundler_js.computed(() => {
|
|
28
28
|
const resultValue = pageHelperUtil.formatVariableValue(props.pageContext, contentVariable);
|
|
29
29
|
return resultValue == void 0 || resultValue == null ? "" : resultValue;
|
|
30
30
|
});
|
|
31
31
|
return (_ctx, _cache) => {
|
|
32
|
-
const _component_el_tag =
|
|
33
|
-
const _component_el_form_item =
|
|
34
|
-
return
|
|
35
|
-
required:
|
|
36
|
-
class:
|
|
37
|
-
"label-width":
|
|
38
|
-
style:
|
|
32
|
+
const _component_el_tag = vue_runtime_esmBundler_js.resolveComponent("el-tag");
|
|
33
|
+
const _component_el_form_item = vue_runtime_esmBundler_js.resolveComponent("el-form-item");
|
|
34
|
+
return vue_runtime_esmBundler_js.openBlock(), vue_runtime_esmBundler_js.createBlock(_component_el_form_item, {
|
|
35
|
+
required: vue_runtime_esmBundler_js.unref(designProperty).required,
|
|
36
|
+
class: vue_runtime_esmBundler_js.normalizeClass(vue_runtime_esmBundler_js.unref(runtimeClass)),
|
|
37
|
+
"label-width": vue_runtime_esmBundler_js.unref(designProperty).labelWidth,
|
|
38
|
+
style: vue_runtime_esmBundler_js.normalizeStyle(vue_runtime_esmBundler_js.unref(runtimeStyle))
|
|
39
39
|
}, {
|
|
40
|
-
label:
|
|
41
|
-
|
|
40
|
+
label: vue_runtime_esmBundler_js.withCtx(() => [
|
|
41
|
+
vue_runtime_esmBundler_js.unref(designProperty).tittleShow ? (vue_runtime_esmBundler_js.openBlock(), vue_runtime_esmBundler_js.createElementBlock("div", {
|
|
42
42
|
key: 0,
|
|
43
|
-
style:
|
|
44
|
-
},
|
|
43
|
+
style: vue_runtime_esmBundler_js.normalizeStyle({ ...vue_runtime_esmBundler_js.unref(headerStyle) })
|
|
44
|
+
}, vue_runtime_esmBundler_js.toDisplayString(vue_runtime_esmBundler_js.unref(designProperty).title), 5)) : vue_runtime_esmBundler_js.createCommentVNode("", true)
|
|
45
45
|
]),
|
|
46
|
-
default:
|
|
47
|
-
|
|
48
|
-
size:
|
|
49
|
-
closable:
|
|
50
|
-
type:
|
|
46
|
+
default: vue_runtime_esmBundler_js.withCtx(() => [
|
|
47
|
+
vue_runtime_esmBundler_js.createVNode(_component_el_tag, {
|
|
48
|
+
size: vue_runtime_esmBundler_js.unref(designProperty).size,
|
|
49
|
+
closable: vue_runtime_esmBundler_js.unref(designProperty).closable,
|
|
50
|
+
type: vue_runtime_esmBundler_js.unref(designProperty).type
|
|
51
51
|
}, {
|
|
52
|
-
default:
|
|
53
|
-
|
|
52
|
+
default: vue_runtime_esmBundler_js.withCtx(() => [
|
|
53
|
+
vue_runtime_esmBundler_js.createTextVNode(vue_runtime_esmBundler_js.toDisplayString(dynamicValue.value), 1)
|
|
54
54
|
]),
|
|
55
55
|
_: 1
|
|
56
56
|
}, 8, ["size", "closable", "type"])
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const
|
|
2
|
+
const vue_runtime_esmBundler_js = require("D:/MyToolbox/ws-idea/agile-builder/dev-platform/agile-builder-super-design/node_modules/.pnpm/vue@3.4.21_typescript@5.4.5/node_modules/vue/dist/vue.runtime.esm-bundler.js");
|
|
3
3
|
const pageInitUtil = require("../../../../utils/page-init-util.js");
|
|
4
4
|
const pageHelperUtil = require("../../../../utils/page-helper-util.js");
|
|
5
|
-
const _sfc_main = /* @__PURE__ */
|
|
5
|
+
const _sfc_main = /* @__PURE__ */ vue_runtime_esmBundler_js.defineComponent({
|
|
6
6
|
__name: "textarea-runtime",
|
|
7
7
|
props: {
|
|
8
8
|
pageContext: {},
|
|
@@ -12,7 +12,7 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
|
12
12
|
const props = __props;
|
|
13
13
|
const entity = props.pageContext.entity ? props.pageContext.entity : {};
|
|
14
14
|
let dynamicFields = pageInitUtil.getFormModelFields(props.pageContext, props.configure);
|
|
15
|
-
const dynamicModelMethod =
|
|
15
|
+
const dynamicModelMethod = vue_runtime_esmBundler_js.computed({
|
|
16
16
|
get() {
|
|
17
17
|
return pageHelperUtil.getVariableValue(entity, dynamicFields);
|
|
18
18
|
},
|
|
@@ -26,33 +26,33 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
|
26
26
|
const runtimeClass = runtimeInfo.class;
|
|
27
27
|
const headerStyle = runtimeInfo.headerStyle;
|
|
28
28
|
return (_ctx, _cache) => {
|
|
29
|
-
const _component_el_input =
|
|
30
|
-
const _component_el_form_item =
|
|
31
|
-
return
|
|
32
|
-
|
|
33
|
-
required:
|
|
34
|
-
class:
|
|
35
|
-
"label-width":
|
|
36
|
-
style:
|
|
29
|
+
const _component_el_input = vue_runtime_esmBundler_js.resolveComponent("el-input");
|
|
30
|
+
const _component_el_form_item = vue_runtime_esmBundler_js.resolveComponent("el-form-item");
|
|
31
|
+
return vue_runtime_esmBundler_js.openBlock(), vue_runtime_esmBundler_js.createElementBlock("div", null, [
|
|
32
|
+
vue_runtime_esmBundler_js.createVNode(_component_el_form_item, {
|
|
33
|
+
required: vue_runtime_esmBundler_js.unref(designProperty).required ? true : false,
|
|
34
|
+
class: vue_runtime_esmBundler_js.normalizeClass(vue_runtime_esmBundler_js.unref(runtimeClass)),
|
|
35
|
+
"label-width": vue_runtime_esmBundler_js.unref(designProperty).labelWidth,
|
|
36
|
+
style: vue_runtime_esmBundler_js.normalizeStyle(vue_runtime_esmBundler_js.unref(runtimeStyle))
|
|
37
37
|
}, {
|
|
38
|
-
label:
|
|
39
|
-
|
|
38
|
+
label: vue_runtime_esmBundler_js.withCtx(() => [
|
|
39
|
+
vue_runtime_esmBundler_js.unref(designProperty).tittleShow ? (vue_runtime_esmBundler_js.openBlock(), vue_runtime_esmBundler_js.createElementBlock("div", {
|
|
40
40
|
key: 0,
|
|
41
|
-
style:
|
|
42
|
-
},
|
|
41
|
+
style: vue_runtime_esmBundler_js.normalizeStyle({ ...vue_runtime_esmBundler_js.unref(headerStyle) })
|
|
42
|
+
}, vue_runtime_esmBundler_js.toDisplayString(vue_runtime_esmBundler_js.unref(designProperty).title), 5)) : vue_runtime_esmBundler_js.createCommentVNode("", true)
|
|
43
43
|
]),
|
|
44
|
-
default:
|
|
45
|
-
|
|
46
|
-
disabled:
|
|
47
|
-
readonly:
|
|
48
|
-
size:
|
|
49
|
-
clearable:
|
|
50
|
-
placeholder:
|
|
44
|
+
default: vue_runtime_esmBundler_js.withCtx(() => [
|
|
45
|
+
vue_runtime_esmBundler_js.createVNode(_component_el_input, {
|
|
46
|
+
disabled: vue_runtime_esmBundler_js.unref(designProperty).state === "disabled",
|
|
47
|
+
readonly: vue_runtime_esmBundler_js.unref(designProperty).state === "readonly",
|
|
48
|
+
size: vue_runtime_esmBundler_js.unref(designProperty).size,
|
|
49
|
+
clearable: vue_runtime_esmBundler_js.unref(designProperty).clearable,
|
|
50
|
+
placeholder: vue_runtime_esmBundler_js.unref(designProperty).placeholder,
|
|
51
51
|
modelValue: dynamicModelMethod.value,
|
|
52
52
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => dynamicModelMethod.value = $event),
|
|
53
|
-
rows:
|
|
54
|
-
maxlength:
|
|
55
|
-
"show-word-limit":
|
|
53
|
+
rows: vue_runtime_esmBundler_js.unref(designProperty).rows ? vue_runtime_esmBundler_js.unref(designProperty).rows : 2,
|
|
54
|
+
maxlength: vue_runtime_esmBundler_js.unref(designProperty).maxLength,
|
|
55
|
+
"show-word-limit": vue_runtime_esmBundler_js.unref(designProperty).showInputNum,
|
|
56
56
|
type: "textarea"
|
|
57
57
|
}, null, 8, ["disabled", "readonly", "size", "clearable", "placeholder", "modelValue", "rows", "maxlength", "show-word-limit"])
|
|
58
58
|
]),
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const
|
|
2
|
+
const vue_runtime_esmBundler_js = require("D:/MyToolbox/ws-idea/agile-builder/dev-platform/agile-builder-super-design/node_modules/.pnpm/vue@3.4.21_typescript@5.4.5/node_modules/vue/dist/vue.runtime.esm-bundler.js");
|
|
3
3
|
const errorRender_vue_vue_type_script_setup_true_lang = require("./error-render.vue.js");
|
|
4
4
|
const assemblysConfig = require("../../utils/assemblys-config.js");
|
|
5
5
|
const pageDesignTypes = require("../../utils/interfaces/page-design-types.js");
|
|
6
6
|
const globalRefs = require("../../utils/global-refs.js");
|
|
7
7
|
const pageInitUtil = require("../../utils/page-init-util.js");
|
|
8
8
|
const pageHelperUtil = require("../../utils/page-helper-util.js");
|
|
9
|
-
const _sfc_main = /* @__PURE__ */
|
|
9
|
+
const _sfc_main = /* @__PURE__ */ vue_runtime_esmBundler_js.defineComponent({
|
|
10
10
|
__name: "object-render",
|
|
11
11
|
props: {
|
|
12
12
|
pageContext: {},
|
|
@@ -18,12 +18,12 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
|
18
18
|
props.configure.style = {};
|
|
19
19
|
}
|
|
20
20
|
const permissionCodes = pageInitUtil.getPermissionCodes(props.configure, props.pageContext);
|
|
21
|
-
let handleShowFlag =
|
|
22
|
-
let showFlag =
|
|
21
|
+
let handleShowFlag = vue_runtime_esmBundler_js.ref(true);
|
|
22
|
+
let showFlag = vue_runtime_esmBundler_js.ref(true);
|
|
23
23
|
if (props.configure && props.configure.props && props.configure.props.showConditions) {
|
|
24
24
|
const showConditions = props.configure.props.showConditions;
|
|
25
25
|
if (showConditions.length > 0) {
|
|
26
|
-
showFlag =
|
|
26
|
+
showFlag = vue_runtime_esmBundler_js.computed(() => {
|
|
27
27
|
if (!handleShowFlag.value) {
|
|
28
28
|
return false;
|
|
29
29
|
}
|
|
@@ -31,16 +31,16 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
|
31
31
|
});
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
|
-
const dynamicComponent =
|
|
35
|
-
dynamicComponent.value =
|
|
36
|
-
const showCopy =
|
|
34
|
+
const dynamicComponent = vue_runtime_esmBundler_js.ref({});
|
|
35
|
+
dynamicComponent.value = vue_runtime_esmBundler_js.markRaw(assemblysConfig.getRuntimeComponentByName(props.configure.name));
|
|
36
|
+
const showCopy = vue_runtime_esmBundler_js.ref(true);
|
|
37
37
|
if (dynamicComponent.value == null) {
|
|
38
38
|
dynamicComponent.value = errorRender_vue_vue_type_script_setup_true_lang;
|
|
39
39
|
showCopy.value = false;
|
|
40
40
|
}
|
|
41
|
-
const thisRef =
|
|
42
|
-
const runtimeStyle =
|
|
43
|
-
const runtimeClass =
|
|
41
|
+
const thisRef = vue_runtime_esmBundler_js.ref(null);
|
|
42
|
+
const runtimeStyle = vue_runtime_esmBundler_js.ref({});
|
|
43
|
+
const runtimeClass = vue_runtime_esmBundler_js.ref("");
|
|
44
44
|
const commonRuntime = props.configure.runtime && props.configure.runtime.common ? props.configure.runtime.common : {};
|
|
45
45
|
if (commonRuntime.class) {
|
|
46
46
|
runtimeClass.value = commonRuntime.class;
|
|
@@ -88,7 +88,7 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
|
-
|
|
91
|
+
vue_runtime_esmBundler_js.onMounted(() => {
|
|
92
92
|
if (!thisRef.value || !thisRef.value.parentNode) {
|
|
93
93
|
return;
|
|
94
94
|
}
|
|
@@ -125,16 +125,16 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
|
125
125
|
}
|
|
126
126
|
});
|
|
127
127
|
return (_ctx, _cache) => {
|
|
128
|
-
const _directive_permission =
|
|
129
|
-
return
|
|
128
|
+
const _directive_permission = vue_runtime_esmBundler_js.resolveDirective("permission");
|
|
129
|
+
return vue_runtime_esmBundler_js.withDirectives((vue_runtime_esmBundler_js.openBlock(), vue_runtime_esmBundler_js.createBlock(vue_runtime_esmBundler_js.resolveDynamicComponent(dynamicComponent.value), {
|
|
130
130
|
ref: setComponentRef,
|
|
131
|
-
style:
|
|
132
|
-
class:
|
|
131
|
+
style: vue_runtime_esmBundler_js.normalizeStyle(runtimeStyle.value),
|
|
132
|
+
class: vue_runtime_esmBundler_js.normalizeClass(runtimeClass.value),
|
|
133
133
|
configure: _ctx.configure,
|
|
134
134
|
pageContext: _ctx.pageContext
|
|
135
135
|
}, null, 8, ["style", "class", "configure", "pageContext"])), [
|
|
136
|
-
[
|
|
137
|
-
[_directive_permission,
|
|
136
|
+
[vue_runtime_esmBundler_js.vShow, vue_runtime_esmBundler_js.unref(showFlag)],
|
|
137
|
+
[_directive_permission, vue_runtime_esmBundler_js.unref(permissionCodes)]
|
|
138
138
|
]);
|
|
139
139
|
};
|
|
140
140
|
}
|