vue demand form has units (minutes and seconds, etc. when kg)

Requirements are as follows:

problem analysis:

Because the block elements corresponds with elementui assembly el-input, back unit <span> min </ span> will be pushed down, can not at the same level.

Solution:

Without its components, write their own native, with the class name components, replace el-input__inner as el-input__myinner

  < EL-Item-form   label = "consuming process" >
        < div  class= "el-form-item__content" ></ div >
        < input  type= "text"  class= 'el-input__myinner'  v-model=" form. take_timeautocomplete= 'off' >
      < span ></ span >
  </ el-form-item >

在F12模式下,可以查看 el-input__inner   的样式,将样式复制下来,修改一下就可。

.el-input__myinner{
             -webkit-appearancenone;
             background-color#FFF;
             background-imagenone;
             border-radius4px;
             border1px  solid  #DCDFE6;
             -webkit-box-sizingborder-box;
             box-sizingborder-box;
             color#606266;
             displayinline-block;
             font-sizeinherit;
             height40px;
             line-height40px;
             outline0;
             padding0  15px;
             -webkit-transitionborder-color  .2s  cubic-bezier( .645, .045, .355, 1);
             transitionborder-color  .2s  cubic-bezier( .645, .045, .355, 1);
             margin-right: 10px;
          }

Guess you like

Origin www.cnblogs.com/duanhuarong/p/11934520.html
KG