From cd58f05873379a7f1f7b11811a40ed37c2c7b56c Mon Sep 17 00:00:00 2001
From: novlan1 <1576271227@qq.com>
Date: Wed, 27 Nov 2024 15:15:36 +0800
Subject: [PATCH] feat(search): add confirm type
---
src/navbar/__test__/__snapshots__/demo.test.jsx.snap | 2 ++
src/search/__test__/__snapshots__/demo.test.jsx.snap | 8 ++++++++
src/search/search.tsx | 1 +
3 files changed, 11 insertions(+)
diff --git a/src/navbar/__test__/__snapshots__/demo.test.jsx.snap b/src/navbar/__test__/__snapshots__/demo.test.jsx.snap
index 89297e2b2..8017694f4 100644
--- a/src/navbar/__test__/__snapshots__/demo.test.jsx.snap
+++ b/src/navbar/__test__/__snapshots__/demo.test.jsx.snap
@@ -752,6 +752,7 @@ exports[`Navbar > Navbar mobileVue demo works fine 1`] = `
@@ -1310,6 +1311,7 @@ exports[`Navbar > Navbar searchVue demo works fine 1`] = `
diff --git a/src/search/__test__/__snapshots__/demo.test.jsx.snap b/src/search/__test__/__snapshots__/demo.test.jsx.snap
index 4fb88b149..dd3271de0 100644
--- a/src/search/__test__/__snapshots__/demo.test.jsx.snap
+++ b/src/search/__test__/__snapshots__/demo.test.jsx.snap
@@ -26,6 +26,7 @@ exports[`Search > Search actionVue demo works fine 1`] = `
@@ -61,6 +62,7 @@ exports[`Search > Search baseVue demo works fine 1`] = `
@@ -130,6 +132,7 @@ exports[`Search > Search mobileVue demo works fine 1`] = `
@@ -183,6 +186,7 @@ exports[`Search > Search mobileVue demo works fine 1`] = `
@@ -239,6 +243,7 @@ exports[`Search > Search mobileVue demo works fine 1`] = `
@@ -295,6 +300,7 @@ exports[`Search > Search mobileVue demo works fine 1`] = `
@@ -334,6 +340,7 @@ exports[`Search > Search otherVue demo works fine 1`] = `
@@ -369,6 +376,7 @@ exports[`Search > Search shapeVue demo works fine 1`] = `
diff --git a/src/search/search.tsx b/src/search/search.tsx
index c74626a55..005f8a426 100644
--- a/src/search/search.tsx
+++ b/src/search/search.tsx
@@ -139,6 +139,7 @@ export default defineComponent({
onFocus={handleFocus}
onBlur={handleBlur}
onInput={handleInput}
+ confirm-type="search"
onCompositionend={handleCompositionend}
/>
{readerClear()}