From 32925721603edb8013a15dfc9fdfcbc5d385ec81 Mon Sep 17 00:00:00 2001 From: pipipi-pikachu Date: Sat, 3 Sep 2022 14:11:17 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BD=8D=E7=BD=AE=E9=9D=A2=E6=9D=BF?= =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/styles/antd.scss | 5 ++ .../Editor/Toolbar/ElementPositionPanel.vue | 58 ++++++++----------- 2 files changed, 29 insertions(+), 34 deletions(-) diff --git a/src/assets/styles/antd.scss b/src/assets/styles/antd.scss index b2e05355..10d00b42 100644 --- a/src/assets/styles/antd.scss +++ b/src/assets/styles/antd.scss @@ -60,4 +60,9 @@ // tooltip .ant-tooltip-inner { font-size: 12px; +} + +// input +.ant-input-number-input { + line-height: 30px; } \ No newline at end of file diff --git a/src/views/Editor/Toolbar/ElementPositionPanel.vue b/src/views/Editor/Toolbar/ElementPositionPanel.vue index 73f99487..7a504952 100644 --- a/src/views/Editor/Toolbar/ElementPositionPanel.vue +++ b/src/views/Editor/Toolbar/ElementPositionPanel.vue @@ -2,12 +2,12 @@
层级:
- - + + - - + + @@ -39,8 +39,8 @@
-
位置:
-
-
-
X
-
-
Y
-
@@ -278,4 +257,15 @@ const updateRotate45 = (command: '+' | '-') => { .icon-btn { cursor: pointer; } +.text-btn { + height: 30px; + line-height: 30px; + text-align: center; + cursor: pointer; + + &:hover { + background-color: #efefef; + border-radius: $borderRadius; + } +} \ No newline at end of file