提交 16f155c3 authored 作者: liujq23's avatar liujq23

暂存

上级 15963586
// 门户 import Portal1 from "@/views/portals/portal1/index.vue";
import Portal from "@/views/portals/portal/index.vue"; import Portal2 from "@/views/portals/portal2/index.vue";
const portalRoutes = [ const portalRoutes = [
// 门户 // 门户
{ {
path: "/portal", path: "/portal1",
name: "portal", name: "portal1",
component: Portal, component: Portal1,
meta: {
title: "门户"
}
},
{
path: "/portal2",
name: "portal2",
component: Portal2,
meta: { meta: {
title: "门户" title: "门户"
} }
......
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
:style="{ :style="{
backgroundColor: titleBackgroundColor, backgroundColor: titleBackgroundColor,
color: titleColor, color: titleColor,
fontSize: titleFontSize,
paddingLeft: titleTextAlign === 'left' ? '0px' : '20px' paddingLeft: titleTextAlign === 'left' ? '0px' : '20px'
}" }"
> >
...@@ -31,7 +32,7 @@ ...@@ -31,7 +32,7 @@
</slot> </slot>
</div> </div>
</div> </div>
<div class="body"> <div class="body" :style="bodyStyle">
<slot name="default"> </slot> <slot name="default"> </slot>
</div> </div>
</div> </div>
...@@ -44,7 +45,7 @@ const emit = defineEmits(["moreClick"]); ...@@ -44,7 +45,7 @@ const emit = defineEmits(["moreClick"]);
defineProps({ defineProps({
titleBackgroundColor: { titleBackgroundColor: {
type: String, type: String,
default: "red" default: "transparent"
}, },
titleColor: { titleColor: {
type: String, type: String,
...@@ -69,6 +70,16 @@ defineProps({ ...@@ -69,6 +70,16 @@ defineProps({
headerHeight: { headerHeight: {
type: String, type: String,
default: "48px" default: "48px"
},
titleFontSize: {
type: String,
default: "20px"
},
bodyStyle: {
type: Object,
default: function () {
return {};
}
} }
}); });
function moreClick() { function moreClick() {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论