mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-12-15 17:31:43 +08:00
22 lines
467 B
Markdown
22 lines
467 B
Markdown
<cn>
|
|
#### block 按钮
|
|
`block`属性将使按钮适合其父宽度。
|
|
</cn>
|
|
|
|
<us>
|
|
#### block Button
|
|
`block` property will make the button fit to its parent width.
|
|
</us>
|
|
|
|
```html
|
|
<template>
|
|
<div>
|
|
<a-button type="primary" block>Primary</a-button>
|
|
<a-button block>Default</a-button>
|
|
<a-button type="dashed" block>Dashed</a-button>
|
|
<a-button type="danger" block>Danger</a-button>
|
|
<a-button type="link" block>Link</a-button>
|
|
</div>
|
|
</template>
|
|
```
|