فهرست منبع

fix: Support users to customize the type and theme of the Button individually through the parameters of the Button in the ButtonGroup (#989)

YyumeiZhang 3 سال پیش
والد
کامیت
cccdfce556
1فایلهای تغییر یافته به همراه3 افزوده شده و 2 حذف شده
  1. 3 2
      packages/semi-ui/button/buttonGroup.tsx

+ 3 - 2
packages/semi-ui/button/buttonGroup.tsx

@@ -33,9 +33,10 @@ export default class ButtonGroup extends BaseComponent<ButtonGroupProps> {
     };
 
     static defaultProps = {
+        // There are default values ​​for type and theme in Button. 
+        // In order to allow users to individually customize the type and theme of the Button through the parameters of the Button in the ButtonGroup,
+        // the default value of type and theme is not given in the ButtonGroup。
         size: 'default',
-        type: 'primary',
-        theme: 'light',
     };
 
     render() {