简体中文
getDescribeLayout
约 182 字小于 1 分钟
2025-09-22
获取 DescribeLayout 接口完整返回数据。
参数
无
返回结果
| 参数 | 说明 | 类型 |
|---|---|---|
| layout | 主对象布局 | Object |
| objectData | 主对象默认数据 | Object |
| objectDescribe | 主对象描述 | Object |
| detailObjectList | 当前主对象布局下所有的从对象 | Array |
detailObjectList下的单个从对象信息
| 参数 | 说明 | 类型 |
|---|---|---|
| objectApiName | 从对象apiName | String |
| objectDescribe | 从对象的对象描述 | Object |
| layoutList | 从对象的布局 | Array |
| fieldApiName | 从对象的主从字段apiName | String |
| fieldLabel | 从对象的主从字段名称 | String |
代码示例
{
event: "form.render.before",
functional: function (pluginExecResult, options) {
console.log("custom plugin: form.render.before exec");
let {dataGetter}=options;
console.log("DescribeLayout:",dataGetter.getDescribeLayout())
}
},注意
- 禁止修改得到的对象中的任何属性,可能导致不可预期的结果
