Skip to content

Commit e59da5a

Browse files
committed
fix missing default value
1 parent 8653de5 commit e59da5a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/vue-numeric.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,11 +248,15 @@ export default {
248248
watch: {
249249
'default' (val, old) {
250250
this.processValue(this.defaultValue)
251+
this.formatValue(this.defaultValue)
251252
}
252253
},
253254
254255
mounted () {
255-
if (this.defaultValue) this.processValue(this.defaultValue)
256+
if (this.defaultValue) {
257+
this.processValue(this.defaultValue)
258+
this.formatValue(this.defaultValue)
259+
}
256260
}
257261
}
258262
</script>

0 commit comments

Comments
 (0)