文档整理

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',
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));
}),
},

View File

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

View File

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

View File

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