diff --git a/packages/search/en-US.md b/packages/search/en-US.md index 607159c80..1761d0ce9 100644 --- a/packages/search/en-US.md +++ b/packages/search/en-US.md @@ -77,3 +77,4 @@ Search support all native events of input tag,such as `focus`、`blur`、`keyp | name | Description | |------|------| | action | Custom right button, displayed when `showAction` is true | +| left-icon | Custom left icon | diff --git a/packages/search/index.vue b/packages/search/index.vue index 90fc08e17..bf8710f45 100644 --- a/packages/search/index.vue +++ b/packages/search/index.vue @@ -8,7 +8,9 @@ :value="value" :border="false" left-icon="search" - /> + > + +
{{ $t('cancel') }}
diff --git a/packages/search/zh-CN.md b/packages/search/zh-CN.md index 54c4153f6..a8fd9bd01 100644 --- a/packages/search/zh-CN.md +++ b/packages/search/zh-CN.md @@ -71,3 +71,4 @@ Search 默认支持 Input 标签所有的原生事件,如 `focus`、`blur`、` | 名称 | 说明 | |------|------| | action | 自定义搜索框右侧按钮,需要在`showAction`为 true 时才会显示 | +| left-icon | 自定义输入框头部图标 |