adiconado imput de porcentagem
This commit is contained in:
parent
5bfde6ee66
commit
8bb5aea15e
15 changed files with 260 additions and 184 deletions
|
|
@ -59,7 +59,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|||
value: import("vue").WritableComputedRef<CampoValor | CampoValorMultiplo, CampoValor | CampoValorMultiplo>;
|
||||
isTextLike: import("vue").ComputedRef<boolean>;
|
||||
inputHtmlType: import("vue").ComputedRef<"text" | "password">;
|
||||
inputMode: import("vue").ComputedRef<"tel" | "numeric" | undefined>;
|
||||
inputMode: import("vue").ComputedRef<"tel" | "decimal" | "numeric" | undefined>;
|
||||
internalColor: import("vue").ComputedRef<string | undefined>;
|
||||
showPassword: import("vue").Ref<boolean, boolean>;
|
||||
togglePassword: () => void;
|
||||
|
|
|
|||
|
|
@ -1,3 +1,9 @@
|
|||
export declare function somenteNumeros(valor: string): string;
|
||||
export declare function formatarDecimal(valor: string): string;
|
||||
/**
|
||||
* Formatação para percentual:
|
||||
* - remove '%' caso venha junto (ex: colar "10%")
|
||||
* - mantém apenas dígitos e vírgula (no máximo uma)
|
||||
*/
|
||||
export declare function formatarPorcentagem(valor: string): string;
|
||||
export declare function formatarMoeda(valor: string): string;
|
||||
|
|
|
|||
|
|
@ -195,7 +195,7 @@ declare const __VLS_export: import("vue").DefineComponent<{}, {
|
|||
value: import("vue").WritableComputedRef<import("../../tipos/campo.js").CampoValor | import("../../tipos/campo.js").CampoValorMultiplo, import("../../tipos/campo.js").CampoValor | import("../../tipos/campo.js").CampoValorMultiplo>;
|
||||
isTextLike: import("vue").ComputedRef<boolean>;
|
||||
inputHtmlType: import("vue").ComputedRef<"text" | "password">;
|
||||
inputMode: import("vue").ComputedRef<"tel" | "numeric" | undefined>;
|
||||
inputMode: import("vue").ComputedRef<"tel" | "decimal" | "numeric" | undefined>;
|
||||
internalColor: import("vue").ComputedRef<string | undefined>;
|
||||
showPassword: import("vue").Ref<boolean, boolean>;
|
||||
togglePassword: () => void;
|
||||
|
|
|
|||
2
dist/types/tipos/campo.d.ts
vendored
2
dist/types/tipos/campo.d.ts
vendored
|
|
@ -15,5 +15,5 @@ export type CampoOpcaoBruta<TValor extends CampoValor = CampoValor> = TValor | {
|
|||
};
|
||||
export type CampoVariante = "outlined" | "filled" | "plain" | "solo" | "solo-filled" | "solo-inverted" | "underlined";
|
||||
export type CampoDensidade = "default" | "comfortable" | "compact";
|
||||
export type CampoTipoNumerico = "numericoInteiro" | "numericoDecimal" | "numericoMoeda";
|
||||
export type CampoTipoNumerico = "numericoInteiro" | "numericoDecimal" | "numericoMoeda" | "porcentagem";
|
||||
export type CampoTipo = "text" | "password" | "email" | "search" | "url" | "textarea" | "radio" | "checkbox" | "telefone" | "cpfCnpj" | "cep" | "select" | CampoTipoNumerico;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue