Table中的lookup是否可以支持匹配IEnumerable类型的数据 #4856
Replies: 6 comments 5 replies
-
@tiansfather 这代码是哪里的?我记得
可以参考我们组件库设计的 |
Beta Was this translation helpful? Give feedback.
-
这个函数是原来组件库里的呀,要不我先提个pr你帮我看看。这个文件是ITableColumnExtensions.cs中的 |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
没有功能改动,只是加了个判断处理,我重新提交了一下,有空再帮我看看 |
Beta Was this translation helpful? Give feedback.
-
我看到原来的代码中在没有Lookup的时候,如果是IEnumerable类型,就用string.join连接,所以我想这种类型的数据在有Lookup的时候是否也应该有个默认显示,比如角色是一个Lookup,那么一个用户有多个角色,就可以直接以“角色1,角色2”这样展示了,不然的话是不是就需要用Template来处理? 另外第二个改动是这里: |
Beta Was this translation helpful? Give feedback.
-
好的,大佬辛苦 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
目前lookup在查找数据时,只是将数据tostring以后进行匹配,这样的话如果数据类型是IEnumerable的话就匹配不上。帮忙看下这样修改是否可以
Beta Was this translation helpful? Give feedback.
All reactions