2019-11-26 16:44:07 +08:00
|
|
|
# Size
|
2020-02-04 15:29:15 +08:00
|
|
|
Description support `small`, `medium` and `large` size.
|
2019-11-26 16:44:07 +08:00
|
|
|
```html
|
|
|
|
<n-descriptions label-placement="left" title="Description" size="small">
|
|
|
|
<n-descriptions-item>
|
|
|
|
<template v-slot:label>
|
|
|
|
Breakfast
|
|
|
|
</template>
|
|
|
|
Apple
|
|
|
|
</n-descriptions-item>
|
|
|
|
<n-descriptions-item label="Brunch">
|
|
|
|
Apple
|
|
|
|
</n-descriptions-item>
|
|
|
|
<n-descriptions-item label="Lunch">
|
|
|
|
Apple
|
|
|
|
</n-descriptions-item>
|
|
|
|
<n-descriptions-item label="Supper" :span="2">
|
|
|
|
Two<br>
|
|
|
|
Apples
|
|
|
|
</n-descriptions-item>
|
|
|
|
<n-descriptions-item label="Midnight Snack">
|
|
|
|
Apple
|
|
|
|
</n-descriptions-item>
|
|
|
|
</n-descriptions>
|
|
|
|
<n-descriptions label-placement="left" title="Description" size="medium">
|
|
|
|
<n-descriptions-item>
|
|
|
|
<template v-slot:label>
|
|
|
|
Breakfast
|
|
|
|
</template>
|
|
|
|
Apple
|
|
|
|
</n-descriptions-item>
|
|
|
|
<n-descriptions-item label="Brunch">
|
|
|
|
Apple
|
|
|
|
</n-descriptions-item>
|
|
|
|
<n-descriptions-item label="Lunch">
|
|
|
|
Apple
|
|
|
|
</n-descriptions-item>
|
|
|
|
<n-descriptions-item label="Supper" :span="2">
|
|
|
|
Two<br>
|
|
|
|
Apples
|
|
|
|
</n-descriptions-item>
|
|
|
|
<n-descriptions-item label="Midnight Snack">
|
|
|
|
Apple
|
|
|
|
</n-descriptions-item>
|
|
|
|
</n-descriptions>
|
|
|
|
<n-descriptions label-placement="left" title="Description" size="large">
|
|
|
|
<n-descriptions-item>
|
|
|
|
<template v-slot:label>
|
|
|
|
Breakfast
|
|
|
|
</template>
|
|
|
|
Apple
|
|
|
|
</n-descriptions-item>
|
|
|
|
<n-descriptions-item label="Brunch">
|
|
|
|
Apple
|
|
|
|
</n-descriptions-item>
|
|
|
|
<n-descriptions-item label="Lunch">
|
|
|
|
Apple
|
|
|
|
</n-descriptions-item>
|
|
|
|
<n-descriptions-item label="Supper" :span="2">
|
|
|
|
Two<br>
|
|
|
|
Apples
|
|
|
|
</n-descriptions-item>
|
|
|
|
<n-descriptions-item label="Midnight Snack">
|
|
|
|
Apple
|
|
|
|
</n-descriptions-item>
|
|
|
|
</n-descriptions>
|
|
|
|
<n-descriptions label-placement="top" title="Description" size="small">
|
|
|
|
<n-descriptions-item>
|
|
|
|
<template v-slot:label>
|
|
|
|
Breakfast
|
|
|
|
</template>
|
|
|
|
Apple
|
|
|
|
</n-descriptions-item>
|
|
|
|
<n-descriptions-item label="Brunch">
|
|
|
|
Apple
|
|
|
|
</n-descriptions-item>
|
|
|
|
<n-descriptions-item label="Lunch">
|
|
|
|
Apple
|
|
|
|
</n-descriptions-item>
|
|
|
|
<n-descriptions-item label="Supper" :span="2">
|
|
|
|
Two<br>
|
|
|
|
Apples
|
|
|
|
</n-descriptions-item>
|
|
|
|
<n-descriptions-item label="Midnight Snack">
|
|
|
|
Apple
|
|
|
|
</n-descriptions-item>
|
|
|
|
</n-descriptions>
|
|
|
|
<n-descriptions label-placement="top" title="Description" size="medium">
|
|
|
|
<n-descriptions-item>
|
|
|
|
<template v-slot:label>
|
|
|
|
Breakfast
|
|
|
|
</template>
|
|
|
|
Apple
|
|
|
|
</n-descriptions-item>
|
|
|
|
<n-descriptions-item label="Brunch">
|
|
|
|
Apple
|
|
|
|
</n-descriptions-item>
|
|
|
|
<n-descriptions-item label="Lunch">
|
|
|
|
Apple
|
|
|
|
</n-descriptions-item>
|
|
|
|
<n-descriptions-item label="Supper" :span="2">
|
|
|
|
Two<br>
|
|
|
|
Apples
|
|
|
|
</n-descriptions-item>
|
|
|
|
<n-descriptions-item label="Midnight Snack">
|
|
|
|
Apple
|
|
|
|
</n-descriptions-item>
|
|
|
|
</n-descriptions>
|
|
|
|
<n-descriptions label-placement="top" title="Description" size="large">
|
|
|
|
<n-descriptions-item>
|
|
|
|
<template v-slot:label>
|
|
|
|
Breakfast
|
|
|
|
</template>
|
|
|
|
Apple
|
|
|
|
</n-descriptions-item>
|
|
|
|
<n-descriptions-item label="Brunch">
|
|
|
|
Apple
|
|
|
|
</n-descriptions-item>
|
|
|
|
<n-descriptions-item label="Lunch">
|
|
|
|
Apple
|
|
|
|
</n-descriptions-item>
|
|
|
|
<n-descriptions-item label="Supper" :span="2">
|
|
|
|
Two<br>
|
|
|
|
Apples
|
|
|
|
</n-descriptions-item>
|
|
|
|
<n-descriptions-item label="Midnight Snack">
|
|
|
|
Apple
|
|
|
|
</n-descriptions-item>
|
|
|
|
</n-descriptions>
|
|
|
|
<n-descriptions label-placement="top" title="Description" size="small" bordered>
|
|
|
|
<n-descriptions-item>
|
|
|
|
<template v-slot:label>
|
|
|
|
Breakfast
|
|
|
|
</template>
|
|
|
|
Apple
|
|
|
|
</n-descriptions-item>
|
|
|
|
<n-descriptions-item label="Brunch">
|
|
|
|
Apple
|
|
|
|
</n-descriptions-item>
|
|
|
|
<n-descriptions-item label="Lunch">
|
|
|
|
Apple
|
|
|
|
</n-descriptions-item>
|
|
|
|
<n-descriptions-item label="Supper" :span="2">
|
|
|
|
Two<br>
|
|
|
|
Apples
|
|
|
|
</n-descriptions-item>
|
|
|
|
<n-descriptions-item label="Midnight Snack">
|
|
|
|
Apple
|
|
|
|
</n-descriptions-item>
|
|
|
|
</n-descriptions>
|
|
|
|
<n-descriptions label-placement="top" title="Description" size="medium" bordered>
|
|
|
|
<n-descriptions-item>
|
|
|
|
<template v-slot:label>
|
|
|
|
Breakfast
|
|
|
|
</template>
|
|
|
|
Apple
|
|
|
|
</n-descriptions-item>
|
|
|
|
<n-descriptions-item label="Brunch">
|
|
|
|
Apple
|
|
|
|
</n-descriptions-item>
|
|
|
|
<n-descriptions-item label="Lunch">
|
|
|
|
Apple
|
|
|
|
</n-descriptions-item>
|
|
|
|
<n-descriptions-item label="Supper" :span="2">
|
|
|
|
Two<br>
|
|
|
|
Apples
|
|
|
|
</n-descriptions-item>
|
|
|
|
<n-descriptions-item label="Midnight Snack">
|
|
|
|
Apple
|
|
|
|
</n-descriptions-item>
|
|
|
|
</n-descriptions>
|
|
|
|
<n-descriptions label-placement="top" title="Description" size="large" bordered>
|
|
|
|
<n-descriptions-item>
|
|
|
|
<template v-slot:label>
|
|
|
|
Breakfast
|
|
|
|
</template>
|
|
|
|
Apple
|
|
|
|
</n-descriptions-item>
|
|
|
|
<n-descriptions-item label="Brunch">
|
|
|
|
Apple
|
|
|
|
</n-descriptions-item>
|
|
|
|
<n-descriptions-item label="Lunch">
|
|
|
|
Apple
|
|
|
|
</n-descriptions-item>
|
|
|
|
<n-descriptions-item label="Supper" :span="2">
|
|
|
|
Two<br>
|
|
|
|
Apples
|
|
|
|
</n-descriptions-item>
|
|
|
|
<n-descriptions-item label="Midnight Snack">
|
|
|
|
Apple
|
|
|
|
</n-descriptions-item>
|
|
|
|
</n-descriptions>
|
|
|
|
```
|
|
|
|
```css
|
|
|
|
.n-descriptions {
|
|
|
|
margin-bottom: 20px;
|
|
|
|
}
|
|
|
|
```
|