bkp
This commit is contained in:
parent
5c587c9232
commit
4fd142ee70
22 changed files with 271 additions and 132 deletions
|
|
@ -7,10 +7,7 @@
|
|||
v-for="(coluna, idx) in colunas"
|
||||
:key="`th-${idx}`"
|
||||
class="eli-tabela__th"
|
||||
:class="[
|
||||
isOrdenavel(coluna) ? 'eli-tabela__th--ordenavel' : undefined,
|
||||
obterClasseAlinhamento(coluna.alinhamento),
|
||||
]"
|
||||
:class="[isOrdenavel(coluna) ? 'eli-tabela__th--ordenavel' : undefined]"
|
||||
scope="col"
|
||||
>
|
||||
<button
|
||||
|
|
@ -91,12 +88,6 @@ export default defineComponent({
|
|||
return coluna?.coluna_ordem !== undefined && coluna?.coluna_ordem !== null;
|
||||
}
|
||||
|
||||
function obterClasseAlinhamento(alinhamento?: string) {
|
||||
if (alinhamento === "direita") return "eli-tabela__celula--direita";
|
||||
if (alinhamento === "centro") return "eli-tabela__celula--centro";
|
||||
return "eli-tabela__celula--esquerda";
|
||||
}
|
||||
|
||||
function emitAlternarOrdenacao(chave: string) {
|
||||
emit("alternarOrdenacao", chave);
|
||||
}
|
||||
|
|
@ -105,7 +96,6 @@ export default defineComponent({
|
|||
ArrowUp,
|
||||
ArrowDown,
|
||||
isOrdenavel,
|
||||
obterClasseAlinhamento,
|
||||
emitAlternarOrdenacao,
|
||||
};
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue