提交 8e3f84c3 作者: vben

fix(style): fix layout style, fix #633

上级 e3569b81
...@@ -50,8 +50,7 @@ ...@@ -50,8 +50,7 @@
return unref(getFixed) || unref(getShowFullHeaderRef); return unref(getFixed) || unref(getShowFullHeaderRef);
}); });
const getWrapStyle = computed( const getWrapStyle = computed((): CSSProperties => {
(): CSSProperties => {
const style: CSSProperties = {}; const style: CSSProperties = {};
if (unref(getFixed)) { if (unref(getFixed)) {
style.width = unref(getIsMobile) ? '100%' : unref(getCalcContentWidth); style.width = unref(getIsMobile) ? '100%' : unref(getCalcContentWidth);
...@@ -60,15 +59,13 @@ ...@@ -60,15 +59,13 @@
style.top = `${HEADER_HEIGHT}px`; style.top = `${HEADER_HEIGHT}px`;
} }
return style; return style;
} });
);
const getIsFixed = computed(() => { const getIsFixed = computed(() => {
return unref(getFixed) || unref(getShowFullHeaderRef); return unref(getFixed) || unref(getShowFullHeaderRef);
}); });
const getPlaceholderDomStyle = computed( const getPlaceholderDomStyle = computed((): CSSProperties => {
(): CSSProperties => {
let height = 0; let height = 0;
if ( if (
(unref(getShowFullHeaderRef) || !unref(getSplit)) && (unref(getShowFullHeaderRef) || !unref(getSplit)) &&
...@@ -84,8 +81,7 @@ ...@@ -84,8 +81,7 @@
return { return {
height: `${height}px`, height: `${height}px`,
}; };
} });
);
const getClass = computed(() => { const getClass = computed(() => {
return [ return [
...@@ -116,7 +112,7 @@ ...@@ -116,7 +112,7 @@
flex: 0 0 auto; flex: 0 0 auto;
&--dark { &--dark {
margin-left: 0; margin-left: -1px;
} }
&--fixed { &--fixed {
......
...@@ -166,7 +166,7 @@ ...@@ -166,7 +166,7 @@
&--dark { &--dark {
background-color: @header-dark-bg-color !important; background-color: @header-dark-bg-color !important;
border-bottom: 1px solid @border-color-base; // border-bottom: 1px solid @border-color-base;
border-left: 1px solid @border-color-base; border-left: 1px solid @border-color-base;
.@{header-prefix-cls}-logo { .@{header-prefix-cls}-logo {
&:hover { &:hover {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论