Skip to content

Commit be3d99c

Browse files
committed
fix: virtuoso scroller bottom not padding
1 parent 0e64c0d commit be3d99c

1 file changed

Lines changed: 12 additions & 5 deletions

File tree

src/components/proxy/use-render-list.ts

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ import {
1111
} from "./use-head-state";
1212

1313
export interface IRenderItem {
14-
// 组 | head | item | empty | item col | item bottom
15-
type: 0 | 1 | 2 | 3 | 4 | 5;
14+
// 组 | head | item | empty | item col | item bottom | empty-padding
15+
type: 0 | 1 | 2 | 3 | 4 | 5 | 6;
1616
key: string;
17-
group: IProxyGroupItem;
17+
group?: IProxyGroupItem;
1818
proxy?: IProxyItem;
1919
col?: number;
2020
proxyCol?: IProxyItem[];
@@ -123,16 +123,23 @@ export const useRenderList = (mode: string) => {
123123
lists.push({
124124
type: 5,
125125
key: `footer-${group.name}`,
126-
group,
127-
headState,
128126
});
129127

130128
return lists;
131129
}
130+
132131
return ret;
133132
});
134133

135134
if (!useRule) return retList.slice(1);
135+
136+
console.log(retList);
137+
138+
retList.push({
139+
type: 6,
140+
key: `empty-padding`,
141+
});
142+
136143
return retList;
137144
}, [headStates, proxiesData, mode, col]);
138145

0 commit comments

Comments
 (0)