mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-27 05:00:48 +08:00
919 B
919 B
按钮组
可以把几个按钮结合成按钮组。
<n-button-group>
<n-button
type="default"
icon="md-save"
round
>
Default
</n-button>
<n-button
type="primary"
icon="md-save"
disabled
>
Primary
</n-button>
<n-button
type="info"
icon="md-save"
icon-position="right"
>
Info
</n-button>
<n-button
type="warning"
icon="md-save"
>
Warning
</n-button>
</n-button-group>
<n-button-group vertical>
<n-button
type="default"
icon="md-save"
round
>
Default
</n-button>
<n-button
type="primary"
icon="md-save"
disabled
>
Primary
</n-button>
<n-button
type="info"
icon="md-save"
icon-position="right"
>
Info
</n-button>
<n-button
type="warning"
icon="md-save"
>
Warning
</n-button>
</n-button-group>
.n-button {
margin: 0 8px 8px 0;
}