From ef36eeb231158d7c559daaba2f4479883fa05789 Mon Sep 17 00:00:00 2001 From: AaronWu <2463371514@qq.com> Date: Thu, 17 Apr 2025 17:23:47 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=88=A0=E9=99=A4=E5=8A=9F=E8=83=BD?= =?UTF-8?q?=E5=8E=BB=E9=99=A4=E5=A4=9A=E4=BD=99=E7=A1=AE=E8=AE=A4=E6=AD=A5?= =?UTF-8?q?=E9=AA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components.d.ts | 6 ++++++ src/views/question/issue/index.vue | 9 +++++---- src/views/question/knowledge/index.vue | 9 +++++---- src/views/system/user/index.vue | 9 +++++---- 4 files changed, 21 insertions(+), 12 deletions(-) diff --git a/components.d.ts b/components.d.ts index 60deb63..7658ee4 100644 --- a/components.d.ts +++ b/components.d.ts @@ -7,18 +7,24 @@ export {} declare module '@vue/runtime-core' { export interface GlobalComponents { + AAvatar: typeof import('ant-design-vue/es')['Avatar'] AButton: typeof import('ant-design-vue/es')['Button'] ACard: typeof import('ant-design-vue/es')['Card'] ACardMeta: typeof import('ant-design-vue/es')['CardMeta'] ACol: typeof import('ant-design-vue/es')['Col'] + ADescriptions: typeof import('ant-design-vue/es')['Descriptions'] + ADescriptionsItem: typeof import('ant-design-vue/es')['DescriptionsItem'] + ADrawer: typeof import('ant-design-vue/es')['Drawer'] AEmpty: typeof import('ant-design-vue/es')['Empty'] AForm: typeof import('ant-design-vue/es')['Form'] AFormItem: typeof import('ant-design-vue/es')['FormItem'] AInput: typeof import('ant-design-vue/es')['Input'] + AInputPassword: typeof import('ant-design-vue/es')['InputPassword'] AInputSearch: typeof import('ant-design-vue/es')['InputSearch'] ALayout: typeof import('ant-design-vue/es')['Layout'] ALayoutContent: typeof import('ant-design-vue/es')['LayoutContent'] ALayoutSider: typeof import('ant-design-vue/es')['LayoutSider'] + AModal: typeof import('ant-design-vue/es')['Modal'] ApiSelect: typeof import('./src/components/core/schema-form/src/components/ApiSelect.vue')['default'] ARow: typeof import('ant-design-vue/es')['Row'] ASpace: typeof import('ant-design-vue/es')['Space'] diff --git a/src/views/question/issue/index.vue b/src/views/question/issue/index.vue index 0ddcd2e..3e2fd15 100644 --- a/src/views/question/issue/index.vue +++ b/src/views/question/issue/index.vue @@ -265,10 +265,11 @@ icon: 'delete', color: '#ec6f6f', label: '删除', - popConfirm: { - title: '确定要删除吗?', - onConfirm: () => handleDelete(record.id), - }, + onClick: () => handleDelete(record.id), + // popConfirm: { + // title: '确定要删除吗?', + // onConfirm: () => handleDelete(record.id), + // }, }, ]; }, diff --git a/src/views/question/knowledge/index.vue b/src/views/question/knowledge/index.vue index e5d27e8..a09bb79 100644 --- a/src/views/question/knowledge/index.vue +++ b/src/views/question/knowledge/index.vue @@ -228,10 +228,11 @@ icon: 'delete', color: '#ec6f6f', label: '删除', - popConfirm: { - title: '确定要删除吗?', - onConfirm: () => handleDelete(record.id), - }, + onClick: () => handleDelete(record.id), + // popConfirm: { + // title: '确定要删除吗?', + // onConfirm: () => handleDelete(record.id), + // }, }, ]; }, diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue index ff91088..334048c 100644 --- a/src/views/system/user/index.vue +++ b/src/views/system/user/index.vue @@ -103,10 +103,11 @@ icon: 'delete', color: '#ec6f6f', label: '删除', - popConfirm: { - title: '确定要删除吗?', - onConfirm: () => handleDelete(record.id), - }, + onClick: () => handleDelete(record.id), + // popConfirm: { + // title: '确定要删除吗?', + // onConfirm: () => handleDelete(record.id), + // }, }, ], },