mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Refactor #3965 - For DataView & DataViewLayoutOptions
This commit is contained in:
parent
c90629114b
commit
992c40ac6c
4 changed files with 11 additions and 5 deletions
|
@ -19,6 +19,8 @@ const classes = {
|
|||
footer: 'p-dataview-footer'
|
||||
};
|
||||
|
||||
const { load: loadStyle } = useStyle(styles, { id: 'primevue_dataview_style', manual: true });
|
||||
|
||||
export default {
|
||||
name: 'BaseDataView',
|
||||
extends: BaseComponent,
|
||||
|
@ -89,7 +91,8 @@ export default {
|
|||
}
|
||||
},
|
||||
css: {
|
||||
classes
|
||||
classes,
|
||||
loadStyle
|
||||
},
|
||||
provide() {
|
||||
return {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<template>
|
||||
<div :class="cx('root')" v-bind="ptm('root')">
|
||||
<div :class="cx('root')" v-bind="ptm('root')" data-pc-name="dataview">
|
||||
<div v-if="$slots.header" :class="cx('header')" v-bind="ptm('header')">
|
||||
<slot name="header"></slot>
|
||||
</div>
|
||||
|
@ -67,9 +67,9 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import BaseDataView from './BaseDataView.vue';
|
||||
import Paginator from 'primevue/paginator';
|
||||
import { ObjectUtils } from 'primevue/utils';
|
||||
import BaseDataView from './BaseDataView.vue';
|
||||
|
||||
export default {
|
||||
name: 'DataView',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue