1 | import React from 'react';
|
2 | import type { ProHelpDataSource, ProHelpDataSourceChildren } from './HelpProvide';
|
3 | import { ProHelpProvide } from './HelpProvide';
|
4 | import { ProHelpSelect } from './Search';
|
5 | export * from './ProHelpContentPanel';
|
6 | export * from './ProHelpDrawer';
|
7 | export * from './ProHelpModal';
|
8 | export * from './ProHelpPanel';
|
9 | export * from './ProHelpPopover';
|
10 | export * from './RenderContentPanel';
|
11 | export { ProHelpProvide, ProHelpSelect };
|
12 | export type { ProHelpDataSource, ProHelpDataSourceChildren };
|
13 | export type ProHelpProps<ValueType> = {
|
14 | |
15 |
|
16 |
|
17 | dataSource: ProHelpDataSource<ValueType>[];
|
18 | |
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 | valueTypeMap?: Map<string, (item: ProHelpDataSourceChildren<ValueType>, index: number) => React.ReactNode>;
|
29 | |
30 |
|
31 |
|
32 | children?: React.ReactNode;
|
33 | |
34 |
|
35 |
|
36 | onLoadContext?: (key: React.Key, context: ProHelpDataSource<ValueType>['children'][number]) => Promise<ProHelpDataSourceChildren<ValueType>[]>;
|
37 | };
|
38 | export type ProHelpContentPanelProps = {
|
39 | |
40 |
|
41 |
|
42 | selectedKey: React.Key;
|
43 | className?: string;
|
44 | parentItem?: ProHelpDataSource<any>;
|
45 | onScroll?: (key?: string) => void;
|
46 | };
|
47 | export declare const ProHelp: <ValueTypeMap = {
|
48 | text: any;
|
49 | }>({ dataSource, valueTypeMap, onLoadContext, ...props }: ProHelpProps<ValueTypeMap>) => import("react/jsx-runtime").JSX.Element;
|