提交 fb47e18e 编写于 作者: jlj05024111@163.com's avatar jlj05024111@163.com

feat:更新分页样式

上级 3c34e18e
......@@ -53,6 +53,13 @@
}
@include e(route-content) {
.#{bem(view-layout-top)} {
margin: 0;
}
.#{bem(view-layout-content)} {
margin: 0;
}
height: calc(100% - 39px);
background-color: getCssVar(view-layout-route-bg-color);
> .#{bem('view-layout')} {
......
......@@ -19,7 +19,7 @@ export const FormDRUIPart = defineComponent({
},
setup(props) {
const ns = useNamespace('form-druipart');
const viewPath = props.modelData.embedView.source.modelPath;
const viewPath = props.modelData.embedView?.source.modelPath || '';
let noLoadDefault = true;
// 样式2时默认加载数据
......@@ -47,7 +47,11 @@ export const FormDRUIPart = defineComponent({
};
},
render(h) {
if (!this.controller.visible || !this.controller.viewComponentKey) {
if (
!this.controller.visible ||
!this.controller.viewComponentKey ||
!this.viewPath
) {
return null;
}
return (
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册