fix(space): fix redundant space render when using v-if #4663
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.
修复了在t-space嵌套使用时,如果内层的t-space用v-if判断,条件为false,仍然会生成t-space-item元素,导致样式不正确的问题。
closed #4649
🤔 这个 PR 的性质是?
🔗 相关 Issue
#4649
💡 需求背景和解决方案
渲染t-space节点中,未过滤掉v-if为false的节点,导致布局中的样式有问题。
📝 更新日志
fix(Space): 修复使用
v-if
的情况下存在冗余空格的问题本条 PR 不需要纳入 Changelog
☑️ 请求合并前的自查清单