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`] = ` -
- -
- -
-
- - -
-
- 请选择日期 -
- - - -
- -
- 日 -
-
- 一 -
-
- 二 -
-
- 三 -
-
- 四 -
-
- 五 -
-
- 六 -
- -
-
- - -
- 2022 年 1 月 -
-
- -
-
-
-
-
-
- - - -
- - - 1 -
- ¥60 -
- -
- - -
- - - 2 -
- ¥60 -
- -
- - -
- - - 3 -
- ¥60 -
- -
- - -
- - - 4 -
- ¥60 -
- -
- - -
- - - 5 -
- ¥60 -
- -
- - -
- - - 6 -
- ¥60 -
- -
- - -
- - - 7 -
- ¥60 -
- -
- - -
- - - 8 -
- ¥60 -
- -
- - -
- - - 9 -
- ¥60 -
- -
- - -
- - - 10 -
- ¥60 -
- -
- - -
- - - 11 -
- ¥60 -
- -
- - -
- - - 12 -
- ¥60 -
- -
- - -
- - - 13 -
- ¥60 -
- -
- - -
- - - 14 -
- ¥60 -
- -
- - -
- - - 15 -
- ¥60 -
- -
- - -
- - - 16 -
- ¥60 -
- -
- - -
- - - 17 -
- ¥60 -
- -
- - -
- - - 18 -
- ¥60 -
- -
- - -
- - - 19 -
- ¥60 -
- -
- - -
- - - 20 -
- ¥60 -
- -
- - -
- - - 21 -
- ¥60 -
- -
- - -
- - - 22 -
- ¥60 -
- -
- - -
- - - 23 -
- ¥60 -
- -
- - -
- - - 24 -
- ¥60 -
- -
- - -
- - - 25 -
- ¥60 -
- -
- - -
- - - 26 -
- ¥60 -
- -
- - -
- - - 27 -
- ¥60 -
- -
- - -
- - - 28 -
- ¥60 -
- -
- - -
- - - 29 -
- ¥60 -
- -
- - -
- - - 30 -
- ¥60 -
- -
- - -
- - - 31 -
- ¥60 -
- -
- - -
- - -
- -
- -
- -
-`; diff --git a/src/cascader/__test__/__snapshots__/index.test.jsx.snap b/src/cascader/__test__/__snapshots__/index.test.jsx.snap deleted file mode 100644 index fc5970ee9..000000000 --- a/src/cascader/__test__/__snapshots__/index.test.jsx.snap +++ /dev/null @@ -1,167 +0,0 @@ -// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html - -exports[`cascader > events > : pick 1`] = ` - - -