support append prepend slot (#1709)

pull/1660/merge
baiyaaaaa 2016-12-13 14:46:47 +08:00 committed by cinwell.li
parent 105db7c673
commit 36261b6534
1 changed files with 6 additions and 0 deletions

View File

@ -17,6 +17,12 @@
:class="{
'is-active': inputActive
}">
<template slot="prepend" v-if="$slots.prepend">
<slot name="prepend"></slot>
</template>
<template slot="append" v-if="$slots.append">
<slot name="append"></slot>
</template>
</el-input>
<span
v-if="controls"