mirror of
https://github.com/pipipi-pikachu/PPTist.git
synced 2025-04-15 02:20:00 +08:00
perf: 一些UI优化
This commit is contained in:
parent
0d0e729944
commit
4e8832f263
@ -76,6 +76,7 @@
|
|||||||
:key="item"
|
:key="item"
|
||||||
@click="applyCanvasPresetScale(item)"
|
@click="applyCanvasPresetScale(item)"
|
||||||
>{{item}}%</PopoverMenuItem>
|
>{{item}}%</PopoverMenuItem>
|
||||||
|
<PopoverMenuItem center @click="resetCanvas()">适应屏幕</PopoverMenuItem>
|
||||||
</template>
|
</template>
|
||||||
<span class="text">{{canvasScalePercentage}}</span>
|
<span class="text">{{canvasScalePercentage}}</span>
|
||||||
</Popover>
|
</Popover>
|
||||||
@ -131,7 +132,7 @@ const {
|
|||||||
canvasScalePercentage,
|
canvasScalePercentage,
|
||||||
} = useScaleCanvas()
|
} = useScaleCanvas()
|
||||||
|
|
||||||
const canvasScalePresetList = [200, 150, 100, 80, 50]
|
const canvasScalePresetList = [200, 150, 125, 100, 75, 50]
|
||||||
const canvasScaleVisible = ref(false)
|
const canvasScaleVisible = ref(false)
|
||||||
|
|
||||||
const applyCanvasPresetScale = (value: number) => {
|
const applyCanvasPresetScale = (value: number) => {
|
||||||
|
@ -48,7 +48,8 @@ const selectSlideTemplate = (slide: Slide) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.thumbnail {
|
.thumbnail {
|
||||||
outline: 1px solid $borderColor;
|
outline: 2px solid $borderColor;
|
||||||
|
transition: outline $transitionDelay;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
|
@ -491,7 +491,7 @@ const updateViewportRatio = (value: number) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
&:hover .btns {
|
&:hover .btns {
|
||||||
display: flex;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.btns {
|
.btns {
|
||||||
@ -500,8 +500,10 @@ const updateViewportRatio = (value: number) => {
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
display: none;
|
display: flex;
|
||||||
background-color: rgba($color: #000, $alpha: .25);
|
background-color: rgba($color: #000, $alpha: .25);
|
||||||
|
opacity: 0;
|
||||||
|
transition: opacity $transitionDelay;
|
||||||
}
|
}
|
||||||
.btn {
|
.btn {
|
||||||
width: 72px;
|
width: 72px;
|
||||||
|
@ -401,7 +401,7 @@ defineExpose({
|
|||||||
}
|
}
|
||||||
|
|
||||||
.icon-content {
|
.icon-content {
|
||||||
transition: all 0.2s ease-in-out;
|
transition: all .2s ease-in-out;
|
||||||
opacity: 0.8;
|
opacity: 0.8;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
@ -517,7 +517,7 @@ useMSE(props.src, videoRef)
|
|||||||
}
|
}
|
||||||
|
|
||||||
.icon-content {
|
.icon-content {
|
||||||
transition: all 0.2s ease-in-out;
|
transition: all .2s ease-in-out;
|
||||||
opacity: 0.8;
|
opacity: 0.8;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user