完善部分ui

This commit is contained in:
AncTe committed 2022-12-29 13:39:40 +08:00
1 parent db5ff1b183
commit 190201b386
15 files changed
+70 -49

No files matched your search

+9 -2
View File
@@ -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 };
}
+4 -8
View File
@@ -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;
}