Skip to content

v2 中如何通过form实例订阅某个字段值改变?? #1765

Answered by javahuang
userhjp asked this question in Q&A [2.x]
Discussion options

You must be logged in to vote

大概这样

const form = createForm();

form.addEffects('e1', () => {
  onFieldValueChange('aa',(field, form) => {
    //TODO
  })
})

Replies: 4 comments 6 replies

Comment options

You must be logged in to vote
3 replies
@userhjp
Comment options

@javahuang
Comment options

@userhjp
Comment options

Answer selected by userhjp
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@userhjp
Comment options

@javahuang
Comment options

@userhjp
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants