@fecp/designer 5.4.19 → 5.4.20
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/DialogSelect.vue.mjs +122 -0
- package/es/designer/src/packages/dialog/index.vue.mjs +58 -41
- package/es/designer/src/packages/dialogGlobal/index.vue.mjs +61 -42
- package/es/designer/src/packages/event/pageEvent.vue.mjs +18 -3
- package/es/designer/src/packages/eventFlow/dialog/action/Dialog.vue.mjs +9 -29
- package/es/designer/src/packages/form/aside/index.mjs +1 -0
- package/es/designer/src/packages/form/property/subForm.vue.mjs +12 -14
- package/es/designer/src/packages/form/property/widgets.vue.mjs +27 -25
- package/es/designer/src/packages/table/headerBtn.vue.mjs +2 -2
- package/es/designer.css +964 -961
- package/es/packages/mobile/src/components/base/card/Card.vue.mjs +2 -2
- package/es/packages/vue/src/components/dialog/DialogRenderer.vue2.mjs +34 -23
- package/es/packages/vue/src/components/forms/subForm/SubForm.vue.mjs +25 -2
- package/lib/designer/package.json.js +1 -1
- package/lib/designer/src/components/DialogSelect.vue.js +122 -0
- package/lib/designer/src/packages/dialog/index.vue.js +58 -41
- package/lib/designer/src/packages/dialogGlobal/index.vue.js +61 -42
- package/lib/designer/src/packages/event/pageEvent.vue.js +26 -11
- package/lib/designer/src/packages/eventFlow/dialog/action/Dialog.vue.js +11 -31
- package/lib/designer/src/packages/form/aside/index.js +1 -0
- package/lib/designer/src/packages/form/property/subForm.vue.js +12 -14
- package/lib/designer/src/packages/form/property/widgets.vue.js +22 -20
- package/lib/designer/src/packages/table/headerBtn.vue.js +2 -2
- package/lib/designer.css +964 -961
- package/lib/packages/mobile/src/components/base/card/Card.vue.js +2 -2
- package/lib/packages/vue/src/components/dialog/DialogRenderer.vue2.js +33 -22
- package/lib/packages/vue/src/components/forms/subForm/SubForm.vue.js +25 -2
- package/package.json +1 -1
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
/* empty css */
|
|
7
7
|
/* empty css */
|
|
8
8
|
import { createBlock, openBlock, withCtx, createVNode, renderSlot } from "vue";
|
|
9
|
-
/* empty css */
|
|
10
|
-
import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
11
9
|
/* empty css */
|
|
12
10
|
/* empty css */
|
|
13
11
|
/* empty css */
|
|
14
12
|
/* empty css */
|
|
15
13
|
/* empty css */
|
|
14
|
+
/* empty css */
|
|
15
|
+
import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
16
16
|
import { SwipeCell } from "../../../../../../node_modules/vant/es/swipe-cell/index.mjs";
|
|
17
17
|
import { showConfirmDialog } from "../../../../../../node_modules/vant/es/dialog/function-call.mjs";
|
|
18
18
|
import "../../../../../../node_modules/vant/es/dialog/index.mjs";
|
|
@@ -3,7 +3,7 @@ import "../../../../../node_modules/element-plus/es/index.mjs";
|
|
|
3
3
|
/* empty css */
|
|
4
4
|
/* empty css */
|
|
5
5
|
/* empty css */
|
|
6
|
-
import { ref, computed, watch, createBlock, openBlock, withCtx, createElementVNode, normalizeStyle, normalizeClass, createElementBlock, Fragment, createCommentVNode, unref,
|
|
6
|
+
import { ref, computed, watch, createBlock, openBlock, resolveDynamicComponent, mergeProps, withCtx, createElementVNode, normalizeStyle, normalizeClass, createElementBlock, Fragment, createCommentVNode, unref, normalizeProps, toDisplayString, createVNode, createTextVNode, renderList } from "vue";
|
|
7
7
|
import { Table } from "../table/index.mjs";
|
|
8
8
|
import { Form } from "../forms/form/index.mjs";
|
|
9
9
|
import { parseRouteParams } from "../../utils/parseRouteParams.mjs";
|
|
@@ -125,6 +125,9 @@ const _sfc_main = {
|
|
|
125
125
|
},
|
|
126
126
|
(val) => {
|
|
127
127
|
dialogVisible.value = val;
|
|
128
|
+
if (val) {
|
|
129
|
+
loadComponentByPath(currentDialogConfig.value.componentPath);
|
|
130
|
+
}
|
|
128
131
|
},
|
|
129
132
|
{
|
|
130
133
|
immediate: true
|
|
@@ -133,19 +136,27 @@ const _sfc_main = {
|
|
|
133
136
|
watch(dialogVisible, (val) => {
|
|
134
137
|
emit("update:modelValue", val);
|
|
135
138
|
});
|
|
136
|
-
const
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
139
|
+
const componentParams = computed(() => {
|
|
140
|
+
var _a;
|
|
141
|
+
const params = parseRouteParams(
|
|
142
|
+
((_a = currentDialogConfig.value) == null ? void 0 : _a.componentParams) || [],
|
|
143
|
+
props.formData,
|
|
144
|
+
props.fieldsList
|
|
145
|
+
);
|
|
146
|
+
return params;
|
|
147
|
+
});
|
|
148
|
+
const currentComponent = ref(null);
|
|
149
|
+
const loadComponentByPath = (path) => {
|
|
150
|
+
const route = ctx.$router.getRoutes().find((item) => item.path === path);
|
|
151
|
+
if (!route) return;
|
|
152
|
+
const comp = route.components.default;
|
|
153
|
+
if (!comp) return;
|
|
154
|
+
if (typeof comp === "function") {
|
|
155
|
+
comp().then((module) => {
|
|
156
|
+
currentComponent.value = module.default;
|
|
157
|
+
});
|
|
158
|
+
} else {
|
|
159
|
+
currentComponent.value = comp;
|
|
149
160
|
}
|
|
150
161
|
};
|
|
151
162
|
const handleSubmit = (data) => {
|
|
@@ -316,7 +327,12 @@ const _sfc_main = {
|
|
|
316
327
|
return (_ctx, _cache) => {
|
|
317
328
|
const _component_el_button = ElButton;
|
|
318
329
|
const _component_el_dialog = ElDialog;
|
|
319
|
-
return openBlock(), createBlock(
|
|
330
|
+
return __props.dialogConfig.componentIsDialog ? (openBlock(), createBlock(resolveDynamicComponent(currentComponent.value), mergeProps({ key: 0 }, componentParams.value, {
|
|
331
|
+
formData: __props.formData,
|
|
332
|
+
onClose: handleClose,
|
|
333
|
+
onSubmit: handleSubmit
|
|
334
|
+
}), null, 16, ["formData"])) : (openBlock(), createBlock(_component_el_dialog, {
|
|
335
|
+
key: 1,
|
|
320
336
|
modelValue: dialogVisible.value,
|
|
321
337
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => dialogVisible.value = $event),
|
|
322
338
|
width: dialogWidth.value,
|
|
@@ -411,22 +427,17 @@ const _sfc_main = {
|
|
|
411
427
|
ref_key: "dialogFormRef",
|
|
412
428
|
ref: dialogFormRef
|
|
413
429
|
}, null, 8, ["templateKey", "modelValue", "initFormMode"])) : ((_d = __props.dialogConfig) == null ? void 0 : _d.contentSource) === "component" ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
414
|
-
|
|
415
|
-
key: 0,
|
|
416
|
-
"dialog-params": __props.dialogConfig.dialogParams,
|
|
417
|
-
onClose: handleClose,
|
|
418
|
-
onSubmit: handleSubmit
|
|
419
|
-
}, null, 40, ["dialog-params"])) : (openBlock(), createElementBlock("div", _hoisted_2, " 组件加载失败,请检查组件路径: " + toDisplayString((_e = __props.dialogConfig) == null ? void 0 : _e.componentPath), 1))
|
|
430
|
+
currentComponent.value ? (openBlock(), createBlock(resolveDynamicComponent(currentComponent.value), normalizeProps(mergeProps({ key: 0 }, componentParams.value)), null, 16)) : (openBlock(), createElementBlock("div", _hoisted_2, " 组件加载失败,请检查组件路径: " + toDisplayString((_e = __props.dialogConfig) == null ? void 0 : _e.componentPath), 1))
|
|
420
431
|
], 64)) : (openBlock(), createElementBlock("div", _hoisted_3, "请配置弹层内容"))
|
|
421
432
|
], 6)
|
|
422
433
|
];
|
|
423
434
|
}),
|
|
424
435
|
_: 1
|
|
425
|
-
}, 8, ["modelValue", "width"]);
|
|
436
|
+
}, 8, ["modelValue", "width"]));
|
|
426
437
|
};
|
|
427
438
|
}
|
|
428
439
|
};
|
|
429
|
-
const DialogRenderer = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
440
|
+
const DialogRenderer = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-6b46adf3"]]);
|
|
430
441
|
export {
|
|
431
442
|
DialogRenderer as default
|
|
432
443
|
};
|
|
@@ -3,6 +3,7 @@ import { Form } from "../form/index.mjs";
|
|
|
3
3
|
import { SubTitle } from "../subTitle/index.mjs";
|
|
4
4
|
import { H2 } from "../h2/index.mjs";
|
|
5
5
|
import { cloneDeep } from "../../../utils/common.mjs";
|
|
6
|
+
import { parseRouteParams } from "../../../utils/parseRouteParams.mjs";
|
|
6
7
|
const _hoisted_1 = {
|
|
7
8
|
key: 0,
|
|
8
9
|
style: { "height": "60px", "position": "relative" }
|
|
@@ -53,11 +54,33 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
53
54
|
const setFormItemHeight = inject("setFormItemHeight");
|
|
54
55
|
const subFormData = computed({
|
|
55
56
|
get: () => {
|
|
57
|
+
if (props.config.dataSourceFrom == "self") {
|
|
58
|
+
return cloneDeep(subFormParams.value);
|
|
59
|
+
}
|
|
56
60
|
return cloneDeep(formData.value);
|
|
57
61
|
},
|
|
58
62
|
set: (val) => {
|
|
59
|
-
|
|
63
|
+
if (props.config.dataSourceFrom != "self") {
|
|
64
|
+
formData.value = { ...formData.value, ...val };
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
const fieldList = computed(() => {
|
|
69
|
+
return [
|
|
70
|
+
...props.localConfig.fieldsData.map((item) => item.component),
|
|
71
|
+
...props.localConfig.hiddenFields
|
|
72
|
+
];
|
|
73
|
+
});
|
|
74
|
+
const subFormParams = computed(() => {
|
|
75
|
+
if (props.config.dataSourceFrom == "self") {
|
|
76
|
+
const params = parseRouteParams(
|
|
77
|
+
props.config.subFormParams,
|
|
78
|
+
formData.value,
|
|
79
|
+
fieldList.value
|
|
80
|
+
);
|
|
81
|
+
return params;
|
|
60
82
|
}
|
|
83
|
+
return {};
|
|
61
84
|
});
|
|
62
85
|
const templateKey = computed(() => {
|
|
63
86
|
if (props.config.formSource == "dynamic") {
|
|
@@ -126,7 +149,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
126
149
|
templateKey: unref(templateKey),
|
|
127
150
|
isSubForm: "",
|
|
128
151
|
onLayoutUpdated: subFormLoaded,
|
|
129
|
-
canPageEvent: __props.config.
|
|
152
|
+
canPageEvent: __props.config.dataSourceFrom == "self",
|
|
130
153
|
initFormMode: __props.formMode,
|
|
131
154
|
modelValue: unref(subFormData),
|
|
132
155
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(subFormData) ? subFormData.value = $event : null)
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
require("../../../node_modules/element-plus/es/index.js");
|
|
4
|
+
;/* empty css */
|
|
5
|
+
;/* empty css */
|
|
6
|
+
;/* empty css */
|
|
7
|
+
;/* empty css */
|
|
8
|
+
;/* empty css */
|
|
9
|
+
;/* empty css */
|
|
10
|
+
;/* empty css */
|
|
11
|
+
;/* empty css */
|
|
12
|
+
const vue = require("vue");
|
|
13
|
+
const index$2 = require("../../../node_modules/@element-plus/icons-vue/dist/index.js");
|
|
14
|
+
require("../store/index.js");
|
|
15
|
+
const useDialogDialog = require("../packages/dialog/useDialogDialog.js");
|
|
16
|
+
const useDialogGlobalDialog = require("../packages/dialogGlobal/useDialogGlobalDialog.js");
|
|
17
|
+
const index = require("../../../node_modules/element-plus/es/components/select/index.js");
|
|
18
|
+
const index$1 = require("../../../node_modules/element-plus/es/components/button/index.js");
|
|
19
|
+
const _sfc_main = {
|
|
20
|
+
__name: "DialogSelect",
|
|
21
|
+
props: {
|
|
22
|
+
modelValue: {
|
|
23
|
+
type: [String, Number],
|
|
24
|
+
default: ""
|
|
25
|
+
},
|
|
26
|
+
loading: {
|
|
27
|
+
type: Boolean,
|
|
28
|
+
default: false
|
|
29
|
+
},
|
|
30
|
+
size: {
|
|
31
|
+
type: String,
|
|
32
|
+
default: "default"
|
|
33
|
+
},
|
|
34
|
+
dialogOptions: {
|
|
35
|
+
type: Array,
|
|
36
|
+
default: []
|
|
37
|
+
},
|
|
38
|
+
isGlobal: {
|
|
39
|
+
type: Boolean,
|
|
40
|
+
default: false
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
emits: ["update:modelValue", "change"],
|
|
44
|
+
setup(__props, { emit: __emit }) {
|
|
45
|
+
const props = __props;
|
|
46
|
+
const emit = __emit;
|
|
47
|
+
const modelValue = vue.computed({
|
|
48
|
+
get: () => props.modelValue,
|
|
49
|
+
set: (val) => emit("update:modelValue", val)
|
|
50
|
+
});
|
|
51
|
+
function handleDialogChange(dialogId) {
|
|
52
|
+
emit("change", dialogId);
|
|
53
|
+
}
|
|
54
|
+
const { dialogDialogVisible, openDialogDialog, DialogDialog } = useDialogDialog.useDialogDialog();
|
|
55
|
+
const {
|
|
56
|
+
dialogGlobalDialogVisible,
|
|
57
|
+
openDialogGlobalDialog,
|
|
58
|
+
DialogGlobalDialog
|
|
59
|
+
} = useDialogGlobalDialog.useDialogGlobalDialog();
|
|
60
|
+
function handleAddDialog() {
|
|
61
|
+
if (props.isGlobal) {
|
|
62
|
+
openDialogGlobalDialog();
|
|
63
|
+
} else {
|
|
64
|
+
openDialogDialog();
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
return (_ctx, _cache) => {
|
|
68
|
+
const _component_el_option = index.ElOption;
|
|
69
|
+
const _component_el_button = index$1.ElButton;
|
|
70
|
+
const _component_el_select = index.ElSelect;
|
|
71
|
+
return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
|
|
72
|
+
vue.createVNode(_component_el_select, {
|
|
73
|
+
ref: "selectRef",
|
|
74
|
+
modelValue: vue.unref(modelValue),
|
|
75
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(modelValue) ? modelValue.value = $event : null),
|
|
76
|
+
placeholder: "请选择弹层",
|
|
77
|
+
filterable: "",
|
|
78
|
+
style: { "width": "100%" },
|
|
79
|
+
teleported: false,
|
|
80
|
+
loading: __props.loading,
|
|
81
|
+
size: __props.size,
|
|
82
|
+
clearable: "",
|
|
83
|
+
onChange: handleDialogChange
|
|
84
|
+
}, {
|
|
85
|
+
footer: vue.withCtx(() => [
|
|
86
|
+
vue.createVNode(_component_el_button, {
|
|
87
|
+
type: "primary",
|
|
88
|
+
size: "small",
|
|
89
|
+
icon: vue.unref(index$2.Plus),
|
|
90
|
+
link: "",
|
|
91
|
+
onClick: handleAddDialog
|
|
92
|
+
}, {
|
|
93
|
+
default: vue.withCtx(() => _cache[3] || (_cache[3] = [
|
|
94
|
+
vue.createTextVNode(" 新增弹层 ")
|
|
95
|
+
])),
|
|
96
|
+
_: 1
|
|
97
|
+
}, 8, ["icon"])
|
|
98
|
+
]),
|
|
99
|
+
default: vue.withCtx(() => [
|
|
100
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.dialogOptions, (dialog) => {
|
|
101
|
+
return vue.openBlock(), vue.createBlock(_component_el_option, {
|
|
102
|
+
key: dialog.id,
|
|
103
|
+
label: dialog.name,
|
|
104
|
+
value: dialog.id
|
|
105
|
+
}, null, 8, ["label", "value"]);
|
|
106
|
+
}), 128))
|
|
107
|
+
]),
|
|
108
|
+
_: 1
|
|
109
|
+
}, 8, ["modelValue", "loading", "size"]),
|
|
110
|
+
vue.createVNode(vue.unref(DialogDialog), {
|
|
111
|
+
modelValue: vue.unref(dialogDialogVisible),
|
|
112
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => vue.isRef(dialogDialogVisible) ? dialogDialogVisible.value = $event : null)
|
|
113
|
+
}, null, 8, ["modelValue"]),
|
|
114
|
+
vue.createVNode(vue.unref(DialogGlobalDialog), {
|
|
115
|
+
modelValue: vue.unref(dialogGlobalDialogVisible),
|
|
116
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => vue.isRef(dialogGlobalDialogVisible) ? dialogGlobalDialogVisible.value = $event : null)
|
|
117
|
+
}, null, 8, ["modelValue"])
|
|
118
|
+
], 64);
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
};
|
|
122
|
+
exports.default = _sfc_main;
|
|
@@ -140,9 +140,9 @@ const _sfc_main = {
|
|
|
140
140
|
componentPath: "",
|
|
141
141
|
fieldMapping: [],
|
|
142
142
|
subFormMode: "edit",
|
|
143
|
-
subFormFooterButtons: []
|
|
143
|
+
subFormFooterButtons: [],
|
|
144
144
|
// 表单底部按钮
|
|
145
|
-
|
|
145
|
+
componentParams: []
|
|
146
146
|
});
|
|
147
147
|
isEditingNew.value = false;
|
|
148
148
|
newDialogName.value = "";
|
|
@@ -292,9 +292,9 @@ const _sfc_main = {
|
|
|
292
292
|
const _component_el_dialog = index$1.ElDialog;
|
|
293
293
|
return vue.openBlock(), vue.createBlock(_component_el_dialog, {
|
|
294
294
|
modelValue: dialogVisible.value,
|
|
295
|
-
"onUpdate:modelValue": _cache[
|
|
295
|
+
"onUpdate:modelValue": _cache[31] || (_cache[31] = ($event) => dialogVisible.value = $event),
|
|
296
296
|
width: "50%",
|
|
297
|
-
title: "
|
|
297
|
+
title: "页面弹层配置",
|
|
298
298
|
draggable: "",
|
|
299
299
|
overflow: "",
|
|
300
300
|
"append-to-body": "",
|
|
@@ -303,9 +303,9 @@ const _sfc_main = {
|
|
|
303
303
|
footer: vue.withCtx(() => [
|
|
304
304
|
vue.createElementVNode("div", _hoisted_19, [
|
|
305
305
|
vue.createVNode(_component_el_button, {
|
|
306
|
-
onClick: _cache[
|
|
306
|
+
onClick: _cache[30] || (_cache[30] = ($event) => dialogVisible.value = false)
|
|
307
307
|
}, {
|
|
308
|
-
default: vue.withCtx(() => _cache[
|
|
308
|
+
default: vue.withCtx(() => _cache[51] || (_cache[51] = [
|
|
309
309
|
vue.createTextVNode("取消")
|
|
310
310
|
])),
|
|
311
311
|
_: 1
|
|
@@ -314,7 +314,7 @@ const _sfc_main = {
|
|
|
314
314
|
type: "primary",
|
|
315
315
|
onClick: onConfirm
|
|
316
316
|
}, {
|
|
317
|
-
default: vue.withCtx(() => _cache[
|
|
317
|
+
default: vue.withCtx(() => _cache[52] || (_cache[52] = [
|
|
318
318
|
vue.createTextVNode("确定")
|
|
319
319
|
])),
|
|
320
320
|
_: 1
|
|
@@ -339,7 +339,7 @@ const _sfc_main = {
|
|
|
339
339
|
icon: vue.unref(index$4.Plus),
|
|
340
340
|
onClick: startAddDialog
|
|
341
341
|
}, {
|
|
342
|
-
default: vue.withCtx(() => _cache[
|
|
342
|
+
default: vue.withCtx(() => _cache[32] || (_cache[32] = [
|
|
343
343
|
vue.createTextVNode(" 新增弹层 ")
|
|
344
344
|
])),
|
|
345
345
|
_: 1
|
|
@@ -366,7 +366,7 @@ const _sfc_main = {
|
|
|
366
366
|
icon: vue.unref(index$4.Close),
|
|
367
367
|
onClick: cancelAddDialog
|
|
368
368
|
}, {
|
|
369
|
-
default: vue.withCtx(() => _cache[
|
|
369
|
+
default: vue.withCtx(() => _cache[33] || (_cache[33] = [
|
|
370
370
|
vue.createTextVNode(" 取消 ")
|
|
371
371
|
])),
|
|
372
372
|
_: 1
|
|
@@ -377,7 +377,7 @@ const _sfc_main = {
|
|
|
377
377
|
icon: vue.unref(index$4.Check),
|
|
378
378
|
onClick: confirmAddDialog
|
|
379
379
|
}, {
|
|
380
|
-
default: vue.withCtx(() => _cache[
|
|
380
|
+
default: vue.withCtx(() => _cache[34] || (_cache[34] = [
|
|
381
381
|
vue.createTextVNode(" 确认 ")
|
|
382
382
|
])),
|
|
383
383
|
_: 1
|
|
@@ -485,25 +485,25 @@ const _sfc_main = {
|
|
|
485
485
|
}, {
|
|
486
486
|
default: vue.withCtx(() => [
|
|
487
487
|
vue.createVNode(_component_el_radio_button, { value: "standard" }, {
|
|
488
|
-
default: vue.withCtx(() => _cache[
|
|
488
|
+
default: vue.withCtx(() => _cache[35] || (_cache[35] = [
|
|
489
489
|
vue.createTextVNode("标准")
|
|
490
490
|
])),
|
|
491
491
|
_: 1
|
|
492
492
|
}),
|
|
493
493
|
vue.createVNode(_component_el_radio_button, { value: "large" }, {
|
|
494
|
-
default: vue.withCtx(() => _cache[
|
|
494
|
+
default: vue.withCtx(() => _cache[36] || (_cache[36] = [
|
|
495
495
|
vue.createTextVNode("更大")
|
|
496
496
|
])),
|
|
497
497
|
_: 1
|
|
498
498
|
}),
|
|
499
499
|
vue.createVNode(_component_el_radio_button, { value: "small" }, {
|
|
500
|
-
default: vue.withCtx(() => _cache[
|
|
500
|
+
default: vue.withCtx(() => _cache[37] || (_cache[37] = [
|
|
501
501
|
vue.createTextVNode("更小")
|
|
502
502
|
])),
|
|
503
503
|
_: 1
|
|
504
504
|
}),
|
|
505
505
|
vue.createVNode(_component_el_radio_button, { value: "custom" }, {
|
|
506
|
-
default: vue.withCtx(() => _cache[
|
|
506
|
+
default: vue.withCtx(() => _cache[38] || (_cache[38] = [
|
|
507
507
|
vue.createTextVNode("自定义")
|
|
508
508
|
])),
|
|
509
509
|
_: 1
|
|
@@ -553,25 +553,25 @@ const _sfc_main = {
|
|
|
553
553
|
}, {
|
|
554
554
|
default: vue.withCtx(() => [
|
|
555
555
|
vue.createVNode(_component_el_radio_button, { value: "table" }, {
|
|
556
|
-
default: vue.withCtx(() => _cache[
|
|
556
|
+
default: vue.withCtx(() => _cache[39] || (_cache[39] = [
|
|
557
557
|
vue.createTextVNode("列表")
|
|
558
558
|
])),
|
|
559
559
|
_: 1
|
|
560
560
|
}),
|
|
561
561
|
vue.createVNode(_component_el_radio_button, { value: "form" }, {
|
|
562
|
-
default: vue.withCtx(() => _cache[
|
|
562
|
+
default: vue.withCtx(() => _cache[40] || (_cache[40] = [
|
|
563
563
|
vue.createTextVNode("表单")
|
|
564
564
|
])),
|
|
565
565
|
_: 1
|
|
566
566
|
}),
|
|
567
567
|
vue.createVNode(_component_el_radio_button, { value: "tree" }, {
|
|
568
|
-
default: vue.withCtx(() => _cache[
|
|
568
|
+
default: vue.withCtx(() => _cache[41] || (_cache[41] = [
|
|
569
569
|
vue.createTextVNode("树形")
|
|
570
570
|
])),
|
|
571
571
|
_: 1
|
|
572
572
|
}),
|
|
573
573
|
vue.createVNode(_component_el_radio_button, { value: "component" }, {
|
|
574
|
-
default: vue.withCtx(() => _cache[
|
|
574
|
+
default: vue.withCtx(() => _cache[42] || (_cache[42] = [
|
|
575
575
|
vue.createTextVNode("组件")
|
|
576
576
|
])),
|
|
577
577
|
_: 1
|
|
@@ -591,13 +591,13 @@ const _sfc_main = {
|
|
|
591
591
|
}, {
|
|
592
592
|
default: vue.withCtx(() => [
|
|
593
593
|
vue.createVNode(_component_el_radio_button, { value: "select" }, {
|
|
594
|
-
default: vue.withCtx(() => _cache[
|
|
594
|
+
default: vue.withCtx(() => _cache[43] || (_cache[43] = [
|
|
595
595
|
vue.createTextVNode("选择列表")
|
|
596
596
|
])),
|
|
597
597
|
_: 1
|
|
598
598
|
}),
|
|
599
599
|
vue.createVNode(_component_el_radio_button, { value: "custom" }, {
|
|
600
|
-
default: vue.withCtx(() => _cache[
|
|
600
|
+
default: vue.withCtx(() => _cache[44] || (_cache[44] = [
|
|
601
601
|
vue.createTextVNode("自定义")
|
|
602
602
|
])),
|
|
603
603
|
_: 1
|
|
@@ -658,7 +658,7 @@ const _sfc_main = {
|
|
|
658
658
|
icon: "Plus",
|
|
659
659
|
link: ""
|
|
660
660
|
}, {
|
|
661
|
-
default: vue.withCtx(() => _cache[
|
|
661
|
+
default: vue.withCtx(() => _cache[45] || (_cache[45] = [
|
|
662
662
|
vue.createTextVNode(" 添加列配置 ")
|
|
663
663
|
])),
|
|
664
664
|
_: 1
|
|
@@ -792,19 +792,19 @@ const _sfc_main = {
|
|
|
792
792
|
}, {
|
|
793
793
|
default: vue.withCtx(() => [
|
|
794
794
|
vue.createVNode(_component_el_radio_button, { value: "none" }, {
|
|
795
|
-
default: vue.withCtx(() => _cache[
|
|
795
|
+
default: vue.withCtx(() => _cache[46] || (_cache[46] = [
|
|
796
796
|
vue.createTextVNode("无")
|
|
797
797
|
])),
|
|
798
798
|
_: 1
|
|
799
799
|
}),
|
|
800
800
|
vue.createVNode(_component_el_radio_button, { value: "single" }, {
|
|
801
|
-
default: vue.withCtx(() => _cache[
|
|
801
|
+
default: vue.withCtx(() => _cache[47] || (_cache[47] = [
|
|
802
802
|
vue.createTextVNode("单选")
|
|
803
803
|
])),
|
|
804
804
|
_: 1
|
|
805
805
|
}),
|
|
806
806
|
vue.createVNode(_component_el_radio_button, { value: "multiple" }, {
|
|
807
|
-
default: vue.withCtx(() => _cache[
|
|
807
|
+
default: vue.withCtx(() => _cache[48] || (_cache[48] = [
|
|
808
808
|
vue.createTextVNode("多选")
|
|
809
809
|
])),
|
|
810
810
|
_: 1
|
|
@@ -890,13 +890,13 @@ const _sfc_main = {
|
|
|
890
890
|
}, {
|
|
891
891
|
default: vue.withCtx(() => [
|
|
892
892
|
vue.createVNode(_component_el_radio_button, { value: "edit" }, {
|
|
893
|
-
default: vue.withCtx(() => _cache[
|
|
893
|
+
default: vue.withCtx(() => _cache[49] || (_cache[49] = [
|
|
894
894
|
vue.createTextVNode("编辑")
|
|
895
895
|
])),
|
|
896
896
|
_: 1
|
|
897
897
|
}),
|
|
898
898
|
vue.createVNode(_component_el_radio_button, { value: "query" }, {
|
|
899
|
-
default: vue.withCtx(() => _cache[
|
|
899
|
+
default: vue.withCtx(() => _cache[50] || (_cache[50] = [
|
|
900
900
|
vue.createTextVNode("查看")
|
|
901
901
|
])),
|
|
902
902
|
_: 1
|
|
@@ -929,20 +929,37 @@ const _sfc_main = {
|
|
|
929
929
|
_: 1
|
|
930
930
|
})
|
|
931
931
|
], 64)) : vue.createCommentVNode("", true),
|
|
932
|
-
vue.unref(currentDialog).contentSource === "component" ? (vue.openBlock(), vue.
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
932
|
+
vue.unref(currentDialog).contentSource === "component" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 3 }, [
|
|
933
|
+
vue.createVNode(_component_el_form_item, { label: "组件路由地址" }, {
|
|
934
|
+
default: vue.withCtx(() => [
|
|
935
|
+
vue.createVNode(_component_el_input, {
|
|
936
|
+
modelValue: vue.unref(currentDialog).componentPath,
|
|
937
|
+
"onUpdate:modelValue": _cache[27] || (_cache[27] = ($event) => vue.unref(currentDialog).componentPath = $event),
|
|
938
|
+
placeholder: "请输入组件路径",
|
|
939
|
+
clearable: ""
|
|
940
|
+
}, null, 8, ["modelValue"])
|
|
941
|
+
]),
|
|
942
|
+
_: 1
|
|
943
|
+
}),
|
|
944
|
+
vue.createVNode(_component_el_form_item, { label: "组件参数" }, {
|
|
945
|
+
default: vue.withCtx(() => [
|
|
946
|
+
vue.createVNode(ParamsConfig.default, {
|
|
947
|
+
modelValue: vue.unref(currentDialog).componentParams,
|
|
948
|
+
"onUpdate:modelValue": _cache[28] || (_cache[28] = ($event) => vue.unref(currentDialog).componentParams = $event)
|
|
949
|
+
}, null, 8, ["modelValue"])
|
|
950
|
+
]),
|
|
951
|
+
_: 1
|
|
952
|
+
}),
|
|
953
|
+
vue.createVNode(_component_el_form_item, { label: "组件是否是弹层" }, {
|
|
954
|
+
default: vue.withCtx(() => [
|
|
955
|
+
vue.createVNode(_component_el_switch, {
|
|
956
|
+
modelValue: vue.unref(currentDialog).componentIsDialog,
|
|
957
|
+
"onUpdate:modelValue": _cache[29] || (_cache[29] = ($event) => vue.unref(currentDialog).componentIsDialog = $event)
|
|
958
|
+
}, null, 8, ["modelValue"])
|
|
959
|
+
]),
|
|
960
|
+
_: 1
|
|
961
|
+
})
|
|
962
|
+
], 64)) : vue.createCommentVNode("", true)
|
|
946
963
|
]),
|
|
947
964
|
_: 1
|
|
948
965
|
}, 8, ["model"])
|
|
@@ -967,5 +984,5 @@ const _sfc_main = {
|
|
|
967
984
|
};
|
|
968
985
|
}
|
|
969
986
|
};
|
|
970
|
-
const DialogDialog = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
987
|
+
const DialogDialog = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-90bb67fd"]]);
|
|
971
988
|
exports.default = DialogDialog;
|