1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-06-05 22:09:38 +02:00

chore: Aggiunte classi mancanti

This commit is contained in:
Maicol Battistini
2021-11-23 21:30:03 +01:00
parent 820da90c9a
commit d500c750e1
3 changed files with 5 additions and 5 deletions

View File

@@ -29,7 +29,7 @@ export default class DataTable extends Component {
</tr> </tr>
</thead> </thead>
<tbody> <tbody className="mdc-data-table__content">
{this.tableRows(vnode.children)} {this.tableRows(vnode.children)}
</tbody> </tbody>
@@ -126,11 +126,11 @@ export default class DataTable extends Component {
} }
showProgress() { showProgress() {
$(this.element).find('.mdc-data-table__progress-indicator mwc-linear-progress').get(0).open(); $(this.element).addClass('mdc-data-table--in-progress').find('.mdc-data-table__progress-indicator mwc-linear-progress').get(0).open();
} }
hideProgress() { hideProgress() {
$(this.element).find('.mdc-data-table__progress-indicator mwc-linear-progress').get(0).open(); $(this.element).removeClass('mdc-data-table--in-progress').find('.mdc-data-table__progress-indicator mwc-linear-progress').get(0).open();
} }
onColumnClicked(event: Event) { onColumnClicked(event: Event) {

View File

@@ -14,7 +14,7 @@ export default class TableCell extends Component {
}); });
if ((!vnode.children || vnode.children.length === 0) && this.attrs.get('type') === 'checkbox') { if ((!vnode.children || vnode.children.length === 0) && this.attrs.get('type') === 'checkbox') {
vnode.children = <mwc-checkbox/>; vnode.children = <mwc-checkbox className="mdc-data-table__row-checkbox"/>;
} }
return <td {...this.attrs.all()}>{vnode.children}</td>; return <td {...this.attrs.all()}>{vnode.children}</td>;

View File

@@ -34,7 +34,7 @@ export default class TableColumn extends Component {
} }
if ((!vnode.children || vnode.children.length === 0) && this.attrs.get('type') === 'checkbox') { if ((!vnode.children || vnode.children.length === 0) && this.attrs.get('type') === 'checkbox') {
vnode.children = <mwc-checkbox/>; vnode.children = <mwc-checkbox className="mdc-data-table__header-row-checkbox" />;
} }
return <th {...this.attrs.all()} role="columnheader" scope="col">{vnode.children}</th>; return <th {...this.attrs.all()} role="columnheader" scope="col">{vnode.children}</th>;