v0.8.1
- fix: $PostGrid `orderMap` no cleared when switched booru.
This commit is contained in:
parent
93b06d7c80
commit
dbff5d1de9
File diff suppressed because one or more lines are too long
2
dist/index.html
vendored
2
dist/index.html
vendored
@ -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>
|
||||
|
@ -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",
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user