migrate color / icon select to typescript

This commit is contained in:
MaysWind
2025-01-05 13:21:05 +08:00
parent 061ea6aab4
commit da06fe4a7b
6 changed files with 97 additions and 109 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ export function getCssValue(element: HTMLElement | null, name: string): string {
return computedStyle.getPropertyValue(name);
}
export function scrollToSelectedItem(parentEl: HTMLElement | null, containerSelector: string, selectedItemSelector: string): void {
export function scrollToSelectedItem(parentEl: HTMLElement | null, containerSelector: string | null, selectedItemSelector: string): void {
if (!parentEl) {
return;
}