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