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 11/* istanbul ignore file */
22import * as React from 'react' ;
3- import { OptionData } from './interface' ;
3+ import { OptionCoreData } from './interface' ;
44
5- export interface OptionProps extends Omit < OptionData , 'label' > {
5+ export interface OptionProps extends Omit < OptionCoreData , 'label' > {
66 children : React . ReactNode ;
7+
8+ /** Save for customize data */
9+ [ prop : string ] : any ; // eslint-disable-line @typescript-eslint/no-explicit-any
710}
811
912export 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);
88export type Mode = 'multiple' | 'tags' | 'combobox' ;
99
1010// ======================== Option ========================
11- export interface OptionData {
11+ export interface OptionCoreData {
1212 key ?: Key ;
1313 disabled ?: boolean ;
1414 value : Key ;
@@ -18,7 +18,9 @@ export interface OptionData {
1818 label ?: React . ReactNode ;
1919 /** @deprecated Only works when use `children` as option data */
2020 children ?: React . ReactNode ;
21+ }
2122
23+ export interface OptionData extends OptionCoreData {
2224 /** Save for customize data */
2325 [ prop : string ] : any ; // eslint-disable-line @typescript-eslint/no-explicit-any
2426}
You can’t perform that action at this time.
0 commit comments