文档整理

This commit is contained in:
liaoxuezhi 2019-07-04 14:21:32 +08:00
parent 0099b588ed
commit 8350be3fc8
6 changed files with 11 additions and 5 deletions

View File

@ -1,4 +1,4 @@
## Button-Group ## ButtonGroup
按钮集合。 按钮集合。

View File

@ -617,9 +617,9 @@ export default {
}), }),
}, },
{ {
label: 'Button-Group', label: 'ButtonGroup',
path: '/docs/renderers/Button-Group', path: '/docs/renderers/ButtonGroup',
getComponent: (location, cb) => require(['../../docs/renderers/Button-Group.md'], (doc) => { getComponent: (location, cb) => require(['../../docs/renderers/ButtonGroup.md'], (doc) => {
cb(null, makeMarkdownRenderer(doc)); cb(null, makeMarkdownRenderer(doc));
}), }),
}, },

View File

@ -191,6 +191,10 @@
color: $text--muted-color; color: $text--muted-color;
font-size: $fontSizeSm; font-size: $fontSizeSm;
margin-left: $gap-xs; margin-left: $gap-xs;
&:empty {
display: none;
}
} }
.#{$ns}ComboControl.is-inline { .#{$ns}ComboControl.is-inline {

View File

@ -81,7 +81,8 @@ export default class ButtonGroupControl extends React.Component<ButtonGroupProps
activeLevel: btnActiveLevel, activeLevel: btnActiveLevel,
...button ...button
}, { }, {
key key,
className: cx(button.className, btnClassName),
})); }));
} }

View File

@ -67,6 +67,7 @@ export interface Button {
icon?: string; icon?: string;
size?: string; size?: string;
disabled?: boolean; disabled?: boolean;
className?: string;
}; };
export type SchemaNode = number | string | Schema | SchemaArray; export type SchemaNode = number | string | Schema | SchemaArray;