Skip to content

Instantly share code, notes, and snippets.

@huzemin
Last active March 6, 2019 05:38
Show Gist options
  • Save huzemin/9e6a63f5ca796bef6db9c34bc73c1074 to your computer and use it in GitHub Desktop.
Save huzemin/9e6a63f5ca796bef6db9c34bc73c1074 to your computer and use it in GitHub Desktop.
iview 3.3.0 FormItem验证无效问题

使用 iview 3.3.0 [仅移除计算属性cache属性]出现问题。

使用计算属性作为表单的v-model时, 进行表单验证时仅验证第一次有效,之后就一直保存第一次的结果。 应该是fieldValue的值没有得到更新。改为 @ChuanfengZhang 的做法(使用方法)就可以正常进行表单验证。

iview/iview#5313

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment