DateTime Picker - 日期

DateTime Picker

全局引入

EApp 中默认初始化了 .date-picker 的input(在EApp.initComponents里初始化的),如需手动初始化可使用以下方式

EApp.initDatePicker('#id');
  • 默认格式为 yyyy-mm-dd 如需其他格式请添加 data-format 属性
// 常用格式
yyyy-mm-dd
yyyy-mm-dd hh:ii
yyyy-mm-ddThh:ii
yyyy-mm-dd hh:ii:ss
yyyy-mm-ddThh:ii:ssZ
  • 框架中自动根据格式去计算 startViewminView,如有特殊需求可使用 data-start-Viewmin-view 设置
  • 默认位置为 bottom-right 如有特殊需求可使用 data-position 设置
  • 默认隐藏今天按钮,如需显示请设置 daat-today-btn="true"
  • 其他需求请参照官方文档