build
This commit is contained in:
parent
1e3c4026e8
commit
8c5a31ef30
5 changed files with 185 additions and 59 deletions
|
|
@ -259,20 +259,6 @@ export default defineComponent({
|
|||
});
|
||||
};
|
||||
|
||||
const aplicarPaginacao = (
|
||||
linhas: Linha[],
|
||||
parametros?: { offSet?: number; limit?: number }
|
||||
) => {
|
||||
const offset = Math.max(0, parametros?.offSet ?? 0);
|
||||
const limit = parametros?.limit ?? linhas.length;
|
||||
|
||||
if (limit === undefined || limit <= 0) {
|
||||
return linhas.slice(offset);
|
||||
}
|
||||
|
||||
return linhas.slice(offset, offset + limit);
|
||||
};
|
||||
|
||||
const tabelaOk: EliTabelaConsulta<Linha> = {
|
||||
nome: 'Exemplo',
|
||||
registros_por_consulta: 10,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue