@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
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import "../../../node_modules/element-plus/es/index.mjs";
|
|
2
|
+
/* empty css */
|
|
3
|
+
/* empty css */
|
|
4
|
+
/* empty css */
|
|
5
|
+
/* empty css */
|
|
6
|
+
/* empty css */
|
|
7
|
+
/* empty css */
|
|
8
|
+
/* empty css */
|
|
9
|
+
/* empty css */
|
|
10
|
+
import { computed, createElementBlock, openBlock, Fragment, createVNode, unref, isRef, withCtx, renderList, createBlock, createTextVNode } from "vue";
|
|
11
|
+
import { Plus as plus_default } from "../../../node_modules/@element-plus/icons-vue/dist/index.mjs";
|
|
12
|
+
import "../store/index.mjs";
|
|
13
|
+
import { useDialogDialog } from "../packages/dialog/useDialogDialog.mjs";
|
|
14
|
+
import { useDialogGlobalDialog } from "../packages/dialogGlobal/useDialogGlobalDialog.mjs";
|
|
15
|
+
import { ElSelect, ElOption } from "../../../node_modules/element-plus/es/components/select/index.mjs";
|
|
16
|
+
import { ElButton } from "../../../node_modules/element-plus/es/components/button/index.mjs";
|
|
17
|
+
const _sfc_main = {
|
|
18
|
+
__name: "DialogSelect",
|
|
19
|
+
props: {
|
|
20
|
+
modelValue: {
|
|
21
|
+
type: [String, Number],
|
|
22
|
+
default: ""
|
|
23
|
+
},
|
|
24
|
+
loading: {
|
|
25
|
+
type: Boolean,
|
|
26
|
+
default: false
|
|
27
|
+
},
|
|
28
|
+
size: {
|
|
29
|
+
type: String,
|
|
30
|
+
default: "default"
|
|
31
|
+
},
|
|
32
|
+
dialogOptions: {
|
|
33
|
+
type: Array,
|
|
34
|
+
default: []
|
|
35
|
+
},
|
|
36
|
+
isGlobal: {
|
|
37
|
+
type: Boolean,
|
|
38
|
+
default: false
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
emits: ["update:modelValue", "change"],
|
|
42
|
+
setup(__props, { emit: __emit }) {
|
|
43
|
+
const props = __props;
|
|
44
|
+
const emit = __emit;
|
|
45
|
+
const modelValue = computed({
|
|
46
|
+
get: () => props.modelValue,
|
|
47
|
+
set: (val) => emit("update:modelValue", val)
|
|
48
|
+
});
|
|
49
|
+
function handleDialogChange(dialogId) {
|
|
50
|
+
emit("change", dialogId);
|
|
51
|
+
}
|
|
52
|
+
const { dialogDialogVisible, openDialogDialog, DialogDialog } = useDialogDialog();
|
|
53
|
+
const {
|
|
54
|
+
dialogGlobalDialogVisible,
|
|
55
|
+
openDialogGlobalDialog,
|
|
56
|
+
DialogGlobalDialog
|
|
57
|
+
} = useDialogGlobalDialog();
|
|
58
|
+
function handleAddDialog() {
|
|
59
|
+
if (props.isGlobal) {
|
|
60
|
+
openDialogGlobalDialog();
|
|
61
|
+
} else {
|
|
62
|
+
openDialogDialog();
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
return (_ctx, _cache) => {
|
|
66
|
+
const _component_el_option = ElOption;
|
|
67
|
+
const _component_el_button = ElButton;
|
|
68
|
+
const _component_el_select = ElSelect;
|
|
69
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
70
|
+
createVNode(_component_el_select, {
|
|
71
|
+
ref: "selectRef",
|
|
72
|
+
modelValue: unref(modelValue),
|
|
73
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(modelValue) ? modelValue.value = $event : null),
|
|
74
|
+
placeholder: "请选择弹层",
|
|
75
|
+
filterable: "",
|
|
76
|
+
style: { "width": "100%" },
|
|
77
|
+
teleported: false,
|
|
78
|
+
loading: __props.loading,
|
|
79
|
+
size: __props.size,
|
|
80
|
+
clearable: "",
|
|
81
|
+
onChange: handleDialogChange
|
|
82
|
+
}, {
|
|
83
|
+
footer: withCtx(() => [
|
|
84
|
+
createVNode(_component_el_button, {
|
|
85
|
+
type: "primary",
|
|
86
|
+
size: "small",
|
|
87
|
+
icon: unref(plus_default),
|
|
88
|
+
link: "",
|
|
89
|
+
onClick: handleAddDialog
|
|
90
|
+
}, {
|
|
91
|
+
default: withCtx(() => _cache[3] || (_cache[3] = [
|
|
92
|
+
createTextVNode(" 新增弹层 ")
|
|
93
|
+
])),
|
|
94
|
+
_: 1
|
|
95
|
+
}, 8, ["icon"])
|
|
96
|
+
]),
|
|
97
|
+
default: withCtx(() => [
|
|
98
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.dialogOptions, (dialog) => {
|
|
99
|
+
return openBlock(), createBlock(_component_el_option, {
|
|
100
|
+
key: dialog.id,
|
|
101
|
+
label: dialog.name,
|
|
102
|
+
value: dialog.id
|
|
103
|
+
}, null, 8, ["label", "value"]);
|
|
104
|
+
}), 128))
|
|
105
|
+
]),
|
|
106
|
+
_: 1
|
|
107
|
+
}, 8, ["modelValue", "loading", "size"]),
|
|
108
|
+
createVNode(unref(DialogDialog), {
|
|
109
|
+
modelValue: unref(dialogDialogVisible),
|
|
110
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(dialogDialogVisible) ? dialogDialogVisible.value = $event : null)
|
|
111
|
+
}, null, 8, ["modelValue"]),
|
|
112
|
+
createVNode(unref(DialogGlobalDialog), {
|
|
113
|
+
modelValue: unref(dialogGlobalDialogVisible),
|
|
114
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => isRef(dialogGlobalDialogVisible) ? dialogGlobalDialogVisible.value = $event : null)
|
|
115
|
+
}, null, 8, ["modelValue"])
|
|
116
|
+
], 64);
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
};
|
|
120
|
+
export {
|
|
121
|
+
_sfc_main as default
|
|
122
|
+
};
|
|
@@ -138,9 +138,9 @@ const _sfc_main = {
|
|
|
138
138
|
componentPath: "",
|
|
139
139
|
fieldMapping: [],
|
|
140
140
|
subFormMode: "edit",
|
|
141
|
-
subFormFooterButtons: []
|
|
141
|
+
subFormFooterButtons: [],
|
|
142
142
|
// 表单底部按钮
|
|
143
|
-
|
|
143
|
+
componentParams: []
|
|
144
144
|
});
|
|
145
145
|
isEditingNew.value = false;
|
|
146
146
|
newDialogName.value = "";
|
|
@@ -290,9 +290,9 @@ const _sfc_main = {
|
|
|
290
290
|
const _component_el_dialog = ElDialog;
|
|
291
291
|
return openBlock(), createBlock(_component_el_dialog, {
|
|
292
292
|
modelValue: dialogVisible.value,
|
|
293
|
-
"onUpdate:modelValue": _cache[
|
|
293
|
+
"onUpdate:modelValue": _cache[31] || (_cache[31] = ($event) => dialogVisible.value = $event),
|
|
294
294
|
width: "50%",
|
|
295
|
-
title: "
|
|
295
|
+
title: "页面弹层配置",
|
|
296
296
|
draggable: "",
|
|
297
297
|
overflow: "",
|
|
298
298
|
"append-to-body": "",
|
|
@@ -301,9 +301,9 @@ const _sfc_main = {
|
|
|
301
301
|
footer: withCtx(() => [
|
|
302
302
|
createElementVNode("div", _hoisted_19, [
|
|
303
303
|
createVNode(_component_el_button, {
|
|
304
|
-
onClick: _cache[
|
|
304
|
+
onClick: _cache[30] || (_cache[30] = ($event) => dialogVisible.value = false)
|
|
305
305
|
}, {
|
|
306
|
-
default: withCtx(() => _cache[
|
|
306
|
+
default: withCtx(() => _cache[51] || (_cache[51] = [
|
|
307
307
|
createTextVNode("取消")
|
|
308
308
|
])),
|
|
309
309
|
_: 1
|
|
@@ -312,7 +312,7 @@ const _sfc_main = {
|
|
|
312
312
|
type: "primary",
|
|
313
313
|
onClick: onConfirm
|
|
314
314
|
}, {
|
|
315
|
-
default: withCtx(() => _cache[
|
|
315
|
+
default: withCtx(() => _cache[52] || (_cache[52] = [
|
|
316
316
|
createTextVNode("确定")
|
|
317
317
|
])),
|
|
318
318
|
_: 1
|
|
@@ -337,7 +337,7 @@ const _sfc_main = {
|
|
|
337
337
|
icon: unref(plus_default),
|
|
338
338
|
onClick: startAddDialog
|
|
339
339
|
}, {
|
|
340
|
-
default: withCtx(() => _cache[
|
|
340
|
+
default: withCtx(() => _cache[32] || (_cache[32] = [
|
|
341
341
|
createTextVNode(" 新增弹层 ")
|
|
342
342
|
])),
|
|
343
343
|
_: 1
|
|
@@ -364,7 +364,7 @@ const _sfc_main = {
|
|
|
364
364
|
icon: unref(close_default),
|
|
365
365
|
onClick: cancelAddDialog
|
|
366
366
|
}, {
|
|
367
|
-
default: withCtx(() => _cache[
|
|
367
|
+
default: withCtx(() => _cache[33] || (_cache[33] = [
|
|
368
368
|
createTextVNode(" 取消 ")
|
|
369
369
|
])),
|
|
370
370
|
_: 1
|
|
@@ -375,7 +375,7 @@ const _sfc_main = {
|
|
|
375
375
|
icon: unref(check_default),
|
|
376
376
|
onClick: confirmAddDialog
|
|
377
377
|
}, {
|
|
378
|
-
default: withCtx(() => _cache[
|
|
378
|
+
default: withCtx(() => _cache[34] || (_cache[34] = [
|
|
379
379
|
createTextVNode(" 确认 ")
|
|
380
380
|
])),
|
|
381
381
|
_: 1
|
|
@@ -483,25 +483,25 @@ const _sfc_main = {
|
|
|
483
483
|
}, {
|
|
484
484
|
default: withCtx(() => [
|
|
485
485
|
createVNode(_component_el_radio_button, { value: "standard" }, {
|
|
486
|
-
default: withCtx(() => _cache[
|
|
486
|
+
default: withCtx(() => _cache[35] || (_cache[35] = [
|
|
487
487
|
createTextVNode("标准")
|
|
488
488
|
])),
|
|
489
489
|
_: 1
|
|
490
490
|
}),
|
|
491
491
|
createVNode(_component_el_radio_button, { value: "large" }, {
|
|
492
|
-
default: withCtx(() => _cache[
|
|
492
|
+
default: withCtx(() => _cache[36] || (_cache[36] = [
|
|
493
493
|
createTextVNode("更大")
|
|
494
494
|
])),
|
|
495
495
|
_: 1
|
|
496
496
|
}),
|
|
497
497
|
createVNode(_component_el_radio_button, { value: "small" }, {
|
|
498
|
-
default: withCtx(() => _cache[
|
|
498
|
+
default: withCtx(() => _cache[37] || (_cache[37] = [
|
|
499
499
|
createTextVNode("更小")
|
|
500
500
|
])),
|
|
501
501
|
_: 1
|
|
502
502
|
}),
|
|
503
503
|
createVNode(_component_el_radio_button, { value: "custom" }, {
|
|
504
|
-
default: withCtx(() => _cache[
|
|
504
|
+
default: withCtx(() => _cache[38] || (_cache[38] = [
|
|
505
505
|
createTextVNode("自定义")
|
|
506
506
|
])),
|
|
507
507
|
_: 1
|
|
@@ -551,25 +551,25 @@ const _sfc_main = {
|
|
|
551
551
|
}, {
|
|
552
552
|
default: withCtx(() => [
|
|
553
553
|
createVNode(_component_el_radio_button, { value: "table" }, {
|
|
554
|
-
default: withCtx(() => _cache[
|
|
554
|
+
default: withCtx(() => _cache[39] || (_cache[39] = [
|
|
555
555
|
createTextVNode("列表")
|
|
556
556
|
])),
|
|
557
557
|
_: 1
|
|
558
558
|
}),
|
|
559
559
|
createVNode(_component_el_radio_button, { value: "form" }, {
|
|
560
|
-
default: withCtx(() => _cache[
|
|
560
|
+
default: withCtx(() => _cache[40] || (_cache[40] = [
|
|
561
561
|
createTextVNode("表单")
|
|
562
562
|
])),
|
|
563
563
|
_: 1
|
|
564
564
|
}),
|
|
565
565
|
createVNode(_component_el_radio_button, { value: "tree" }, {
|
|
566
|
-
default: withCtx(() => _cache[
|
|
566
|
+
default: withCtx(() => _cache[41] || (_cache[41] = [
|
|
567
567
|
createTextVNode("树形")
|
|
568
568
|
])),
|
|
569
569
|
_: 1
|
|
570
570
|
}),
|
|
571
571
|
createVNode(_component_el_radio_button, { value: "component" }, {
|
|
572
|
-
default: withCtx(() => _cache[
|
|
572
|
+
default: withCtx(() => _cache[42] || (_cache[42] = [
|
|
573
573
|
createTextVNode("组件")
|
|
574
574
|
])),
|
|
575
575
|
_: 1
|
|
@@ -589,13 +589,13 @@ const _sfc_main = {
|
|
|
589
589
|
}, {
|
|
590
590
|
default: withCtx(() => [
|
|
591
591
|
createVNode(_component_el_radio_button, { value: "select" }, {
|
|
592
|
-
default: withCtx(() => _cache[
|
|
592
|
+
default: withCtx(() => _cache[43] || (_cache[43] = [
|
|
593
593
|
createTextVNode("选择列表")
|
|
594
594
|
])),
|
|
595
595
|
_: 1
|
|
596
596
|
}),
|
|
597
597
|
createVNode(_component_el_radio_button, { value: "custom" }, {
|
|
598
|
-
default: withCtx(() => _cache[
|
|
598
|
+
default: withCtx(() => _cache[44] || (_cache[44] = [
|
|
599
599
|
createTextVNode("自定义")
|
|
600
600
|
])),
|
|
601
601
|
_: 1
|
|
@@ -656,7 +656,7 @@ const _sfc_main = {
|
|
|
656
656
|
icon: "Plus",
|
|
657
657
|
link: ""
|
|
658
658
|
}, {
|
|
659
|
-
default: withCtx(() => _cache[
|
|
659
|
+
default: withCtx(() => _cache[45] || (_cache[45] = [
|
|
660
660
|
createTextVNode(" 添加列配置 ")
|
|
661
661
|
])),
|
|
662
662
|
_: 1
|
|
@@ -790,19 +790,19 @@ const _sfc_main = {
|
|
|
790
790
|
}, {
|
|
791
791
|
default: withCtx(() => [
|
|
792
792
|
createVNode(_component_el_radio_button, { value: "none" }, {
|
|
793
|
-
default: withCtx(() => _cache[
|
|
793
|
+
default: withCtx(() => _cache[46] || (_cache[46] = [
|
|
794
794
|
createTextVNode("无")
|
|
795
795
|
])),
|
|
796
796
|
_: 1
|
|
797
797
|
}),
|
|
798
798
|
createVNode(_component_el_radio_button, { value: "single" }, {
|
|
799
|
-
default: withCtx(() => _cache[
|
|
799
|
+
default: withCtx(() => _cache[47] || (_cache[47] = [
|
|
800
800
|
createTextVNode("单选")
|
|
801
801
|
])),
|
|
802
802
|
_: 1
|
|
803
803
|
}),
|
|
804
804
|
createVNode(_component_el_radio_button, { value: "multiple" }, {
|
|
805
|
-
default: withCtx(() => _cache[
|
|
805
|
+
default: withCtx(() => _cache[48] || (_cache[48] = [
|
|
806
806
|
createTextVNode("多选")
|
|
807
807
|
])),
|
|
808
808
|
_: 1
|
|
@@ -888,13 +888,13 @@ const _sfc_main = {
|
|
|
888
888
|
}, {
|
|
889
889
|
default: withCtx(() => [
|
|
890
890
|
createVNode(_component_el_radio_button, { value: "edit" }, {
|
|
891
|
-
default: withCtx(() => _cache[
|
|
891
|
+
default: withCtx(() => _cache[49] || (_cache[49] = [
|
|
892
892
|
createTextVNode("编辑")
|
|
893
893
|
])),
|
|
894
894
|
_: 1
|
|
895
895
|
}),
|
|
896
896
|
createVNode(_component_el_radio_button, { value: "query" }, {
|
|
897
|
-
default: withCtx(() => _cache[
|
|
897
|
+
default: withCtx(() => _cache[50] || (_cache[50] = [
|
|
898
898
|
createTextVNode("查看")
|
|
899
899
|
])),
|
|
900
900
|
_: 1
|
|
@@ -927,20 +927,37 @@ const _sfc_main = {
|
|
|
927
927
|
_: 1
|
|
928
928
|
})
|
|
929
929
|
], 64)) : createCommentVNode("", true),
|
|
930
|
-
unref(currentDialog).contentSource === "component" ? (openBlock(),
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
930
|
+
unref(currentDialog).contentSource === "component" ? (openBlock(), createElementBlock(Fragment, { key: 3 }, [
|
|
931
|
+
createVNode(_component_el_form_item, { label: "组件路由地址" }, {
|
|
932
|
+
default: withCtx(() => [
|
|
933
|
+
createVNode(_component_el_input, {
|
|
934
|
+
modelValue: unref(currentDialog).componentPath,
|
|
935
|
+
"onUpdate:modelValue": _cache[27] || (_cache[27] = ($event) => unref(currentDialog).componentPath = $event),
|
|
936
|
+
placeholder: "请输入组件路径",
|
|
937
|
+
clearable: ""
|
|
938
|
+
}, null, 8, ["modelValue"])
|
|
939
|
+
]),
|
|
940
|
+
_: 1
|
|
941
|
+
}),
|
|
942
|
+
createVNode(_component_el_form_item, { label: "组件参数" }, {
|
|
943
|
+
default: withCtx(() => [
|
|
944
|
+
createVNode(ParamsConfig, {
|
|
945
|
+
modelValue: unref(currentDialog).componentParams,
|
|
946
|
+
"onUpdate:modelValue": _cache[28] || (_cache[28] = ($event) => unref(currentDialog).componentParams = $event)
|
|
947
|
+
}, null, 8, ["modelValue"])
|
|
948
|
+
]),
|
|
949
|
+
_: 1
|
|
950
|
+
}),
|
|
951
|
+
createVNode(_component_el_form_item, { label: "组件是否是弹层" }, {
|
|
952
|
+
default: withCtx(() => [
|
|
953
|
+
createVNode(_component_el_switch, {
|
|
954
|
+
modelValue: unref(currentDialog).componentIsDialog,
|
|
955
|
+
"onUpdate:modelValue": _cache[29] || (_cache[29] = ($event) => unref(currentDialog).componentIsDialog = $event)
|
|
956
|
+
}, null, 8, ["modelValue"])
|
|
957
|
+
]),
|
|
958
|
+
_: 1
|
|
959
|
+
})
|
|
960
|
+
], 64)) : createCommentVNode("", true)
|
|
944
961
|
]),
|
|
945
962
|
_: 1
|
|
946
963
|
}, 8, ["model"])
|
|
@@ -965,7 +982,7 @@ const _sfc_main = {
|
|
|
965
982
|
};
|
|
966
983
|
}
|
|
967
984
|
};
|
|
968
|
-
const DialogDialog = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
985
|
+
const DialogDialog = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-90bb67fd"]]);
|
|
969
986
|
export {
|
|
970
987
|
DialogDialog as default
|
|
971
988
|
};
|
|
@@ -64,6 +64,13 @@ import "../formulaEditor/core/functionCore.mjs";
|
|
|
64
64
|
/* empty css */
|
|
65
65
|
/* empty css */
|
|
66
66
|
/* empty css */
|
|
67
|
+
import { defaultProperty } from "../table/aside/index.mjs";
|
|
68
|
+
import { defaultTableConfig } from "../table/default.mjs";
|
|
69
|
+
import widgets from "../table/property/widgets.vue.mjs";
|
|
70
|
+
/* empty css */
|
|
71
|
+
/* empty css */
|
|
72
|
+
/* empty css */
|
|
73
|
+
/* empty css */
|
|
67
74
|
/* empty css */
|
|
68
75
|
/* empty css */
|
|
69
76
|
/* empty css */
|
|
@@ -86,8 +93,6 @@ import "../../../../node_modules/element-plus/theme-chalk/el-tab-pane.css.mjs";
|
|
|
86
93
|
/* empty css */
|
|
87
94
|
import "../../../../node_modules/element-plus/theme-chalk/el-date-picker.css.mjs";
|
|
88
95
|
import "../../axios/config.mjs";
|
|
89
|
-
/* empty css */
|
|
90
|
-
/* empty css */
|
|
91
96
|
/* empty css */
|
|
92
97
|
/* empty css */
|
|
93
98
|
/* empty css */
|
|
@@ -97,10 +102,6 @@ import "../../axios/config.mjs";
|
|
|
97
102
|
/* empty css */
|
|
98
103
|
/* empty css */
|
|
99
104
|
/* empty css */
|
|
100
|
-
import { defaultProperty } from "../table/aside/index.mjs";
|
|
101
|
-
import { defaultTableConfig } from "../table/default.mjs";
|
|
102
|
-
import widgets from "../table/property/widgets.vue.mjs";
|
|
103
|
-
/* empty css */
|
|
104
105
|
import { ElMessage } from "../../../../node_modules/element-plus/es/components/message/index.mjs";
|
|
105
106
|
import { ElDialog } from "../../../../node_modules/element-plus/es/components/dialog/index.mjs";
|
|
106
107
|
import { ElContainer, ElAside, ElHeader, ElMain } from "../../../../node_modules/element-plus/es/components/container/index.mjs";
|
|
@@ -223,8 +224,9 @@ const _sfc_main = {
|
|
|
223
224
|
componentPath: "",
|
|
224
225
|
fieldMapping: [],
|
|
225
226
|
subFormMode: "edit",
|
|
226
|
-
subFormFooterButtons: []
|
|
227
|
+
subFormFooterButtons: [],
|
|
227
228
|
// 表单底部按钮
|
|
229
|
+
componentParams: []
|
|
228
230
|
};
|
|
229
231
|
selectedDialogs.value.push(newDialog);
|
|
230
232
|
isEditingNew.value = false;
|
|
@@ -402,7 +404,7 @@ const _sfc_main = {
|
|
|
402
404
|
const _component_el_dialog = ElDialog;
|
|
403
405
|
return openBlock(), createBlock(_component_el_dialog, {
|
|
404
406
|
modelValue: dialogVisible.value,
|
|
405
|
-
"onUpdate:modelValue": _cache[
|
|
407
|
+
"onUpdate:modelValue": _cache[26] || (_cache[26] = ($event) => dialogVisible.value = $event),
|
|
406
408
|
width: "50%",
|
|
407
409
|
title: "全局弹层配置",
|
|
408
410
|
draggable: "",
|
|
@@ -416,10 +418,10 @@ const _sfc_main = {
|
|
|
416
418
|
footer: withCtx(() => [
|
|
417
419
|
createElementVNode("div", _hoisted_21, [
|
|
418
420
|
createVNode(_component_el_button, {
|
|
419
|
-
onClick: _cache[
|
|
421
|
+
onClick: _cache[25] || (_cache[25] = ($event) => dialogVisible.value = false),
|
|
420
422
|
disabled: unref(saving)
|
|
421
423
|
}, {
|
|
422
|
-
default: withCtx(() => _cache[
|
|
424
|
+
default: withCtx(() => _cache[43] || (_cache[43] = [
|
|
423
425
|
createTextVNode("取消")
|
|
424
426
|
])),
|
|
425
427
|
_: 1
|
|
@@ -430,7 +432,7 @@ const _sfc_main = {
|
|
|
430
432
|
loading: unref(saving),
|
|
431
433
|
disabled: unref(loading) || unref(saving)
|
|
432
434
|
}, {
|
|
433
|
-
default: withCtx(() => _cache[
|
|
435
|
+
default: withCtx(() => _cache[44] || (_cache[44] = [
|
|
434
436
|
createTextVNode(" 确定 ")
|
|
435
437
|
])),
|
|
436
438
|
_: 1
|
|
@@ -464,7 +466,7 @@ const _sfc_main = {
|
|
|
464
466
|
icon: unref(plus_default),
|
|
465
467
|
onClick: startAddDialog
|
|
466
468
|
}, {
|
|
467
|
-
default: withCtx(() => _cache[
|
|
469
|
+
default: withCtx(() => _cache[27] || (_cache[27] = [
|
|
468
470
|
createTextVNode(" 新增弹层 ")
|
|
469
471
|
])),
|
|
470
472
|
_: 1
|
|
@@ -491,7 +493,7 @@ const _sfc_main = {
|
|
|
491
493
|
icon: unref(close_default),
|
|
492
494
|
onClick: cancelAddDialog
|
|
493
495
|
}, {
|
|
494
|
-
default: withCtx(() => _cache[
|
|
496
|
+
default: withCtx(() => _cache[28] || (_cache[28] = [
|
|
495
497
|
createTextVNode(" 取消 ")
|
|
496
498
|
])),
|
|
497
499
|
_: 1
|
|
@@ -502,7 +504,7 @@ const _sfc_main = {
|
|
|
502
504
|
icon: unref(check_default),
|
|
503
505
|
onClick: confirmAddDialog
|
|
504
506
|
}, {
|
|
505
|
-
default: withCtx(() => _cache[
|
|
507
|
+
default: withCtx(() => _cache[29] || (_cache[29] = [
|
|
506
508
|
createTextVNode(" 确认 ")
|
|
507
509
|
])),
|
|
508
510
|
_: 1
|
|
@@ -610,25 +612,25 @@ const _sfc_main = {
|
|
|
610
612
|
}, {
|
|
611
613
|
default: withCtx(() => [
|
|
612
614
|
createVNode(_component_el_radio_button, { value: "standard" }, {
|
|
613
|
-
default: withCtx(() => _cache[
|
|
615
|
+
default: withCtx(() => _cache[30] || (_cache[30] = [
|
|
614
616
|
createTextVNode("标准")
|
|
615
617
|
])),
|
|
616
618
|
_: 1
|
|
617
619
|
}),
|
|
618
620
|
createVNode(_component_el_radio_button, { value: "large" }, {
|
|
619
|
-
default: withCtx(() => _cache[
|
|
621
|
+
default: withCtx(() => _cache[31] || (_cache[31] = [
|
|
620
622
|
createTextVNode("更大")
|
|
621
623
|
])),
|
|
622
624
|
_: 1
|
|
623
625
|
}),
|
|
624
626
|
createVNode(_component_el_radio_button, { value: "small" }, {
|
|
625
|
-
default: withCtx(() => _cache[
|
|
627
|
+
default: withCtx(() => _cache[32] || (_cache[32] = [
|
|
626
628
|
createTextVNode("更小")
|
|
627
629
|
])),
|
|
628
630
|
_: 1
|
|
629
631
|
}),
|
|
630
632
|
createVNode(_component_el_radio_button, { value: "custom" }, {
|
|
631
|
-
default: withCtx(() => _cache[
|
|
633
|
+
default: withCtx(() => _cache[33] || (_cache[33] = [
|
|
632
634
|
createTextVNode("自定义")
|
|
633
635
|
])),
|
|
634
636
|
_: 1
|
|
@@ -678,25 +680,25 @@ const _sfc_main = {
|
|
|
678
680
|
}, {
|
|
679
681
|
default: withCtx(() => [
|
|
680
682
|
createVNode(_component_el_radio_button, { value: "table" }, {
|
|
681
|
-
default: withCtx(() => _cache[
|
|
683
|
+
default: withCtx(() => _cache[34] || (_cache[34] = [
|
|
682
684
|
createTextVNode("列表")
|
|
683
685
|
])),
|
|
684
686
|
_: 1
|
|
685
687
|
}),
|
|
686
688
|
createVNode(_component_el_radio_button, { value: "form" }, {
|
|
687
|
-
default: withCtx(() => _cache[
|
|
689
|
+
default: withCtx(() => _cache[35] || (_cache[35] = [
|
|
688
690
|
createTextVNode("表单")
|
|
689
691
|
])),
|
|
690
692
|
_: 1
|
|
691
693
|
}),
|
|
692
694
|
createVNode(_component_el_radio_button, { value: "tree" }, {
|
|
693
|
-
default: withCtx(() => _cache[
|
|
695
|
+
default: withCtx(() => _cache[36] || (_cache[36] = [
|
|
694
696
|
createTextVNode("树形")
|
|
695
697
|
])),
|
|
696
698
|
_: 1
|
|
697
699
|
}),
|
|
698
700
|
createVNode(_component_el_radio_button, { value: "component" }, {
|
|
699
|
-
default: withCtx(() => _cache[
|
|
701
|
+
default: withCtx(() => _cache[37] || (_cache[37] = [
|
|
700
702
|
createTextVNode("组件")
|
|
701
703
|
])),
|
|
702
704
|
_: 1
|
|
@@ -716,13 +718,13 @@ const _sfc_main = {
|
|
|
716
718
|
}, {
|
|
717
719
|
default: withCtx(() => [
|
|
718
720
|
createVNode(_component_el_radio_button, { value: "select" }, {
|
|
719
|
-
default: withCtx(() => _cache[
|
|
721
|
+
default: withCtx(() => _cache[38] || (_cache[38] = [
|
|
720
722
|
createTextVNode("选择列表")
|
|
721
723
|
])),
|
|
722
724
|
_: 1
|
|
723
725
|
}),
|
|
724
726
|
createVNode(_component_el_radio_button, { value: "custom" }, {
|
|
725
|
-
default: withCtx(() => _cache[
|
|
727
|
+
default: withCtx(() => _cache[39] || (_cache[39] = [
|
|
726
728
|
createTextVNode("自定义")
|
|
727
729
|
])),
|
|
728
730
|
_: 1
|
|
@@ -783,7 +785,7 @@ const _sfc_main = {
|
|
|
783
785
|
icon: "Plus",
|
|
784
786
|
link: ""
|
|
785
787
|
}, {
|
|
786
|
-
default: withCtx(() => _cache[
|
|
788
|
+
default: withCtx(() => _cache[40] || (_cache[40] = [
|
|
787
789
|
createTextVNode(" 添加列配置 ")
|
|
788
790
|
])),
|
|
789
791
|
_: 1
|
|
@@ -933,13 +935,13 @@ const _sfc_main = {
|
|
|
933
935
|
}, {
|
|
934
936
|
default: withCtx(() => [
|
|
935
937
|
createVNode(_component_el_radio_button, { value: "edit" }, {
|
|
936
|
-
default: withCtx(() => _cache[
|
|
938
|
+
default: withCtx(() => _cache[41] || (_cache[41] = [
|
|
937
939
|
createTextVNode("编辑")
|
|
938
940
|
])),
|
|
939
941
|
_: 1
|
|
940
942
|
}),
|
|
941
943
|
createVNode(_component_el_radio_button, { value: "query" }, {
|
|
942
|
-
default: withCtx(() => _cache[
|
|
944
|
+
default: withCtx(() => _cache[42] || (_cache[42] = [
|
|
943
945
|
createTextVNode("查看")
|
|
944
946
|
])),
|
|
945
947
|
_: 1
|
|
@@ -972,20 +974,37 @@ const _sfc_main = {
|
|
|
972
974
|
_: 1
|
|
973
975
|
})
|
|
974
976
|
], 64)) : createCommentVNode("", true),
|
|
975
|
-
unref(currentDialog).contentSource === "component" ? (openBlock(),
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
977
|
+
unref(currentDialog).contentSource === "component" ? (openBlock(), createElementBlock(Fragment, { key: 3 }, [
|
|
978
|
+
createVNode(_component_el_form_item, { label: "组件路由地址" }, {
|
|
979
|
+
default: withCtx(() => [
|
|
980
|
+
createVNode(_component_el_input, {
|
|
981
|
+
modelValue: unref(currentDialog).componentPath,
|
|
982
|
+
"onUpdate:modelValue": _cache[22] || (_cache[22] = ($event) => unref(currentDialog).componentPath = $event),
|
|
983
|
+
placeholder: "请输入组件路径",
|
|
984
|
+
clearable: ""
|
|
985
|
+
}, null, 8, ["modelValue"])
|
|
986
|
+
]),
|
|
987
|
+
_: 1
|
|
988
|
+
}),
|
|
989
|
+
createVNode(_component_el_form_item, { label: "组件参数" }, {
|
|
990
|
+
default: withCtx(() => [
|
|
991
|
+
createVNode(ParamsConfig, {
|
|
992
|
+
modelValue: unref(currentDialog).componentParams,
|
|
993
|
+
"onUpdate:modelValue": _cache[23] || (_cache[23] = ($event) => unref(currentDialog).componentParams = $event)
|
|
994
|
+
}, null, 8, ["modelValue"])
|
|
995
|
+
]),
|
|
996
|
+
_: 1
|
|
997
|
+
}),
|
|
998
|
+
createVNode(_component_el_form_item, { label: "组件是否是弹层" }, {
|
|
999
|
+
default: withCtx(() => [
|
|
1000
|
+
createVNode(_component_el_switch, {
|
|
1001
|
+
modelValue: unref(currentDialog).componentIsDialog,
|
|
1002
|
+
"onUpdate:modelValue": _cache[24] || (_cache[24] = ($event) => unref(currentDialog).componentIsDialog = $event)
|
|
1003
|
+
}, null, 8, ["modelValue"])
|
|
1004
|
+
]),
|
|
1005
|
+
_: 1
|
|
1006
|
+
})
|
|
1007
|
+
], 64)) : createCommentVNode("", true)
|
|
989
1008
|
]),
|
|
990
1009
|
_: 1
|
|
991
1010
|
}, 8, ["model"])
|
|
@@ -1010,7 +1029,7 @@ const _sfc_main = {
|
|
|
1010
1029
|
};
|
|
1011
1030
|
}
|
|
1012
1031
|
};
|
|
1013
|
-
const DialogGlobalDialog = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
1032
|
+
const DialogGlobalDialog = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-e641bf90"]]);
|
|
1014
1033
|
export {
|
|
1015
1034
|
DialogGlobalDialog as default
|
|
1016
1035
|
};
|