refactor(Preview): 对自定义颜色键进行排序以提高一致性

This commit is contained in:
徐涛 2025-07-20 11:17:27 +08:00
parent ec93cd5678
commit ab4af06fd1

View File

@ -107,7 +107,7 @@ interface PreviewBlockProps {
const PreviewBlock: FC<PreviewBlockProps> = ({ baseline, title }) => {
const customSets = useMemo(() => {
const colors = keys(baseline.customColors);
const colors = keys(baseline.customColors).sort();
const elements: ReactNode[] = [];
for (const key of colors) {