用div把el-form包起来,然后设置上下左右的padding就能实现居中,
还能解决el-input太长的问题。
至于padding顺序,见此文章:
https://www.cnblogs.com/zhaoleigege/p/5216328.html