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,