File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 1
1
/* istanbul ignore file */
2
2
import * as React from 'react' ;
3
- import { OptionData } from './interface' ;
3
+ import { OptionCoreData } from './interface' ;
4
4
5
- export interface OptionProps extends Omit < OptionData , 'label' > {
5
+ export interface OptionProps extends Omit < OptionCoreData , 'label' > {
6
6
children : React . ReactNode ;
7
+
8
+ /** Save for customize data */
9
+ [ prop : string ] : any ; // eslint-disable-line @typescript-eslint/no-explicit-any
7
10
}
8
11
9
12
export interface OptionFC extends React . FC < OptionProps > {
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ export type RenderNode = React.ReactNode | ((props: any) => React.ReactNode);
8
8
export type Mode = 'multiple' | 'tags' | 'combobox' ;
9
9
10
10
// ======================== Option ========================
11
- export interface OptionData {
11
+ export interface OptionCoreData {
12
12
key ?: Key ;
13
13
disabled ?: boolean ;
14
14
value : Key ;
@@ -18,7 +18,9 @@ export interface OptionData {
18
18
label ?: React . ReactNode ;
19
19
/** @deprecated Only works when use `children` as option data */
20
20
children ?: React . ReactNode ;
21
+ }
21
22
23
+ export interface OptionData extends OptionCoreData {
22
24
/** Save for customize data */
23
25
[ prop : string ] : any ; // eslint-disable-line @typescript-eslint/no-explicit-any
24
26
}
You can’t perform that action at this time.
0 commit comments