perf: 一些样式优化和形状补充

This commit is contained in:
pipipi-pikachu 2021-06-06 15:34:35 +08:00
parent 87c9a2996e
commit ef1876869c
4 changed files with 28 additions and 0 deletions

View File

@ -48,6 +48,15 @@ export default defineComponent({
overflow: hidden;
text-align: center;
font-size: 14px;
&::after {
content: '#';
position: absolute;
left: 0;
top: 50%;
transform: translateY(-50%);
color: #999;
}
}
.input-content {
width: 100%;

View File

@ -49,6 +49,10 @@ export const SHAPE_LIST = [
viewBox: 200,
path: 'M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z'
},
{
viewBox: 200,
path: 'M 0 200 A 50 100 0 1 1 200 200 L 0 200 Z',
},
{
viewBox: 200,
path: 'M 100 0 A 100 100 102 1 0 200 100 L 100 100 L 100 0 Z'
@ -173,6 +177,14 @@ export const SHAPE_LIST = [
viewBox: 200,
path: 'M 200 0 L 0 0 L 200 200 L 0 200 L 200 0 Z'
},
{
viewBox: 200,
path: 'M 0 20 C 60 60 140 -40 200 20 L 200 180 C 140 140 60 240 0 180 L 0 20 Z',
},
{
viewBox: 200,
path: 'M 0 20 C 40 -40 60 60 100 20 C 140 -40 160 60 200 20 L 200 180 C 140 240 160 140 100 180 C 40 240 60 140 0 180 L 0 20 Z',
},
],
},

View File

@ -109,6 +109,7 @@ export default defineComponent({
font-size: 12px;
display: flex;
justify-content: space-between;
user-select: none;
.right {
cursor: pointer;

View File

@ -28,6 +28,7 @@
<div class="menu-item"><IconHelpcenter /> <span class="text">帮助</span></div>
<template #overlay>
<Menu>
<MenuItem @click="goIssues()">意见反馈</MenuItem>
<MenuItem @click="hotkeyDrawerVisible = true">快捷键</MenuItem>
</Menu>
</template>
@ -98,6 +99,10 @@ export default defineComponent({
const hotkeyDrawerVisible = ref(false)
const exportDialogVisible = ref(false)
const goIssues = () => {
window.open('https://github.com/pipipi-pikachu/PPTist/issues')
}
return {
enterScreening,
enterScreeningFromStart,
@ -110,6 +115,7 @@ export default defineComponent({
resetSlides,
hotkeyDrawerVisible,
exportDialogVisible,
goIssues,
}
},
})