mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-27 05:00:48 +08:00
20 lines
468 B
Markdown
20 lines
468 B
Markdown
# Segmented
|
|
`content`, `footer` can be `hard` or `soft` segmented. `action` can be segmented. Segment border will appear at the top of segmented parts.
|
|
```html
|
|
<n-card title="Card Segmented Demo" :segmented="{
|
|
content: 'hard',
|
|
footer: 'soft'
|
|
}">
|
|
<template v-slot:header-extra>
|
|
v-slot:header-extra
|
|
</template>
|
|
Card Content
|
|
<template v-slot:footer>
|
|
v-slot:footer
|
|
</template>
|
|
<template v-slot:action>
|
|
v-slot:action
|
|
</template>
|
|
</n-card>
|
|
```
|