Skip to content

Confirm 确认框

modal的基础上,快速实现确认功能

基础用法

用法

使用需要全局注册使用 modalInstall 方法

ts
import { modalInstall } from 'apathia-ui'
app.use(modalInstall)

使用useConfirm方法实现

vue




可以通过renderFooter的方式来实现自定义 footer

vue




Confirm Props

prop说明类型默认值
title标题string''
render内容string & CustomRender''
confirmText确认按钮string确认
cancelText取消按钮string取消
btnPosition按钮位置['left', 'right', 'center']right
renderFooter自定义底部CustomRender() => {}