refactor: 文本框代码优化

This commit is contained in:
pipipi-pikachu 2022-08-25 20:51:58 +08:00
parent 71ba2c89a4
commit 2fab9dd93a
2 changed files with 3 additions and 3 deletions

View File

@ -4,8 +4,8 @@
:style="{
top: elementInfo.top + 'px',
left: elementInfo.left + 'px',
width: elementInfo.vertical ? 'auto' : elementInfo.width + 'px',
height: elementInfo.vertical ? elementInfo.height + 'px' : 'auto',
width: elementInfo.width + 'px',
height: elementInfo.height + 'px',
}"
>
<div

View File

@ -6,7 +6,7 @@
top: elementInfo.top + 'px',
left: elementInfo.left + 'px',
width: elementInfo.width + 'px',
height: elementInfo.vertical ? elementInfo.height + 'px' : 'auto',
height: elementInfo.height + 'px',
}"
>
<div