Merge branch 'main' into gitee

This commit is contained in:
xiaoxian521
2024-04-04 22:18:28 +08:00
6 changed files with 88 additions and 22 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>

View File

@@ -81,6 +81,8 @@ const onLogin = async (formEl: FormInstance | undefined) => {
})
.finally(() => (disabled.value = false));
});
} else {
message("登录失败", { type: "error" });
}
})
.finally(() => (loading.value = false));