@hzab/hierarchical-statistics 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -9,6 +9,7 @@ const InfiniteListUIPc = (props: InfiniteListProps, ref: ForwardedRef<InfiniteLi
|
|
|
9
9
|
const {
|
|
10
10
|
states: {
|
|
11
11
|
listModal,
|
|
12
|
+
breadModel,
|
|
12
13
|
readcrumbStyle,
|
|
13
14
|
separatorStyle,
|
|
14
15
|
separator,
|
|
@@ -22,7 +23,7 @@ const InfiniteListUIPc = (props: InfiniteListProps, ref: ForwardedRef<InfiniteLi
|
|
|
22
23
|
virtualPagedListProps,
|
|
23
24
|
className,
|
|
24
25
|
},
|
|
25
|
-
actions: { handleSelectId, handleNodeClick, handleBreadcrumbClick },
|
|
26
|
+
actions: { handleSelectId, handleNodeClick, handleBreadcrumbClick, fetchBreadData },
|
|
26
27
|
} = useInfiniteList({ ...props, terminal: "pc" });
|
|
27
28
|
|
|
28
29
|
useImperativeHandle(ref, () => ({
|
|
@@ -30,6 +31,9 @@ const InfiniteListUIPc = (props: InfiniteListProps, ref: ForwardedRef<InfiniteLi
|
|
|
30
31
|
handleSelectId,
|
|
31
32
|
listRef: listRef?.current,
|
|
32
33
|
listModal,
|
|
34
|
+
breadModel,
|
|
35
|
+
fetchBreadData,
|
|
36
|
+
breadcrumbData,
|
|
33
37
|
}));
|
|
34
38
|
|
|
35
39
|
const loadData = async (pageNum) => {
|
package/src/type.d.ts
CHANGED
|
@@ -24,6 +24,11 @@ export interface InfiniteListInstance {
|
|
|
24
24
|
handleSelectId?: (item: ListItem) => void;
|
|
25
25
|
listRef?: any;
|
|
26
26
|
listModal?: any;
|
|
27
|
+
breadModel?: any;
|
|
28
|
+
/** 面包屑回显数据 */
|
|
29
|
+
breadcrumbData?: any;
|
|
30
|
+
/** 面包屑数据请求方法 */
|
|
31
|
+
fetchBreadData?: () => Promise<void>;
|
|
27
32
|
}
|
|
28
33
|
export interface InfiniteListProps {
|
|
29
34
|
/** 添加外层类名 */
|