@fecp/designer 5.4.62 → 5.4.64
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/es/designer/package.json.mjs +1 -1
- package/es/designer/src/components/TemplateSelector.vue.mjs +1 -116
- package/es/designer/src/components/TemplateSelector.vue2.mjs +116 -1
- package/es/designer/src/packages/dialog/index.vue.mjs +1 -1
- package/es/designer/src/packages/dialog/index.vue2.mjs +988 -0
- package/es/designer/src/packages/dialogGlobal/index.vue.mjs +1 -1
- package/es/designer/src/packages/dialogGlobal/index.vue2.mjs +1035 -0
- package/es/designer/src/packages/form/property/subForm.vue.mjs +1 -1
- package/es/designer/src/packages/form/property/subTable.vue.mjs +1 -1
- package/es/designer/src/packages/form/property/widgets.vue.mjs +64 -34
- package/es/designer.css +26 -26
- package/es/packages/mobile/src/components/base/button/Button.vue.mjs +1 -1
- package/es/packages/vue/src/components/forms/form/Form.vue.mjs +50 -62
- package/es/packages/vue/src/components/layout/Layout.vue.mjs +7 -2
- package/lib/designer/package.json.js +1 -1
- package/lib/designer/src/components/TemplateSelector.vue.js +0 -115
- package/lib/designer/src/components/TemplateSelector.vue2.js +115 -0
- package/lib/designer/src/packages/dialog/index.vue.js +1 -1
- package/lib/designer/src/packages/dialog/index.vue2.js +988 -0
- package/lib/designer/src/packages/dialogGlobal/index.vue.js +1 -1
- package/lib/designer/src/packages/dialogGlobal/index.vue2.js +1035 -0
- package/lib/designer/src/packages/form/property/subForm.vue.js +1 -1
- package/lib/designer/src/packages/form/property/subTable.vue.js +1 -1
- package/lib/designer/src/packages/form/property/widgets.vue.js +81 -51
- package/lib/designer.css +26 -26
- package/lib/packages/mobile/src/components/base/button/Button.vue.js +1 -1
- package/lib/packages/vue/src/components/forms/form/Form.vue.js +50 -62
- package/lib/packages/vue/src/components/layout/Layout.vue.js +7 -2
- package/package.json +1 -1
|
@@ -1,116 +1 @@
|
|
|
1
|
-
|
|
2
|
-
/* empty css */
|
|
3
|
-
/* empty css */
|
|
4
|
-
/* empty css */
|
|
5
|
-
import { computed, ref, createElementBlock, openBlock, Fragment, createVNode, createSlots, withCtx, unref } from "vue";
|
|
6
|
-
import { Setting as setting_default, Edit as edit_default } from "../../../node_modules/@element-plus/icons-vue/dist/index.mjs";
|
|
7
|
-
import TemplateDialog from "./TemplateDialog.vue.mjs";
|
|
8
|
-
/* empty css */
|
|
9
|
-
/* empty css */
|
|
10
|
-
import "./TemplateSelector.vue2.mjs";
|
|
11
|
-
import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
12
|
-
import { ElInput } from "../../../node_modules/element-plus/es/components/input/index.mjs";
|
|
13
|
-
import { ElButton } from "../../../node_modules/element-plus/es/components/button/index.mjs";
|
|
14
|
-
import { ElMessage } from "../../../node_modules/element-plus/es/components/message/index.mjs";
|
|
15
|
-
const _sfc_main = {
|
|
16
|
-
__name: "TemplateSelector",
|
|
17
|
-
props: {
|
|
18
|
-
modelValue: {
|
|
19
|
-
type: String,
|
|
20
|
-
default: ""
|
|
21
|
-
},
|
|
22
|
-
templateKey: {
|
|
23
|
-
type: String,
|
|
24
|
-
default: ""
|
|
25
|
-
},
|
|
26
|
-
templateType: {
|
|
27
|
-
type: String,
|
|
28
|
-
default: ""
|
|
29
|
-
},
|
|
30
|
-
templateId: {
|
|
31
|
-
type: String,
|
|
32
|
-
default: ""
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
emits: [
|
|
36
|
-
"update:modelValue",
|
|
37
|
-
"update:templateKey",
|
|
38
|
-
"update:templateId",
|
|
39
|
-
"confirm"
|
|
40
|
-
],
|
|
41
|
-
setup(__props, { emit: __emit }) {
|
|
42
|
-
const props = __props;
|
|
43
|
-
const emit = __emit;
|
|
44
|
-
const modelValue = computed({
|
|
45
|
-
get: () => props.modelValue,
|
|
46
|
-
set: (val) => emit("update:modelValue", val)
|
|
47
|
-
});
|
|
48
|
-
const dialogVisible = ref(false);
|
|
49
|
-
function openDialog() {
|
|
50
|
-
dialogVisible.value = true;
|
|
51
|
-
}
|
|
52
|
-
function editTemplate() {
|
|
53
|
-
const pkId = props.templateId;
|
|
54
|
-
if (!pkId) {
|
|
55
|
-
ElMessage.warning("请先选择模板");
|
|
56
|
-
return;
|
|
57
|
-
}
|
|
58
|
-
const currentUrl = window.location.href;
|
|
59
|
-
const urlObj = new URL(currentUrl);
|
|
60
|
-
urlObj.searchParams.set("pkId", pkId);
|
|
61
|
-
const newUrl = urlObj.toString();
|
|
62
|
-
window.open(newUrl, "_blank");
|
|
63
|
-
}
|
|
64
|
-
function handleDialogConfirm({ row, context }) {
|
|
65
|
-
modelValue.value = row.templateName;
|
|
66
|
-
emit("update:templateKey", row.templateKey);
|
|
67
|
-
emit("update:templateId", row.pkId);
|
|
68
|
-
emit("confirm", context);
|
|
69
|
-
}
|
|
70
|
-
function handleDialogClose() {
|
|
71
|
-
}
|
|
72
|
-
return (_ctx, _cache) => {
|
|
73
|
-
const _component_el_button = ElButton;
|
|
74
|
-
const _component_el_input = ElInput;
|
|
75
|
-
return openBlock(), createElementBlock(Fragment, null, [
|
|
76
|
-
createVNode(_component_el_input, {
|
|
77
|
-
modelValue: modelValue.value,
|
|
78
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => modelValue.value = $event),
|
|
79
|
-
placeholder: __props.templateType == "table" ? "请选择列表" : "请选择表单",
|
|
80
|
-
readonly: ""
|
|
81
|
-
}, createSlots({
|
|
82
|
-
append: withCtx(() => [
|
|
83
|
-
createVNode(_component_el_button, {
|
|
84
|
-
icon: unref(setting_default),
|
|
85
|
-
onClick: openDialog
|
|
86
|
-
}, null, 8, ["icon"])
|
|
87
|
-
]),
|
|
88
|
-
_: 2
|
|
89
|
-
}, [
|
|
90
|
-
modelValue.value ? {
|
|
91
|
-
name: "prepend",
|
|
92
|
-
fn: withCtx(() => [
|
|
93
|
-
createVNode(_component_el_button, {
|
|
94
|
-
icon: unref(edit_default),
|
|
95
|
-
onClick: editTemplate
|
|
96
|
-
}, null, 8, ["icon"])
|
|
97
|
-
]),
|
|
98
|
-
key: "0"
|
|
99
|
-
} : void 0
|
|
100
|
-
]), 1032, ["modelValue", "placeholder"]),
|
|
101
|
-
createVNode(TemplateDialog, {
|
|
102
|
-
modelValue: dialogVisible.value,
|
|
103
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => dialogVisible.value = $event),
|
|
104
|
-
"template-type": __props.templateType,
|
|
105
|
-
title: __props.templateType == "table" ? "选择列表" : "选择表单",
|
|
106
|
-
onConfirm: handleDialogConfirm,
|
|
107
|
-
onClose: handleDialogClose
|
|
108
|
-
}, null, 8, ["modelValue", "template-type", "title"])
|
|
109
|
-
], 64);
|
|
110
|
-
};
|
|
111
|
-
}
|
|
112
|
-
};
|
|
113
|
-
const TemplateSelector = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-5026a7f4"]]);
|
|
114
|
-
export {
|
|
115
|
-
TemplateSelector as default
|
|
116
|
-
};
|
|
1
|
+
|
|
@@ -1 +1,116 @@
|
|
|
1
|
-
|
|
1
|
+
import "../../../node_modules/element-plus/es/index.mjs";
|
|
2
|
+
/* empty css */
|
|
3
|
+
/* empty css */
|
|
4
|
+
/* empty css */
|
|
5
|
+
import { computed, ref, createElementBlock, openBlock, Fragment, createVNode, createSlots, withCtx, unref } from "vue";
|
|
6
|
+
import { Setting as setting_default, Edit as edit_default } from "../../../node_modules/@element-plus/icons-vue/dist/index.mjs";
|
|
7
|
+
import TemplateDialog from "./TemplateDialog.vue.mjs";
|
|
8
|
+
/* empty css */
|
|
9
|
+
/* empty css */
|
|
10
|
+
import "./TemplateSelector.vue.mjs";
|
|
11
|
+
import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
12
|
+
import { ElInput } from "../../../node_modules/element-plus/es/components/input/index.mjs";
|
|
13
|
+
import { ElButton } from "../../../node_modules/element-plus/es/components/button/index.mjs";
|
|
14
|
+
import { ElMessage } from "../../../node_modules/element-plus/es/components/message/index.mjs";
|
|
15
|
+
const _sfc_main = {
|
|
16
|
+
__name: "TemplateSelector",
|
|
17
|
+
props: {
|
|
18
|
+
modelValue: {
|
|
19
|
+
type: String,
|
|
20
|
+
default: ""
|
|
21
|
+
},
|
|
22
|
+
templateKey: {
|
|
23
|
+
type: String,
|
|
24
|
+
default: ""
|
|
25
|
+
},
|
|
26
|
+
templateType: {
|
|
27
|
+
type: String,
|
|
28
|
+
default: ""
|
|
29
|
+
},
|
|
30
|
+
templateId: {
|
|
31
|
+
type: String,
|
|
32
|
+
default: ""
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
emits: [
|
|
36
|
+
"update:modelValue",
|
|
37
|
+
"update:templateKey",
|
|
38
|
+
"update:templateId",
|
|
39
|
+
"confirm"
|
|
40
|
+
],
|
|
41
|
+
setup(__props, { emit: __emit }) {
|
|
42
|
+
const props = __props;
|
|
43
|
+
const emit = __emit;
|
|
44
|
+
const modelValue = computed({
|
|
45
|
+
get: () => props.modelValue,
|
|
46
|
+
set: (val) => emit("update:modelValue", val)
|
|
47
|
+
});
|
|
48
|
+
const dialogVisible = ref(false);
|
|
49
|
+
function openDialog() {
|
|
50
|
+
dialogVisible.value = true;
|
|
51
|
+
}
|
|
52
|
+
function editTemplate() {
|
|
53
|
+
const pkId = props.templateId;
|
|
54
|
+
if (!pkId) {
|
|
55
|
+
ElMessage.warning("请先选择模板");
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
const currentUrl = window.location.href;
|
|
59
|
+
const urlObj = new URL(currentUrl);
|
|
60
|
+
urlObj.searchParams.set("pkId", pkId);
|
|
61
|
+
const newUrl = urlObj.toString();
|
|
62
|
+
window.open(newUrl, "_blank");
|
|
63
|
+
}
|
|
64
|
+
function handleDialogConfirm({ row, context }) {
|
|
65
|
+
modelValue.value = row.templateName;
|
|
66
|
+
emit("update:templateKey", row.templateKey);
|
|
67
|
+
emit("update:templateId", row.pkId);
|
|
68
|
+
emit("confirm", context);
|
|
69
|
+
}
|
|
70
|
+
function handleDialogClose() {
|
|
71
|
+
}
|
|
72
|
+
return (_ctx, _cache) => {
|
|
73
|
+
const _component_el_button = ElButton;
|
|
74
|
+
const _component_el_input = ElInput;
|
|
75
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
76
|
+
createVNode(_component_el_input, {
|
|
77
|
+
modelValue: modelValue.value,
|
|
78
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => modelValue.value = $event),
|
|
79
|
+
placeholder: __props.templateType == "table" ? "请选择列表" : "请选择表单",
|
|
80
|
+
readonly: ""
|
|
81
|
+
}, createSlots({
|
|
82
|
+
append: withCtx(() => [
|
|
83
|
+
createVNode(_component_el_button, {
|
|
84
|
+
icon: unref(setting_default),
|
|
85
|
+
onClick: openDialog
|
|
86
|
+
}, null, 8, ["icon"])
|
|
87
|
+
]),
|
|
88
|
+
_: 2
|
|
89
|
+
}, [
|
|
90
|
+
modelValue.value ? {
|
|
91
|
+
name: "prepend",
|
|
92
|
+
fn: withCtx(() => [
|
|
93
|
+
createVNode(_component_el_button, {
|
|
94
|
+
icon: unref(edit_default),
|
|
95
|
+
onClick: editTemplate
|
|
96
|
+
}, null, 8, ["icon"])
|
|
97
|
+
]),
|
|
98
|
+
key: "0"
|
|
99
|
+
} : void 0
|
|
100
|
+
]), 1032, ["modelValue", "placeholder"]),
|
|
101
|
+
createVNode(TemplateDialog, {
|
|
102
|
+
modelValue: dialogVisible.value,
|
|
103
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => dialogVisible.value = $event),
|
|
104
|
+
"template-type": __props.templateType,
|
|
105
|
+
title: __props.templateType == "table" ? "选择列表" : "选择表单",
|
|
106
|
+
onConfirm: handleDialogConfirm,
|
|
107
|
+
onClose: handleDialogClose
|
|
108
|
+
}, null, 8, ["modelValue", "template-type", "title"])
|
|
109
|
+
], 64);
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
};
|
|
113
|
+
const TemplateSelector = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-5026a7f4"]]);
|
|
114
|
+
export {
|
|
115
|
+
TemplateSelector as default
|
|
116
|
+
};
|
|
@@ -28,7 +28,7 @@ import { computed, useModel, ref, watch, createBlock, openBlock, withCtx, create
|
|
|
28
28
|
import { VueDraggable as lo } from "../../../../node_modules/vue-draggable-plus/dist/vue-draggable-plus.mjs";
|
|
29
29
|
import { Plus as plus_default, Close as close_default, Check as check_default, Delete as delete_default, Rank as rank_default, Edit as edit_default } from "../../../../node_modules/@element-plus/icons-vue/dist/index.mjs";
|
|
30
30
|
import { getEditConfigData, cloneDeep, getEditConfigDialogs, setEditConfigDialogs } from "../utils/common.mjs";
|
|
31
|
-
import TemplateSelector from "../../components/TemplateSelector.
|
|
31
|
+
import TemplateSelector from "../../components/TemplateSelector.vue2.mjs";
|
|
32
32
|
import api from "../../api/index.mjs";
|
|
33
33
|
import ParamsConfig from "../../components/ParamsConfig.vue2.mjs";
|
|
34
34
|
import _sfc_main$1 from "../../components/DataSourceSelect.vue.mjs";
|