Commit e938e8e9a8b1b3212345c2e7ad01f1845087cc36
Committed by
GitHub
1 parent
3b0077dc
perf(BasicButton): 按钮颜色设置支持主题色primary (#2623)
Co-authored-by: 苗大 <caoshengmiao@hypergryph.com>
Showing
1 changed file
with
1 additions
and
1 deletions
src/components/Button/src/props.ts
1 | -const validColors = ['error', 'warning', 'success', ''] as const; | 1 | +const validColors = ['primary', 'error', 'warning', 'success', ''] as const; |
2 | type ButtonColorType = typeof validColors[number]; | 2 | type ButtonColorType = typeof validColors[number]; |
3 | 3 | ||
4 | export const buttonProps = { | 4 | export const buttonProps = { |