增强SegmentControl系列组件对于Map的支持。

This commit is contained in:
徐涛
2025-01-25 08:56:57 +08:00
parent 1b41fb4d22
commit 4b4428fd3b
3 changed files with 34 additions and 24 deletions

View File

@@ -4,10 +4,12 @@ import { MaterialDesign3SchemeStorage } from './material-3-scheme';
import { QSchemeStorage } from './q-scheme';
import { SwatchSchemeStorage } from './swatch_scheme';
export type Option = {
label: string;
value: string | number | null;
};
export type Option =
| {
label: string;
value: string | number | null;
}
| Record<'label' | 'value', string | number | null>;
export type HarmonyColor = {
color: string;