-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for Vue 3 and Typescript #109
Comments
Just created a small module declaration. Surely not the best... declare module "vue-numeric" {
import Vue from "vue";
interface VueNumeric extends Vue, HTMLInputElement {
props: {
currency: string; // Currency prefix
currencySymbolPosition: string; // Position of the symbol (accepted values: prefix or suffix)
decimalSeparator: string; // Custom decimal separator
emptyValue: number; // Value when input is empty
max: number; // Maximum value allowed
min: number; // Minimum value allowed
minus: boolean; // Enable/disable negative values
outputType: string; // Output Type for input event
placeholder: string; // Input placeholder
precision: number; // Number of decimals
readOnly: boolean; // Hide input field and show the value as text
readOnlyClass: string; // Class for read-only element
separator: string; // Thousand separator symbol (accepts space, . or ,)
thousandSeparator: string; // Custom thousand separator
};
}
} |
Hi Kevin, thank you |
I rewrote this component for my needs in TS and for Vue3, maybe it suits your needs to? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
I'm working on a project that uses Vue 3 and Typescript. I was wondering if you could include a type declaration module (.d.ts file) in the package. I'd be glad to help but I'm kinda a novice in this.
The text was updated successfully, but these errors were encountered: