mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-21 04:50:14 +08:00
487001d697
.demo.md for component demo .demo-entry.md for demo entry .md for common docs
42 lines
800 B
Markdown
42 lines
800 B
Markdown
# Gutter
|
|
Set horizontal gutter & vertical gutter.
|
|
```html
|
|
<n-row :gutter="[12, 8]">
|
|
<n-col :span="6">
|
|
<div class="light-green"></div>
|
|
</n-col>
|
|
<n-col :span="6">
|
|
<div class="green"></div>
|
|
</n-col>
|
|
<n-col :span="6">
|
|
<div class="light-green"></div>
|
|
</n-col>
|
|
<n-col :span="6">
|
|
<div class="green"></div>
|
|
</n-col>
|
|
</n-row>
|
|
<n-row :gutter="[12, 8]">
|
|
<n-col :span="6">
|
|
<div class="light-green"></div>
|
|
</n-col>
|
|
<n-col :span="6">
|
|
<div class="green"></div>
|
|
</n-col>
|
|
<n-col :span="6">
|
|
<div class="light-green"></div>
|
|
</n-col>
|
|
<n-col :span="6">
|
|
<div class="green"></div>
|
|
</n-col>
|
|
</n-row>
|
|
```
|
|
```css
|
|
.light-green {
|
|
height: 108px;
|
|
background-color: rgba(0, 128, 0, .12);
|
|
}
|
|
.green {
|
|
height: 108px;
|
|
background-color: rgba(0, 128, 0, .24);
|
|
}
|
|
``` |