提交 0013a476 编写于 作者: Cano1997's avatar Cano1997

update: 表单关系界面支持默认加载配置

上级 bfb06251
......@@ -21,6 +21,12 @@ export const FormDRUIPart = defineComponent({
const ns = useNamespace('form-druipart');
const viewPath = props.modelData.embedView.source.modelPath;
let noLoadDefault = true;
// 样式2时默认加载数据
if (props.modelData.source.detailStyle === 'STYLE2') {
noLoadDefault = false;
}
// 模态对象
const modal: IModal = { mode: ViewMode.EMBED };
......@@ -36,6 +42,7 @@ export const FormDRUIPart = defineComponent({
ns,
modal,
viewPath,
noLoadDefault,
onNeuronInit,
};
},
......@@ -55,7 +62,7 @@ export const FormDRUIPart = defineComponent({
params: this.$props.controller.params,
modal: this.modal,
modelPath: this.viewPath,
noLoadDefault: true,
noLoadDefault: this.noLoadDefault,
},
key: this.controller.viewComponentKey,
on: {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册