mirror of
https://github.com/unanmed/HumanBreak.git
synced 2026-11-01 07:24:30 +08:00
完善部分ui
This commit is contained in:
1 parent
db5ff1b183
commit
190201b386
15 files changed
+70
-49
No files matched your search
@@ -10,6 +10,13 @@ watch(transition, n => {
|
||||
core.setLocalStorage('transition', n);
|
||||
});
|
||||
|
||||
window.addEventListener('load', () => {
|
||||
/**
|
||||
* 重置设置信息,从localStorage读取即可
|
||||
*/
|
||||
function reset() {
|
||||
transition.value = core.getLocalStorage('transition');
|
||||
});
|
||||
}
|
||||
|
||||
export default function init() {
|
||||
return { resetSettings: reset };
|
||||
}
|
||||
@@ -75,16 +75,12 @@ async function hideApp(index: number) {
|
||||
app.style.transition = 'all 0.6s linear';
|
||||
app.style.opacity = '0';
|
||||
await sleep(600);
|
||||
uiStack.value.splice(index, 1);
|
||||
app.style.display = 'none';
|
||||
if (!noClosePanel.value) core.closePanel();
|
||||
noClosePanel.value = false;
|
||||
} else {
|
||||
app.style.transition = '';
|
||||
app.style.opacity = '0';
|
||||
uiStack.value.splice(index, 1);
|
||||
app.style.display = 'none';
|
||||
if (!noClosePanel.value) core.closePanel();
|
||||
noClosePanel.value = false;
|
||||
}
|
||||
uiStack.value.splice(index, 1);
|
||||
app.style.display = 'none';
|
||||
if (!noClosePanel.value) core.closePanel();
|
||||
noClosePanel.value = false;
|
||||
}
|
||||
Reference in new issue
Block a user