修正部分编译错误。
This commit is contained in:
parent
ed2e323e3e
commit
55f0eab76d
|
@ -5,14 +5,14 @@ import styles from './Tab.module.css';
|
||||||
|
|
||||||
type TabOption = {
|
type TabOption = {
|
||||||
title: string;
|
title: string;
|
||||||
id: unknown;
|
id: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
type TabProps = {
|
type TabProps = {
|
||||||
tabs: TabOption[];
|
tabs: TabOption[];
|
||||||
activeTab?: unknown;
|
activeTab?: unknown;
|
||||||
onActive?: (id: TabOption['id']) => void;
|
onActive?: (id: TabOption['id']) => void;
|
||||||
disabled?: { [d: keyof TabOption['id']]: boolean };
|
disabled?: Record<TabOption['id'], boolean>;
|
||||||
};
|
};
|
||||||
|
|
||||||
export function Tab({ tabs = [], activeTab, onActive, disabled }: TabProps) {
|
export function Tab({ tabs = [], activeTab, onActive, disabled }: TabProps) {
|
||||||
|
|
|
@ -1,6 +1,9 @@
|
||||||
import { find, isNil } from 'lodash-es';
|
import { find, isNil } from 'lodash-es';
|
||||||
import { MaterialDesign2SchemeStorage } from './material-2-scheme';
|
import { MaterialDesign2SchemeStorage } from './material-2-scheme';
|
||||||
import { MaterialDesign3SchemeStorage } from './material-3-scheme';
|
import {
|
||||||
|
MaterialDesign3DynamicSchemeStorage,
|
||||||
|
MaterialDesign3SchemeStorage,
|
||||||
|
} from './material-3-scheme';
|
||||||
import { QSchemeStorage } from './q-scheme';
|
import { QSchemeStorage } from './q-scheme';
|
||||||
import { SwatchSchemeStorage } from './swatch_scheme';
|
import { SwatchSchemeStorage } from './swatch_scheme';
|
||||||
|
|
||||||
|
@ -78,4 +81,5 @@ export type SchemeStorage =
|
||||||
| QSchemeStorage
|
| QSchemeStorage
|
||||||
| SwatchSchemeStorage
|
| SwatchSchemeStorage
|
||||||
| MaterialDesign2SchemeStorage
|
| MaterialDesign2SchemeStorage
|
||||||
| MaterialDesign3SchemeStorage;
|
| MaterialDesign3SchemeStorage
|
||||||
|
| MaterialDesign3DynamicSchemeStorage;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user