|
@@ -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">
|
|
|
|
- <el-button style="float: left; margin: 10px 0px 0px 10px" @click="emit('back')">
|
|
|
|
|
|
+ <div class="header-left">
|
|
|
|
+ <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">
|
|
|
|
- <slot name="right"></slot>
|
|
|
|
- </div>
|
|
|
|
- <div>
|
|
|
|
|
|
+ <div class="header-center">
|
|
<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 {
|
|
|
|
- font-weight: 700;
|
|
|
|
|
|
+ .el-button {
|
|
|
|
+ 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>
|