diff --git a/src/core/index.ts b/src/core/index.ts index 607dd9c..adeecb2 100644 --- a/src/core/index.ts +++ b/src/core/index.ts @@ -13,7 +13,6 @@ import './main/custom/toolbar'; interface AncTePlugin { pop: ReturnType; - ui: ReturnType; use: ReturnType; animate: ReturnType; utils: ReturnType; diff --git a/src/core/plugin.ts b/src/core/plugin.ts index f48fa57..ca335b6 100644 --- a/src/core/plugin.ts +++ b/src/core/plugin.ts @@ -1,5 +1,4 @@ import pop from '@/plugin/pop'; -import ui from '@/plugin/uiController'; import use from '@/plugin/use'; import animate from '@/plugin/animateController'; import utils from '@/plugin/utils'; @@ -23,7 +22,6 @@ import { Mota } from '.'; export function resolvePlugin() { const toForward: [keyof Mota['plugin'], any][] = [ ['pop', pop()], - ['ui', ui()], ['use', use()], ['animate', animate()], ['utils', utils()], diff --git a/src/plugin/uiController.ts b/src/plugin/uiController.ts deleted file mode 100644 index 64e88e6..0000000 --- a/src/plugin/uiController.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { ref } from 'vue'; - -// todo: 优化开启控制器 - -export default function init() { - return {}; -} diff --git a/src/ui/book.vue b/src/ui/book.vue index ee5aa44..05e7bc6 100644 --- a/src/ui/book.vue +++ b/src/ui/book.vue @@ -120,8 +120,6 @@ async function show() { async function exit() { const hold = mota.ui.main.holdOn(); mota.ui.main.close(props.num); - // if (mota.plugin.ui.transition.value) await sleep(650); - // else await sleep(100); if (core.events.recoverEvents(core.status.event.interval)) { return; } else if (has(core.status.event.ui)) { diff --git a/src/ui/skillTree.vue b/src/ui/skillTree.vue index 89ab639..7c8b3dc 100644 --- a/src/ui/skillTree.vue +++ b/src/ui/skillTree.vue @@ -283,7 +283,6 @@ onMounted(async () => { draw(); await sleep(50); - // if (mota.plugin.ui.transition.value) await sleep(600); canvas.addEventListener('click', click); });