feat(TLoading): 对齐官方跨端契约(duration/axis 默认值、全屏蒙层、尺寸与 Demo) - #1031
Open
RSS1102 wants to merge 2 commits into
Open
Conversation
Contributor
Web DemoAPK 下载 |
Open
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.

🤔 这个 PR 的性质是?
🔗 相关 Issue
(无关联 Issue)
💡 需求背景和解决方案
对标 TDesign 小程序 / Mobile Vue 官方 Loading,进行跨端契约对齐:
2000ms → 800ms,对齐官方duration默认值,转圈动画速度加快。Axis.vertical → Axis.horizontal(图标在左、文字在右),对齐官方layout默认;如需保留原竖向布局,请显式传入axis: Axis.vertical。TLoadingController.show新增可选参数overlay(复用 toast 的TOverlayConfig),支持showOverlay渲染全屏半透明蒙层、preventTap拦截背景点击;不传时行为与原先一致,向后兼容。axis/iconColor/textColor/duration归入TLoadingThemeData)及示例代码。📝 更新日志
breaking(TLoading): duration 默认值由 2000ms 调整为 800ms,转圈动画速度加快,对齐官方默认值breaking(TLoading): 默认布局方向由 vertical(图标在上、文字在下)调整为 horizontal(图标在左、文字在右),对齐官方默认;如需保留原竖向布局请显式传入 axis: Axis.verticalfeat(TLoading): TLoadingController.show 新增 overlay 参数,支持全屏半透明蒙层与拦截背景点击feat(TLoading): circle 图标三档尺寸统一为 20/22/26,与官方尺寸 demo 对齐本条 PR 不需要纳入 Changelog
☑️ 请求合并前的自查清单
type(<scope>?): 修改描述。示例:
fix(TBottomTabBar): 修复 iconText 模式底部溢出