naive-ui/demo/documentation/components/descriptions/enUS/bordered.md
2019-11-12 15:04:42 +08:00

1.5 KiB

Bordered

If there are too many multiple line fields, you can set it to borderd

<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>
.n-descriptions {
  margin-top: 16px;
}