Skip to content

Commit

Permalink
fixed iview#2149
Browse files Browse the repository at this point in the history
  • Loading branch information
icarusion committed Oct 20, 2017
1 parent cbe5ccf commit 485a903
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/routers/form.vue
Expand Up @@ -57,8 +57,9 @@
</Checkbox-group>
</Form-item>
<Form-item label-for="input" label="介绍" prop="desc">
<Input element-id="input" v-model="formValidate.desc" type="text" :autosize="{minRows: 2,maxRows: 5}" placeholder="请输入..."></Input>
<Input element-id="input" icon="ios-search" size="small" v-model="formValidate.desc" type="text" :autosize="{minRows: 2,maxRows: 5}" placeholder="请输入..."></Input>
</Form-item>
<Input element-id="input" icon="ios-search" size="small" v-model="formValidate.desc" type="text" :autosize="{minRows: 2,maxRows: 5}" placeholder="请输入..."></Input>
<Form-item>
<Button type="primary" @click="handleSubmit('formValidate')">提交</Button>
<Button type="ghost" @click="handleReset('formValidate')" style="margin-left: 8px">重置</Button>
Expand Down
5 changes: 5 additions & 0 deletions src/styles/components/input.less
Expand Up @@ -83,4 +83,9 @@
padding-right: 32px;
}
}
}

// #2149
.@{form-item-prefix-cls} .@{input-prefix-cls}-wrapper-small .@{input-prefix-cls}-icon{
line-height: 32px;
}

0 comments on commit 485a903

Please sign in to comment.