perf: 添加时间及时间段选择类型

This commit is contained in:
宋杨 2023-05-23 16:50:04 +08:00
parent 63b31b933e
commit 0655b8b0a1

View File

@ -279,6 +279,18 @@ $(function () {
$(this.elem).val(value).trigger('change');
}
});
}), $dom.find('input[data-time-range]').map(function () {
this.setAttribute('autocomplete', 'off'), laydate.render({
type: this.dataset.timeRange || 'time', range: true, elem: this, done: function (value) {
$(this.elem).val(value).trigger('change');
}
});
}), $dom.find('input[data-time-input]').map(function () {
this.setAttribute('autocomplete', 'off'), laydate.render({
type: this.dataset.timeInput || 'time', range: false, elem: this, done: function (value) {
$(this.elem).val(value).trigger('change');
}
});
}), $dom;
};
/*! 在内容区显示视图 */