You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
421 B
23 lines
421 B
6 years ago
|
|
||
|
<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>
|
||
|
</div>
|
||
|
</template>
|
||
|
```
|
||
|
|