Skip to content

【BUG】自定义表单组件异常 ReferenceError: initialValue is not defined #1190

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
chengyadong opened this issue Sep 16, 2019 · 5 comments
Closed
1 task done
Labels
🤔 Need Reproduce We cannot reproduce your problem outdated

Comments

@chengyadong
Copy link

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

Version

1.3.16

Environment

macOS 10.14.5, Chrome 75.0.3770.100, Vue 2.6.10

Reproduction link

https://github.com/vueComponent/ant-design-vue/blob/master/components/vc-form/src/createBaseForm.jsx

Steps to reproduce

自定义表单组件使用 v-decorator 时 添加 initialValue 报错,组件渲染失败

What is expected?

组件正常渲染

What is actually happening?

提示 ReferenceError: initialValue is not defined,组件无法渲染

@sendya
Copy link
Member

sendya commented Sep 16, 2019

请提供复现,谢谢

@ghost
Copy link

ghost commented Oct 8, 2019

value props不能设置默认值

@liudonghua123
Copy link

@sendya 我也遇到这个问题,原来这里的代码感觉有问题
initialValue 这里确实没有定义,如果v-decorator中有option,则就会执行到这里,然后报这个错,这是一个break bugs,希望能尽快修复

image

@tangjinzhou tangjinzhou added the 🤔 Need Reproduce We cannot reproduce your problem label Oct 10, 2019
@tangjinzhou
Copy link
Member

update to v1.4.1

@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 Oct 17, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🤔 Need Reproduce We cannot reproduce your problem outdated
Projects
None yet
Development

No branches or pull requests

4 participants