fix: 按钮颜色卡片更换

This commit is contained in:
leiqiaochu 2023-03-20 10:55:28 +08:00
parent 84db55b690
commit 7da98bff35
4 changed files with 8 additions and 5 deletions

View File

@ -52,6 +52,7 @@
@click="i.onClick"
type="link"
style="padding: 0px"
:danger="i.key === 'delete'"
>
<template #icon><AIcon :type="i.icon" /></template>
</PermissionButton>

View File

@ -139,6 +139,7 @@
@click="i.onClick"
type="link"
style="padding: 0px"
:danger="i.key === 'delete'"
>
<template #icon><AIcon :type="i.icon" /></template>
</PermissionButton>

View File

@ -151,9 +151,9 @@
type="link"
style="padding: 0px"
:hasPermission="
'rule-engine/Alarm/Configuration:' +
i.key
'rule-engine/Alarm/Configuration:' + i.key
"
:danger="i.key === 'delete'"
>
<template #icon
><AIcon :type="i.icon"
@ -431,8 +431,8 @@ const getActions = (
icon: 'DeleteOutlined',
},
];
return actions.filter((item)=>
item.key != 'tigger' || data.sceneTriggerType == 'manual'
return actions.filter(
(item) => item.key != 'tigger' || data.sceneTriggerType == 'manual',
);
};
const add = () => {

View File

@ -117,6 +117,7 @@
type="link"
style="padding: 0px"
:hasPermission="'rule-engine/Instance:' + i.key"
:danger="i.key === 'delete'"
>
<template #icon
><AIcon :type="i.icon"
@ -247,7 +248,7 @@ const getActions = (
icon: 'EyeOutlined',
onClick: () => {
openRuleEditor(data);
}
},
},
{
key: 'action',