feat(界面设计): 统一下拉框状态与配色
build.yaml / build (push) Successful in 45s

This commit is contained in:
xiaoqidun committed 2026-10-30 16:06:22 +08:00
1 parent ad23f0f8b0
commit f05275c6b8
2 files changed
+31 -27

No files matched your search

+2 -1
View File
@@ -98,12 +98,13 @@ export class FontPicker {
return terms.every(term => name.includes(term));
});
this.list.replaceChildren();
for (const { font, index } of this.matches) {
for (const { font, index, group } of this.matches) {
const option = document.createElement("div");
option.className = "font-option";
option.id = `${this.list.id}-${index}`;
option.dataset.index = String(index);
option.setAttribute("data-disabled", String(Boolean(font.disabled)));
option.setAttribute("data-current", String(!font.disabled && group.includes(Number(this.value))));
const name = document.createElement("span");
name.textContent = font.menuFamily || font.fullName || font.name;
option.append(name);