vue-autonumeric
Advanced tools
Changelog
1.2.5
readOnly
option is not respected for non-input tags (contenteditable
is always set to true
)Changelog
1.2.4
vue-autonumeric
in an ES6 module setup with WebpackImportant note:
<npmPath>: 'AutoNumeric'
in the vue-autonumeric
's webpack configuration since we want the user to be able to just use a CDN link to the AutoNumeric library and make sure vue-autonumeric
will correctly use this name (since it's exported as AutoNumeric
, with this case).vue-autonumeric
in an ES6 module setup with a bundling tool (ie. Webpack), then you'll need to declare in your project an alias so that Webpack will know how to recognize the correct library name case.
resolve: {
extensions: ['.js', '.vue', '.json'],
alias : {
'~' : resolve('node_modules'),
'@' : resolve('src'),
'AutoNumeric': resolve('node_modules/autonumeric/dist/autoNumeric.min'),
},
},
Changelog
1.2.3
Changelog
1.2.2
.tag.gz
of the component generated by npm pack
, for testing purposeChangelog
1.2.1
rawValue
is compared to the watched new value
.Changelog
1.2.0
rawValue
decimal places are set
v1.1.*
, whenever the options were changed, the number of decimal places for the rawValue
was calculated based of the previous options, and not only the new given options.rawValue
decimal places count.vue-autonumeric
component had a decimalPlaces
option set to 2
, and another set to 5
, then when the user modified the value of one of those components, vue-autonumeric would detect a programmatic value change in the other component (since it did not come from a user interaction), and it would then use set()
to set the new value.set()
...which in turn would make the other components aware of that new value change, and the second component would then use that new cropped value as well.rawValueDecimalPlaces
hack is now reverted to a more sane and legible code.rawValueDecimalPlaces
value when updating the options, if he does not want to lose the precision when switching options.Changelog
1.1.0
:value
and :options
props, the options is not always modified before the valueoptions
to new ones with a higher decimalPlacesRawValue
loses the additional decimal placesoptions
by passing an array of options (with objects and predefined option names)options
and value
are both set at the same time, vue-autonumeric
now always update the options
first, before setting the value
.
vue-autonumeric
component sharing the same v-model
but different options, changing the value/option may not work correctly.
set()
it since it does not come from a user interaction.vue-autonumeric
component has a decimalPlaces
option set to 2
, and another set to 5
, then the first component will drop the additional decimal places when using set()
...which in turn will make the other component aware of that new value change, and the second component will then use that new cropped value as well.Changelog
1.0.7
options
will always lose the decimal places precision after 2
places
resetOnOptions
temporarily resets the configuration to the default one, which set the decimalPlaces
option to 2
.Changelog
1.0.6
resetOnOptions
props so that updating the options
one first reset to the default optionsresetOnOptions
props set the true
by default so that updating the options
prop first call .options.reset()
'integer'
to 'euro'
, the decimalPlaces
was not set from 0
to 2
and you had to first update to the default configuration.resetOnOptions
to false before changing the options
value.