mirror of
http://112.124.100.131/ebiz-ai/ebiz-ai-knowledge-manage.git
synced 2025-12-10 03:16:49 +08:00
feat(components): 优化对话框组件并添加关闭功能
- 在 RenderDialog 组件中添加 close 方法,用于关闭对话框 - 优化 knowledgeForm 组件的代码结构和样式 - 在 knowledgeForm 组件中添加对 visible 属性的监听,以同步更新父组件的状态- 修复 knowledgeForm 组件中的保存逻辑
This commit is contained in:
@@ -74,10 +74,11 @@ export default {
|
||||
this.$emit('confirm')
|
||||
// this.$emit('update:visible', false)
|
||||
},
|
||||
close() {
|
||||
this.cancel()
|
||||
},
|
||||
handleBeforeClose() {
|
||||
this.beforeClose
|
||||
? this.beforeClose()
|
||||
: (this.$emit('cancel'), this.$emit('update:visible', false))
|
||||
this.beforeClose ? this.beforeClose() : this.cancel()
|
||||
}
|
||||
},
|
||||
created() {},
|
||||
|
||||
Reference in New Issue
Block a user