feat: 添加 sweetalert2 依赖并更新提交提示为 SweetAlert2 弹窗
All checks were successful
/ test (push) Successful in 24s
/ surge (push) Successful in 24s

This commit is contained in:
严浩
2024-11-21 12:20:14 +08:00
parent 1faf682dae
commit a926d7bcfb
3 changed files with 25 additions and 1 deletions

View File

@ -2,11 +2,17 @@
import { FormKitSchemaDefinition, getNode, type FormKitNode } from '@formkit/core';
import { onMounted } from 'vue';
import Guests from './guests.vue';
import Swal from 'sweetalert2'
async function submit(...args: any[]) {
console.debug('submit', `args :>> `, args);
await new Promise(r => setTimeout(r, 1000))
alert('Submitted! 🎉')
Swal.fire({
title: 'Submitted! 🎉',
icon: 'success',
showConfirmButton: false,
timer: 1500
})
}
const castNumber = (node: FormKitNode) => {