@empathyco/x-components
Version:
Empathy X Components
45 lines (42 loc) • 1.58 kB
JavaScript
import { defineComponent } from 'vue';
import BaseCurrency from '../currency/base-currency.vue.js';
/**
* Component that renders the {@link @empathyco/x-types#Result} previous price.
*
* @public
*/
var _sfc_main = defineComponent({
components: { BaseCurrency },
props: {
/**
* (Required) The {@link @empathyco/x-types#Result} information.
*
* @public
*/
result: {
type: Object,
required: true,
},
/**
* Format or mask to be defined as string.
* - Use 'i' to define integer numbers.
* - Use 'd' to define decimal numbers. You can define the length of the decimal part. If the
* doesn't include decimals, it is filled with zeros until reach the length defined with 'd's.
* - Integer separator must be defined between the 3rd and the 4th integer 'i' of a group.
* - Decimal separator must be defined between the last 'i' and the first 'd'. It can be more
* than one character.
* - Set whatever you need around the integers and decimals marks.
*
* @remarks The number of 'd', which is the maximum decimal length, MUST match with the length
* of decimals provided from the adapter. Otherwise, when the component truncate the decimal
* part, delete significant digits.
*
* @public
*/
format: {
type: String,
},
},
});
export { _sfc_main as default };
//# sourceMappingURL=base-result-previous-price.vue2.js.map