Skip to content

Commit

Permalink
feat(search): add confirm type
Browse files Browse the repository at this point in the history
  • Loading branch information
novlan1 committed Nov 27, 2024
1 parent ed37554 commit cd58f05
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/navbar/__test__/__snapshots__/demo.test.jsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -752,6 +752,7 @@ exports[`Navbar > Navbar mobileVue demo works fine 1`] = `
</svg>
<input
class="t-input__keyword"
confirm-type="search"
placeholder="搜索预设文案"
type="search"
/>
Expand Down Expand Up @@ -1310,6 +1311,7 @@ exports[`Navbar > Navbar searchVue demo works fine 1`] = `
</svg>
<input
class="t-input__keyword"
confirm-type="search"
placeholder="搜索预设文案"
type="search"
/>
Expand Down
8 changes: 8 additions & 0 deletions src/search/__test__/__snapshots__/demo.test.jsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ exports[`Search > Search actionVue demo works fine 1`] = `
<input
autofocus=""
class="t-input__keyword t-search--center"
confirm-type="search"
placeholder="搜索预设文案"
type="search"
/>
Expand Down Expand Up @@ -61,6 +62,7 @@ exports[`Search > Search baseVue demo works fine 1`] = `
</svg>
<input
class="t-input__keyword"
confirm-type="search"
placeholder="请输入关键字"
type="search"
/>
Expand Down Expand Up @@ -130,6 +132,7 @@ exports[`Search > Search mobileVue demo works fine 1`] = `
</svg>
<input
class="t-input__keyword"
confirm-type="search"
placeholder="请输入关键字"
type="search"
/>
Expand Down Expand Up @@ -183,6 +186,7 @@ exports[`Search > Search mobileVue demo works fine 1`] = `
<input
autofocus=""
class="t-input__keyword t-search--center"
confirm-type="search"
placeholder="搜索预设文案"
type="search"
/>
Expand Down Expand Up @@ -239,6 +243,7 @@ exports[`Search > Search mobileVue demo works fine 1`] = `
</svg>
<input
class="t-input__keyword"
confirm-type="search"
placeholder="请输入关键字"
type="search"
/>
Expand Down Expand Up @@ -295,6 +300,7 @@ exports[`Search > Search mobileVue demo works fine 1`] = `
</svg>
<input
class="t-input__keyword"
confirm-type="search"
placeholder="搜索预设文案"
type="search"
/>
Expand Down Expand Up @@ -334,6 +340,7 @@ exports[`Search > Search otherVue demo works fine 1`] = `
</svg>
<input
class="t-input__keyword"
confirm-type="search"
placeholder="搜索预设文案"
type="search"
/>
Expand Down Expand Up @@ -369,6 +376,7 @@ exports[`Search > Search shapeVue demo works fine 1`] = `
</svg>
<input
class="t-input__keyword"
confirm-type="search"
placeholder="请输入关键字"
type="search"
/>
Expand Down
1 change: 1 addition & 0 deletions src/search/search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ export default defineComponent({
onFocus={handleFocus}
onBlur={handleBlur}
onInput={handleInput}
confirm-type="search"
onCompositionend={handleCompositionend}
/>
{readerClear()}
Expand Down

0 comments on commit cd58f05

Please sign in to comment.