mirror of https://github.com/ElemeFE/element
support append prepend slot (#1709)
parent
105db7c673
commit
36261b6534
|
@ -17,6 +17,12 @@
|
||||||
:class="{
|
:class="{
|
||||||
'is-active': inputActive
|
'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>
|
</el-input>
|
||||||
<span
|
<span
|
||||||
v-if="controls"
|
v-if="controls"
|
||||||
|
|
Loading…
Reference in New Issue