Skip to content

Commit

Permalink
[Bug]: 设计器中ObjectForm组件配置为只读模式时,画布中组件显示为空白了,发布后的前台界面正常
Browse files Browse the repository at this point in the history
  • Loading branch information
yinlianghui committed Oct 12, 2023
1 parent 100ed51 commit f106aab
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -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;
}

Expand Down

0 comments on commit f106aab

Please sign in to comment.