Merge pull request 'baigl' (#92) from baigl into main

Reviewed-on: #92
This commit is contained in:
baigl 2024-12-06 15:30:38 +08:00
commit 4010411c9f
3 changed files with 11 additions and 10 deletions

View File

@ -112,16 +112,14 @@
/>
</Modal>
<Modal
v-model:visible="classWorkTaskVisible"
:width="880"
>
<el-dialog v-model="classWorkTaskVisible" append-to-body :show-close="false" width="70%">
<QuestToPPTist
class="class-work-task-modal"
@close="classWorkTaskVisible = false"
@update="data => { onhtml2canvas(data); classWorkTaskVisible = false }"
/>
</Modal>
</el-dialog>
</div>
</template>
@ -363,7 +361,7 @@ const toggleNotesPanel = () => {
}
}
.class-work-task-modal{
height: 80vh;
height: 70vh;
}
@media screen and (width <= 1200px) {

View File

@ -154,13 +154,15 @@ const topImgWrapperPositionStyle = computed(() => {
const topImgPositionStyle = computed(() => {
const bottomWidth = imgPosition.value.width
const bottomHeight = imgPosition.value.height
console.log("底层图片位置大小(遮罩区域图片)", imgPosition.value)
const { top, left, width, height } = topImgWrapperPosition.value
console.log("width", ((bottomWidth / width * 100) - (left * (100 / width))) + '%')
console.log("height", bottomHeight / height * 100 + '%')
return {
left: -left * (100 / width) + '%',
top: -top * (100 / height) + '%',
width: bottomWidth / width * 100 + '%',
width: ((bottomWidth / width * 100) - (left * (100 / width))) + '%' ,
height: bottomHeight / height * 100 + '%',
}
})
@ -228,6 +230,7 @@ const updateRange = () => {
width: parseInt(topImgPositionStyle.value.width),
height: parseInt(topImgPositionStyle.value.height),
}
console.log('retPosition', retPosition)
const widthScale = 100 / retPosition.width
const heightScale = 100 / retPosition.height
@ -475,7 +478,7 @@ const scaleClipRange = (e: MouseEvent, type: OperateResizeHandlers) => {
isMouseDown = false
document.onmousemove = null
document.onmouseup = null
console.log('----------------------------------')
updateRange()
setTimeout(() => isSettingClipRange.value = false, 0)

View File

@ -68,7 +68,7 @@ defineExpose({
.page-resource {
user-select: none;
height: calc(100% - 55px);
height: 100%;
display: flex;
flex-direction: row;
flex-wrap: nowrap;