@fecp/designer 5.4.61 → 5.4.63

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.
Files changed (31) hide show
  1. package/es/designer/package.json.mjs +1 -1
  2. package/es/designer/src/components/TemplateSelector.vue.mjs +1 -116
  3. package/es/designer/src/components/TemplateSelector.vue2.mjs +116 -1
  4. package/es/designer/src/packages/dialog/index.vue2.mjs +988 -0
  5. package/es/designer/src/packages/dialog/useDialogDialog.mjs +1 -1
  6. package/es/designer/src/packages/dialogGlobal/index.vue2.mjs +1035 -0
  7. package/es/designer/src/packages/dialogGlobal/useDialogGlobalDialog.mjs +1 -1
  8. package/es/designer/src/packages/form/property/subForm.vue.mjs +1 -1
  9. package/es/designer/src/packages/form/property/subTable.vue.mjs +1 -1
  10. package/es/designer/src/packages/form/property/widgets.vue.mjs +64 -34
  11. package/es/designer.css +25 -26
  12. package/es/packages/mobile/src/components/base/button/Button.vue.mjs +1 -1
  13. package/es/packages/vue/src/components/forms/form/Form.vue.mjs +50 -62
  14. package/es/packages/vue/src/components/layout/Layout.vue.mjs +7 -2
  15. package/es/packages/vue/src/utils/eventFlow/actionHandlers.mjs +4 -2
  16. package/lib/designer/package.json.js +1 -1
  17. package/lib/designer/src/components/TemplateSelector.vue.js +0 -115
  18. package/lib/designer/src/components/TemplateSelector.vue2.js +115 -0
  19. package/lib/designer/src/packages/dialog/index.vue2.js +988 -0
  20. package/lib/designer/src/packages/dialog/useDialogDialog.js +1 -1
  21. package/lib/designer/src/packages/dialogGlobal/index.vue2.js +1035 -0
  22. package/lib/designer/src/packages/dialogGlobal/useDialogGlobalDialog.js +1 -1
  23. package/lib/designer/src/packages/form/property/subForm.vue.js +1 -1
  24. package/lib/designer/src/packages/form/property/subTable.vue.js +1 -1
  25. package/lib/designer/src/packages/form/property/widgets.vue.js +81 -51
  26. package/lib/designer.css +25 -26
  27. package/lib/packages/mobile/src/components/base/button/Button.vue.js +1 -1
  28. package/lib/packages/vue/src/components/forms/form/Form.vue.js +50 -62
  29. package/lib/packages/vue/src/components/layout/Layout.vue.js +7 -2
  30. package/lib/packages/vue/src/utils/eventFlow/actionHandlers.js +4 -2
  31. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- const version = "5.4.61";
1
+ const version = "5.4.63";
2
2
  const packageJson = {
3
3
  version
4
4
  };
@@ -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.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
+ };