优化datepicker组件

This commit is contained in:
刘祥超
2022-11-04 14:35:32 +08:00
parent a14fcd1e50
commit e8e74b639c
2 changed files with 9 additions and 1 deletions

View File

@@ -85,7 +85,6 @@ window.teaweb = {
return
}
if (typeof (element) == "string") {
element = document.getElementById(element);
}
@@ -112,6 +111,8 @@ window.teaweb = {
},
reposition: !bottomLeft
})
element.picker = picker
},
formatBytes: function (bytes) {
bytes = Math.ceil(bytes);