# 8.6 提示框(Promt)
提示框组件,用于显示提示信息
# 基础用法
<template>
<dof-promt :show="showPromt" @dofPromtConfirm="onConfirm"></dof-promt>
</template>
1
2
3
2
3
# Attributes
| Prop | Type | Required | Default | Description |
|---|---|---|---|---|
cancel-color | String | N | #00A4F2 | 取消按钮颜色 |
confirm-color | String | N | #00A4F2 | 确认按钮颜色 |
needDarkMode | Boolean | N | false | 是否需要暗黑模式适配 ^2.5.5 |
# Events
| 事件名 | 说明 | 回调参数 |
|---|---|---|
dofPromtConfirm | 确认事件 | - |
dofPromtCancel | 取消事件 | - |