mirror of
https://github.com/yangjian102621/geekai.git
synced 2025-09-18 01:06:39 +08:00
optimize configuration dialog close action
This commit is contained in:
parent
b7120b400a
commit
f32803deca
@ -1,13 +1,14 @@
|
|||||||
<template>
|
<template>
|
||||||
<el-dialog
|
<el-dialog
|
||||||
v-model="$props.show"
|
v-model="$props.show"
|
||||||
|
:close-on-click-modal="false"
|
||||||
|
:show-close="false"
|
||||||
title="聊天配置"
|
title="聊天配置"
|
||||||
:before-close="beforeClose"
|
|
||||||
>
|
>
|
||||||
<span>正在努力开发中...</span>
|
<span>正在努力开发中...</span>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<span class="dialog-footer">
|
<span class="dialog-footer">
|
||||||
<el-button @click="this.$emit('update:show', false)">取消</el-button>
|
<el-button @click="close">关闭</el-button>
|
||||||
<el-button type="primary" @click="save">
|
<el-button type="primary" @click="save">
|
||||||
保存
|
保存
|
||||||
</el-button>
|
</el-button>
|
||||||
@ -31,10 +32,11 @@ export default defineComponent({
|
|||||||
return {}
|
return {}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
beforeClose: function () {
|
|
||||||
},
|
|
||||||
save: function () {
|
save: function () {
|
||||||
this.$emit('update:show', false);
|
this.$emit('update:show', false);
|
||||||
|
},
|
||||||
|
close: function () {
|
||||||
|
this.$emit('update:show', false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user