@xn-lib/component 0.1.6 → 0.1.7

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,45 @@
1
+ import type { ExtractPropTypes, PropType } from 'vue';
2
+ import { VirtualListMode } from '../types/virtual-list';
3
+ export declare const virtualListProps: {
4
+ readonly items: {
5
+ readonly type: PropType<any[]>;
6
+ readonly required: true;
7
+ };
8
+ readonly mode: {
9
+ readonly type: PropType<VirtualListMode>;
10
+ readonly default: "fixed";
11
+ };
12
+ readonly itemSize: {
13
+ readonly type: PropType<number | ((item: any) => number)>;
14
+ readonly default: 32;
15
+ };
16
+ readonly minItemSize: {
17
+ readonly type: NumberConstructor;
18
+ readonly default: 32;
19
+ };
20
+ readonly itemKey: {
21
+ readonly type: StringConstructor;
22
+ readonly default: "id";
23
+ };
24
+ readonly pageMode: {
25
+ readonly type: BooleanConstructor;
26
+ readonly default: false;
27
+ };
28
+ readonly buffer: {
29
+ readonly type: NumberConstructor;
30
+ readonly default: 200;
31
+ };
32
+ readonly prerender: {
33
+ readonly type: NumberConstructor;
34
+ readonly default: 0;
35
+ };
36
+ readonly threshold: {
37
+ readonly type: NumberConstructor;
38
+ readonly default: 50;
39
+ };
40
+ readonly sizeDependencies: {
41
+ readonly type: PropType<any[]>;
42
+ readonly default: () => never[];
43
+ };
44
+ };
45
+ export type VirtualListProps = ExtractPropTypes<typeof virtualListProps>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "private": false,
3
3
  "name": "@xn-lib/component",
4
- "version": "0.1.6",
4
+ "version": "0.1.7",
5
5
  "description": "",
6
6
  "main": "./dist/index.umd.js",
7
7
  "module": "./dist/index.mjs",
File without changes