2023-10-02 10:46:09 +00:00
|
|
|
import BaseStyle from 'primevue/base/style';
|
|
|
|
|
|
|
|
const classes = {
|
|
|
|
root: ({ props }) => [
|
|
|
|
'p-dataview p-component',
|
|
|
|
{
|
|
|
|
'p-dataview-list': props.layout === 'list',
|
|
|
|
'p-dataview-grid': props.layout === 'grid'
|
|
|
|
}
|
|
|
|
],
|
|
|
|
header: 'p-dataview-header',
|
|
|
|
paginator: ({ instance }) => (instance.paginatorTop ? 'p-paginator-top' : instance.paginatorBottom ? 'p-paginator-bottom' : ''),
|
|
|
|
content: 'p-dataview-content',
|
|
|
|
emptyMessage: 'p-dataview-emptymessage',
|
|
|
|
footer: 'p-dataview-footer'
|
|
|
|
};
|
|
|
|
|
|
|
|
export default BaseStyle.extend({
|
|
|
|
name: 'dataview',
|
2023-10-04 09:20:15 +00:00
|
|
|
classes
|
2023-10-02 10:46:09 +00:00
|
|
|
});
|