@yibozhang/pro-table 16.0.8 → 16.0.9
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.
|
@@ -897,6 +897,19 @@ class ProTableComponent {
|
|
|
897
897
|
});
|
|
898
898
|
seen.add(field);
|
|
899
899
|
});
|
|
900
|
+
// 2) 追加前端新增但远程未存储的字段,使用前端默认配置(默认显示/默认标题等)
|
|
901
|
+
initColumns.forEach((ic) => {
|
|
902
|
+
const field = ic?.field;
|
|
903
|
+
if (!field || seen.has(field))
|
|
904
|
+
return;
|
|
905
|
+
merged.push({
|
|
906
|
+
field,
|
|
907
|
+
isShow: ic.isShow,
|
|
908
|
+
header: ic.header,
|
|
909
|
+
sortName: ic.sortName ?? null,
|
|
910
|
+
});
|
|
911
|
+
seen.add(field);
|
|
912
|
+
});
|
|
900
913
|
return merged;
|
|
901
914
|
}
|
|
902
915
|
async queryDynamicColumns() {
|