From d8c98ad7d550a02bfa808f6a8e5c47d80b6a613b Mon Sep 17 00:00:00 2001 From: unanmed <1319491857@qq.com> Date: Thu, 16 Nov 2023 22:50:13 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E8=AE=BE=E7=BD=AE=E7=9A=84?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=83=A8=E5=88=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 8 +- src/core/main/custom/ui.ts | 15 + src/core/main/init/settings.tsx | 110 +++ src/core/main/init/ui.ts | 2 + src/core/main/setting.ts | 79 +- src/ui/settings.vue | 44 +- 回合制.js | 1483 ------------------------------- 7 files changed, 186 insertions(+), 1555 deletions(-) create mode 100644 src/core/main/init/settings.tsx delete mode 100644 回合制.js diff --git a/src/App.vue b/src/App.vue index 7b01dca..0bd9991 100644 --- a/src/App.vue +++ b/src/App.vue @@ -2,8 +2,9 @@
-
+
{ hook.emit('mounted'); }); + +function show(index: number) { + if (mainUi.show === 'all') return true; + if (mainUi.show === 'end') return index === mainUi.stack.length - 1; +}