From 69ae45ee6d8f5402b135b25b5a55cc8dcb24a88e Mon Sep 17 00:00:00 2001 From: xingyu4j Date: Thu, 26 Jun 2025 15:39:36 +0800 Subject: [PATCH] fix: danger --- apps/web-antd/src/components/table-action/table-action.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/web-antd/src/components/table-action/table-action.vue b/apps/web-antd/src/components/table-action/table-action.vue index 94824eff5..45a22719c 100644 --- a/apps/web-antd/src/components/table-action/table-action.vue +++ b/apps/web-antd/src/components/table-action/table-action.vue @@ -197,6 +197,7 @@ const buttonPropsMap = new Map(); function getButtonProps(action: ActionItem) { const key = JSON.stringify({ type: action.type, + danger: action.danger || false, disabled: action.disabled, loading: action.loading, size: action.size, @@ -207,7 +208,8 @@ function getButtonProps(action: ActionItem) { } const res = { - type: action.type || 'primary', + type: action.type || 'link', + danger: action.danger || false, disabled: action.disabled, loading: action.loading, size: action.size,