Skip to content

Ant Design 浏览器引入,使用form报错:formContext.$forceUpdate is not a function #1771

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
1 task done
FishHaveMine opened this issue Feb 11, 2020 · 2 comments
Closed
1 task done
Labels

Comments

@FishHaveMine
Copy link

FishHaveMine commented Feb 11, 2020

  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

1.4.10

Environment

Vue.js v2.6.11

Reproduction link

https://github.com/FishHaveMine/AntDesignWebLink

Steps to reproduce

点击表单组件输入或选取下拉值

What is expected?

根据输入修改表单对应值

What is actually happening?

运行报错

@FishHaveMine FishHaveMine changed the title Ant Design 浏览器引入,使用form保错:formContext.$forceUpdate is not a function Ant Design 浏览器引入,使用form报错:formContext.$forceUpdate is not a function Feb 11, 2020
@sendya
Copy link
Member

sendya commented Feb 15, 2020

可以改成这样。

data: {
          formLayout: 'horizontal',
          form: null
        },
        created: function () {
          this.form = this.$form.createForm(this, { name: 'coordinated' });
        },

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 21, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants