From 922415ee9332154eab70754f4023fb094eec87ba Mon Sep 17 00:00:00 2001 From: pipipi-pikachu <1171051090@qq.com> Date: Thu, 7 Jan 2021 23:42:40 +0800 Subject: [PATCH] update --- src/components/CheckboxButton.vue | 1 - .../Editor/Toolbar/ElementAnimationPanel.vue | 32 ++++++------------- 2 files changed, 9 insertions(+), 24 deletions(-) diff --git a/src/components/CheckboxButton.vue b/src/components/CheckboxButton.vue index def08aa..97890ef 100644 --- a/src/components/CheckboxButton.vue +++ b/src/components/CheckboxButton.vue @@ -24,7 +24,6 @@ export default { font-size: 12px; padding: 0 15px; height: 32px; - transition: all 0.3s; text-align: center; cursor: pointer; diff --git a/src/views/Editor/Toolbar/ElementAnimationPanel.vue b/src/views/Editor/Toolbar/ElementAnimationPanel.vue index 4deb907..6d309e1 100644 --- a/src/views/Editor/Toolbar/ElementAnimationPanel.vue +++ b/src/views/Editor/Toolbar/ElementAnimationPanel.vue @@ -39,11 +39,10 @@ @@ -63,7 +62,7 @@ import Draggable from 'vuedraggable' import { Button, Divider, Popover } from 'ant-design-vue' import { PlayCircleOutlined, - DeleteOutlined, + CloseOutlined, } from '@ant-design/icons-vue' const animationTypes: { [key: string]: string } = {} @@ -80,7 +79,7 @@ export default defineComponent({ Button, Divider, PlayCircleOutlined, - DeleteOutlined, + CloseOutlined, Popover, }, setup() { @@ -163,32 +162,19 @@ export default defineComponent({ border-radius: $borderRadius; margin-bottom: 5px; - &:hover { - .animation-type { - display: none; - } - .handler { - display: block; - } - } - .index { flex: 1; } - .el-type { - flex: 2; - } - .animation-type { - flex: 3; - text-align: right; + .text { + flex: 6; } .handler { - display: none; - flex: 3; + flex: 2; + font-size: 15px; text-align: right; } .handler-btn { - margin-left: 10px; + margin-left: 8px; cursor: pointer; } }