chore: hide export range selector

This commit is contained in:
2026-05-19 17:57:09 +08:00
parent 75294ca8c7
commit 703a095c08
7 changed files with 32 additions and 41 deletions
+3 -2
View File
@@ -61,6 +61,7 @@ export function ensurePluginToolbar(
const exportRangeSelect = document.createElement("select");
exportRangeSelect.dataset.pluginExportRange = "select";
exportRangeSelect.hidden = true;
appendOption(exportRangeSelect, "current", "当前页");
appendOption(exportRangeSelect, "first-5", "前5页");
appendOption(exportRangeSelect, "first-10", "前10页");
@@ -304,8 +305,8 @@ export function setToolbarExportStatus(
}
function syncCustomPagesInputVisibility(toolbar: PluginToolbarDom): void {
toolbar.exportCustomPagesInput.hidden =
toolbar.exportRangeSelect.value !== "custom";
toolbar.exportRangeSelect.hidden = true;
toolbar.exportCustomPagesInput.hidden = true;
}
function ensureToolbarMounted(root: HTMLElement, document: Document): void {