2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 12:40:25 +08:00

feat: php拓展安装添加确认弹窗

This commit is contained in:
耗子
2024-11-02 21:28:29 +08:00
parent d069cbec75
commit 9c6d0b5837

View File

@@ -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(