Skip to content

Commit

Permalink
更新添加模板
Browse files Browse the repository at this point in the history
  • Loading branch information
more-strive committed Jun 20, 2024
1 parent abc207f commit 4a4f733
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
10 changes: 6 additions & 4 deletions src/components/HomePopover.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
<!-- <el-row class="pop-row">
<IconHome class="pop-icon"/>
<span class="pop-text">返回首页</span>
</el-row>
<el-row class="pop-row">
<IconEdit class="pop-icon"/>
<span class="pop-text">未命名</span>
</el-row> -->
<el-row class="pop-row" @click="createTemplate()">
<IconPlus class="pop-icon"/>
<span class="pop-text">添加模板</span>
</el-row>
<el-row class="pop-row">
<IconNewlybuild class="pop-icon"/>
<span class="pop-text">{{ t('message.createDesign') }}</span>
Expand All @@ -39,7 +39,9 @@
<script lang="ts" setup>
import { ref, watch } from 'vue'
import useI18n from '@/hooks/useI18n'
import useHandleTemplate from '@/hooks/useHandleTemplate'
import ReferencePopover from '@/components/ReferencePopover.vue'
const { createTemplate } = useHandleTemplate()
const { t } = useI18n()
const hasHelp = ref(false)
Expand Down
7 changes: 2 additions & 5 deletions src/views/Editor/CanvasLeft/Thumb/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,12 @@
v-contextmenu="contextMenusThumbnails"
>
<el-row class="thumb-handle items-center">
<el-col :span="12" class="flex justify-center text-[16px]">
<el-col :span="24" class="flex justify-center text-[16px]">
<div>
<el-button text ref="menuRef">文件</el-button>
<el-button text ref="menuRef" class="w-[100px]">文件</el-button>
<HomePopover :menu-ref="menuRef" :menu-popover-ref="menuPopoverRef" />
</div>
</el-col>
<el-col :span="12" class="flex justify-center text-[16px]">
<el-button @click="createTemplate()" text> <IconPlus class="icon" /></el-button>
</el-col>
</el-row>
<Draggable
class="thumb-content"
Expand Down

0 comments on commit 4a4f733

Please sign in to comment.