feat: 顺运宝支持指定日期同步 (#53)
This commit is contained in:
@@ -187,6 +187,15 @@ tr.empty small { color: #aaa; }
|
||||
width: 100%;
|
||||
max-width: 720px;
|
||||
}
|
||||
.modal-narrow { max-width: 520px; }
|
||||
.field-row {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: 16px;
|
||||
}
|
||||
@media (max-width: 560px) {
|
||||
.field-row { grid-template-columns: 1fr; }
|
||||
}
|
||||
.modal-head {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -255,6 +264,13 @@ input[type="text"] {
|
||||
border: 1px solid #ccd1d6;
|
||||
border-radius: 3px;
|
||||
}
|
||||
input[type="date"] {
|
||||
width: 100%;
|
||||
padding: 5px 8px;
|
||||
border: 1px solid #ccd1d6;
|
||||
border-radius: 3px;
|
||||
background: #fff;
|
||||
}
|
||||
input.wide { width: 100%; }
|
||||
|
||||
select {
|
||||
|
||||
@@ -89,13 +89,18 @@
|
||||
散到前端就没人维护得住了。 */
|
||||
|
||||
function openModal(modal) {
|
||||
modal._returnFocus = document.activeElement;
|
||||
modal.hidden = false;
|
||||
var focusable = modal.querySelector("input, button");
|
||||
var focusable = modal.querySelector("[autofocus]") ||
|
||||
modal.querySelector("input, button");
|
||||
if (focusable) focusable.focus();
|
||||
}
|
||||
|
||||
function closeModal(modal) {
|
||||
modal.hidden = true;
|
||||
if (modal._returnFocus && modal._returnFocus.focus) {
|
||||
modal._returnFocus.focus();
|
||||
}
|
||||
}
|
||||
|
||||
function setupModals() {
|
||||
|
||||
Reference in New Issue
Block a user