@empathyco/x-components
Version:
Empathy X Components
68 lines • 2.37 kB
TypeScript
import type { PropType } from 'vue';
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
/**
* Numeric value to be formatted.
*
* @remarks Pass the value with 'v-bind:value' (or ':value' shortcut) instead of plain string.
* @remarks Be careful using numbers under Number.MAX_SAFE_INTEGER to avoid unexpected errors.
*
* @public
*/
value: {
type: NumberConstructor;
required: true;
};
/**
* The ISO 4217 currency value. If not specified we use snippetConfig.currency
*
* @public
*/
currency: StringConstructor;
/**
* The currency format possibilities from Intl.NumberFormatOptions.
* Allows customization of decimal places, grouping, etc.
* Note: 'currency' and 'style' options are managed internally.
*
* @public
*/
format: {
type: PropType<Omit<Intl.NumberFormatOptions, "currency" | "style">>;
default: () => {};
};
}>, {
currencyText: import("vue").ComputedRef<string>;
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
/**
* Numeric value to be formatted.
*
* @remarks Pass the value with 'v-bind:value' (or ':value' shortcut) instead of plain string.
* @remarks Be careful using numbers under Number.MAX_SAFE_INTEGER to avoid unexpected errors.
*
* @public
*/
value: {
type: NumberConstructor;
required: true;
};
/**
* The ISO 4217 currency value. If not specified we use snippetConfig.currency
*
* @public
*/
currency: StringConstructor;
/**
* The currency format possibilities from Intl.NumberFormatOptions.
* Allows customization of decimal places, grouping, etc.
* Note: 'currency' and 'style' options are managed internally.
*
* @public
*/
format: {
type: PropType<Omit<Intl.NumberFormatOptions, "currency" | "style">>;
default: () => {};
};
}>> & Readonly<{}>, {
format: Omit<Intl.NumberFormatOptions, "currency" | "style">;
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
export default _default;
//# sourceMappingURL=base-currency.vue?vue&type=script&lang.d.ts.map