mirror of
https://github.com/unanmed/HumanBreak.git
synced 2025-01-19 12:49:25 +08:00
refactor: 删除旧的uiController.ts
This commit is contained in:
parent
f4757d7cc3
commit
b407e7b80a
@ -13,7 +13,6 @@ import './main/custom/toolbar';
|
||||
|
||||
interface AncTePlugin {
|
||||
pop: ReturnType<typeof import('../plugin/pop').default>;
|
||||
ui: ReturnType<typeof import('../plugin/uiController').default>;
|
||||
use: ReturnType<typeof import('../plugin/use').default>;
|
||||
animate: ReturnType<typeof import('../plugin/animateController').default>;
|
||||
utils: ReturnType<typeof import('../plugin/utils').default>;
|
||||
|
@ -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()],
|
||||
|
@ -1,7 +0,0 @@
|
||||
import { ref } from 'vue';
|
||||
|
||||
// todo: 优化开启控制器
|
||||
|
||||
export default function init() {
|
||||
return {};
|
||||
}
|
@ -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)) {
|
||||
|
@ -283,7 +283,6 @@ onMounted(async () => {
|
||||
draw();
|
||||
|
||||
await sleep(50);
|
||||
// if (mota.plugin.ui.transition.value) await sleep(600);
|
||||
canvas.addEventListener('click', click);
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user