4.6.201909021752 • Published 5 years ago

@dfeidao/fd-w000028 v4.6.201909021752

Weekly downloads
3
License
MIT
Repository
-
Last release
5 years ago

时间选择器

https://dfeidao.gitee.io/widgets/

Installation

yarn add --dev @dfeidao/fd-w000028

Attribute

属性描述示例
value初始化时间可以通过控件的value属性获取时间
24hr使用24小时制24hr="true"
disabled控件是否可以点击disabled="true" 为“true”时不可点击
step分钟每次的加减步数,步长不能超过60step=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>