rc-cascader
Advanced tools
Comparing version 3.13.0 to 3.14.0
@@ -21,5 +21,5 @@ import type { BuildInPlacements } from '@rc-component/trigger/lib/interface'; | ||
} | ||
export declare type SingleValueType = (string | number)[]; | ||
export declare type ValueType = SingleValueType | SingleValueType[]; | ||
export declare type ShowCheckedStrategy = typeof SHOW_PARENT | typeof SHOW_CHILD; | ||
export type SingleValueType = (string | number)[]; | ||
export type ValueType = SingleValueType | SingleValueType[]; | ||
export type ShowCheckedStrategy = typeof SHOW_PARENT | typeof SHOW_CHILD; | ||
export interface BaseOptionType { | ||
@@ -70,4 +70,4 @@ disabled?: boolean; | ||
} | ||
declare type OnSingleChange<OptionType> = (value: SingleValueType, selectOptions: OptionType[]) => void; | ||
declare type OnMultipleChange<OptionType> = (value: SingleValueType[], selectOptions: OptionType[][]) => void; | ||
type OnSingleChange<OptionType> = (value: SingleValueType, selectOptions: OptionType[]) => void; | ||
type OnMultipleChange<OptionType> = (value: SingleValueType[], selectOptions: OptionType[][]) => void; | ||
export interface SingleCascaderProps<OptionType extends BaseOptionType = DefaultOptionType> extends BaseCascaderProps<OptionType> { | ||
@@ -81,7 +81,7 @@ checkable?: false; | ||
} | ||
export declare type CascaderProps<OptionType extends BaseOptionType = DefaultOptionType> = SingleCascaderProps<OptionType> | MultipleCascaderProps<OptionType>; | ||
export declare type InternalCascaderProps<OptionType extends BaseOptionType = DefaultOptionType> = Omit<SingleCascaderProps<OptionType> | MultipleCascaderProps<OptionType>, 'onChange'> & { | ||
export type CascaderProps<OptionType extends BaseOptionType = DefaultOptionType> = SingleCascaderProps<OptionType> | MultipleCascaderProps<OptionType>; | ||
export type InternalCascaderProps<OptionType extends BaseOptionType = DefaultOptionType> = Omit<SingleCascaderProps<OptionType> | MultipleCascaderProps<OptionType>, 'onChange'> & { | ||
onChange?: (value: SingleValueType | SingleValueType[], selectOptions: OptionType[] | OptionType[][]) => void; | ||
}; | ||
export declare type CascaderRef = Omit<BaseSelectRef, 'scrollTo'>; | ||
export type CascaderRef = Omit<BaseSelectRef, 'scrollTo'>; | ||
declare const Cascader: (<OptionType extends DefaultOptionType | BaseOptionType = DefaultOptionType>(props: React.PropsWithChildren<CascaderProps<OptionType>> & { | ||
@@ -88,0 +88,0 @@ ref?: React.Ref<BaseSelectRef>; |
@@ -7,5 +7,5 @@ import type { DefaultOptionType, InternalFieldNames } from '../Cascader'; | ||
} | ||
export declare type GetEntities = () => OptionsInfo['pathKeyEntities']; | ||
export type GetEntities = () => OptionsInfo['pathKeyEntities']; | ||
/** Lazy parse options data into conduct-able info to avoid perf issue in single mode */ | ||
declare const _default: (options: DefaultOptionType[], fieldNames: InternalFieldNames) => GetEntities; | ||
export default _default; |
@@ -21,5 +21,5 @@ import type { BuildInPlacements } from '@rc-component/trigger/lib/interface'; | ||
} | ||
export declare type SingleValueType = (string | number)[]; | ||
export declare type ValueType = SingleValueType | SingleValueType[]; | ||
export declare type ShowCheckedStrategy = typeof SHOW_PARENT | typeof SHOW_CHILD; | ||
export type SingleValueType = (string | number)[]; | ||
export type ValueType = SingleValueType | SingleValueType[]; | ||
export type ShowCheckedStrategy = typeof SHOW_PARENT | typeof SHOW_CHILD; | ||
export interface BaseOptionType { | ||
@@ -70,4 +70,4 @@ disabled?: boolean; | ||
} | ||
declare type OnSingleChange<OptionType> = (value: SingleValueType, selectOptions: OptionType[]) => void; | ||
declare type OnMultipleChange<OptionType> = (value: SingleValueType[], selectOptions: OptionType[][]) => void; | ||
type OnSingleChange<OptionType> = (value: SingleValueType, selectOptions: OptionType[]) => void; | ||
type OnMultipleChange<OptionType> = (value: SingleValueType[], selectOptions: OptionType[][]) => void; | ||
export interface SingleCascaderProps<OptionType extends BaseOptionType = DefaultOptionType> extends BaseCascaderProps<OptionType> { | ||
@@ -81,7 +81,7 @@ checkable?: false; | ||
} | ||
export declare type CascaderProps<OptionType extends BaseOptionType = DefaultOptionType> = SingleCascaderProps<OptionType> | MultipleCascaderProps<OptionType>; | ||
export declare type InternalCascaderProps<OptionType extends BaseOptionType = DefaultOptionType> = Omit<SingleCascaderProps<OptionType> | MultipleCascaderProps<OptionType>, 'onChange'> & { | ||
export type CascaderProps<OptionType extends BaseOptionType = DefaultOptionType> = SingleCascaderProps<OptionType> | MultipleCascaderProps<OptionType>; | ||
export type InternalCascaderProps<OptionType extends BaseOptionType = DefaultOptionType> = Omit<SingleCascaderProps<OptionType> | MultipleCascaderProps<OptionType>, 'onChange'> & { | ||
onChange?: (value: SingleValueType | SingleValueType[], selectOptions: OptionType[] | OptionType[][]) => void; | ||
}; | ||
export declare type CascaderRef = Omit<BaseSelectRef, 'scrollTo'>; | ||
export type CascaderRef = Omit<BaseSelectRef, 'scrollTo'>; | ||
declare const Cascader: (<OptionType extends DefaultOptionType | BaseOptionType = DefaultOptionType>(props: React.PropsWithChildren<CascaderProps<OptionType>> & { | ||
@@ -88,0 +88,0 @@ ref?: React.Ref<BaseSelectRef>; |
@@ -7,5 +7,5 @@ import type { DefaultOptionType, InternalFieldNames } from '../Cascader'; | ||
} | ||
export declare type GetEntities = () => OptionsInfo['pathKeyEntities']; | ||
export type GetEntities = () => OptionsInfo['pathKeyEntities']; | ||
/** Lazy parse options data into conduct-able info to avoid perf issue in single mode */ | ||
declare const _default: (options: DefaultOptionType[], fieldNames: InternalFieldNames) => GetEntities; | ||
export default _default; |
{ | ||
"name": "rc-cascader", | ||
"version": "3.13.0", | ||
"version": "3.14.0", | ||
"description": "cascade select ui component for react", | ||
@@ -76,3 +76,3 @@ "keywords": [ | ||
"classnames": "^2.3.1", | ||
"rc-select": "~14.6.0", | ||
"rc-select": "~14.7.0", | ||
"rc-tree": "~5.7.0", | ||
@@ -79,0 +79,0 @@ "rc-util": "^5.6.1" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
166129
+ Addedrc-select@14.7.4(transitive)
- Removedrc-select@14.6.0(transitive)
Updatedrc-select@~14.7.0