@fecp/designer 5.4.45 → 5.4.47
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.css +6 -6
- package/es/packages/vue/src/components/forms/form/Form.vue.mjs +9 -3
- package/lib/designer/package.json.js +1 -1
- package/lib/designer.css +6 -6
- package/lib/packages/vue/src/components/forms/form/Form.vue.js +8 -2
- package/package.json +1 -1
package/es/designer.css
CHANGED
|
@@ -5904,27 +5904,27 @@ body,
|
|
|
5904
5904
|
width: 80px;
|
|
5905
5905
|
font-size: var(--el-font-size-extra-small);
|
|
5906
5906
|
}
|
|
5907
|
-
.fec-form[data-v-
|
|
5907
|
+
.fec-form[data-v-5dbdd1d4] {
|
|
5908
5908
|
height: 100%;
|
|
5909
5909
|
}
|
|
5910
|
-
[data-v-
|
|
5910
|
+
[data-v-5dbdd1d4] .vgl-item {
|
|
5911
5911
|
transition: none;
|
|
5912
5912
|
}
|
|
5913
|
-
[data-v-
|
|
5913
|
+
[data-v-5dbdd1d4] .vgl-item > .el-form-item {
|
|
5914
5914
|
width: 100%;
|
|
5915
5915
|
padding: 12px 8px 0 8px;
|
|
5916
5916
|
height: calc(100% - 15px);
|
|
5917
5917
|
display: flex;
|
|
5918
5918
|
}
|
|
5919
|
-
[data-v-
|
|
5919
|
+
[data-v-5dbdd1d4] .vgl-item > .el-form-item.el-form-item--label-top {
|
|
5920
5920
|
flex-direction: column;
|
|
5921
5921
|
}
|
|
5922
|
-
[data-v-
|
|
5922
|
+
[data-v-5dbdd1d4] .vgl-item > .el-form-item .el-form-item__label {
|
|
5923
5923
|
line-height: 20px;
|
|
5924
5924
|
display: flex;
|
|
5925
5925
|
align-items: center;
|
|
5926
5926
|
}
|
|
5927
|
-
[data-v-
|
|
5927
|
+
[data-v-5dbdd1d4] .vgl-item > .el-container {
|
|
5928
5928
|
height: auto !important;
|
|
5929
5929
|
}.cell-content .cell-text[data-v-3e5372d4] {
|
|
5930
5930
|
display: inline-block;
|
|
@@ -14,7 +14,7 @@ import _FormItem from "../formItem/FormItem.vue.mjs";
|
|
|
14
14
|
import { createDataSource } from "../../../utils/datasource.mjs";
|
|
15
15
|
import { generateFieldRules } from "./validation.mjs";
|
|
16
16
|
import { parseSingleParamValue } from "../../../utils/parseRouteParams.mjs";
|
|
17
|
-
import { cloneDeep, removeEmptyValues } from "../../../utils/common.mjs";
|
|
17
|
+
import { cloneDeep, removeEmptyValues, isEqual } from "../../../utils/common.mjs";
|
|
18
18
|
/* empty css */
|
|
19
19
|
/* empty css */
|
|
20
20
|
/* empty css */
|
|
@@ -766,7 +766,10 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
766
766
|
for (const key of allKeys) {
|
|
767
767
|
const newVal = newData[key];
|
|
768
768
|
const oldVal = oldData[key];
|
|
769
|
-
if (newVal
|
|
769
|
+
if (!newVal && !oldVal) {
|
|
770
|
+
continue;
|
|
771
|
+
}
|
|
772
|
+
if (JSON.stringify(newVal) != JSON.stringify(oldVal)) {
|
|
770
773
|
changedFields.push(key);
|
|
771
774
|
}
|
|
772
775
|
}
|
|
@@ -945,6 +948,9 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
945
948
|
if (!linkaged) {
|
|
946
949
|
return;
|
|
947
950
|
}
|
|
951
|
+
if (isEqual(newVal, oldVal)) {
|
|
952
|
+
return;
|
|
953
|
+
}
|
|
948
954
|
const changedFields = findChangedFields(newVal, prevFormData.value);
|
|
949
955
|
if (changedFields.length > 0) {
|
|
950
956
|
applyLinkageEffectsForChangedFields(changedFields);
|
|
@@ -1076,7 +1082,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
1076
1082
|
};
|
|
1077
1083
|
}
|
|
1078
1084
|
});
|
|
1079
|
-
const _Form = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
1085
|
+
const _Form = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-5dbdd1d4"]]);
|
|
1080
1086
|
export {
|
|
1081
1087
|
_Form as default
|
|
1082
1088
|
};
|
package/lib/designer.css
CHANGED
|
@@ -5904,27 +5904,27 @@ body,
|
|
|
5904
5904
|
width: 80px;
|
|
5905
5905
|
font-size: var(--el-font-size-extra-small);
|
|
5906
5906
|
}
|
|
5907
|
-
.fec-form[data-v-
|
|
5907
|
+
.fec-form[data-v-5dbdd1d4] {
|
|
5908
5908
|
height: 100%;
|
|
5909
5909
|
}
|
|
5910
|
-
[data-v-
|
|
5910
|
+
[data-v-5dbdd1d4] .vgl-item {
|
|
5911
5911
|
transition: none;
|
|
5912
5912
|
}
|
|
5913
|
-
[data-v-
|
|
5913
|
+
[data-v-5dbdd1d4] .vgl-item > .el-form-item {
|
|
5914
5914
|
width: 100%;
|
|
5915
5915
|
padding: 12px 8px 0 8px;
|
|
5916
5916
|
height: calc(100% - 15px);
|
|
5917
5917
|
display: flex;
|
|
5918
5918
|
}
|
|
5919
|
-
[data-v-
|
|
5919
|
+
[data-v-5dbdd1d4] .vgl-item > .el-form-item.el-form-item--label-top {
|
|
5920
5920
|
flex-direction: column;
|
|
5921
5921
|
}
|
|
5922
|
-
[data-v-
|
|
5922
|
+
[data-v-5dbdd1d4] .vgl-item > .el-form-item .el-form-item__label {
|
|
5923
5923
|
line-height: 20px;
|
|
5924
5924
|
display: flex;
|
|
5925
5925
|
align-items: center;
|
|
5926
5926
|
}
|
|
5927
|
-
[data-v-
|
|
5927
|
+
[data-v-5dbdd1d4] .vgl-item > .el-container {
|
|
5928
5928
|
height: auto !important;
|
|
5929
5929
|
}.cell-content .cell-text[data-v-3e5372d4] {
|
|
5930
5930
|
display: inline-block;
|
|
@@ -768,7 +768,10 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
768
768
|
for (const key of allKeys) {
|
|
769
769
|
const newVal = newData[key];
|
|
770
770
|
const oldVal = oldData[key];
|
|
771
|
-
if (newVal
|
|
771
|
+
if (!newVal && !oldVal) {
|
|
772
|
+
continue;
|
|
773
|
+
}
|
|
774
|
+
if (JSON.stringify(newVal) != JSON.stringify(oldVal)) {
|
|
772
775
|
changedFields.push(key);
|
|
773
776
|
}
|
|
774
777
|
}
|
|
@@ -947,6 +950,9 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
947
950
|
if (!linkaged) {
|
|
948
951
|
return;
|
|
949
952
|
}
|
|
953
|
+
if (common.isEqual(newVal, oldVal)) {
|
|
954
|
+
return;
|
|
955
|
+
}
|
|
950
956
|
const changedFields = findChangedFields(newVal, prevFormData.value);
|
|
951
957
|
if (changedFields.length > 0) {
|
|
952
958
|
applyLinkageEffectsForChangedFields(changedFields);
|
|
@@ -1078,5 +1084,5 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
1078
1084
|
};
|
|
1079
1085
|
}
|
|
1080
1086
|
});
|
|
1081
|
-
const _Form = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
1087
|
+
const _Form = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-5dbdd1d4"]]);
|
|
1082
1088
|
exports.default = _Form;
|