import type { TableWrapperChannel } from './table-wrapper-channel'; import { Prop, toNative } from 'vue-facing-decorator'; import { TsxComponentExtendedBase } from '../../app/vuestsx-extended'; import { Component } from '../../app/vuetsx'; import LoadingIndicator from '../loading-indicator'; import { TABLE_WRAPPER_KEY } from './table-wrapper-channel'; import './css/table-wrapper.css'; interface TableWrapperArgs { fullSizeTable?: boolean; isLoading: boolean; } @Component({ provide(this: { channel: TableWrapperChannel }) { return { [TABLE_WRAPPER_KEY]: this.channel }; }, }) class TableWrapperComponent extends TsxComponentExtendedBase implements TableWrapperArgs { @Prop() fullSizeTable?: boolean; @Prop() isLoading: boolean; channel: TableWrapperChannel = { massOperations: false }; render(h) { return (
{this.$slots.default?.()}
); } } const TableWrapper = toNative(TableWrapperComponent); export default TableWrapper;