We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3645f46 commit c7a6857Copy full SHA for c7a6857
src/components/tabs/tab.tsx
@@ -16,15 +16,17 @@ import {
16
} from 'mo/common/className';
17
import TabDot from './tabDot';
18
19
-export interface ITab {
+export interface TabData<T = any> {
20
+ modified?: boolean;
21
+ language?: string | undefined;
22
path?: string;
23
+ value?: string;
24
+}
25
+export interface ITab extends TabData{
26
key?: string;
27
name?: string;
- modified?: boolean;
- value?: string;
- language?: string | undefined;
- tip?: string | React.ReactNode;
28
label?: React.ReactNode;
29
+ tip?: string | React.ReactNode;
30
renderPanel?: React.ReactNode;
31
}
32
src/typings/index.d.ts
@@ -16,3 +16,4 @@ interface HTMLElementProps<T = any> {
type LiteralUnion<T extends U, U> = T | (U & {});
+
0 commit comments