瀏覽代碼

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 = {
     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',
         size: 'default',
-        type: 'primary',
-        theme: 'light',
     };
     };
 
 
     render() {
     render() {