-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
el-form-item 设置 prop 报错:please transfer a valid prop path to form item! #2327
Comments
补充说明,当 <el-form> 出现在父组件,嵌套引用子组件,<el-form-item>出现在子组件中时,才会出现如上问题。 |
那怎么解决呢?我的表单 |
怎么解决的呢?我也遇到这个问题了 |
上面是因为 form-item.vue |
问题解决了嘛?我还是遇到了这个问题解决不了 |
same its happening to me :( |
我遇到的情况原因是对 |
today,i have the same problem,
the problem is the attribute [prop] of el-form-item must be a string, and make sure the [prop] is a attribute of the model which you write on el-form; see form-item-attributes; 也就是说
so what should do is: make it to string, add
|
I want to say 666 |
Do you know if this works for two level nested? I mean, I have tried in the format they say and works ok for one level like property.0.property but with property.0.property.0.property doesn't work. Any ideas? |
非常感谢,花了我3小时没弄懂,被你一语点破了,一定要是直接子属性 |
Have you solved this problem? |
解决了,谢谢大佬 |
3Q~ |
虽然有报错 但是实际功能上好像没有影响 是吗 |
|
|
use this like :prop="your variables exp" |
Today, I have the same problem when I use the dynamic add and drop form item |
目前来说,我是这样 |
重置 please transfer a valid prop path to form item! |
功能上看怎么理解了,如果你confirm之前进行了validate那么就会被阻止提交 |
我这边是由于用户把key写为 a.b 的形式【也就是key中存在句点导致getPropByPath严格模式下解析失败,就像是脚本注入一样的黑科技】,这里放出来也算是给大家提供个思路,key值的设定可以做一层校验 |
老哥稳 |
请问此问题解决了吗 |
ElementUI version
1.1.1
OS/Browers version
macOS/Chrome 55
Vue version
2.1.8
Steps to reproduce
What is actually happening?
The text was updated successfully, but these errors were encountered: