@coders-tm/vue-number-format
Advanced tools
Comparing version 3.0.2 to 3.0.3
@@ -386,49 +386,51 @@ /** | ||
modelValue: { | ||
required: true | ||
required: true, | ||
}, | ||
nullValue: { | ||
type: [Number, String], | ||
default: () => options.nullValue | ||
default: () => options.nullValue, | ||
}, | ||
masked: { | ||
type: Boolean, | ||
default: false | ||
default: false, | ||
}, | ||
reverseFill: { | ||
type: Boolean, | ||
default: options.reverseFill | ||
default: options.reverseFill, | ||
}, | ||
precision: { | ||
type: Number, | ||
default: () => options.precision | ||
default: () => options.precision, | ||
}, | ||
minimumFractionDigits: { | ||
type: [Number, Boolean], | ||
default: () => options.minimumFractionDigits | ||
default: () => options.minimumFractionDigits, | ||
}, | ||
max: [Number, Boolean, String], | ||
min: [Number, Boolean, String], | ||
decimal: { | ||
type: String, | ||
default: () => options.decimal | ||
default: () => options.decimal, | ||
}, | ||
separator: { | ||
type: String, | ||
default: () => options.separator | ||
default: () => options.separator, | ||
}, | ||
prefix: { | ||
type: String, | ||
default: () => options.prefix | ||
default: () => options.prefix, | ||
}, | ||
suffix: { | ||
type: String, | ||
default: () => options.suffix | ||
} | ||
default: () => options.suffix, | ||
}, | ||
}, | ||
directives: { | ||
number: vNumber | ||
number: vNumber, | ||
}, | ||
emits: ['update:modelValue','input:modelValue'], | ||
emits: ['update:modelValue', 'input:modelValue'], | ||
data() { | ||
return { | ||
maskedValue: this.modelValue, | ||
unmaskedValue: null | ||
unmaskedValue: null, | ||
} | ||
@@ -444,3 +446,3 @@ }, | ||
this.$emit('update:modelValue', this.emittedValue); | ||
} | ||
}, | ||
}, | ||
@@ -453,10 +455,10 @@ computed: { | ||
return this.$props | ||
} | ||
}, | ||
}, | ||
watch: { | ||
modelValue (val) { | ||
modelValue(val) { | ||
if (this.unmaskedValue !== val) { | ||
this.maskedValue = val; | ||
} | ||
} | ||
}, | ||
}, | ||
@@ -463,0 +465,0 @@ }; |
@@ -382,49 +382,51 @@ /** | ||
modelValue: { | ||
required: true | ||
required: true, | ||
}, | ||
nullValue: { | ||
type: [Number, String], | ||
default: () => options.nullValue | ||
default: () => options.nullValue, | ||
}, | ||
masked: { | ||
type: Boolean, | ||
default: false | ||
default: false, | ||
}, | ||
reverseFill: { | ||
type: Boolean, | ||
default: options.reverseFill | ||
default: options.reverseFill, | ||
}, | ||
precision: { | ||
type: Number, | ||
default: () => options.precision | ||
default: () => options.precision, | ||
}, | ||
minimumFractionDigits: { | ||
type: [Number, Boolean], | ||
default: () => options.minimumFractionDigits | ||
default: () => options.minimumFractionDigits, | ||
}, | ||
max: [Number, Boolean, String], | ||
min: [Number, Boolean, String], | ||
decimal: { | ||
type: String, | ||
default: () => options.decimal | ||
default: () => options.decimal, | ||
}, | ||
separator: { | ||
type: String, | ||
default: () => options.separator | ||
default: () => options.separator, | ||
}, | ||
prefix: { | ||
type: String, | ||
default: () => options.prefix | ||
default: () => options.prefix, | ||
}, | ||
suffix: { | ||
type: String, | ||
default: () => options.suffix | ||
} | ||
default: () => options.suffix, | ||
}, | ||
}, | ||
directives: { | ||
number: vNumber | ||
number: vNumber, | ||
}, | ||
emits: ['update:modelValue','input:modelValue'], | ||
emits: ['update:modelValue', 'input:modelValue'], | ||
data() { | ||
return { | ||
maskedValue: this.modelValue, | ||
unmaskedValue: null | ||
unmaskedValue: null, | ||
} | ||
@@ -440,3 +442,3 @@ }, | ||
this.$emit('update:modelValue', this.emittedValue); | ||
} | ||
}, | ||
}, | ||
@@ -449,10 +451,10 @@ computed: { | ||
return this.$props | ||
} | ||
}, | ||
}, | ||
watch: { | ||
modelValue (val) { | ||
modelValue(val) { | ||
if (this.unmaskedValue !== val) { | ||
this.maskedValue = val; | ||
} | ||
} | ||
}, | ||
}, | ||
@@ -459,0 +461,0 @@ }; |
{ | ||
"name": "@coders-tm/vue-number-format", | ||
"version": "3.0.2", | ||
"version": "3.0.3", | ||
"private": false, | ||
@@ -68,2 +68,3 @@ "description": "Easy formatted numbers, currency and percentage with input/directive mask for Vue.js", | ||
"jest": "^27.2.0", | ||
"prettier-config-vuepress": "^1.4.0", | ||
"rollup": "^2.56.3", | ||
@@ -76,3 +77,4 @@ "rollup-plugin-filesize": "^9.1.1", | ||
"windicss": "^3.5.0" | ||
} | ||
}, | ||
"prettier": "prettier-config-vuepress" | ||
} |
Sorry, the diff of this file is not supported yet
34584
864
26