Skip to content

Commit

Permalink
chore: 调整新增页面按钮位置
Browse files Browse the repository at this point in the history
  • Loading branch information
StreakingMan committed Jan 23, 2024
1 parent 82c535d commit 49eadd2
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 8 deletions.
13 changes: 5 additions & 8 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -151,14 +151,6 @@ watch(
},
}"
>
<v-btn
style="right: 24px; bottom: 208px"
color="#673ab7"
@click="paperInstance.pageCount++"
>
<v-icon>mdi-note-plus-outline</v-icon>
<v-tooltip activator="parent" anchor="start"> 新增页面 </v-tooltip>
</v-btn>
<v-btn
style="right: 24px; bottom: 128px"
color="#3f51b5"
Expand Down Expand Up @@ -209,21 +201,26 @@ body {
-webkit-print-color-adjust: exact;
color-adjust: exact;
}
#app {
//
}
.v-navigation-drawer__content {
overflow: visible !important;
}
::-webkit-scrollbar {
background-color: transparent;
width: 8px;
height: 8px;
}
::-webkit-scrollbar-thumb {
background-color: rgba(128, 128, 128, 0.3);
border-radius: 4px;
}
:focus-visible {
outline: none;
}
Expand Down
12 changes: 12 additions & 0 deletions src/components/core/Paper.vue
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,17 @@ const insertPage = (index: number) => {
</div>
</div>
</template>
<v-btn
block
size="x-large"
class="mt-4 text-white print-none"
variant="tonal"
color="#4f545c"
prepend-icon="mdi-plus"
@click="paper.pageCount++"
>
新增页面
</v-btn>
</template>

<style lang="scss" scoped>
Expand Down Expand Up @@ -316,6 +327,7 @@ const insertPage = (index: number) => {
&.addon {
transition: box-shadow 0.3s;
}
&.danger-shadow {
box-shadow: 0 0 0 4px #f44336;
}
Expand Down

1 comment on commit 49eadd2

@vercel
Copy link

@vercel vercel bot commented on 49eadd2 Jan 23, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.