Refactor #3965 - Refactor on DataTable

This commit is contained in:
Tuğçe Küçükoğlu 2023-06-05 14:18:11 +03:00
parent 7c885411ba
commit 67e65198d2
4 changed files with 10 additions and 9 deletions

View file

@ -7,10 +7,6 @@ const styles = `
position: relative;
}
.p-datatable > .p-datatable-wrapper {
overflow: auto;
}
.p-datatable-table {
border-spacing: 0px;
width: 100%;
@ -43,7 +39,6 @@ const styles = `
}
.p-datatable-scrollable-table > .p-datatable-thead {
position: sticky;
top: 0;
z-index: 1;
}
@ -54,7 +49,6 @@ const styles = `
}
.p-datatable-scrollable-table > .p-datatable-tfoot {
position: sticky;
bottom: 0;
z-index: 1;
}
@ -245,6 +239,12 @@ const styles = `
}
`;
const inlineStyles = {
wrapper: { overflow: 'auto' },
thead: { position: 'sticky' },
tfoot: { position: 'sticky' }
};
const classes = {
root: ({ instance, props }) => [
'p-datatable p-component',
@ -730,6 +730,7 @@ export default {
},
css: {
classes,
inlineStyles,
loadStyle
},
provide() {