mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-27 05:00:48 +08:00
55 lines
1.5 KiB
Markdown
55 lines
1.5 KiB
Markdown
|
# Bordered
|
||
|
If there are too many multiple line fields, you can set it to borderd
|
||
|
```html
|
||
|
<n-descriptions bordered>
|
||
|
<n-descriptions-item>
|
||
|
<template v-slot:label>
|
||
|
Breakfast
|
||
|
</template>
|
||
|
Apple
|
||
|
</n-descriptions-item>
|
||
|
<n-descriptions-item label="Lunch">
|
||
|
Apple
|
||
|
</n-descriptions-item>
|
||
|
<n-descriptions-item label="Supper">
|
||
|
Apple
|
||
|
</n-descriptions-item>
|
||
|
<n-descriptions-item label="Why Long">
|
||
|
Why <br> Long <br> Long <br> Long <br> Long <br> Long
|
||
|
</n-descriptions-item>
|
||
|
<n-descriptions-item label="Why Long">
|
||
|
Why <br> Long <br> Long <br> Long <br> Long <br> Long
|
||
|
</n-descriptions-item>
|
||
|
<n-descriptions-item label="Why Long">
|
||
|
Why <br> Long <br> Long <br> Long <br> Long <br> Long
|
||
|
</n-descriptions-item>
|
||
|
</n-descriptions>
|
||
|
<n-descriptions label-placement="left" bordered>
|
||
|
<n-descriptions-item>
|
||
|
<template v-slot:label>
|
||
|
Breakfast
|
||
|
</template>
|
||
|
Apple
|
||
|
</n-descriptions-item>
|
||
|
<n-descriptions-item label="Lunch">
|
||
|
Apple
|
||
|
</n-descriptions-item>
|
||
|
<n-descriptions-item label="Supper">
|
||
|
Apple
|
||
|
</n-descriptions-item>
|
||
|
<n-descriptions-item label="Why Long">
|
||
|
Why <br> Long <br> Long <br> Long <br> Long <br> Long
|
||
|
</n-descriptions-item>
|
||
|
<n-descriptions-item label="Why Long">
|
||
|
Why <br> Long <br> Long <br> Long <br> Long <br> Long
|
||
|
</n-descriptions-item>
|
||
|
<n-descriptions-item label="Why Long">
|
||
|
Why <br> Long <br> Long <br> Long <br> Long <br> Long
|
||
|
</n-descriptions-item>
|
||
|
</n-descriptions>
|
||
|
```
|
||
|
```css
|
||
|
.n-descriptions {
|
||
|
margin-top: 16px;
|
||
|
}
|
||
|
```
|