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
@@ -1,6 +1,6 @@
import type { IconInfo, IconInfoWithId } from '@/core/icon.ts';
export function getIconsInRows(allIconInfos: IconInfo[], itemPerRow: number): IconInfoWithId[][] {
export function getIconsInRows(allIconInfos: Record<string, IconInfo>, itemPerRow: number): IconInfoWithId[][] {
const ret: IconInfoWithId[][] = [];
let rowCount = 0;