yarn add t-public-table -D -S
<TPublicTable
:options="tableOptions"
/>
import PublicTable from 't-public-table';
const { TPublicTable, tableService } = PublicTable;
components: {
TPublicTable,
}
create service
see ~/service/demoService.js
tableOptions = tableService(params).getTableOptions({
onSelectChange: this.onSelectChange,
handleCommand: this.handleCommand,
handleOperation: this.handleOperation,
});
see demoService
See API.