[sync] fix(sender): support formatResult for content slots (#1986) - #163
Merged
Conversation
Member
Author
Review:✅ 修复合理,建议合并改动准确命中了 issue 描述的问题: 关于测试里 文档表格同步说明了 |
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.
🤔 This is a ...
🔗 Related Issues
Closes #146
Upstream PR: ant-design/x#1986
Upstream merge commit:
be739c5653ae14a3349f467222989fae6178edbd💡 Background and Solution
Sender's
contentslots returned their live DOM text before reaching the sharedformatResultpipeline. This made editable content slots inconsistent with input, select, tag, and custom slots.This change reads the current DOM text for
contentslots and then appliesformatResult, while preserving the raw-text fallback when no formatter is configured. It also adds coverage for edited content, unformatted content, and mixed slot types, plus a Vue demo and API documentation updates.Validation:
vp check(0 errors; 8 existing warnings outside changed files)vp test --run(45 files, 450 tests passed)vp run docs:build📝 Change Log
contentslots now applyformatResultto the latest edited text.content词槽现在会对用户编辑后的最新文本应用formatResult。