diff --git a/docs/renderers/Button-Group.md b/docs/renderers/ButtonGroup.md similarity index 98% rename from docs/renderers/Button-Group.md rename to docs/renderers/ButtonGroup.md index 863b61e8..f1ab0082 100644 --- a/docs/renderers/Button-Group.md +++ b/docs/renderers/ButtonGroup.md @@ -1,4 +1,4 @@ -## Button-Group +## ButtonGroup 按钮集合。 diff --git a/docs/renderers/Form/Button-Group.md b/docs/renderers/Form/ButtonGroup.md similarity index 100% rename from docs/renderers/Form/Button-Group.md rename to docs/renderers/Form/ButtonGroup.md diff --git a/examples/components/Doc.jsx b/examples/components/Doc.jsx index d356e860..6eb04aba 100644 --- a/examples/components/Doc.jsx +++ b/examples/components/Doc.jsx @@ -617,9 +617,9 @@ export default { }), }, { - label: 'Button-Group', - path: '/docs/renderers/Button-Group', - getComponent: (location, cb) => require(['../../docs/renderers/Button-Group.md'], (doc) => { + label: 'ButtonGroup', + path: '/docs/renderers/ButtonGroup', + getComponent: (location, cb) => require(['../../docs/renderers/ButtonGroup.md'], (doc) => { cb(null, makeMarkdownRenderer(doc)); }), }, diff --git a/scss/components/form/_combo.scss b/scss/components/form/_combo.scss index 21b8237e..aa3591ab 100644 --- a/scss/components/form/_combo.scss +++ b/scss/components/form/_combo.scss @@ -191,6 +191,10 @@ color: $text--muted-color; font-size: $fontSizeSm; margin-left: $gap-xs; + + &:empty { + display: none; + } } .#{$ns}ComboControl.is-inline { diff --git a/src/renderers/Form/ButtonGroup.tsx b/src/renderers/Form/ButtonGroup.tsx index 0862fc6e..f8ca3a63 100644 --- a/src/renderers/Form/ButtonGroup.tsx +++ b/src/renderers/Form/ButtonGroup.tsx @@ -81,7 +81,8 @@ export default class ButtonGroupControl extends React.Component