Ver código fonte

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 anos atrás
pai
commit
cccdfce556
1 arquivos alterados com 3 adições e 2 exclusões
  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() {