[improvement] Search: add left-icon slot (#1974)

This commit is contained in:
neverland
2018-10-25 10:08:29 +08:00
committed by GitHub
parent aecfdc87b4
commit 1835da736a
3 changed files with 5 additions and 1 deletions
+3 -1
View File
@@ -8,7 +8,9 @@
:value="value"
:border="false"
left-icon="search"
/>
>
<slot name="left-icon" slot="left-icon" />
</field>
<div v-if="showAction" :class="b('action')">
<slot name="action">
<div @click="onBack">{{ $t('cancel') }}</div>