Skip to content

Commit bb01a70

Browse files
ffxingyuefeng
authored andcommitted
fix: 优化button rounded
1 parent beb06fc commit bb01a70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/Button/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export default class ButtonView<T> extends React.Component<ButtonProps> {
101101
? color(buttonColor).darken(0.9).string()
102102
: color(buttonColor).lighten(0.9).string();
103103
}
104-
if (rounded && typeof rounded === 'number') {
104+
if (rounded && (typeof rounded === 'number' || typeof rounded === 'boolean')) {
105105
borderRadius = rounded;
106106
}
107107
if (backgroundColor) {

0 commit comments

Comments
 (0)