1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-02-24 23:37:51 +01:00
Maicol Battistini f65d0735b7
feat(components): 💩 Aggiunto wrapper data table
Necessita miglioramenti
2021-08-26 20:09:28 +02:00

14 lines
386 B
JavaScript
Vendored

import classnames from 'classnames';
import Component from '../Component';
/**
* Attributes:
* - type: numeric, checkbox
*/
export default class TableCell extends Component {
view(vnode) {
this.attrs.className = classnames('mdc-data-table__cell', vnode.attrs.className, `mdc-data-table__cell--${vnode.attrs.type}`);
return <td {...this.attrs}>{vnode.children}</td>;
}
}