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