feat: Button Level 支持表达式

This commit is contained in:
2betop 2023-05-23 11:59:01 +08:00
parent 3e394cbae7
commit 02ec6f5de4

View File

@ -858,7 +858,7 @@ export class Action extends React.Component<ActionProps, ActionState> {
level={
activeLevel && isActive
? activeLevel
: level || (primary ? 'primary' : undefined)
: filter(level, data) || (primary ? 'primary' : undefined)
}
loadingClassName={loadingClassName}
loading={loading}