From 9c6d0b5837aa441c092e41e15281148244ca5de9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=97=E5=AD=90?= Date: Sat, 2 Nov 2024 21:28:29 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20php=E6=8B=93=E5=B1=95=E5=AE=89=E8=A3=85?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=A1=AE=E8=AE=A4=E5=BC=B9=E7=AA=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/views/apps/php/PhpView.vue | 27 +++++++++++++++++++-------- 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/web/src/views/apps/php/PhpView.vue b/web/src/views/apps/php/PhpView.vue index f5ec2982..6c434cfe 100644 --- a/web/src/views/apps/php/PhpView.vue +++ b/web/src/views/apps/php/PhpView.vue @@ -55,16 +55,27 @@ const extensionColumns: any = [ return [ !row.installed ? h( - NButton, + NPopconfirm, { - size: 'small', - type: 'primary', - secondary: true, - onClick: () => handleInstallExtension(row.slug) + onPositiveClick: () => handleInstallExtension(row.slug) }, { - default: () => '安装', - icon: renderIcon('material-symbols:download-rounded', { size: 14 }) + default: () => { + return '确定安装 ' + row.name + ' 吗?' + }, + trigger: () => { + return h( + NButton, + { + size: 'small', + type: 'info' + }, + { + default: () => '安装', + icon: renderIcon('material-symbols:download-rounded', { size: 14 }) + } + ) + } } ) : null, @@ -76,7 +87,7 @@ const extensionColumns: any = [ }, { default: () => { - return '确定卸载' + row.name + '吗?' + return '确定卸载 ' + row.name + ' 吗?' }, trigger: () => { return h(