-
Notifications
You must be signed in to change notification settings - Fork 868
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
若要添加enabling与disabling状态, 有哪些实现方式? #131
Comments
一般这种场景是通过enabled属性控制的,Demo中包含了这个场景,触发checked事件后设置enabled为false。 不优雅是指这个方式不优雅吗,期望怎样的效果? |
不是, 不优雅主要是指UI无法体现"功能下设进行中"这个状态, |
GIF 截取的是 Color OS 的 Setting, |
理解了,希望在开关之前增加一个准备阶段。 |
了解, 虽然暂时没有相关思路, 但我后续会尝试一下~ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
比如某个功能的开关极为耗时, 虽然UI显示已开启, 但功能会慢很多才启动,
一般我会做防连点处理, 防止启动过程中用户又去关闭(避免状态混乱),
不过感觉这样并不优雅
The text was updated successfully, but these errors were encountered: