Comments (3)
有 loading 并不一定是不可点击,如果想要不可点击的话,可以考虑加载禁用的属性。
不知道这样的处理方式是否能够满足你的需求呢?
from mini-ali-ui.
有 loading 并不一定是不可点击,如果想要不可点击的话,可以考虑加载禁用的属性。
不知道这样的处理方式是否能够满足你的需求呢?
目前确实是这样处理的。但从antd 与 antd-mobile 的交互上,都将loading 默认禁用,小程序以前没写过,不知道这样的设计的出发点在什么场景呢?
from mini-ali-ui.
有 loading 并不一定是不可点击,如果想要不可点击的话,可以考虑加载禁用的属性。
不知道这样的处理方式是否能够满足你的需求呢?目前确实是这样处理的。但从antd 与 antd-mobile 的交互上,都将loading 默认禁用,小程序以前没写过,不知道这样的设计的出发点在什么场景呢?
理论上,loading 是加载的过程,不建议用户再有更多的操作,不过在 button 中已有 disabled
属性作为依托,在考虑可能会有场景在 loading 的过程做其他操作,因此这里并未对 loading 状态做禁用处理,而是把这个主动权交给开发者自行决定。
<button type="primary" loading disabled>Loading</button>
如上即可在 loading 状态下禁用 button。
from mini-ali-ui.
Related Issues (20)
- input-item 组件希望能增加设置清除按钮大小的功能 HOT 2
- Terms checkbox 默认选中不生效
- SwipeAction功能问题 HOT 2
- 有没有做上传组件的计划呢? HOT 1
- ctrlchecked的初始默认值问题 HOT 4
- 多行文本,ios下文本给顶出文本框 HOT 5
- search-bar onSubmit 事件触发后不失焦,且无法通过focus prop来让search-bar失焦 HOT 2
- 组件名称能统一规范吗,如增加前缀:ali-components-name HOT 2
- SwipeAction问题
- SearchBar 搜索框confirm-type="search"不生效 HOT 4
- English Documentation
- button组件缺失onGetAuthorize方法 HOT 1
- Tabs组件在胶囊和带描述模式下,activeTab自动滚动不生效的bug
- Tabs组件elevator模式,向上滚时会一下子就滚到顶
- uni-app 编译到 钉钉小程序后, popup 组件 的 onMaskTap 出现 Cannot set property 'stopPropagation' of undefined错误(暂时已自行修复onMaskTap函数)
- steps组件横向状态下不支持配置icon
- VerifyCode组件点击发送没有提供是否可点击的属性或者方法
- rate 评分功能组件
- calendar 日期不能跨月选择
- list-item 在钉钉小程序 最后一行设置last=true后还是会有底部边框显示,反而其他行设置last=true有效
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mini-ali-ui.