移除runcode动画

This commit is contained in:
fofolee 2024-12-29 09:18:24 +08:00
parent e474e475d9
commit 79ce219c6c

View File

@ -82,10 +82,25 @@ import CommandSideBar from "components/editor/CommandSideBar";
import CommandLanguageBar from "components/editor/CommandLanguageBar"; import CommandLanguageBar from "components/editor/CommandLanguageBar";
import EditorTools from "components/editor/EditorTools"; import EditorTools from "components/editor/EditorTools";
import CommandRunResult from "components/CommandRunResult"; import CommandRunResult from "components/CommandRunResult";
// MonacoEditor
const MonacoEditorPromise = import("components/editor/MonacoEditor");
//
if (window.requestIdleCallback) {
window.requestIdleCallback(() => {
MonacoEditorPromise;
});
} else {
setTimeout(() => {
MonacoEditorPromise;
}, 0);
}
// Performance Scripting > 500ms // Performance Scripting > 500ms
const MonacoEditor = defineAsyncComponent(() => const MonacoEditor = defineAsyncComponent({
import("components/editor/MonacoEditor") loader: () => MonacoEditorPromise,
); timeout: 3000,
});
export default { export default {
components: { components: {
@ -326,7 +341,7 @@ export default {
} }
.command-editor-container.run-code { .command-editor-container.run-code {
animation: slideDownIn 0.2s cubic-bezier(0.4, 0, 0.2, 1); animation: none;
} }
.command-editor-container.leaving { .command-editor-container.leaving {