[Improvement] Field: support clearable (#1309)

This commit is contained in:
neverland
2018-06-20 20:09:04 +08:00
committed by GitHub
parent c368e36aea
commit 0a99da352e
19 changed files with 312 additions and 231 deletions
+2 -3
View File
@@ -4,11 +4,10 @@
<field
v-bind="$attrs"
v-on="listeners"
:value="value"
clearable
type="search"
icon="clear"
:value="value"
:border="false"
@click-icon="$emit('input', '')"
/>
<div v-if="showAction" :class="b('action')" >
<slot name="action">