@fecp/designer 5.5.33 → 5.5.34
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/layout/aside/HiddenFieldDialog.vue.mjs +5 -2
- package/es/designer/src/packages/dialog/useDialogDialog.mjs +1 -1
- package/es/designer/src/packages/dialogGlobal/useDialogGlobalDialog.mjs +1 -1
- package/es/designer/src/packages/form/property/widgets.vue.mjs +2 -2
- package/es/designer.css +16 -16
- package/es/packages/vue/src/components/forms/form/Form.vue.mjs +12 -3
- package/es/packages/vue/src/utils/eventFlow/actionHandlers.mjs +1 -0
- package/lib/designer/package.json.js +1 -1
- package/lib/designer/src/layout/aside/HiddenFieldDialog.vue.js +5 -2
- package/lib/designer/src/packages/dialog/useDialogDialog.js +1 -1
- package/lib/designer/src/packages/dialogGlobal/useDialogGlobalDialog.js +1 -1
- package/lib/designer/src/packages/form/property/widgets.vue.js +2 -2
- package/lib/designer.css +16 -16
- package/lib/packages/vue/src/components/forms/form/Form.vue.js +12 -3
- package/lib/packages/vue/src/utils/eventFlow/actionHandlers.js +1 -0
- package/package.json +1 -1
|
@@ -53,7 +53,8 @@ const _sfc_main = {
|
|
|
53
53
|
var _a;
|
|
54
54
|
hiddenFields.value = (((_a = editConfigData.value) == null ? void 0 : _a.hiddenFields) || []).map(
|
|
55
55
|
(field) => ({
|
|
56
|
-
...field
|
|
56
|
+
...field,
|
|
57
|
+
value: field.value || field.defaultValue
|
|
57
58
|
})
|
|
58
59
|
);
|
|
59
60
|
};
|
|
@@ -166,6 +167,8 @@ const _sfc_main = {
|
|
|
166
167
|
let currentY = maxY;
|
|
167
168
|
selectedRows.value.forEach((field) => {
|
|
168
169
|
let component = cloneDeep(field);
|
|
170
|
+
component.defaultValue = field.value;
|
|
171
|
+
delete component.value;
|
|
169
172
|
component.id = component.id + "";
|
|
170
173
|
component.fieldType = component.fieldType || "text";
|
|
171
174
|
component.type = component.type || "widgets";
|
|
@@ -374,7 +377,7 @@ const _sfc_main = {
|
|
|
374
377
|
};
|
|
375
378
|
}
|
|
376
379
|
};
|
|
377
|
-
const HiddenFieldDialog = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
380
|
+
const HiddenFieldDialog = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-b2acaeb1"]]);
|
|
378
381
|
export {
|
|
379
382
|
HiddenFieldDialog as default
|
|
380
383
|
};
|
|
@@ -52,8 +52,8 @@ import _export_sfc from "../../../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
|
52
52
|
import "../../../components/TemplateSelector.vue.mjs";
|
|
53
53
|
import "../../table/default.mjs";
|
|
54
54
|
/* empty css */
|
|
55
|
-
/* empty css
|
|
56
|
-
/* empty css
|
|
55
|
+
/* empty css */
|
|
56
|
+
/* empty css */
|
|
57
57
|
import "../../../store/index.mjs";
|
|
58
58
|
/* empty css */
|
|
59
59
|
import { ElCollapse, ElCollapseItem } from "../../../../../node_modules/element-plus/es/components/collapse/index.mjs";
|
package/es/designer.css
CHANGED
|
@@ -127,37 +127,37 @@
|
|
|
127
127
|
}
|
|
128
128
|
.value-selector-input[data-v-e5b87efa] .el-input-tag__suffix {
|
|
129
129
|
padding-right: 0;
|
|
130
|
-
}.action-bar[data-v-
|
|
130
|
+
}.action-bar[data-v-b2acaeb1] {
|
|
131
131
|
display: flex;
|
|
132
132
|
justify-content: space-between;
|
|
133
133
|
align-items: center;
|
|
134
134
|
margin-bottom: 16px;
|
|
135
135
|
}
|
|
136
|
-
.action-bar .left-buttons[data-v-
|
|
136
|
+
.action-bar .left-buttons[data-v-b2acaeb1] {
|
|
137
137
|
display: flex;
|
|
138
138
|
gap: 12px;
|
|
139
139
|
}
|
|
140
|
-
.action-bar .count-info[data-v-
|
|
140
|
+
.action-bar .count-info[data-v-b2acaeb1] {
|
|
141
141
|
color: #909399;
|
|
142
142
|
font-size: 14px;
|
|
143
143
|
}
|
|
144
|
-
.field-list-container[data-v-
|
|
144
|
+
.field-list-container[data-v-b2acaeb1] {
|
|
145
145
|
margin-bottom: 16px;
|
|
146
146
|
}
|
|
147
|
-
.field-name-cell[data-v-
|
|
147
|
+
.field-name-cell[data-v-b2acaeb1] {
|
|
148
148
|
display: flex;
|
|
149
149
|
align-items: center;
|
|
150
150
|
gap: 8px;
|
|
151
151
|
flex: 1;
|
|
152
152
|
}
|
|
153
|
-
.field-name-cell .el-input[data-v-
|
|
153
|
+
.field-name-cell .el-input[data-v-b2acaeb1] {
|
|
154
154
|
flex: 1;
|
|
155
155
|
}
|
|
156
|
-
.dialog-footer[data-v-
|
|
156
|
+
.dialog-footer[data-v-b2acaeb1] {
|
|
157
157
|
display: flex;
|
|
158
158
|
justify-content: flex-end;
|
|
159
159
|
}
|
|
160
|
-
[data-v-
|
|
160
|
+
[data-v-b2acaeb1] .el-table--fit .el-table__inner-wrapper:before {
|
|
161
161
|
display: none;
|
|
162
162
|
}.root-aside[data-v-b7e9472b] {
|
|
163
163
|
width: 300px;
|
|
@@ -5921,25 +5921,25 @@ body,
|
|
|
5921
5921
|
width: 80px;
|
|
5922
5922
|
font-size: var(--el-font-size-extra-small);
|
|
5923
5923
|
}
|
|
5924
|
-
.fec-form[data-v-
|
|
5924
|
+
.fec-form[data-v-71dda23e] {
|
|
5925
5925
|
height: 100%;
|
|
5926
5926
|
}
|
|
5927
|
-
[data-v-
|
|
5927
|
+
[data-v-71dda23e] .vgl-layout {
|
|
5928
5928
|
position: relative;
|
|
5929
5929
|
}
|
|
5930
|
-
[data-v-
|
|
5930
|
+
[data-v-71dda23e] .vgl-item {
|
|
5931
5931
|
transition: none;
|
|
5932
5932
|
}
|
|
5933
|
-
[data-v-
|
|
5933
|
+
[data-v-71dda23e] .vgl-item > .el-form-item {
|
|
5934
5934
|
width: 100%;
|
|
5935
5935
|
padding: 6px 8px 0 8px;
|
|
5936
5936
|
height: calc(100% - 15px);
|
|
5937
5937
|
display: flex;
|
|
5938
5938
|
}
|
|
5939
|
-
[data-v-
|
|
5939
|
+
[data-v-71dda23e] .vgl-item > .el-form-item.el-form-item--label-top {
|
|
5940
5940
|
flex-direction: column;
|
|
5941
5941
|
}
|
|
5942
|
-
[data-v-
|
|
5942
|
+
[data-v-71dda23e] .vgl-item > .el-form-item .el-form-item__label {
|
|
5943
5943
|
line-height: 20px;
|
|
5944
5944
|
display: flex;
|
|
5945
5945
|
align-items: center;
|
|
@@ -5948,12 +5948,12 @@ body,
|
|
|
5948
5948
|
flex-wrap: wrap;
|
|
5949
5949
|
white-space: normal;
|
|
5950
5950
|
}
|
|
5951
|
-
[data-v-
|
|
5951
|
+
[data-v-71dda23e] .vgl-item > .el-form-item {
|
|
5952
5952
|
/* .el-form-item__error {
|
|
5953
5953
|
padding-top: 10px;
|
|
5954
5954
|
} */
|
|
5955
5955
|
}
|
|
5956
|
-
[data-v-
|
|
5956
|
+
[data-v-71dda23e] .vgl-item > .el-container {
|
|
5957
5957
|
height: auto !important;
|
|
5958
5958
|
}.table-pagination[data-v-142fdd35] {
|
|
5959
5959
|
display: flex;
|
|
@@ -593,7 +593,15 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
593
593
|
const handleCustomButtonClick = (button) => {
|
|
594
594
|
var _a;
|
|
595
595
|
handleEvent.value(
|
|
596
|
-
|
|
596
|
+
getFormData(),
|
|
597
|
+
button,
|
|
598
|
+
(_a = button.eventConfig) == null ? void 0 : _a.find((item) => item.name == "Click")
|
|
599
|
+
);
|
|
600
|
+
};
|
|
601
|
+
const handleActionClick = (button) => {
|
|
602
|
+
var _a;
|
|
603
|
+
handleEvent.value(
|
|
604
|
+
getFormData(),
|
|
597
605
|
button,
|
|
598
606
|
(_a = button.eventConfig) == null ? void 0 : _a.find((item) => item.name == "Click")
|
|
599
607
|
);
|
|
@@ -1022,7 +1030,8 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
1022
1030
|
createVNode(unref(header), {
|
|
1023
1031
|
showBack: !__props.isSubForm && !__props.isDialog,
|
|
1024
1032
|
isApproval: __props.isApproval,
|
|
1025
|
-
pageHeaderConfig: localConfig.value.pageHeaderConfig
|
|
1033
|
+
pageHeaderConfig: localConfig.value.pageHeaderConfig,
|
|
1034
|
+
onActionClick: handleActionClick
|
|
1026
1035
|
}, null, 8, ["showBack", "isApproval", "pageHeaderConfig"]),
|
|
1027
1036
|
createVNode(unref(main), {
|
|
1028
1037
|
scrollbar: !__props.isDialog
|
|
@@ -1094,7 +1103,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
1094
1103
|
};
|
|
1095
1104
|
}
|
|
1096
1105
|
});
|
|
1097
|
-
const _Form = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
1106
|
+
const _Form = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-71dda23e"]]);
|
|
1098
1107
|
export {
|
|
1099
1108
|
_Form as default
|
|
1100
1109
|
};
|
|
@@ -477,6 +477,7 @@ async function handleFormSetValue(node, data, fields, context) {
|
|
|
477
477
|
delete formData[value];
|
|
478
478
|
});
|
|
479
479
|
}
|
|
480
|
+
formData = removeEmptyValues(formData);
|
|
480
481
|
delete formData.pageNo;
|
|
481
482
|
delete formData.pageSize;
|
|
482
483
|
const formComponent = ((_a = context.components) == null ? void 0 : _a.form) || ((_b = context.components) == null ? void 0 : _b.table);
|
|
@@ -55,7 +55,8 @@ const _sfc_main = {
|
|
|
55
55
|
var _a;
|
|
56
56
|
hiddenFields.value = (((_a = editConfigData.value) == null ? void 0 : _a.hiddenFields) || []).map(
|
|
57
57
|
(field) => ({
|
|
58
|
-
...field
|
|
58
|
+
...field,
|
|
59
|
+
value: field.value || field.defaultValue
|
|
59
60
|
})
|
|
60
61
|
);
|
|
61
62
|
};
|
|
@@ -168,6 +169,8 @@ const _sfc_main = {
|
|
|
168
169
|
let currentY = maxY;
|
|
169
170
|
selectedRows.value.forEach((field) => {
|
|
170
171
|
let component = common.cloneDeep(field);
|
|
172
|
+
component.defaultValue = field.value;
|
|
173
|
+
delete component.value;
|
|
171
174
|
component.id = component.id + "";
|
|
172
175
|
component.fieldType = component.fieldType || "text";
|
|
173
176
|
component.type = component.type || "widgets";
|
|
@@ -376,5 +379,5 @@ const _sfc_main = {
|
|
|
376
379
|
};
|
|
377
380
|
}
|
|
378
381
|
};
|
|
379
|
-
const HiddenFieldDialog = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
382
|
+
const HiddenFieldDialog = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-b2acaeb1"]]);
|
|
380
383
|
exports.default = HiddenFieldDialog;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const index = require("./index.
|
|
3
|
+
const index = require("./index.vue.js");
|
|
4
4
|
const vue = require("vue");
|
|
5
5
|
function useDialogDialog() {
|
|
6
6
|
const dialogDialogVisible = vue.ref(false);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const index = require("./index.
|
|
3
|
+
const index = require("./index.vue.js");
|
|
4
4
|
const vue = require("vue");
|
|
5
5
|
function useDialogGlobalDialog() {
|
|
6
6
|
const dialogGlobalDialogVisible = vue.ref(false);
|
|
@@ -54,8 +54,8 @@ const _pluginVue_exportHelper = require("../../../../../_virtual/_plugin-vue_exp
|
|
|
54
54
|
require("../../../components/TemplateSelector.vue.js");
|
|
55
55
|
require("../../table/default.js");
|
|
56
56
|
;/* empty css */
|
|
57
|
-
;/* empty css
|
|
58
|
-
;/* empty css
|
|
57
|
+
;/* empty css */
|
|
58
|
+
;/* empty css */
|
|
59
59
|
require("../../../store/index.js");
|
|
60
60
|
;/* empty css */
|
|
61
61
|
const index$2 = require("../../../../../node_modules/element-plus/es/components/collapse/index.js");
|
package/lib/designer.css
CHANGED
|
@@ -127,37 +127,37 @@
|
|
|
127
127
|
}
|
|
128
128
|
.value-selector-input[data-v-e5b87efa] .el-input-tag__suffix {
|
|
129
129
|
padding-right: 0;
|
|
130
|
-
}.action-bar[data-v-
|
|
130
|
+
}.action-bar[data-v-b2acaeb1] {
|
|
131
131
|
display: flex;
|
|
132
132
|
justify-content: space-between;
|
|
133
133
|
align-items: center;
|
|
134
134
|
margin-bottom: 16px;
|
|
135
135
|
}
|
|
136
|
-
.action-bar .left-buttons[data-v-
|
|
136
|
+
.action-bar .left-buttons[data-v-b2acaeb1] {
|
|
137
137
|
display: flex;
|
|
138
138
|
gap: 12px;
|
|
139
139
|
}
|
|
140
|
-
.action-bar .count-info[data-v-
|
|
140
|
+
.action-bar .count-info[data-v-b2acaeb1] {
|
|
141
141
|
color: #909399;
|
|
142
142
|
font-size: 14px;
|
|
143
143
|
}
|
|
144
|
-
.field-list-container[data-v-
|
|
144
|
+
.field-list-container[data-v-b2acaeb1] {
|
|
145
145
|
margin-bottom: 16px;
|
|
146
146
|
}
|
|
147
|
-
.field-name-cell[data-v-
|
|
147
|
+
.field-name-cell[data-v-b2acaeb1] {
|
|
148
148
|
display: flex;
|
|
149
149
|
align-items: center;
|
|
150
150
|
gap: 8px;
|
|
151
151
|
flex: 1;
|
|
152
152
|
}
|
|
153
|
-
.field-name-cell .el-input[data-v-
|
|
153
|
+
.field-name-cell .el-input[data-v-b2acaeb1] {
|
|
154
154
|
flex: 1;
|
|
155
155
|
}
|
|
156
|
-
.dialog-footer[data-v-
|
|
156
|
+
.dialog-footer[data-v-b2acaeb1] {
|
|
157
157
|
display: flex;
|
|
158
158
|
justify-content: flex-end;
|
|
159
159
|
}
|
|
160
|
-
[data-v-
|
|
160
|
+
[data-v-b2acaeb1] .el-table--fit .el-table__inner-wrapper:before {
|
|
161
161
|
display: none;
|
|
162
162
|
}.root-aside[data-v-b7e9472b] {
|
|
163
163
|
width: 300px;
|
|
@@ -5921,25 +5921,25 @@ body,
|
|
|
5921
5921
|
width: 80px;
|
|
5922
5922
|
font-size: var(--el-font-size-extra-small);
|
|
5923
5923
|
}
|
|
5924
|
-
.fec-form[data-v-
|
|
5924
|
+
.fec-form[data-v-71dda23e] {
|
|
5925
5925
|
height: 100%;
|
|
5926
5926
|
}
|
|
5927
|
-
[data-v-
|
|
5927
|
+
[data-v-71dda23e] .vgl-layout {
|
|
5928
5928
|
position: relative;
|
|
5929
5929
|
}
|
|
5930
|
-
[data-v-
|
|
5930
|
+
[data-v-71dda23e] .vgl-item {
|
|
5931
5931
|
transition: none;
|
|
5932
5932
|
}
|
|
5933
|
-
[data-v-
|
|
5933
|
+
[data-v-71dda23e] .vgl-item > .el-form-item {
|
|
5934
5934
|
width: 100%;
|
|
5935
5935
|
padding: 6px 8px 0 8px;
|
|
5936
5936
|
height: calc(100% - 15px);
|
|
5937
5937
|
display: flex;
|
|
5938
5938
|
}
|
|
5939
|
-
[data-v-
|
|
5939
|
+
[data-v-71dda23e] .vgl-item > .el-form-item.el-form-item--label-top {
|
|
5940
5940
|
flex-direction: column;
|
|
5941
5941
|
}
|
|
5942
|
-
[data-v-
|
|
5942
|
+
[data-v-71dda23e] .vgl-item > .el-form-item .el-form-item__label {
|
|
5943
5943
|
line-height: 20px;
|
|
5944
5944
|
display: flex;
|
|
5945
5945
|
align-items: center;
|
|
@@ -5948,12 +5948,12 @@ body,
|
|
|
5948
5948
|
flex-wrap: wrap;
|
|
5949
5949
|
white-space: normal;
|
|
5950
5950
|
}
|
|
5951
|
-
[data-v-
|
|
5951
|
+
[data-v-71dda23e] .vgl-item > .el-form-item {
|
|
5952
5952
|
/* .el-form-item__error {
|
|
5953
5953
|
padding-top: 10px;
|
|
5954
5954
|
} */
|
|
5955
5955
|
}
|
|
5956
|
-
[data-v-
|
|
5956
|
+
[data-v-71dda23e] .vgl-item > .el-container {
|
|
5957
5957
|
height: auto !important;
|
|
5958
5958
|
}.table-pagination[data-v-142fdd35] {
|
|
5959
5959
|
display: flex;
|
|
@@ -595,7 +595,15 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
595
595
|
const handleCustomButtonClick = (button) => {
|
|
596
596
|
var _a;
|
|
597
597
|
handleEvent.value(
|
|
598
|
-
|
|
598
|
+
getFormData(),
|
|
599
|
+
button,
|
|
600
|
+
(_a = button.eventConfig) == null ? void 0 : _a.find((item) => item.name == "Click")
|
|
601
|
+
);
|
|
602
|
+
};
|
|
603
|
+
const handleActionClick = (button) => {
|
|
604
|
+
var _a;
|
|
605
|
+
handleEvent.value(
|
|
606
|
+
getFormData(),
|
|
599
607
|
button,
|
|
600
608
|
(_a = button.eventConfig) == null ? void 0 : _a.find((item) => item.name == "Click")
|
|
601
609
|
);
|
|
@@ -1024,7 +1032,8 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
1024
1032
|
vue.createVNode(vue.unref(index$3.header), {
|
|
1025
1033
|
showBack: !__props.isSubForm && !__props.isDialog,
|
|
1026
1034
|
isApproval: __props.isApproval,
|
|
1027
|
-
pageHeaderConfig: localConfig.value.pageHeaderConfig
|
|
1035
|
+
pageHeaderConfig: localConfig.value.pageHeaderConfig,
|
|
1036
|
+
onActionClick: handleActionClick
|
|
1028
1037
|
}, null, 8, ["showBack", "isApproval", "pageHeaderConfig"]),
|
|
1029
1038
|
vue.createVNode(vue.unref(index$4.main), {
|
|
1030
1039
|
scrollbar: !__props.isDialog
|
|
@@ -1096,5 +1105,5 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
1096
1105
|
};
|
|
1097
1106
|
}
|
|
1098
1107
|
});
|
|
1099
|
-
const _Form = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
1108
|
+
const _Form = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-71dda23e"]]);
|
|
1100
1109
|
exports.default = _Form;
|
|
@@ -479,6 +479,7 @@ async function handleFormSetValue(node, data, fields, context) {
|
|
|
479
479
|
delete formData[value];
|
|
480
480
|
});
|
|
481
481
|
}
|
|
482
|
+
formData = common.removeEmptyValues(formData);
|
|
482
483
|
delete formData.pageNo;
|
|
483
484
|
delete formData.pageSize;
|
|
484
485
|
const formComponent = ((_a = context.components) == null ? void 0 : _a.form) || ((_b = context.components) == null ? void 0 : _b.table);
|