Skip to content

Table 特性 AutoGenerateClass 和 AutoGenerateColumn 优先级疑问 #3762

Answered by ArgoZhang
densen2014 asked this question in Q&A
Discussion options

You must be logged in to vote

@densen2014 结案总结

  • 只写了 AutoGenerateClassAttribute 以其参数值为准

  • 只写了 AutoGenerateColumnAttribute 以其参数值为准

  • 写了 AutoGenerateClassAttribute 并且写了 AutoGenerateColumnAttribute 合并两者参数值取其默认值的相反值
    举例 Filterable 其默认值为 false
    AutoGenerateClassAttribute 设置 Filterable="true" AutoGenerateColumnAttribute 设置 Filterable="false" 最终 UI 取值 true
    AutoGenerateClassAttribute 设置 Filterable="false" AutoGenerateColumnAttribute 设置 Filterable="true" 最终 UI 取值 true

  • 写了 TableColumn 参数值情况如下
    最新更新 TableColumnFilterable 更改为可为空数据类型,其默认值由原来的 false 更改为 null,可由此判断,只要 TableColumn 的参数 Filterable 值不为空,即以 TableColumn 值为最终 UI 值

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
2 replies
@ArgoZhang
Comment options

@densen2014
Comment options

densen2014 Jul 2, 2024
Collaborator Author

Comment options

densen2014
Jul 2, 2024
Collaborator Author

You must be logged in to vote
0 replies
Comment options

densen2014
Jul 3, 2024
Collaborator Author

You must be logged in to vote
2 replies
@ArgoZhang
Comment options

@ArgoZhang
Comment options

Answer selected by densen2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants