提交 2a5201ab authored 作者: 王鹏飞's avatar 王鹏飞

bug fixes

上级 7ce09766
{ {
"name": "@ezijing/vue-form", "name": "@ezijing/vue-form",
"version": "2.2.1", "version": "2.2.2",
"private": false, "private": false,
"description": "基于Vue Element-UI的表单", "description": "基于Vue Element-UI的表单",
"scripts": { "scripts": {
......
...@@ -26,10 +26,10 @@ export default { ...@@ -26,10 +26,10 @@ export default {
}, },
methods: { methods: {
onBlur() { onBlur() {
if (this.currentValue) { if (this.currentValue && typeof this.currentValue === 'string') {
this.data[this.options.model] = this.currentValue.trim() this.data[this.options.model] = this.currentValue.trim()
} }
} }
} }
} }
</script> </script>
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论