feat: 添加 sweetalert2 依赖并更新提交提示为 SweetAlert2 弹窗
This commit is contained in:
@ -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) => {
|
||||
|
Reference in New Issue
Block a user