refactor: 发起流程前的loading

This commit is contained in:
dap
2025-08-08 10:29:48 +08:00
parent 6ef3586811
commit ccb53f377a
3 changed files with 46 additions and 10 deletions

View File

@@ -17,6 +17,10 @@ interface Emits {
* 完成
*/
complete: [];
/**
* 取消 此时已经变成草稿状态了
*/
cancel: [];
}
const emit = defineEmits<Emits>();
@@ -31,6 +35,7 @@ const [BasicModal, modalApi] = useVbenModal({
title: '流程发起',
fullscreenButton: false,
onConfirm: handleSubmit,
onCancel: () => emit('cancel'),
async onOpenChange(isOpen) {
if (!isOpen) {
return null;