fix: fix style
This commit is contained in:
parent
2d0e0cf914
commit
17c8fea938
|
@ -24,23 +24,23 @@ onMounted(() => {
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div class="content-detail-wrap-container" ref="contentDetailWrap" id="contentDetailWrap">
|
<div class="content-detail-wrap-container" ref="contentDetailWrap">
|
||||||
<Sticky :offset="offset">
|
<Sticky :offset="offset">
|
||||||
<div class="detail-wrap-header">
|
<div class="detail-wrap-header">
|
||||||
<div style="float: left">
|
<div class="header-left">
|
||||||
<el-button style="float: left; margin: 10px 0px 0px 10px" @click="emit('back')">
|
<el-button @click="emit('back')">
|
||||||
<Icon icon="ep:arrow-left" class="mr-5px" />
|
<Icon icon="ep:arrow-left" class="mr-5px" />
|
||||||
{{ t('common.back') }}
|
{{ t('common.back') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
</div>
|
</div>
|
||||||
<div style="float: right">
|
<div class="header-center">
|
||||||
<slot name="right"></slot>
|
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
<slot name="title">
|
<slot name="title">
|
||||||
<label class="detail-wrap-header-title">{{ title }}</label>
|
<label class="header-title">{{ title }}</label>
|
||||||
</slot>
|
</slot>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="header-right">
|
||||||
|
<slot name="right"></slot>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</Sticky>
|
</Sticky>
|
||||||
<div style="padding: var(--app-content-padding)">
|
<div style="padding: var(--app-content-padding)">
|
||||||
|
@ -59,18 +59,42 @@ onMounted(() => {
|
||||||
.detail-wrap-header {
|
.detail-wrap-header {
|
||||||
position: relative;
|
position: relative;
|
||||||
z-index: 999 !important;
|
z-index: 999 !important;
|
||||||
|
display: flex;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 50px;
|
height: 50px;
|
||||||
padding-right: 20px;
|
padding-right: 20px;
|
||||||
line-height: 50px;
|
line-height: 50px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|
||||||
background: #fff;
|
background: #fff;
|
||||||
border-bottom: 1px solid #d0d0d0;
|
border-bottom: 1px solid #d0d0d0;
|
||||||
transition: position 0.6s ease;
|
transition: position 0.6s ease;
|
||||||
|
|
||||||
.detail-wrap-header-title {
|
.el-button {
|
||||||
font-weight: 700;
|
margin: 10px 10px 0px 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.header-center {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
flex: 1;
|
||||||
|
|
||||||
|
.header-title {
|
||||||
|
font-weight: 700;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.header-left {
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header-right {
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.readonly input {
|
||||||
|
background-color: #f6f6f6;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -81,7 +81,6 @@ const handleScroll = () => {
|
||||||
reset()
|
reset()
|
||||||
} else {
|
} else {
|
||||||
const offsetBottom = refSticky.value.getBoundingClientRect().bottom
|
const offsetBottom = refSticky.value.getBoundingClientRect().bottom
|
||||||
console.log(offsetBottom, props.offset)
|
|
||||||
if (offsetBottom > windowHeight.value - props.offset) {
|
if (offsetBottom > windowHeight.value - props.offset) {
|
||||||
sticky()
|
sticky()
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue