Giter Site home page Giter Site logo

Comments (6)

kyleduo avatar kyleduo commented on May 29, 2024

一般这种场景是通过enabled属性控制的,Demo中包含了这个场景,触发checked事件后设置enabled为false。

不优雅是指这个方式不优雅吗,期望怎样的效果?

from switchbutton.

zuilintan avatar zuilintan commented on May 29, 2024

Record_2021-06-30-16-39-34 (1)
期望效果类似这般

from switchbutton.

zuilintan avatar zuilintan commented on May 29, 2024

一般这种场景是通过enabled属性控制的,Demo中包含了这个场景,触发checked事件后设置enabled为false。

不优雅是指这个方式不优雅吗,期望怎样的效果?

不是, 不优雅主要是指UI无法体现"功能下设进行中"这个状态,

from switchbutton.

zuilintan avatar zuilintan commented on May 29, 2024

GIF 截取的是 Color OS 的 Setting,
可以看到WIFI开与关, 都有一个loading状态

from switchbutton.

kyleduo avatar kyleduo commented on May 29, 2024

理解了,希望在开关之前增加一个准备阶段。
很遗憾,目前尚不支持这个特性。可以看下是否能通过继承或者修改源码来满足你的需求。

from switchbutton.

zuilintan avatar zuilintan commented on May 29, 2024

了解, 虽然暂时没有相关思路, 但我后续会尝试一下~

from switchbutton.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.