8943ba73 by lihua

fix: 去掉移入显示滚动

1 parent bc594a5e
......@@ -1356,9 +1356,9 @@ const viewDeliveryFile = (file) => {
</el-table-column>
<el-table-column prop="contract" label="合同" min-width="200px" align="left">
<template #default="scope">
<a v-for="item in scope.row.contractInfo" underline="hover" style="margin-right: 12px;cursor: pointer;"
<a v-for="(item, index) in scope.row.contractInfo" underline="hover" style="margin-right: 8px;cursor: pointer;"
@click="clickContractDetail(item)">{{
item.dataContractName }}</a>
item.dataContractName + (index < scope.row.contractInfo?.length - 1 ? '、' : '') }}</a>
</template>
</el-table-column>
<el-table-column prop="uploadTime" label="上传时间" width="180px" align="left">
......
......@@ -323,14 +323,18 @@ const oldScrollTop = ref(0);
function toTop(className: string) {
requestAnimationFrame(() => {
let dom = document.getElementsByClassName(className)[0]
dom.scrollIntoView({
block: 'start',
behavior: 'instant',
})
dom && (dom.scrollTop = 0);
// dom.scrollIntoView({
// block: 'start',
// behavior: 'instant',
// })
})
}
const handleDataClick = (item, index) => {
selectDataInfo.value = item;
nextTick(() => {
toTop('dam-detail-right')
})
}
function clearPageInfo() {
......@@ -492,10 +496,7 @@ const handleDownFile = () => {
background-color: #fff;
width: calc(100% - 456px);
height: 100%;
overflow-y: hidden;
&:hover {
overflow-y: auto;
}
overflow-y: auto;
}
}
......@@ -726,11 +727,7 @@ const handleDownFile = () => {
width: 450px;
background-color: #fff;
height: 100%;
overflow-y: hidden;
&:hover {
overflow-y: auto;
}
overflow-y: auto;
.dam-detail {
padding: 24px;
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!