Commit e938e8e9a8b1b3212345c2e7ad01f1845087cc36

Authored by Wit〆苗大
Committed by GitHub
1 parent 3b0077dc

perf(BasicButton): 按钮颜色设置支持主题色primary (#2623)

Co-authored-by: 苗大 <caoshengmiao@hypergryph.com>
src/components/Button/src/props.ts
1   -const validColors = ['error', 'warning', 'success', ''] as const;
  1 +const validColors = ['primary', 'error', 'warning', 'success', ''] as const;
2 2 type ButtonColorType = typeof validColors[number];
3 3  
4 4 export const buttonProps = {
... ...