mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-06-08 06:16:27 +08:00
移除runcode动画
This commit is contained in:
parent
e474e475d9
commit
79ce219c6c
@ -82,10 +82,25 @@ import CommandSideBar from "components/editor/CommandSideBar";
|
||||
import CommandLanguageBar from "components/editor/CommandLanguageBar";
|
||||
import EditorTools from "components/editor/EditorTools";
|
||||
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
|
||||
const MonacoEditor = defineAsyncComponent(() =>
|
||||
import("components/editor/MonacoEditor")
|
||||
);
|
||||
const MonacoEditor = defineAsyncComponent({
|
||||
loader: () => MonacoEditorPromise,
|
||||
timeout: 3000,
|
||||
});
|
||||
|
||||
export default {
|
||||
components: {
|
||||
@ -326,7 +341,7 @@ export default {
|
||||
}
|
||||
|
||||
.command-editor-container.run-code {
|
||||
animation: slideDownIn 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
animation: none;
|
||||
}
|
||||
|
||||
.command-editor-container.leaving {
|
||||
|
Loading…
x
Reference in New Issue
Block a user