This repository has been archived by the owner on Sep 4, 2024. It is now read-only.
Releases: probil/v-mask
Releases · probil/v-mask
v2.3.0
2.3.0 (2021-09-27)
Features
- filter: make filter work with RegExps, functions and respect custom replacers similarly to directive (286deda), closes #499
One of the common use cases for that is number as formatting currencies:
<template>
<span>{{ '1000' | VMask(currencyMask) }</span>
<!-- prints `$1,000` -->
</template>
<script>
import createNumberMask from 'text-mask-addons/dist/createNumberMask';
const currencyMask = createNumberMask({
prefix: '$',
allowDecimal: true,
includeThousandsSeparator: true,
allowNegative: false,
});
export default {
data: () => ({
currencyMask,
myInputModel: ''
})
}
</script>
Thanks to @CristianUser for the idea.
v2.2.4
v2.2.3
v2.2.2
v2.2.1
v2.2.0
v2.1.0
v2.0.2
v2.0.1
v2.0.0
Bug Fixes
Features
- format: ditch
pureMask
and usetext-mask-core
instead (9dad736) - jest: move to babel@7 configuration (4fea3ea)
BREAKING CHANGES
- format: re-written from the scratch by using
text-mask-core
.
May not work as expected but it bring some future to the library.
Please create an issue if you have any issues with v2.X
If you satisfied with v1 - keep using it. It was almost 2x times smaller
More improvements soon!