refactor: 删除旧的uiController.ts

This commit is contained in:
unanmed 2024-01-19 22:23:48 +08:00
parent f4757d7cc3
commit b407e7b80a
5 changed files with 0 additions and 13 deletions

View File

@ -13,7 +13,6 @@ import './main/custom/toolbar';
interface AncTePlugin { interface AncTePlugin {
pop: ReturnType<typeof import('../plugin/pop').default>; pop: ReturnType<typeof import('../plugin/pop').default>;
ui: ReturnType<typeof import('../plugin/uiController').default>;
use: ReturnType<typeof import('../plugin/use').default>; use: ReturnType<typeof import('../plugin/use').default>;
animate: ReturnType<typeof import('../plugin/animateController').default>; animate: ReturnType<typeof import('../plugin/animateController').default>;
utils: ReturnType<typeof import('../plugin/utils').default>; utils: ReturnType<typeof import('../plugin/utils').default>;

View File

@ -1,5 +1,4 @@
import pop from '@/plugin/pop'; import pop from '@/plugin/pop';
import ui from '@/plugin/uiController';
import use from '@/plugin/use'; import use from '@/plugin/use';
import animate from '@/plugin/animateController'; import animate from '@/plugin/animateController';
import utils from '@/plugin/utils'; import utils from '@/plugin/utils';
@ -23,7 +22,6 @@ import { Mota } from '.';
export function resolvePlugin() { export function resolvePlugin() {
const toForward: [keyof Mota['plugin'], any][] = [ const toForward: [keyof Mota['plugin'], any][] = [
['pop', pop()], ['pop', pop()],
['ui', ui()],
['use', use()], ['use', use()],
['animate', animate()], ['animate', animate()],
['utils', utils()], ['utils', utils()],

View File

@ -1,7 +0,0 @@
import { ref } from 'vue';
// todo: 优化开启控制器
export default function init() {
return {};
}

View File

@ -120,8 +120,6 @@ async function show() {
async function exit() { async function exit() {
const hold = mota.ui.main.holdOn(); const hold = mota.ui.main.holdOn();
mota.ui.main.close(props.num); 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)) { if (core.events.recoverEvents(core.status.event.interval)) {
return; return;
} else if (has(core.status.event.ui)) { } else if (has(core.status.event.ui)) {

View File

@ -283,7 +283,6 @@ onMounted(async () => {
draw(); draw();
await sleep(50); await sleep(50);
// if (mota.plugin.ui.transition.value) await sleep(600);
canvas.addEventListener('click', click); canvas.addEventListener('click', click);
}); });