Skip to content

Commit 908cfce

Browse files
authored
fix: set spread es2015 with array from (#5082)
* fix set spread es2015 * prettier
1 parent 5086e8a commit 908cfce

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

packages/table-core/src/features/Pinning.ts

+5-2
Original file line numberDiff line numberDiff line change
@@ -217,14 +217,17 @@ export const Pinning: TableFeature = {
217217
top: (old?.top ?? []).filter(d => !rowIds?.has(d)),
218218
bottom: [
219219
...(old?.bottom ?? []).filter(d => !rowIds?.has(d)),
220-
...rowIds,
220+
...Array.from(rowIds),
221221
],
222222
}
223223
}
224224

225225
if (position === 'top') {
226226
return {
227-
top: [...(old?.top ?? []).filter(d => !rowIds?.has(d)), ...rowIds],
227+
top: [
228+
...(old?.top ?? []).filter(d => !rowIds?.has(d)),
229+
...Array.from(rowIds),
230+
],
228231
bottom: (old?.bottom ?? []).filter(d => !rowIds?.has(d)),
229232
}
230233
}

packages/vue-table/src/merge-proxy.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export function mergeProxy(...sources: any): any {
7373
const keys = []
7474
for (let i = 0; i < sources.length; i++)
7575
keys.push(...Object.keys(resolveSource(sources[i])))
76-
return [...new Set(keys)]
76+
return [...Array.from(new Set(keys))]
7777
},
7878
},
7979
propTraps

0 commit comments

Comments
 (0)