|
@@ -24,7 +24,7 @@
|
|
|
>
|
|
|
<!-- 横向才有的-->
|
|
|
<div
|
|
|
- v-show="direction"
|
|
|
+ v-if="direction"
|
|
|
class="myRowBoxImg"
|
|
|
@click="showBigPainting"
|
|
|
>
|
|
@@ -42,14 +42,14 @@
|
|
|
</div>
|
|
|
|
|
|
<img
|
|
|
- v-show="!direction"
|
|
|
+ v-if="!direction"
|
|
|
class="painting-border"
|
|
|
src="@/assets/images/painting-border-new.png"
|
|
|
alt=""
|
|
|
draggable="false"
|
|
|
>
|
|
|
<div
|
|
|
- v-show="!direction"
|
|
|
+ v-if="!direction"
|
|
|
ref="paintingWrap2El"
|
|
|
class="painting-wrap-2"
|
|
|
>
|
|
@@ -372,17 +372,17 @@ const isOversize = ref(sizeRatio > wrapSizeRatio)
|
|
|
const paintingWrap2El = ref(null)
|
|
|
const paintingEl = ref(null)
|
|
|
onMounted(() => {
|
|
|
- if (isOversize.value) {
|
|
|
- setTimeout(() => {
|
|
|
- const y =
|
|
|
- (paintingEl.value.clientHeight - paintingWrap2El.value.clientHeight) /
|
|
|
- 2
|
|
|
- paintingWrap2El.value.scrollTo({
|
|
|
- top: y,
|
|
|
- // behavior: 'smooth',
|
|
|
- })
|
|
|
- }, 0)
|
|
|
- }
|
|
|
+ // if (isOversize.value && props.direction) {
|
|
|
+ // setTimeout(() => {
|
|
|
+ // const y =
|
|
|
+ // (paintingEl.value.clientHeight - paintingWrap2El.value.clientHeight) /
|
|
|
+ // 2
|
|
|
+ // paintingWrap2El.value.scrollTo({
|
|
|
+ // top: y,
|
|
|
+ // // behavior: 'smooth',
|
|
|
+ // })
|
|
|
+ // }, 0)
|
|
|
+ // }
|
|
|
})
|
|
|
|
|
|
function showBigPainting() {
|
|
@@ -454,6 +454,9 @@ function showBigPainting() {
|
|
|
v-bind("windowSizeInCssForRef")
|
|
|
);
|
|
|
overflow: auto;
|
|
|
+ &::-webkit-scrollbar {
|
|
|
+ display: none;
|
|
|
+ }
|
|
|
|
|
|
> img.painting {
|
|
|
position: absolute;
|
|
@@ -729,6 +732,9 @@ function showBigPainting() {
|
|
|
}
|
|
|
> .desc-text-up {
|
|
|
overflow: auto;
|
|
|
+ &::-webkit-scrollbar {
|
|
|
+ display: none;
|
|
|
+ }
|
|
|
height: calc(
|
|
|
360 / v-bind("windowSizeWhenDesignForRef") *
|
|
|
v-bind("windowSizeInCssForRef")
|