<style>
.input-field {
margin-bottom: 0px;
transition: margin-bottom 0.5s ease;
}
.input-field.focus {
margin-bottom: 150px;
}
</style>
接着在style动态绑定 爽!
:style="`transition: margin-bottom 0.5s ease;margin-bottom: ${van_goods_margin_bottom}px;`" >