-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
使用TreeSelect时碰到的一些友好性问题 #81
Comments
第一点:下个版本会兼容 children为null的情况,目前可自行处理为undefined 或 删除该属性 |
tangjinzhou
added a commit
that referenced
this issue
Jul 25, 2018
tangjinzhou
added a commit
that referenced
this issue
Sep 5, 2018
This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
What problem does this feature solve?
1、使用treeData构成树节点时。如果存在children这个属性,但是值为null就会报错。这点在使用时比较尴尬。因为树结构是在后端生成的,后端要把每个树节点的children至少赋值一个空的数组。
2、新功能描述:目前树节点支持了key、value、name等常用属性。但是在使用时很难满足实际需求。如果我给树节点多弄个属性,在change事件或者select事件拿到的参数中,不是组件内置的参数,都会被舍弃。还有,如果能用 param:{key:userId,value:userId,name:userName} 这种方式去指定参数的名称会更友好些。否则树节点属性被写死也件很尴尬的事情。
What does the proposed API look like?
按照以前的API描述就可以了
The text was updated successfully, but these errors were encountered: