Latest updates from IceHrmPro
This commit is contained in:
19
web/node_modules/rc-tree-select/es/hooks/useSelectValues.d.ts
generated
vendored
Normal file
19
web/node_modules/rc-tree-select/es/hooks/useSelectValues.d.ts
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
import React from 'react';
|
||||
import { DefaultValueType } from 'rc-select/lib/interface/generator';
|
||||
import { DataEntity } from 'rc-tree/lib/interface';
|
||||
import { RawValueType, FlattenDataNode, Key, LabelValueType, DataNode } from '../interface';
|
||||
import { SkipType } from './useKeyValueMapping';
|
||||
import { CheckedStrategy } from '../utils/strategyUtil';
|
||||
interface Config {
|
||||
treeConduction: boolean;
|
||||
/** Current `value` of TreeSelect */
|
||||
value: DefaultValueType;
|
||||
showCheckedStrategy: CheckedStrategy;
|
||||
conductKeyEntities: Record<Key, DataEntity>;
|
||||
getEntityByKey: (key: Key, skipType?: SkipType) => FlattenDataNode;
|
||||
getEntityByValue: (value: RawValueType, skipType?: SkipType) => FlattenDataNode;
|
||||
getLabelProp: (node: DataNode) => React.ReactNode;
|
||||
}
|
||||
/** Return */
|
||||
export default function useSelectValues(rawValues: RawValueType[], { value, getEntityByValue, getEntityByKey, treeConduction, showCheckedStrategy, conductKeyEntities, getLabelProp, }: Config): LabelValueType[];
|
||||
export {};
|
||||
Reference in New Issue
Block a user