高级搜索的默认条件可以允许自定义就好了 #4170
Replies: 3 comments 4 replies
-
@WeiJunFenYou 感谢提交讨论,高级搜索是一个表单,里面有多个条件,如果这里不是等于的条件,我个人觉得应该是有提示让使用者知道是大于或者小于或者其他条件,不然这让用户非常困扰。所以内置的就是等于这条件,符合常识。如果有更好的解决方案我们非常乐意接受。请提出宝贵建议与解决方案,我们可以一起讨论 |
Beta Was this translation helpful? Give feedback.
-
内置的搜索条件是“等于”没有太大问题,但还是建议本库给用户选择的空间,可以默认“等于”,但允许用户可以自己配置成“包含、大于、小于”的条件。至于提示信息,一段页面上的文字注释即可。 |
Beta Was this translation helpful? Give feedback.
-
` <TableColumn @bind-Field="@context.Type1" Text="类别1" /> <TableColumn @bind-Field="@context.Type2" Text="类别2" Searchable="true" /> <TableColumn @bind-Field="@context.Type3" Text="类别3" Searchable="true" /> <TableColumn @bind-Field="@context.Type4" Text="类别4" /> <TableColumn @bind-Field="@context.Type5" Text="类别5" /> 例如又这么一段代码,“类别2”和“类别3”使用了 |
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.
-
在Table组件中,其自动生成的搜索,QueryPageOptions的AdvanceSearches属性,表达式的FilterAction被硬编码为
FilterAction.Equal
,可以给TableColumn新增一个属性“FilterAction”,在Filterable为true时,读取FilterAction的值,默认为FilterAction.Equal。这样用户在构建搜索框时,需要用到“包含”、“大于等于”等等关系符时,就不需要兴师动众自己再定义一个模板了。代码链接
Beta Was this translation helpful? Give feedback.
All reactions