修正部分编译错误。
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) {
|
||||
|
Reference in New Issue
Block a user