diff --git a/src/components/base-dialog/addOrUpdate/index.vue b/src/components/base-dialog/addOrUpdate/index.vue index 3c71bd9..4663338 100644 --- a/src/components/base-dialog/addOrUpdate/index.vue +++ b/src/components/base-dialog/addOrUpdate/index.vue @@ -147,13 +147,6 @@ export default { components: { AttrForm }, props: { configs: { - /** - * TODO: 定义及使用方式,应改用README.md文件记录 - * type: 'dialog' | 'drawer' | 'page' - * fields: Array - * - fields.object: { name, type: 'number'|'textarea'|'select'|'date'|.., required: boolean, validator: boolean(是否需要验证), [options]: any[], api: string(自动获取数据的接口,一般为getcode接口)} - * operations: Array[object], 操作名和对应的接口地址,还有permission(如,sys:dict:update) - */ type: Object, default: () => ({}) // 此处省去类型检查,使用者自行注意就好 } @@ -533,7 +526,7 @@ export default { } break case 'cancel': - this.visible = false + this.handleClose() // add more.. } }, diff --git a/src/views/main-navbar.vue b/src/views/main-navbar.vue index 7215699..442f231 100644 --- a/src/views/main-navbar.vue +++ b/src/views/main-navbar.vue @@ -1,36 +1,20 @@