Преглед на файлове

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() {