@weitutech/by-components-v3 1.1.0 → 1.1.1
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/dist/by-component-v3.mjs
CHANGED
|
@@ -36896,7 +36896,6 @@ const ByTable = /* @__PURE__ */ defineComponent({
|
|
|
36896
36896
|
if (!cacheColumns || !props.name) {
|
|
36897
36897
|
return void 0;
|
|
36898
36898
|
}
|
|
36899
|
-
console.log(columns, "columns");
|
|
36900
36899
|
columns.forEach((item) => {
|
|
36901
36900
|
if (item && item.field && !cacheColumns.some((col) => col && col.field === item.field)) {
|
|
36902
36901
|
cacheColumns.push({
|
|
@@ -36905,10 +36904,8 @@ const ByTable = /* @__PURE__ */ defineComponent({
|
|
|
36905
36904
|
});
|
|
36906
36905
|
}
|
|
36907
36906
|
});
|
|
36908
|
-
|
|
36909
|
-
|
|
36910
|
-
localStorage.setItem(props.name, JSON.stringify(newCacheColumns));
|
|
36911
|
-
return newCacheColumns;
|
|
36907
|
+
localStorage.setItem(props.name, JSON.stringify(cacheColumns));
|
|
36908
|
+
return cacheColumns;
|
|
36912
36909
|
};
|
|
36913
36910
|
const handlePagerChange = (context) => {
|
|
36914
36911
|
emit("pageChange", context);
|
|
@@ -36991,7 +36988,8 @@ const ByTable = /* @__PURE__ */ defineComponent({
|
|
|
36991
36988
|
}
|
|
36992
36989
|
}
|
|
36993
36990
|
}
|
|
36994
|
-
|
|
36991
|
+
const newColumns = getColumnsData(result);
|
|
36992
|
+
emit("setColumns", newColumns);
|
|
36995
36993
|
};
|
|
36996
36994
|
expose({
|
|
36997
36995
|
CustomColumnRef,
|