Browse Source
perf(BasicButton): 按钮颜色设置支持主题色primary (#2623)
Co-authored-by: 苗大 <caoshengmiao@hypergryph.com>
pull/2628/head
Wit〆苗大
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
src/components/Button/src/props.ts
|
|
|
@ -1,4 +1,4 @@ |
|
|
|
const validColors = ['error', 'warning', 'success', ''] as const; |
|
|
|
const validColors = ['primary', 'error', 'warning', 'success', ''] as const; |
|
|
|
type ButtonColorType = typeof validColors[number]; |
|
|
|
|
|
|
|
export const buttonProps = { |
|
|
|
|