Commit 485a9039d54812807130a5eb503af8138cf8374d

Authored by 梁灏
1 parent cbe5ccfc

fixed #2149

examples/routers/form.vue
@@ -57,8 +57,9 @@ @@ -57,8 +57,9 @@
57 </Checkbox-group> 57 </Checkbox-group>
58 </Form-item> 58 </Form-item>
59 <Form-item label-for="input" label="介绍" prop="desc"> 59 <Form-item label-for="input" label="介绍" prop="desc">
60 - <Input element-id="input" v-model="formValidate.desc" type="text" :autosize="{minRows: 2,maxRows: 5}" placeholder="请输入..."></Input> 60 + <Input element-id="input" icon="ios-search" size="small" v-model="formValidate.desc" type="text" :autosize="{minRows: 2,maxRows: 5}" placeholder="请输入..."></Input>
61 </Form-item> 61 </Form-item>
  62 + <Input element-id="input" icon="ios-search" size="small" v-model="formValidate.desc" type="text" :autosize="{minRows: 2,maxRows: 5}" placeholder="请输入..."></Input>
62 <Form-item> 63 <Form-item>
63 <Button type="primary" @click="handleSubmit('formValidate')">提交</Button> 64 <Button type="primary" @click="handleSubmit('formValidate')">提交</Button>
64 <Button type="ghost" @click="handleReset('formValidate')" style="margin-left: 8px">重置</Button> 65 <Button type="ghost" @click="handleReset('formValidate')" style="margin-left: 8px">重置</Button>
src/styles/components/input.less
@@ -83,4 +83,9 @@ @@ -83,4 +83,9 @@
83 padding-right: 32px; 83 padding-right: 32px;
84 } 84 }
85 } 85 }
  86 +}
  87 +
  88 +// #2149
  89 +.@{form-item-prefix-cls} .@{input-prefix-cls}-wrapper-small .@{input-prefix-cls}-icon{
  90 + line-height: 32px;
86 } 91 }
87 \ No newline at end of file 92 \ No newline at end of file