Skip to content

Commit

Permalink
feat: 剪切板窗口支持快速回到顶部 (#138)
Browse files Browse the repository at this point in the history
  • Loading branch information
ayangweb authored Jul 16, 2024
1 parent 3407bc6 commit d795aef
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/pages/Clipboard/History/components/List/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import Scrollbar from "@/components/Scrollbar";
import { FloatButton } from "antd";
import { HistoryContext } from "../..";
import Item from "./components/Item";

Expand All @@ -25,6 +26,9 @@ const List = () => {
<Item key={props.data.id} {...props} />
))}
</div>

{/* @ts-ignore */}
<FloatButton.BackTop target={() => containerTarget.current} />
</Scrollbar>
);
};
Expand Down

0 comments on commit d795aef

Please sign in to comment.