fix: danger
parent
eb960dd38e
commit
69ae45ee6d
|
|
@ -197,6 +197,7 @@ const buttonPropsMap = new Map<string, any>();
|
||||||
function getButtonProps(action: ActionItem) {
|
function getButtonProps(action: ActionItem) {
|
||||||
const key = JSON.stringify({
|
const key = JSON.stringify({
|
||||||
type: action.type,
|
type: action.type,
|
||||||
|
danger: action.danger || false,
|
||||||
disabled: action.disabled,
|
disabled: action.disabled,
|
||||||
loading: action.loading,
|
loading: action.loading,
|
||||||
size: action.size,
|
size: action.size,
|
||||||
|
|
@ -207,7 +208,8 @@ function getButtonProps(action: ActionItem) {
|
||||||
}
|
}
|
||||||
|
|
||||||
const res = {
|
const res = {
|
||||||
type: action.type || 'primary',
|
type: action.type || 'link',
|
||||||
|
danger: action.danger || false,
|
||||||
disabled: action.disabled,
|
disabled: action.disabled,
|
||||||
loading: action.loading,
|
loading: action.loading,
|
||||||
size: action.size,
|
size: action.size,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue