my-blog:https://tuimao233.gitee.io/mao-blog/
想必大家使用 Vue 开发时,都有使用过 Element 或 Ant Design of Vue 的模态框
例如 Ant Design of Vue 中的 a-message:
<a-modal v-model="visible" title="Title" on-ok="handleOk">
自定义内容
</a-modal>
又或者直接在 js 代码中直接调起的 ElMessageBox:
import {
ElMessageBox } from 'element-plus';
ElMessageBox.confirm('此操作将永久删除该文件, 是否继续?', '提示')
.then(()=> {
})
.