feat: 函数式弹框ReDialog添加Popconfirm气泡确认框 (#1046)

This commit is contained in:
hb0730
2024-04-04 22:14:24 +08:00
committed by GitHub
parent 8d2ef1f644
commit f120467fc8
3 changed files with 79 additions and 13 deletions

View File

@@ -280,6 +280,16 @@ function onUpdateClick() {
});
}
// popconfirm 确认框
function onPopconfirmClick() {
addDialog({
width: "30%",
title: "popconfirm确认框示例",
popconfirm: { title: "是否确认修改当前数据" },
contentRenderer: () => <p>点击右下方确定按钮看看效果吧</p>
});
}
// 结合Form表单第一种方式弹框关闭立刻恢复初始值通过 props 属性接收子组件的 prop 并赋值
function onFormOneClick() {
addDialog({
@@ -496,6 +506,7 @@ function onBeforeSureClick() {
<el-button @click="onCloseCallBackClick"> 关闭后的回调 </el-button>
<el-button @click="onNestingClick"> 嵌套的弹框 </el-button>
<el-button @click="onUpdateClick"> 更改弹框自身属性值 </el-button>
<el-button @click="onPopconfirmClick">popconfirm确认框</el-button>
</el-space>
<el-divider />
<el-space wrap>