Feat/input select and keyboard events new#1915
Merged
haoziqaq merged 46 commits intoJul 17, 2025
Merged
Conversation
278f5c9 to
8b8314c
Compare
Member
|
英文文档也要补充例子,commit 记录这个可以拉一下最新的 dev,根据这个创建一个新分支,把你的修改 |
haoziqaq
reviewed
Jul 4, 2025
Comment on lines
+84
to
+88
| <var-input | ||
| placeholder="按下回车键试试" | ||
| v-model="value15" | ||
| @enter="handleEnter" | ||
| /> |
c4f5d62 to
47bf2e5
Compare
haoziqaq
reviewed
Jul 6, 2025
Comment on lines
+29
to
+34
| const value15 = ref('') | ||
| const value16 = ref('') | ||
| const inputRef = ref() | ||
|
|
||
| const handleEnter = (value) => { | ||
| Snackbar.info(`回车键被按下,当前值:${value}`) | ||
| } | ||
|
|
||
| const selectAll = () => { | ||
| inputRef.value?.select() | ||
| } |
| export default { | ||
| standard: 'Standard Variant', | ||
| outlined: 'Outlined Variant', | ||
| standard: 'Standard Appearance', |
6c3cf08 to
9b5067a
Compare
- Add select() method to select all text in input Closes varletjs#1912 docs(input): 移除输入组件文档中的键盘事件相关内容 refactor(input): 移除不必要的输入组件测试用例 refactor(input): 移除键盘事件处理器 refactor(input/example): 移除未使用的Snackbar导入 feat(input/docs): 添加en-US新的输入示例和选择全部功能 docs(input): 移除输入组件文档中的回车键事件示例 feat(input): add select method and clean up redundant code - Add select() method to Input component for programmatic text selection - Clean up redundant keyboard event handlers in examples and docs - Fix variable naming consistency in documentation - Remove unused handleEnter functions and value15 variables - Update type definitions to include select method docs(input/locale): 更新输入组件英文文档的术语描述 docs(input): 修正输入组件示例的英文翻译
13a4e57 to
81ffdcd
Compare
添加outlinedInputRef引用和selectAllOutlined方法,使轮廓样式的输入框也能支持全选功能
Member
|
可能需要合并一下最新的分支,我看你的 files changed 似乎有问题。 |
haoziqaq
approved these changes
Jul 17, 2025
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 #1912 .
Related Links
Links related to this pr.