Skip to content

Commit

Permalink
更新菜单
Browse files Browse the repository at this point in the history
  • Loading branch information
more-strive committed Dec 3, 2023
1 parent dea4054 commit 5ec1cac
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 9 deletions.
6 changes: 4 additions & 2 deletions src/plugins/icon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,8 @@ import {
UnionSelection,
ExcludeSelection,
SubtractSelection,
SubtractSelectionOne
SubtractSelectionOne,
AllApplication
} from '@icon-park/vue-next'

export const icons = {
Expand Down Expand Up @@ -310,7 +311,8 @@ export const icons = {
IconUnionSelection: UnionSelection,
IconExcludeSelection: ExcludeSelection,
IconSubtractSelection: SubtractSelection,
IconSubtractSelectionOne: SubtractSelectionOne
IconSubtractSelectionOne: SubtractSelectionOne,
IconAllApplication: AllApplication
}

export default {
Expand Down
25 changes: 19 additions & 6 deletions src/views/Editor/CanvasLeft/index.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
<template>
<div>
<div class="left-top-tabs">
<div class="top-tab">
<IconAllApplication/>
</div>
</div>
<div class="left-center-tabs">
<div
class="top-tab"
class="center-tab"
:class="{ 'left-active': tab.key === poolType }"
v-for="tab in topTabs"
:key="tab.key"
Expand Down Expand Up @@ -118,16 +123,24 @@ const hideHelp = () => {
</script>

<style lang="scss" scoped>
.left-top {
display: flex;
height: 40px;
}
.left-top-tabs {
.left-center-tabs {
display: flex;
flex-direction: column;
width: 100%;
}
.top-tab {
width: 100%;
height: 40px;
text-align: center;
font-size: 12px;
cursor: pointer;
display: flex;
flex-direction: column;
justify-content: center;
border-bottom: 1px solid $borderColor;
}
.center-tab {
width: 100%;
height: 60px;
text-align: center;
Expand Down
2 changes: 1 addition & 1 deletion src/views/Editor/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ import CanvasDom from './CanvasDom/index.vue'
border-right: solid 1px $borderColor;
display: flex;
flex-direction: column;
justify-content: space-between;
justify-content: flex-start;
}
.layout-content-thumb {
width: 160px;
Expand Down

0 comments on commit 5ec1cac

Please sign in to comment.