-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#514 子表组件放开headerToolbar时,始终显示headerToolbar,没有记录时只隐藏crud内部表格,不隐藏head…
…erToolbar
- Loading branch information
1 parent
552c530
commit ddf662b
Showing
2 changed files
with
11 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
* @Author: [email protected] | ||
* @Date: 2022-07-05 15:55:39 | ||
* @LastEditors: 殷亮辉 [email protected] | ||
* @LastEditTime: 2025-01-07 20:20:50 | ||
* @LastEditTime: 2025-01-08 13:32:51 | ||
* @Description: | ||
*/ | ||
|
||
|
@@ -368,8 +368,9 @@ export async function getRelatedListSchema( | |
try{ | ||
if(setDataToComponentId){ | ||
// 子表列表在headerToolbar过滤器中设置过过滤条件的话,始终显示子表列表,无论是否查询到数据 | ||
var headerToolbarFilterChanged = context.isFieldsFilterEmpty === false; | ||
if(payload.data.count || headerToolbarFilterChanged){ | ||
// 改为使用css样式控制子表列表放开headerToolbar时,始终显示crud,只隐藏crud内部的表格,从而始终显示headerToolbar不受这里逻辑影响 | ||
// var headerToolbarFilterChanged = context.isFieldsFilterEmpty === false; | ||
if(payload.data.count){ | ||
setTimeout(function(){ | ||
// 设计器中获取不到window.$从而导致报错, 所以用纯js替换下。 | ||
// window.$("." + setDataToComponentId + " .antd-Crud").removeClass("hidden"); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters