Refactor #3965 - For DataView & DataViewLayoutOptions

pull/4034/head
Tuğçe Küçükoğlu 2023-06-06 16:04:43 +03:00
parent c90629114b
commit 992c40ac6c
4 changed files with 11 additions and 5 deletions

View File

@ -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 {

View File

@ -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',

View File

@ -17,6 +17,8 @@ const classes = {
]
};
const { load: loadStyle } = useStyle(styles, { id: 'primevue_dataviewlayoutoptions_style', manual: true });
export default {
name: 'BaseDataViewLayoutOptions',
extends: BaseComponent,
@ -24,7 +26,8 @@ export default {
modelValue: String
},
css: {
classes
classes,
loadStyle
},
provide() {
return {

View File

@ -14,9 +14,9 @@
</template>
<script>
import BaseDataViewLayoutOptions from './BaseDataViewLayoutOptions.vue';
import BarsIcon from 'primevue/icons/bars';
import ThLargeIcon from 'primevue/icons/thlarge';
import BaseDataViewLayoutOptions from './BaseDataViewLayoutOptions.vue';
export default {
name: 'DataViewLayoutOptions',