update: 按钮新增danger属性

This commit is contained in:
JiangQiming 2023-03-21 09:39:20 +08:00
parent 8cd2b8644e
commit 552af71c39
5 changed files with 11 additions and 4 deletions

View File

@ -121,6 +121,7 @@
:key="i.key"
>
<PermissionButton
:danger="i.key === 'delete'"
:disabled="i.disabled"
:popConfirm="i.popConfirm"
:tooltip="{

View File

@ -79,8 +79,10 @@
:disabled="i.disabled"
style="padding: 0"
type="link"
><AIcon :type="i.icon"
/></j-button>
:danger="i.key === 'delete'"
>
<AIcon :type="i.icon" />
</j-button>
</j-popconfirm>
<j-button
style="padding: 0"
@ -92,8 +94,9 @@
:disabled="i.disabled"
style="padding: 0"
type="link"
><AIcon :type="i.icon"
/></j-button>
>
<AIcon :type="i.icon" />
</j-button>
</j-button>
</j-tooltip>
</j-space>

View File

@ -124,6 +124,7 @@
:key="i.key"
>
<PermissionButton
:danger="i.key === 'delete'"
:disabled="i.disabled"
:popConfirm="i.popConfirm"
:tooltip="{

View File

@ -168,6 +168,7 @@
:key="i.key"
>
<PermissionButton
:danger="i.key === 'delete'"
:disabled="i.disabled"
:popConfirm="i.popConfirm"
:tooltip="{

View File

@ -131,6 +131,7 @@
:key="i.key"
>
<PermissionButton
:danger="i.key === 'delete'"
:disabled="i.disabled"
:popConfirm="i.popConfirm"
:tooltip="{