- fix: $PostGrid `orderMap` no cleared when switched booru.
This commit is contained in:
defaultkavy 2024-10-15 13:46:15 +08:00
parent 93b06d7c80
commit dbff5d1de9
Signed by: defaultkavy
GPG Key ID: DFBB22C4E69D7826
4 changed files with 4 additions and 4 deletions

File diff suppressed because one or more lines are too long

2
dist/index.html vendored
View File

@ -16,7 +16,7 @@
gtag('config', 'G-59HBGP98WR');
</script>
<script type="module" crossorigin src="/assets/index-adASBXxZ.js"></script>
<script type="module" crossorigin src="/assets/index-06ifinc_.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-D689878Y.css">
</head>
<body>

View File

@ -2,7 +2,7 @@
"name": "danbooru-viewer",
"module": "index.ts",
"type": "module",
"version": "0.8.0",
"version": "0.8.1",
"scripts": {
"dev": "bun x vite",
"build": "bun x vite build",

View File

@ -2,7 +2,6 @@ import { $Layout, type $LayoutEventMap } from "@elexis/layout";
import { Booru } from "../../structure/Booru";
import { Post } from "../../structure/Post";
import { $PostTile } from "../PostTile/$PostTile";
import { User } from "../../structure/User";
interface $PostGridOptions {
tags?: string
@ -72,6 +71,7 @@ export class $PostGrid extends $Layout<$PostGridEventMap> {
removeAll() {
this.posts.clear();
this.$posts.clear();
this.orderMap.clear();
this.animate({opacity: [1, 0]}, {duration: 300, easing: 'ease'}, () => this.clear().render())
return this;
}