mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
perf: 添加时间及时间段选择类型
This commit is contained in:
parent
63b31b933e
commit
0655b8b0a1
@ -279,6 +279,18 @@ $(function () {
|
|||||||
$(this.elem).val(value).trigger('change');
|
$(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;
|
}), $dom;
|
||||||
};
|
};
|
||||||
/*! 在内容区显示视图 */
|
/*! 在内容区显示视图 */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user