浏览代码

FormItem: v-bind:style -> :style (#11996)

38elements 7 年之前
父节点
当前提交
55c97e588c
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      packages/form/src/form-item.vue

+ 2 - 2
packages/form/src/form-item.vue

@@ -8,10 +8,10 @@
     },
     sizeClass ? 'el-form-item--' + sizeClass : ''
   ]">
-    <label :for="labelFor" class="el-form-item__label" v-bind:style="labelStyle" v-if="label || $slots.label">
+    <label :for="labelFor" class="el-form-item__label" :style="labelStyle" v-if="label || $slots.label">
       <slot name="label">{{label + form.labelSuffix}}</slot>
     </label>
-    <div class="el-form-item__content" v-bind:style="contentStyle">
+    <div class="el-form-item__content" :style="contentStyle">
       <slot></slot>
       <transition name="el-zoom-in-top">
         <div