Replies: 3 comments
-
个人偏向后者,完全由开发者决定透明度。 |
Beta Was this translation helpful? Give feedback.
0 replies
-
我觉得两个方案可以同时支持 |
Beta Was this translation helpful? Give feedback.
0 replies
-
方案2️⃣:提供 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
Spin 组件在我们的场景下,有需要定制修改背景透明度的需求。他也并不是简单的作为加载动画使用,有时会去承担禁用解封之类的状态,这种场景下是有必要去模糊或者更清晰背景的需求。
Detailed design
方案 1
增加属性,内置三种透明度
不同的属性代表了不同的背景透明度
效果图
方案 2
通过 blurOpacity 的 token 暴露出去,用户完全自定义透明度的大小。
Drawbacks
Alternatives
Unresolved questions
Beta Was this translation helpful? Give feedback.
All reactions