Commit d5f09829 authored by KesaubeEire's avatar KesaubeEire

feat: 点击图片显示游戏所有缩略图 01.

parent 96113204
<script> <script>
import Card from './components/card.svelte'; import Card from './components/card.svelte';
import { SvelteToast, toast } from '@zerodevx/svelte-toast'; import { SvelteToast, toast } from '@zerodevx/svelte-toast';
import { _category, _env, _tagTrans } from './stores'; import { _category, _detailWindow, _env, _tagTrans } from './stores';
import { fade } from 'svelte/transition'; import { fade } from 'svelte/transition';
// ----------------------------- // -----------------------------
...@@ -179,6 +179,17 @@ ...@@ -179,6 +179,17 @@
return $_env + '/' + folder.substring(2); return $_env + '/' + folder.substring(2);
} }
// -----------------------------
/**关闭详情*/
function key_closePanels(event) {
if (event.key === 'Escape') {
console.log(event);
// $_iframe_switch = 0;
// $_show_configPanel = false;
$_detailWindow = false;
}
}
// ----------------------------- // -----------------------------
// NOTE: 初始化执行 -> 考虑用 onMount // NOTE: 初始化执行 -> 考虑用 onMount
// 初始化请求 -> 拉取所有分类 // 初始化请求 -> 拉取所有分类
......
...@@ -43,4 +43,7 @@ export const _env = persistStore('_env', ""); ...@@ -43,4 +43,7 @@ export const _env = persistStore('_env', "");
export const _category = persistStore('_category', {}); export const _category = persistStore('_category', {});
/** 定时持久化: TAG 翻译 */ /** 定时持久化: TAG 翻译 */
export const _tagTrans = persistStore('_tagTrans', {}); export const _tagTrans = persistStore('_tagTrans', {});
\ No newline at end of file
/** trigger: 详情图片显示窗口 */
export const _detailWindow = writable(false);
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment