From b9c1d9d262927511d79aea4b4e197f998741ecd4 Mon Sep 17 00:00:00 2001 From: Mike <1576271227@qq.com> Date: Wed, 18 Dec 2024 21:52:54 +0800 Subject: [PATCH] fix(search): set the enterkeyhint value to search (#1655) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat(search): add confirm type * chore: update demo * feat(search): add enterkeyhint * feat(search): add blur * refactor(search): 优化属性 * chore(search): remove confirm-type="search" --- .../__snapshots__/index.test.jsx.snap | 597 ------------------ .../__snapshots__/index.test.jsx.snap | 167 ----- .../__test__/__snapshots__/demo.test.jsx.snap | 2 + .../__test__/__snapshots__/demo.test.jsx.snap | 10 +- src/search/demos/mobile.vue | 2 +- src/search/search.tsx | 7 + 6 files changed, 19 insertions(+), 766 deletions(-) delete mode 100644 src/calendar/__test__/__snapshots__/index.test.jsx.snap delete mode 100644 src/cascader/__test__/__snapshots__/index.test.jsx.snap diff --git a/src/calendar/__test__/__snapshots__/index.test.jsx.snap b/src/calendar/__test__/__snapshots__/index.test.jsx.snap deleted file mode 100644 index 4111e78f3..000000000 --- a/src/calendar/__test__/__snapshots__/index.test.jsx.snap +++ /dev/null @@ -1,597 +0,0 @@ -// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html - -exports[`calendar > props > : format 1`] = ` -
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/demos/mobile.vue b/src/search/demos/mobile.vue
index ab498c806..08ff29f69 100644
--- a/src/search/demos/mobile.vue
+++ b/src/search/demos/mobile.vue
@@ -1,6 +1,6 @@
用于用户输入搜索信息,并进行页面内容搜索。Search 搜索框123
+ Search 搜索框