Skip to content

Commit

Permalink
fix(元素隐藏): 恢复
Browse files Browse the repository at this point in the history
  • Loading branch information
nihaojob committed May 21, 2024
1 parent 62858a8 commit f65504e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
8 changes: 4 additions & 4 deletions src/components/hide.vue
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<!--
* @Author: wuchenguang1998
* @Date: 2024-05-13 22:34:03
* @LastEditors: wuchenguang1998
* @LastEditTime: 2024-05-13 23:40:48
* @LastEditors: 秦少卫
* @LastEditTime: 2024-05-21 16:42:31
* @Description: 隐藏或显示元素
-->

<template>
<Tooltip :content="$t('quick.hide')" v-if="mixinState.mSelectMode === 'one'">
<Button v-if="isHide" @click="doHide(false)" icon="md-eye-off" type="text"></Button>
<Button v-else @click="doHide(true)" icon="md-eye" type="text"></Button>
<Button long v-if="isHide" @click="doHide(false)" icon="md-eye-off" type="text"></Button>
<Button long v-else @click="doHide(true)" icon="md-eye" type="text"></Button>
</Tooltip>
</template>

Expand Down
8 changes: 5 additions & 3 deletions src/views/home/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @Author: 秦少卫
* @Date: 2024-05-17 15:30:21
* @LastEditors: 秦少卫
* @LastEditTime: 2024-05-21 15:53:33
* @LastEditTime: 2024-05-21 16:42:50
* @Description: file content
-->
<template>
Expand Down Expand Up @@ -107,10 +107,11 @@
<Divider plain orientation="left">
<h4>快捷操作</h4>
</Divider>
<div class="bg-item" v-if="mixinState.mSelectMode">
<div class="bg-item" v-show="mixinState.mSelectMode">
<lock></lock>
<dele></dele>
<clone></clone>
<hide></hide>
</div>
<!-- <Divider plain></Divider> -->

Expand Down Expand Up @@ -165,6 +166,7 @@ import previewCurrent from '@/components/previewCurrent';
import save from '@/components/save.vue';
import lang from '@/components/lang.vue';
import clone from '@/components/clone.vue';
import hide from '@/components/hide.vue';
import group from '@/components/group.vue';
import zoom from '@/components/zoom.vue';
import dragMode from '@/components/dragMode.vue';
Expand All @@ -187,7 +189,7 @@ import imgStroke from '@/components/imgStroke.vue';
// 右侧组件
import history from '@/components/history.vue';
import layer from '@/components/layer.vue';
import attribute from '@/components/attribute.vue';
// import attribute from '@/components/attribute.vue';
import attributePostion from '@/components/attributePostion.vue';
import attributeId from '@/components/attributeId.vue';
import attributeShadow from '@/components/attributeShadow.vue';
Expand Down

0 comments on commit f65504e

Please sign in to comment.