-
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.
[Bug]: 设计器中ObjectForm组件配置为只读模式时,画布中组件显示为空白了,发布后的前台界面正常
- Loading branch information
1 parent
100ed51
commit f106aab
Showing
1 changed file
with
3 additions
and
2 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-05-26 16:02:08 | ||
* @LastEditors: 殷亮辉 [email protected] | ||
* @LastEditTime: 2023-09-15 15:36:17 | ||
* @LastEditTime: 2023-10-12 18:25:05 | ||
* @Description: | ||
*/ | ||
import * as Fields from '../fields'; | ||
|
@@ -25,8 +25,9 @@ const getFieldSchemaArray = (formFields, ctx) => { | |
} | ||
|
||
let forceHidden = false; | ||
if(!recordId && field.readonly){ | ||
if(!recordId && field.readonly && !ctx.isEditor){ | ||
// 新建记录时,只读字段先隐藏,后续支持显示后,即任务:https://github.com/steedos/steedos-platform/issues/3164 完成后再放开 | ||
// 表单只读时所有字段都是readonly,设计器中如果forceHidden会造成整个表单在只读的时候显示为空白了,所以要排除掉 | ||
forceHidden = true; | ||
} | ||
|
||
|