4.6.201909021752 • Published 5 years ago
@dfeidao/fd-w000028 v4.6.201909021752
时间选择器
https://dfeidao.gitee.io/widgets/
Installation
yarn add --dev @dfeidao/fd-w000028
Attribute
属性 | 描述 | 示例 |
---|---|---|
value | 初始化时间 | 可以通过控件的value属性获取时间 |
24hr | 使用24小时制 | 24hr="true" |
disabled | 控件是否可以点击 | disabled="true" 为“true”时不可点击 |
step | 分钟每次的加减步数,步长不能超过60 | step=2 分钟每次加或减2 |
Event
事件 | 描述 |
---|---|
fdwe-change | 时间选择事件 |
Example
设置默认值
<fd-w000028 value="13:00" data-feidao-id="w000028"
style="width:140px;height:40px;letter-spacing:4px;;line-height:30px">
</fd-w000028>
自定义宽高和字体间距
<fd-w000028 value="13:00" 24hr data-feidao-id="w000028"
style="width:140px;height:50px;font-size:24px;letter-spacing:10px;line-height:45px">
</fd-w000028>
自定义每次加减步数
<fd-w000028 value="13:00" 24hr data-feidao-id="w000028" step=2
style="width:140px;height:50px;font-size:24px;letter-spacing:10px;line-height:45px">
</fd-w000028>
4.6.201909021753
5 years ago
4.6.201909021752
5 years ago