mirror of
https://github.com/youzan/vant.git
synced 2025-10-22 03:44:48 +00:00
feat(Button): color prop support linear-gradient (#4252)
This commit is contained in:
@@ -64,7 +64,8 @@ function Button(
|
||||
style.color = plain ? color : WHITE;
|
||||
|
||||
if (!plain) {
|
||||
style.backgroundColor = color;
|
||||
// Use background instead of backgroundColor to make linear-gradient work
|
||||
style.background = color;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user