mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-08 16:37:15 +00:00
Refactor #3965 - For Card
This commit is contained in:
parent
6ac09a0794
commit
2bb67db7b5
3 changed files with 35 additions and 9 deletions
21
components/lib/card/BaseCard.vue
Normal file
21
components/lib/card/BaseCard.vue
Normal file
|
@ -0,0 +1,21 @@
|
|||
<script>
|
||||
import BaseComponent from 'primevue/basecomponent';
|
||||
|
||||
const classes = {
|
||||
root: 'p-card p-component',
|
||||
header: 'p-card-header',
|
||||
body: 'p-card-body',
|
||||
title: 'p-card-title',
|
||||
subtitle: 'p-card-subtitle',
|
||||
content: 'p-card-content',
|
||||
footer: 'p-card-footer'
|
||||
};
|
||||
|
||||
export default {
|
||||
name: 'BaseCard',
|
||||
extends: BaseComponent,
|
||||
css: {
|
||||
classes
|
||||
}
|
||||
};
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue