Feat/inputmode support#1916
Closed
william-xue wants to merge 43 commits into
Closed
Conversation
…trol\n\n- Add inputmode prop to Input component\n- Update docs, examples, and types\n- Add tests for inputmode\n- Closes varletjs#1900
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
Someone is attempting to deploy a commit to the varletjs Team on Vercel. A member of the Team first needs to authorize it. |
@varlet/cli
@varlet/icons
@varlet/import-resolver
@varlet/preset-tailwindcss
@varlet/preset-unocss
@varlet/shared
@varlet/touch-emulator
@varlet/ui
@varlet/use
@varlet/vite-plugins
commit: |
rzzf
reviewed
Jul 2, 2025
haoziqaq
reviewed
Jul 2, 2025
| :rows="rows" | ||
| :enterkeyhint="enterkeyhint" | ||
| :inputmode="type === 'number' ? 'decimal' : undefined" | ||
| :inputmode="inputmode" |
Member
There was a problem hiding this comment.
应该是 inputmode != null ? inputmode : type === 'number' ? 'decimal' : undefined。
haoziqaq
reviewed
Jul 4, 2025
| props: { | ||
| modelValue: 'text', | ||
| type, | ||
| inputmode: type === 'number' ? 'decimal' : undefined, |
chouchouji
reviewed
Jul 18, 2025
| | `rules` | Validation rules, return `true` to indicate verification passes, other types of values will be converted into text as user prompts. [Zod validation](#/en-US/zodValidation) is supported since `3.5.0` | _((v: string) => any) \| ZodType \| Array<((v: string) => any) \| ZodType>_ | `-` | | ||
| | `enterkeyhint` | Customize the enter key style, See [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/enterkeyhint) | _string_ | `-` | | ||
| | `aria-label` ***3.8.4*** | See [MDN](https://developer.mozilla.org/zh-CN/docs/Web/Accessibility/ARIA/Attributes/aria-label) | _string_ | `-` | | ||
| | `inputmode` | Native inputmode attribute, controls mobile keyboard type | _string_ | `-` | |
| </template> | ||
| ``` | ||
|
|
||
| #### inputmode 可选值 |
Member
There was a problem hiding this comment.
remove it,add mdn link in inputmode prop
| type: Boolean, | ||
| default: true, | ||
| }, | ||
| inputmode: String as PropType<'none' | 'text' | 'decimal' | 'numeric' | 'tel' | 'search' | 'email' | 'url'>, |
Member
|
should resolve conflicts and clear commit history |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Checklist
List of tasks you have already done and plan to do.
Change information
Describe your modifications here.
Issues
The issues you want to close, formatted as close #1900.
Related Links
Links related to this pr.