@fouro/elx-v2
Advanced tools
+1
-1
| { | ||
| "name": "@fouro/elx-v2", | ||
| "version": "1.0.24", | ||
| "version": "1.0.25", | ||
| "description": "element-ui components", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
| <template> | ||
| <el-input v-model="inputValue" :placeholder="$t('component.numberField.placeholder')" @blur="handleBlur" :clearable="clearable" @clear="handleClear"> | ||
| <el-input | ||
| v-model="inputValue" | ||
| :placeholder="$t('component.numberField.placeholder')" | ||
| @blur="handleBlur" | ||
| :clearable="clearable" | ||
| @clear="handleClear"> | ||
| </el-input> | ||
@@ -43,3 +48,4 @@ </template> | ||
| if (typeof this.inputValue != 'number') { | ||
| this.inputValue = Number(this.inputValue) | ||
| let value = Number(this.inputValue) | ||
| this.inputValue = isNaN(value) ? null : value | ||
| } | ||
@@ -46,0 +52,0 @@ } |
949854
0.01%