Fixed #5667 - Remove base option from theme config

This commit is contained in:
Mert Sincan 2024-05-01 09:26:48 +01:00
parent 6d688ef675
commit 0979dde96d
438 changed files with 10872 additions and 11957 deletions

View file

@ -1,5 +1,38 @@
import BaseStyle from 'primevue/base/style';
const theme = ({ dt }) => `
.p-dataview-header {
background: ${dt('dataview.header.background')};
color: ${dt('dataview.header.color')};
border: 1px solid ${dt('dataview.header.border.color')};
border-width: 0 0 1px 0;
padding: 0.75rem 1rem;
}
.p-dataview-content {
background: ${dt('dataview.content.background')};
color: ${dt('dataview.content.color')};
}
.p-dataview-footer {
background: ${dt('dataview.footer.background')};
color: ${dt('dataview.footer.color')};
border: 1px solid ${dt('dataview.footer.border.color')};
border-width: 1px 0 0 0;
padding: 0.75rem 1rem;
}
.p-dataview-paginator-top {
border: solid ${dt('dataview.header.border.color')};
border-width: 0 0 1px 0;
}
.p-dataview-paginator-bottom {
border: solid ${dt('dataview.footer.border.color')};
border-width: 1px 0 0 0;
}
`;
const classes = {
root: ({ props }) => [
'p-dataview p-component',
@ -17,5 +50,6 @@ const classes = {
export default BaseStyle.extend({
name: 'dataview',
theme,
classes
});