feat(Search): add clear-icon prop (#8439)

This commit is contained in:
neverland
2021-04-01 09:53:54 +08:00
committed by GitHub
parent 2a065f85ef
commit 10d2517581
5 changed files with 6 additions and 2 deletions
+2
View File
@@ -28,6 +28,7 @@ export default defineComponent({
props: {
label: String,
clearIcon: String,
rightIcon: String,
modelValue: String,
actionText: String,
@@ -121,6 +122,7 @@ export default defineComponent({
ref={filedRef}
type="search"
border={false}
clearIcon={props.clearIcon}
onKeypress={onKeypress}
{...fieldAttrs}
{...{ 'onUpdate:modelValue': onInput }}