feat: 代码生成

This commit is contained in:
dap
2024-09-24 10:18:07 +08:00
parent 054fbf72cd
commit c3524ab79c
11 changed files with 644 additions and 5 deletions

View File

@@ -0,0 +1,15 @@
import { mitt } from '@vben/utils';
type Events = {
to: number;
};
export const emitter = mitt<Events>();
/**
* 跳转到指定步骤
* @param step 步骤
*/
export function toCurrentStep(step: number) {
emitter.emit('to', step);
}