清除“Task”模块
This commit is contained in:
@@ -23,7 +23,6 @@ export const canDoAction = (machine: StateMachine, actionKey: string, currentSta
|
||||
};
|
||||
|
||||
export * from "./types";
|
||||
export * from "./task.machine";
|
||||
export * from "./subject.machine";
|
||||
export * from "./ae.machine";
|
||||
export * from "./finance.machine";
|
||||
|
||||
@@ -1,16 +0,0 @@
|
||||
import type { StateMachine } from "./types";
|
||||
|
||||
export const taskMachine: StateMachine = {
|
||||
states: {
|
||||
TODO: { value: "TODO", label: "待处理", color: "info" },
|
||||
DONE: { value: "DONE", label: "已完成", color: "success", isTerminal: true },
|
||||
},
|
||||
actions: {
|
||||
complete: {
|
||||
key: "complete",
|
||||
label: "完成",
|
||||
from: ["TODO"],
|
||||
to: "DONE",
|
||||
},
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user