hlyc-web-pack 3.6.13 → 3.6.15

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.
@@ -0,0 +1,24 @@
1
+ import { TableProps } from 'antd/es/table';
2
+ export declare type VirtualListProp<RecordType extends object = any> = {
3
+ /** 虚拟列表参数 */
4
+ vl: {
5
+ /** (必填) 对应scrollY */
6
+ height: number | string;
7
+ /** (可选) 滚动条滚到底部触发api */
8
+ onReachEnd?: () => void;
9
+ /** (可选) 滚动时触发的api */
10
+ onScroll?: () => void;
11
+ onListRender?: (listInfo: {
12
+ start: number;
13
+ renderLen: number;
14
+ }) => void;
15
+ debounceListRenderMS?: number;
16
+ /** (可选, 如果同一页面存在多个虚拟表格时必填.) 唯一标识 */
17
+ vid?: string;
18
+ /** 默认为true. 是否数据变更后重置滚动条 */
19
+ resetTopWhenDataChange?: boolean;
20
+ };
21
+ } & TableProps<RecordType>;
22
+ /** 虚拟列表 */
23
+ declare const VirtualList: (props: VirtualListProp) => JSX.Element;
24
+ export default VirtualList;
package/lib/index.d.ts CHANGED
@@ -9,6 +9,7 @@ export { default as LayoutTableModal } from './LayoutTableModal';
9
9
  export { default as QuicklyProcessForms } from './QuicklyProcessForms';
10
10
  export { default as LayoutFormModal } from './LayoutFormModal';
11
11
  export { default as IconSelectionModal } from './IconSelectionModal';
12
+ export { default as VirtualList } from './VirtualList';
12
13
  export { default as GenerateTable } from './GenerateTable';
13
14
  export { default as GenerateForm } from './GenerateForm';
14
15
  export { default as Empty } from './Empty';