Adicionado celular do tipo componente
This commit is contained in:
parent
1446d6225b
commit
9b2651d5c7
17 changed files with 1386 additions and 1075 deletions
|
|
@ -646,6 +646,9 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|||
valor: string;
|
||||
formato: "data" | "data_hora" | "relativo";
|
||||
acao?: () => void;
|
||||
} | {
|
||||
componente: import("vue").Component;
|
||||
props?: () => Promise<Record<string, unknown>> | Record<string, unknown>;
|
||||
}>;
|
||||
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
||||
celula: {
|
||||
|
|
@ -734,6 +737,9 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|||
valor: string;
|
||||
formato: "data" | "data_hora" | "relativo";
|
||||
acao?: () => void;
|
||||
} | {
|
||||
componente: import("vue").Component;
|
||||
props?: () => Promise<Record<string, unknown>> | Record<string, unknown>;
|
||||
}>;
|
||||
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
||||
celula: {
|
||||
|
|
|
|||
|
|
@ -143,6 +143,9 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|||
valor: string;
|
||||
formato: "data" | "data_hora" | "relativo";
|
||||
acao?: () => void;
|
||||
} | {
|
||||
componente: import("vue").Component;
|
||||
props?: () => Promise<Record<string, unknown>> | Record<string, unknown>;
|
||||
}>;
|
||||
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
||||
celula: {
|
||||
|
|
@ -198,6 +201,9 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|||
valor: string;
|
||||
formato: "data" | "data_hora" | "relativo";
|
||||
acao?: () => void;
|
||||
} | {
|
||||
componente: import("vue").Component;
|
||||
props?: () => Promise<Record<string, unknown>> | Record<string, unknown>;
|
||||
}>;
|
||||
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
||||
celula: {
|
||||
|
|
|
|||
|
|
@ -50,6 +50,9 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|||
valor: string;
|
||||
formato: "data" | "data_hora" | "relativo";
|
||||
acao?: () => void;
|
||||
} | {
|
||||
componente: import("vue").Component;
|
||||
props?: () => Promise<Record<string, unknown>> | Record<string, unknown>;
|
||||
}>;
|
||||
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
||||
celula: {
|
||||
|
|
|
|||
|
|
@ -32,6 +32,9 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|||
valor: string;
|
||||
formato: "data" | "data_hora" | "relativo";
|
||||
acao?: () => void;
|
||||
} | {
|
||||
componente: Component;
|
||||
props?: () => Promise<Record<string, unknown>> | Record<string, unknown>;
|
||||
}>;
|
||||
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
||||
celula: {
|
||||
|
|
|
|||
15
dist/types/componentes/EliTabela/celulas/EliTabelaCelulaComponente.vue.d.ts
vendored
Normal file
15
dist/types/componentes/EliTabela/celulas/EliTabelaCelulaComponente.vue.d.ts
vendored
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
import { type PropType } from "vue";
|
||||
import type { tiposTabelaCelulas } from "./tiposTabelaCelulas";
|
||||
declare const _default: typeof __VLS_export;
|
||||
export default _default;
|
||||
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
||||
dados: {
|
||||
type: PropType<tiposTabelaCelulas["componente"]>;
|
||||
};
|
||||
}>, {
|
||||
propsResolvidas: import("vue").Ref<Record<string, unknown> | undefined, Record<string, unknown> | undefined>;
|
||||
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
||||
dados: {
|
||||
type: PropType<tiposTabelaCelulas["componente"]>;
|
||||
};
|
||||
}>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
||||
|
|
@ -721,4 +721,15 @@ export declare const registryTabelaCelulas: {
|
|||
required: false;
|
||||
};
|
||||
}>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
||||
readonly componente: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
||||
dados: {
|
||||
type: import("vue").PropType<import("./tiposTabelaCelulas").tiposTabelaCelulas["componente"]>;
|
||||
};
|
||||
}>, {
|
||||
propsResolvidas: import("vue").Ref<Record<string, unknown> | undefined, Record<string, unknown> | undefined>;
|
||||
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
||||
dados: {
|
||||
type: import("vue").PropType<import("./tiposTabelaCelulas").tiposTabelaCelulas["componente"]>;
|
||||
};
|
||||
}>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
* Tipagem dos dados de entrada dos componentes de celulas
|
||||
*/
|
||||
import type { LucideIcon } from "@lucide/vue";
|
||||
import type { Component } from "vue";
|
||||
export type tiposTabelaCelulas = {
|
||||
textoSimples: {
|
||||
texto: string;
|
||||
|
|
@ -39,5 +40,17 @@ export type tiposTabelaCelulas = {
|
|||
/** Ação opcional ao clicar no valor. */
|
||||
acao?: () => void;
|
||||
};
|
||||
/** Célula que renderiza um componente Vue arbitrário com props dinâmicas. */
|
||||
componente: {
|
||||
/** Componente Vue a ser renderizado na célula. */
|
||||
componente: Component;
|
||||
/**
|
||||
* Props passadas ao componente via `v-bind`.
|
||||
* Aceita:
|
||||
* - objeto direto: `{ status: "ativo" }`
|
||||
* - função assíncrona: `() => api.get(...)` — útil quando é necessário resolver dados antes de renderizar
|
||||
*/
|
||||
props?: () => Promise<Record<string, unknown>> | Record<string, unknown>;
|
||||
};
|
||||
};
|
||||
export type tipoTabelaCelula = keyof tiposTabelaCelulas;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue