From bb74fe123d180ab7089f097f24d17fbe3b75ca7e Mon Sep 17 00:00:00 2001 From: cnouguier Date: Wed, 21 Aug 2024 15:25:03 +0200 Subject: [PATCH] feat: Allow actions of type of button to be non flat (close #939) --- core/client/components/action/KAction.vue | 3 ++- core/client/utils/utils.actions.js | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/core/client/components/action/KAction.vue b/core/client/components/action/KAction.vue index 90b973518..a745af45e 100644 --- a/core/client/components/action/KAction.vue +++ b/core/client/components/action/KAction.vue @@ -10,7 +10,8 @@ :icon="!iconRight ? computedIcon : undefined" :icon-right="iconRight ? computedIcon : undefined" :size="size" - flat + :flat="flat" + :outline="outline" :round="label === null" :rounded="label !== null" :stack="stack" diff --git a/core/client/utils/utils.actions.js b/core/client/utils/utils.actions.js index d924a2a8f..de5c230d0 100644 --- a/core/client/utils/utils.actions.js +++ b/core/client/utils/utils.actions.js @@ -23,6 +23,10 @@ export const actionProps = { type: String, default: 'md' }, + flat: { + type: Boolean, + default: true + }, outline: { type: Boolean, default: false