-
Notifications
You must be signed in to change notification settings - Fork 582
fix(transfer): use setter function for v-model:checked to emit update event #6216
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Conversation
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
… event Co-authored-by: liweijie0812 <[email protected]>
Co-authored-by: liweijie0812 <[email protected]>
Copilot
AI
changed the title
[WIP] Fix checked attribute issue with v-model in t-transfer
fix(transfer): use setter function for v-model:checked to emit update event
Nov 29, 2025
commit: |
commit: |
Collaborator
|
@copilot 使用 useVModel 修复 |
Co-authored-by: liweijie0812 <[email protected]>
Contributor
Author
Copilot
AI
changed the title
fix(transfer): use setter function for v-model:checked to emit update event
fix(transfer): use useVModel for v-model:checked to emit update event
Nov 29, 2025
Collaborator
|
@copilot 撤销useVModel修改 |
Co-authored-by: liweijie0812 <[email protected]>
Contributor
Author
Copilot
AI
changed the title
fix(transfer): use useVModel for v-model:checked to emit update event
fix(transfer): use setter function for v-model:checked to emit update event
Nov 29, 2025
Collaborator
TDesign Component Site Preview Open
|
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.


🤔 这个 PR 的性质是?
🔗 相关 Issue
#6198
💡 需求背景和解决方案
使用
v-model:checked时,勾选复选框报错:[Vue warn] Set operation on key "checked" failed: target is readonly.根因:
useDefaultValue返回[Ref, Setter]元组,但只解构了 Ref。当使用 v-model 时,返回的是父组件传入的只读 prop ref,直接赋值innerChecked.value = checked触发 Vue 警告。修复:
setInnerCheckedsetter 函数setInnerChecked(checked)替代直接赋值,正确触发update:checked事件📝 更新日志
tdesign-vue-next
v-model:checked无法正常工作的问题@tdesign-vue-next/chat
@tdesign-vue-next/auto-import-resolver
☑️ 请求合并前的自查清单
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.