refactor(Preview): 对自定义颜色键进行排序以提高一致性
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user