add toCssSize

This commit is contained in:
Timi
2025-11-25 11:14:20 +08:00
parent 007b2bf39a
commit 0ac836eaa5

View File

@@ -327,4 +327,11 @@ export default class Toolkit {
func(arg);
}
}
public static toCssSize(value: number | string): string {
if (typeof value === "number") {
return `${value}px`;
}
return value;
};
}