杨磊
13 小时以前 060c875b23539dc338e780ddfc187394a40743a9
src/components/form/form.vue
@@ -4,7 +4,7 @@
      " :model="from" class="row demo-form-inline col-xs-12">
      <el-row :gutter="10">
        <el-form-item style="width: 33%" v-for="(item, i) in from.from" :key="i" :label="item.label">
          <el-input v-if="item.type === 'input'" v-model="item.value" :placeholder="item.label"></el-input>
          <el-input v-if="item.type === 'input'" v-model="item.value" :placeholder="item.label" :type="item.name == 'year' ? 'number' : 'text'"></el-input>
        </el-form-item>
        <!-- 其他表单项省略 -->
        <!-- <el-form-item style="display:block; "> -->