update Input
update Input
This commit is contained in:
parent
c3a9f3895b
commit
20766f2870
3 changed files with 12 additions and 1 deletions
|
@ -3,6 +3,7 @@
|
|||
<template v-if="type !== 'textarea'">
|
||||
<div :class="[prefixCls + '-group-prepend']" v-if="prepend" v-show="slotReady" v-el:prepend><slot name="prepend"></slot></div>
|
||||
<i class="ivu-icon" :class="['ivu-icon-' + icon, prefixCls + '-icon']" v-if="icon" @click="handleIconClick"></i>
|
||||
<i class="ivu-icon ivu-icon-load-c ivu-load-loop" :class="[prefixCls + '-icon', prefixCls + '-icon-validate']" v-else transition="fade"></i>
|
||||
<input
|
||||
:type="type"
|
||||
:class="inputClasses"
|
||||
|
|
|
@ -19,6 +19,9 @@
|
|||
right: 0;
|
||||
z-index: 1;
|
||||
}
|
||||
&-icon-validate{
|
||||
display: none;
|
||||
}
|
||||
|
||||
&-icon + &{
|
||||
padding-right: 32px;
|
||||
|
@ -55,4 +58,11 @@
|
|||
.@{input-prefix-cls}-group{
|
||||
.input-group-error;
|
||||
}
|
||||
}
|
||||
.@{form-item-prefix-cls}-validating{
|
||||
.@{input-prefix-cls}{
|
||||
&-icon-validate{
|
||||
display: inline-block;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -8,7 +8,7 @@
|
|||
<i-input type="password" :value.sync="formCustom.passwdCheck"></i-input>
|
||||
</Form-item>
|
||||
<Form-item label="年龄" prop="age">
|
||||
<i-input type="text" :value.sync="formCustom.age"></i-input>
|
||||
<i-input type="text" :value.sync="formCustom.age" number></i-input>
|
||||
</Form-item>
|
||||
<Form-item>
|
||||
<i-button type="primary" @click="handleSubmit('formCustom')">提交</i-button>
|
||||
|
|
Loading…
Add table
Reference in a new issue