bkp
This commit is contained in:
parent
50a971ccaf
commit
64535c51a3
12 changed files with 1016 additions and 774 deletions
2
dist/eli-vue.css
vendored
2
dist/eli-vue.css
vendored
File diff suppressed because one or more lines are too long
1531
dist/eli-vue.es.js
vendored
1531
dist/eli-vue.es.js
vendored
File diff suppressed because it is too large
Load diff
29
dist/eli-vue.umd.js
vendored
29
dist/eli-vue.umd.js
vendored
File diff suppressed because one or more lines are too long
|
|
@ -19,6 +19,8 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|||
onBuscar?: ((valor: string) => any) | undefined;
|
||||
}>, {
|
||||
modelo: string;
|
||||
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
||||
}, {}, {
|
||||
Search: import("vue").FunctionalComponent<import("lucide-vue-next").LucideProps, {}, any, {}>;
|
||||
}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
||||
declare const _default: typeof __VLS_export;
|
||||
export default _default;
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@ import type { tipoResposta } from "p-respostas";
|
|||
import type { LucideIcon } from "lucide-vue-next";
|
||||
import type { VNodeChild } from "vue";
|
||||
export type ComponenteCelula = VNodeChild;
|
||||
export type EliAlinhamentoColuna = "esquerda" | "centro" | "direita";
|
||||
export type EliColuna<T> = {
|
||||
/** Texto exibido no cabeçalho da coluna. */
|
||||
rotulo: string;
|
||||
|
|
@ -9,6 +10,19 @@ export type EliColuna<T> = {
|
|||
celula: (linha: T) => ComponenteCelula;
|
||||
/** Ação opcional disparada ao clicar na célula. */
|
||||
acao?: () => void;
|
||||
/** Alinhamento do conteúdo da coluna (cabeçalho e células). */
|
||||
alinhamento?: EliAlinhamentoColuna;
|
||||
/**
|
||||
* Quando `true`, tenta truncar (ellipsis) conteúdos textuais longos.
|
||||
* Observação: o tooltip automático só é aplicado quando o conteúdo renderizado
|
||||
* da célula é um `string`/`number`.
|
||||
*/
|
||||
truncar?: boolean;
|
||||
/**
|
||||
* Largura máxima usada quando `truncar` estiver ativo.
|
||||
* Exemplos: `240` (px), `"18rem"`, `"30ch"`.
|
||||
*/
|
||||
largura_maxima?: number | string;
|
||||
/**
|
||||
* Campo de ordenação associado à coluna. Caso informado, a coluna passa a
|
||||
* exibir controles de ordenação e utiliza o valor como chave para o backend.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue