@king-one/antdv 1.0.0

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.
Files changed (133) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/cdn/index.cdn.js +16 -0
  3. package/cdn/index.cdn.js.map +1 -0
  4. package/cdn/index.cdn.mjs +16 -0
  5. package/cdn/index.cdn.mjs.map +1 -0
  6. package/cdn/index.css +1 -0
  7. package/es/components/base/style/index.d.ts +1 -0
  8. package/es/components/base/style/index.mjs +2 -0
  9. package/es/components/base/style/index.mjs.map +1 -0
  10. package/es/components/form/component/form.d.ts +10 -0
  11. package/es/components/form/component/form.mjs +11 -0
  12. package/es/components/form/component/form.mjs.map +1 -0
  13. package/es/components/form/component/form.vue.d.ts +16 -0
  14. package/es/components/form/component/form.vue.mjs +6 -0
  15. package/es/components/form/component/form.vue.mjs.map +1 -0
  16. package/es/components/form/component/form.vue2.mjs +26 -0
  17. package/es/components/form/component/form.vue2.mjs.map +1 -0
  18. package/es/components/form/index.d.ts +17 -0
  19. package/es/components/form/index.mjs +9 -0
  20. package/es/components/form/index.mjs.map +1 -0
  21. package/es/components/form-item/component/form-item.vue.d.ts +11 -0
  22. package/es/components/form-item/component/form-item.vue.mjs +6 -0
  23. package/es/components/form-item/component/form-item.vue.mjs.map +1 -0
  24. package/es/components/form-item/component/form-item.vue2.mjs +113 -0
  25. package/es/components/form-item/component/form-item.vue2.mjs.map +1 -0
  26. package/es/components/form-item/index.d.ts +0 -0
  27. package/es/components/form-item/index.mjs +2 -0
  28. package/es/components/form-item/index.mjs.map +1 -0
  29. package/es/components/index.d.ts +2 -0
  30. package/es/components/index.mjs +5 -0
  31. package/es/components/index.mjs.map +1 -0
  32. package/es/components/scroll-bar/index.d.ts +26 -0
  33. package/es/components/scroll-bar/index.mjs +9 -0
  34. package/es/components/scroll-bar/index.mjs.map +1 -0
  35. package/es/components/scroll-bar/src/scroll-bar.d.ts +24 -0
  36. package/es/components/scroll-bar/src/scroll-bar.mjs +248 -0
  37. package/es/components/scroll-bar/src/scroll-bar.mjs.map +1 -0
  38. package/es/components/scroll-bar/src/types.d.ts +6 -0
  39. package/es/components/scroll-bar/src/types.mjs +8 -0
  40. package/es/components/scroll-bar/src/types.mjs.map +1 -0
  41. package/es/components/scroll-bar/style/index.d.ts +2 -0
  42. package/es/components/scroll-bar/style/index.mjs +3 -0
  43. package/es/components/scroll-bar/style/index.mjs.map +1 -0
  44. package/es/components/utils/install.d.ts +7 -0
  45. package/es/components/utils/install.mjs +19 -0
  46. package/es/components/utils/install.mjs.map +1 -0
  47. package/es/components/virtual-list/index.d.ts +276 -0
  48. package/es/components/virtual-list/index.mjs +9 -0
  49. package/es/components/virtual-list/index.mjs.map +1 -0
  50. package/es/components/virtual-list/src/types.d.ts +28 -0
  51. package/es/components/virtual-list/src/types.mjs +29 -0
  52. package/es/components/virtual-list/src/types.mjs.map +1 -0
  53. package/es/components/virtual-list/src/virtual-list.vue.d.ts +275 -0
  54. package/es/components/virtual-list/src/virtual-list.vue.mjs +6 -0
  55. package/es/components/virtual-list/src/virtual-list.vue.mjs.map +1 -0
  56. package/es/components/virtual-list/src/virtual-list.vue2.mjs +79 -0
  57. package/es/components/virtual-list/src/virtual-list.vue2.mjs.map +1 -0
  58. package/es/hooks/use-namespace/index.d.ts +23 -0
  59. package/es/hooks/use-namespace/index.mjs +78 -0
  60. package/es/hooks/use-namespace/index.mjs.map +1 -0
  61. package/es/index.d.ts +3 -0
  62. package/es/index.mjs +11 -0
  63. package/es/index.mjs.map +1 -0
  64. package/es/installer.d.ts +6 -0
  65. package/es/installer.mjs +14 -0
  66. package/es/installer.mjs.map +1 -0
  67. package/lib/components/base/style/index.d.ts +1 -0
  68. package/lib/components/base/style/index.js +5 -0
  69. package/lib/components/base/style/index.js.map +1 -0
  70. package/lib/components/form/component/form.d.ts +10 -0
  71. package/lib/components/form/component/form.js +13 -0
  72. package/lib/components/form/component/form.js.map +1 -0
  73. package/lib/components/form/component/form.vue.d.ts +16 -0
  74. package/lib/components/form/component/form.vue.js +10 -0
  75. package/lib/components/form/component/form.vue.js.map +1 -0
  76. package/lib/components/form/component/form.vue2.js +30 -0
  77. package/lib/components/form/component/form.vue2.js.map +1 -0
  78. package/lib/components/form/index.d.ts +17 -0
  79. package/lib/components/form/index.js +15 -0
  80. package/lib/components/form/index.js.map +1 -0
  81. package/lib/components/form-item/component/form-item.vue.d.ts +11 -0
  82. package/lib/components/form-item/component/form-item.vue.js +10 -0
  83. package/lib/components/form-item/component/form-item.vue.js.map +1 -0
  84. package/lib/components/form-item/component/form-item.vue2.js +117 -0
  85. package/lib/components/form-item/component/form-item.vue2.js.map +1 -0
  86. package/lib/components/form-item/index.d.ts +0 -0
  87. package/lib/components/form-item/index.js +3 -0
  88. package/lib/components/form-item/index.js.map +1 -0
  89. package/lib/components/index.d.ts +2 -0
  90. package/lib/components/index.js +14 -0
  91. package/lib/components/index.js.map +1 -0
  92. package/lib/components/scroll-bar/index.d.ts +26 -0
  93. package/lib/components/scroll-bar/index.js +15 -0
  94. package/lib/components/scroll-bar/index.js.map +1 -0
  95. package/lib/components/scroll-bar/src/scroll-bar.d.ts +24 -0
  96. package/lib/components/scroll-bar/src/scroll-bar.js +252 -0
  97. package/lib/components/scroll-bar/src/scroll-bar.js.map +1 -0
  98. package/lib/components/scroll-bar/src/types.d.ts +6 -0
  99. package/lib/components/scroll-bar/src/types.js +10 -0
  100. package/lib/components/scroll-bar/src/types.js.map +1 -0
  101. package/lib/components/scroll-bar/style/index.d.ts +2 -0
  102. package/lib/components/scroll-bar/style/index.js +6 -0
  103. package/lib/components/scroll-bar/style/index.js.map +1 -0
  104. package/lib/components/utils/install.d.ts +7 -0
  105. package/lib/components/utils/install.js +22 -0
  106. package/lib/components/utils/install.js.map +1 -0
  107. package/lib/components/virtual-list/index.d.ts +276 -0
  108. package/lib/components/virtual-list/index.js +15 -0
  109. package/lib/components/virtual-list/index.js.map +1 -0
  110. package/lib/components/virtual-list/src/types.d.ts +28 -0
  111. package/lib/components/virtual-list/src/types.js +31 -0
  112. package/lib/components/virtual-list/src/types.js.map +1 -0
  113. package/lib/components/virtual-list/src/virtual-list.vue.d.ts +275 -0
  114. package/lib/components/virtual-list/src/virtual-list.vue.js +10 -0
  115. package/lib/components/virtual-list/src/virtual-list.vue.js.map +1 -0
  116. package/lib/components/virtual-list/src/virtual-list.vue2.js +83 -0
  117. package/lib/components/virtual-list/src/virtual-list.vue2.js.map +1 -0
  118. package/lib/hooks/use-namespace/index.d.ts +23 -0
  119. package/lib/hooks/use-namespace/index.js +83 -0
  120. package/lib/hooks/use-namespace/index.js.map +1 -0
  121. package/lib/index.d.ts +3 -0
  122. package/lib/index.js +19 -0
  123. package/lib/index.js.map +1 -0
  124. package/lib/installer.d.ts +6 -0
  125. package/lib/installer.js +19 -0
  126. package/lib/installer.js.map +1 -0
  127. package/package.json +29 -0
  128. package/theme-chalk/base.css +1 -0
  129. package/theme-chalk/buttons.css +1 -0
  130. package/theme-chalk/index.css +1 -0
  131. package/theme-chalk/reset.css +0 -0
  132. package/theme-chalk/scroll-bar.css +1 -0
  133. package/theme-chalk/var.css +1 -0
@@ -0,0 +1,22 @@
1
+ 'use strict';
2
+
3
+ const defaultNamePrefix = "K";
4
+ function withInstall(main) {
5
+ main.install = (app) => {
6
+ const comp = main;
7
+ app.component(defaultNamePrefix + comp.name, comp);
8
+ };
9
+ return main;
10
+ }
11
+ function withInstallDirectives(main, name) {
12
+ return {
13
+ install: (app) => {
14
+ app.directive(name, main);
15
+ },
16
+ directive: main
17
+ };
18
+ }
19
+
20
+ exports.withInstall = withInstall;
21
+ exports.withInstallDirectives = withInstallDirectives;
22
+ //# sourceMappingURL=install.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"install.js","sources":["../../../../../packages/antdv/components/utils/install.ts"],"sourcesContent":["/*\n * @Description:\n * @Version: 2.0\n * @Autor: caohao\n * @Date: 2024-09-17 00:15:40\n * @LastEditors: caohao\n * @LastEditTime: 2024-09-17 00:15:43\n */\nimport type { App, Directive, Plugin } from 'vue'\n\nexport type SFCWithInstall<T> = T & Plugin\n\nconst defaultNamePrefix: string = 'K'\nexport function withInstall<T>(main: T) {\n (main as SFCWithInstall<T>).install = (app): void => {\n const comp: Record<string, any> = main as Record<string, any>\n app.component(defaultNamePrefix + comp.name, comp)\n }\n return main as SFCWithInstall<T>\n}\n\n// 注册指令\nexport function withInstallDirectives<T extends Directive>(main: T, name: string) {\n return {\n install: (app: App): void => {\n app.directive(name, main)\n },\n directive: main\n }\n}\n"],"names":[],"mappings":";;AAYA,MAAM,iBAA4B,GAAA,GAAA,CAAA;AAC3B,SAAS,YAAe,IAAS,EAAA;AACtC,EAAC,IAAA,CAA2B,OAAU,GAAA,CAAC,GAAc,KAAA;AACnD,IAAA,MAAM,IAA4B,GAAA,IAAA,CAAA;AAClC,IAAA,GAAA,CAAI,SAAU,CAAA,iBAAA,GAAoB,IAAK,CAAA,IAAA,EAAM,IAAI,CAAA,CAAA;AAAA,GACnD,CAAA;AACA,EAAO,OAAA,IAAA,CAAA;AACT,CAAA;AAGgB,SAAA,qBAAA,CAA2C,MAAS,IAAc,EAAA;AAChF,EAAO,OAAA;AAAA,IACL,OAAA,EAAS,CAAC,GAAmB,KAAA;AAC3B,MAAI,GAAA,CAAA,SAAA,CAAU,MAAM,IAAI,CAAA,CAAA;AAAA,KAC1B;AAAA,IACA,SAAW,EAAA,IAAA;AAAA,GACb,CAAA;AACF;;;;;"}
@@ -0,0 +1,276 @@
1
+ export * from './src/types';
2
+ export declare const KVirtualList: import("../utils/install").SFCWithInstall<import("vue").DefineComponent<{
3
+ readonly items: {
4
+ readonly type: import("vue").PropType<import("vueuc").VVirtualListItemData[]>;
5
+ readonly default: () => never[];
6
+ };
7
+ readonly itemSize: {
8
+ readonly type: NumberConstructor;
9
+ readonly required: true;
10
+ };
11
+ readonly itemResizable: BooleanConstructor;
12
+ readonly paddingTop: {
13
+ readonly type: import("vue").PropType<number | string>;
14
+ readonly default: 0;
15
+ };
16
+ readonly paddingBottom: {
17
+ readonly type: import("vue").PropType<number | string>;
18
+ readonly default: 0;
19
+ };
20
+ readonly keyField: {
21
+ readonly type: StringConstructor;
22
+ readonly default: "key";
23
+ };
24
+ readonly onScroll: import("vue").PropType<() => void>;
25
+ readonly onWheel: import("vue").PropType<(event: WheelEvent) => void>;
26
+ readonly onResize: import("vue").PropType<(entry: ResizeObserverEntry) => void>;
27
+ }, {
28
+ props: import("@vue/shared").LooseRequired<{
29
+ readonly items: import("vueuc").VVirtualListItemData[];
30
+ readonly itemSize: number;
31
+ readonly itemResizable: boolean;
32
+ readonly paddingTop: string | number;
33
+ readonly paddingBottom: string | number;
34
+ readonly keyField: string;
35
+ readonly onScroll?: (() => void) | undefined;
36
+ readonly onWheel?: ((event: WheelEvent) => void) | undefined;
37
+ readonly onResize?: ((entry: ResizeObserverEntry) => void) | undefined;
38
+ } & {}>;
39
+ virtualListInstRef: import("vue").Ref<{
40
+ listElRef: HTMLElement;
41
+ itemsElRef: HTMLElement | null;
42
+ scrollTo: import("vueuc").VVirtualListScrollTo;
43
+ } | null>;
44
+ scrollbarInstRef: import("vue").Ref<import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
45
+ readonly container: import("vue").PropType<() => HTMLElement | null | undefined>;
46
+ readonly content: import("vue").PropType<() => HTMLElement | null | undefined>;
47
+ readonly onScroll: import("vue").PropType<(e: Event) => void>;
48
+ }>>, {
49
+ sync: () => void;
50
+ handleContentResize: () => void;
51
+ handleContainerResize: () => void;
52
+ contentRef: import("vue").Ref<HTMLElement | null>;
53
+ yRailRef: import("vue").Ref<HTMLElement | null>;
54
+ containerRef: import("vue").Ref<HTMLElement | null>;
55
+ contentHeightRef: import("vue").Ref<Nullable<number>>;
56
+ containerHeightRef: import("vue").Ref<Nullable<number>>;
57
+ needYBarRef: import("vue").ComputedRef<boolean>;
58
+ yBarSizePxRef: import("vue").ComputedRef<string>;
59
+ handleYScrollMouseDown: (e: MouseEvent) => void;
60
+ yBarTopPxRef: import("vue").ComputedRef<string>;
61
+ handleScroll: (e: Event) => void;
62
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
63
+ readonly container: import("vue").PropType<() => HTMLElement | null | undefined>;
64
+ readonly content: import("vue").PropType<() => HTMLElement | null | undefined>;
65
+ readonly onScroll: import("vue").PropType<(e: Event) => void>;
66
+ }>>, {}, true, {}, {}, {
67
+ P: {};
68
+ B: {};
69
+ D: {};
70
+ C: {};
71
+ M: {};
72
+ Defaults: {};
73
+ }, Readonly<import("vue").ExtractPropTypes<{
74
+ readonly container: import("vue").PropType<() => HTMLElement | null | undefined>;
75
+ readonly content: import("vue").PropType<() => HTMLElement | null | undefined>;
76
+ readonly onScroll: import("vue").PropType<(e: Event) => void>;
77
+ }>>, {
78
+ sync: () => void;
79
+ handleContentResize: () => void;
80
+ handleContainerResize: () => void;
81
+ contentRef: import("vue").Ref<HTMLElement | null>;
82
+ yRailRef: import("vue").Ref<HTMLElement | null>;
83
+ containerRef: import("vue").Ref<HTMLElement | null>;
84
+ contentHeightRef: import("vue").Ref<Nullable<number>>;
85
+ containerHeightRef: import("vue").Ref<Nullable<number>>;
86
+ needYBarRef: import("vue").ComputedRef<boolean>;
87
+ yBarSizePxRef: import("vue").ComputedRef<string>;
88
+ handleYScrollMouseDown: (e: MouseEvent) => void;
89
+ yBarTopPxRef: import("vue").ComputedRef<string>;
90
+ handleScroll: (e: Event) => void;
91
+ }, {}, {}, {}, {}> | null>;
92
+ getScrollContainer: () => HTMLElement | null | undefined;
93
+ getScrollContent: () => HTMLElement | null | undefined;
94
+ syncScrollbar: () => void | undefined;
95
+ handleScroll: () => void;
96
+ handleResize: () => void;
97
+ readonly VVirtualList: import("vue").DefineComponent<{
98
+ showScrollbar: {
99
+ type: BooleanConstructor;
100
+ default: boolean;
101
+ };
102
+ columns: {
103
+ type: import("vue").PropType<import("vueuc").VVirtualListColumn[]>;
104
+ default: () => never[];
105
+ };
106
+ renderCol: import("vue").PropType<import("vueuc").VVirtualListRenderCol>;
107
+ renderItemWithCols: import("vue").PropType<import("vueuc").VVirtualListRenderItemWithCols>;
108
+ items: {
109
+ type: import("vue").PropType<import("vueuc").VVirtualListItemData[]>;
110
+ default: () => never[];
111
+ };
112
+ itemSize: {
113
+ type: NumberConstructor;
114
+ required: true;
115
+ };
116
+ itemResizable: BooleanConstructor;
117
+ itemsStyle: import("vue").PropType<string | import("vue").CSSProperties>;
118
+ visibleItemsTag: {
119
+ type: import("vue").PropType<string | object>;
120
+ default: string;
121
+ };
122
+ visibleItemsProps: ObjectConstructor;
123
+ ignoreItemResize: BooleanConstructor;
124
+ onScroll: import("vue").PropType<(event: Event) => void>;
125
+ onWheel: import("vue").PropType<(event: WheelEvent) => void>;
126
+ onResize: import("vue").PropType<(entry: ResizeObserverEntry) => void>;
127
+ defaultScrollKey: (StringConstructor | NumberConstructor)[];
128
+ defaultScrollIndex: NumberConstructor;
129
+ keyField: {
130
+ type: StringConstructor;
131
+ default: string;
132
+ };
133
+ paddingTop: {
134
+ type: (StringConstructor | NumberConstructor)[];
135
+ default: number;
136
+ };
137
+ paddingBottom: {
138
+ type: (StringConstructor | NumberConstructor)[];
139
+ default: number;
140
+ };
141
+ }, {
142
+ listHeight: import("vue").Ref<number | undefined>;
143
+ listStyle: {
144
+ overflow: string;
145
+ };
146
+ keyToIndex: import("vue").ComputedRef<Map<any, any>>;
147
+ itemsStyle: import("vue").ComputedRef<(string | import("vue").CSSProperties | {
148
+ boxSizing: string;
149
+ width: string | undefined;
150
+ height: string;
151
+ minHeight: string;
152
+ paddingTop: string;
153
+ paddingBottom: string;
154
+ } | undefined)[]>;
155
+ visibleItemsStyle: import("vue").ComputedRef<{
156
+ transform: string;
157
+ }>;
158
+ viewportItems: import("vue").ComputedRef<import("vueuc").VVirtualListItemData[]>;
159
+ listElRef: import("vue").Ref<HTMLElement | null>;
160
+ itemsElRef: import("vue").Ref<Element | null>;
161
+ scrollTo: import("vueuc").VVirtualListScrollTo;
162
+ handleListResize: (entry: ResizeObserverEntry) => void;
163
+ handleListScroll: (e: UIEvent) => void;
164
+ handleListWheel: (e: WheelEvent) => void;
165
+ handleItemResize: (key: string | number, entry: ResizeObserverEntry) => void;
166
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
167
+ showScrollbar: {
168
+ type: BooleanConstructor;
169
+ default: boolean;
170
+ };
171
+ columns: {
172
+ type: import("vue").PropType<import("vueuc").VVirtualListColumn[]>;
173
+ default: () => never[];
174
+ };
175
+ renderCol: import("vue").PropType<import("vueuc").VVirtualListRenderCol>;
176
+ renderItemWithCols: import("vue").PropType<import("vueuc").VVirtualListRenderItemWithCols>;
177
+ items: {
178
+ type: import("vue").PropType<import("vueuc").VVirtualListItemData[]>;
179
+ default: () => never[];
180
+ };
181
+ itemSize: {
182
+ type: NumberConstructor;
183
+ required: true;
184
+ };
185
+ itemResizable: BooleanConstructor;
186
+ itemsStyle: import("vue").PropType<string | import("vue").CSSProperties>;
187
+ visibleItemsTag: {
188
+ type: import("vue").PropType<string | object>;
189
+ default: string;
190
+ };
191
+ visibleItemsProps: ObjectConstructor;
192
+ ignoreItemResize: BooleanConstructor;
193
+ onScroll: import("vue").PropType<(event: Event) => void>;
194
+ onWheel: import("vue").PropType<(event: WheelEvent) => void>;
195
+ onResize: import("vue").PropType<(entry: ResizeObserverEntry) => void>;
196
+ defaultScrollKey: (StringConstructor | NumberConstructor)[];
197
+ defaultScrollIndex: NumberConstructor;
198
+ keyField: {
199
+ type: StringConstructor;
200
+ default: string;
201
+ };
202
+ paddingTop: {
203
+ type: (StringConstructor | NumberConstructor)[];
204
+ default: number;
205
+ };
206
+ paddingBottom: {
207
+ type: (StringConstructor | NumberConstructor)[];
208
+ default: number;
209
+ };
210
+ }>>, {
211
+ columns: import("vueuc").VVirtualListColumn[];
212
+ showScrollbar: boolean;
213
+ items: import("vueuc").VVirtualListItemData[];
214
+ itemResizable: boolean;
215
+ visibleItemsTag: string | object;
216
+ ignoreItemResize: boolean;
217
+ keyField: string;
218
+ paddingTop: string | number;
219
+ paddingBottom: string | number;
220
+ }, {}>;
221
+ readonly scrollbar: import("../utils/install").SFCWithInstall<import("vue").DefineComponent<{
222
+ readonly container: import("vue").PropType<() => HTMLElement | null | undefined>;
223
+ readonly content: import("vue").PropType<() => HTMLElement | null | undefined>;
224
+ readonly onScroll: import("vue").PropType<(e: Event) => void>;
225
+ }, {
226
+ sync: () => void;
227
+ handleContentResize: () => void;
228
+ handleContainerResize: () => void;
229
+ contentRef: import("vue").Ref<HTMLElement | null>;
230
+ yRailRef: import("vue").Ref<HTMLElement | null>;
231
+ containerRef: import("vue").Ref<HTMLElement | null>;
232
+ contentHeightRef: import("vue").Ref<Nullable<number>>;
233
+ containerHeightRef: import("vue").Ref<Nullable<number>>;
234
+ needYBarRef: import("vue").ComputedRef<boolean>;
235
+ yBarSizePxRef: import("vue").ComputedRef<string>;
236
+ handleYScrollMouseDown: (e: MouseEvent) => void;
237
+ yBarTopPxRef: import("vue").ComputedRef<string>;
238
+ handleScroll: (e: Event) => void;
239
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
240
+ readonly container: import("vue").PropType<() => HTMLElement | null | undefined>;
241
+ readonly content: import("vue").PropType<() => HTMLElement | null | undefined>;
242
+ readonly onScroll: import("vue").PropType<(e: Event) => void>;
243
+ }>>, {}, {}>>;
244
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
245
+ readonly items: {
246
+ readonly type: import("vue").PropType<import("vueuc").VVirtualListItemData[]>;
247
+ readonly default: () => never[];
248
+ };
249
+ readonly itemSize: {
250
+ readonly type: NumberConstructor;
251
+ readonly required: true;
252
+ };
253
+ readonly itemResizable: BooleanConstructor;
254
+ readonly paddingTop: {
255
+ readonly type: import("vue").PropType<number | string>;
256
+ readonly default: 0;
257
+ };
258
+ readonly paddingBottom: {
259
+ readonly type: import("vue").PropType<number | string>;
260
+ readonly default: 0;
261
+ };
262
+ readonly keyField: {
263
+ readonly type: StringConstructor;
264
+ readonly default: "key";
265
+ };
266
+ readonly onScroll: import("vue").PropType<() => void>;
267
+ readonly onWheel: import("vue").PropType<(event: WheelEvent) => void>;
268
+ readonly onResize: import("vue").PropType<(entry: ResizeObserverEntry) => void>;
269
+ }>>, {
270
+ readonly items: import("vueuc").VVirtualListItemData[];
271
+ readonly itemResizable: boolean;
272
+ readonly paddingTop: string | number;
273
+ readonly paddingBottom: string | number;
274
+ readonly keyField: string;
275
+ }, {}>>;
276
+ export default KVirtualList;
@@ -0,0 +1,15 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var install = require('../utils/install.js');
6
+ require('./src/virtual-list.vue.js');
7
+ var types = require('./src/types.js');
8
+ var virtualList_vue_vue_type_script_setup_true_lang = require('./src/virtual-list.vue2.js');
9
+
10
+ const KVirtualList = install.withInstall(virtualList_vue_vue_type_script_setup_true_lang.default);
11
+
12
+ exports.virtualListProps = types.virtualListProps;
13
+ exports.KVirtualList = KVirtualList;
14
+ exports.default = KVirtualList;
15
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../../packages/antdv/components/virtual-list/index.ts"],"sourcesContent":["import { withInstall } from '../utils/install'\nimport VirtualList from './src/virtual-list.vue'\n\nexport * from './src/types'\nexport const KVirtualList = withInstall(VirtualList)\nexport default KVirtualList\n"],"names":["withInstall","VirtualList"],"mappings":";;;;;;;;;AAIa,MAAA,YAAA,GAAeA,oBAAYC,uDAAW;;;;;;"}
@@ -0,0 +1,28 @@
1
+ import type { VirtualListItemData } from 'vueuc';
2
+ import type { PropType } from 'vue';
3
+ export declare const virtualListProps: {
4
+ readonly items: {
5
+ readonly type: PropType<VirtualListItemData[]>;
6
+ readonly default: () => never[];
7
+ };
8
+ readonly itemSize: {
9
+ readonly type: NumberConstructor;
10
+ readonly required: true;
11
+ };
12
+ readonly itemResizable: BooleanConstructor;
13
+ readonly paddingTop: {
14
+ readonly type: PropType<number | string>;
15
+ readonly default: 0;
16
+ };
17
+ readonly paddingBottom: {
18
+ readonly type: PropType<number | string>;
19
+ readonly default: 0;
20
+ };
21
+ readonly keyField: {
22
+ readonly type: StringConstructor;
23
+ readonly default: "key";
24
+ };
25
+ readonly onScroll: PropType<() => void>;
26
+ readonly onWheel: PropType<(event: WheelEvent) => void>;
27
+ readonly onResize: PropType<(entry: ResizeObserverEntry) => void>;
28
+ };
@@ -0,0 +1,31 @@
1
+ 'use strict';
2
+
3
+ const virtualListProps = {
4
+ items: {
5
+ type: Array,
6
+ default: () => []
7
+ },
8
+ itemSize: {
9
+ type: Number,
10
+ required: true
11
+ },
12
+ itemResizable: Boolean,
13
+ paddingTop: {
14
+ type: [Number, String],
15
+ default: 0
16
+ },
17
+ paddingBottom: {
18
+ type: [Number, String],
19
+ default: 0
20
+ },
21
+ keyField: {
22
+ type: String,
23
+ default: "key"
24
+ },
25
+ onScroll: Function,
26
+ onWheel: Function,
27
+ onResize: Function
28
+ };
29
+
30
+ exports.virtualListProps = virtualListProps;
31
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sources":["../../../../../../packages/antdv/components/virtual-list/src/types.ts"],"sourcesContent":["import type { VirtualListItemData } from 'vueuc'\nimport type { PropType } from 'vue'\n\nexport const virtualListProps = {\n items: {\n type: Array as PropType<VirtualListItemData[]>,\n default: () => []\n },\n itemSize: {\n type: Number,\n required: true\n },\n itemResizable: Boolean,\n paddingTop: {\n type: [Number, String] as PropType<number | string>,\n default: 0\n },\n paddingBottom: {\n type: [Number, String] as PropType<number | string>,\n default: 0\n },\n keyField: {\n type: String,\n default: 'key'\n },\n onScroll: Function as PropType<() => void>,\n onWheel: Function as PropType<(event: WheelEvent) => void>,\n onResize: Function as PropType<(entry: ResizeObserverEntry) => void>\n} as const\n"],"names":[],"mappings":";;AAGO,MAAM,gBAAmB,GAAA;AAAA,EAC9B,KAAO,EAAA;AAAA,IACL,IAAM,EAAA,KAAA;AAAA,IACN,OAAA,EAAS,MAAM,EAAC;AAAA,GAClB;AAAA,EACA,QAAU,EAAA;AAAA,IACR,IAAM,EAAA,MAAA;AAAA,IACN,QAAU,EAAA,IAAA;AAAA,GACZ;AAAA,EACA,aAAe,EAAA,OAAA;AAAA,EACf,UAAY,EAAA;AAAA,IACV,IAAA,EAAM,CAAC,MAAA,EAAQ,MAAM,CAAA;AAAA,IACrB,OAAS,EAAA,CAAA;AAAA,GACX;AAAA,EACA,aAAe,EAAA;AAAA,IACb,IAAA,EAAM,CAAC,MAAA,EAAQ,MAAM,CAAA;AAAA,IACrB,OAAS,EAAA,CAAA;AAAA,GACX;AAAA,EACA,QAAU,EAAA;AAAA,IACR,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,KAAA;AAAA,GACX;AAAA,EACA,QAAU,EAAA,QAAA;AAAA,EACV,OAAS,EAAA,QAAA;AAAA,EACT,QAAU,EAAA,QAAA;AACZ;;;;"}
@@ -0,0 +1,275 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ readonly items: {
3
+ readonly type: import("vue").PropType<import("vueuc").VVirtualListItemData[]>;
4
+ readonly default: () => never[];
5
+ };
6
+ readonly itemSize: {
7
+ readonly type: NumberConstructor;
8
+ readonly required: true;
9
+ };
10
+ readonly itemResizable: BooleanConstructor;
11
+ readonly paddingTop: {
12
+ readonly type: import("vue").PropType<number | string>;
13
+ readonly default: 0;
14
+ };
15
+ readonly paddingBottom: {
16
+ readonly type: import("vue").PropType<number | string>;
17
+ readonly default: 0;
18
+ };
19
+ readonly keyField: {
20
+ readonly type: StringConstructor;
21
+ readonly default: "key";
22
+ };
23
+ readonly onScroll: import("vue").PropType<() => void>;
24
+ readonly onWheel: import("vue").PropType<(event: WheelEvent) => void>;
25
+ readonly onResize: import("vue").PropType<(entry: ResizeObserverEntry) => void>;
26
+ }, {
27
+ props: import("@vue/shared").LooseRequired<{
28
+ readonly items: import("vueuc").VVirtualListItemData[];
29
+ readonly itemSize: number;
30
+ readonly itemResizable: boolean;
31
+ readonly paddingTop: string | number;
32
+ readonly paddingBottom: string | number;
33
+ readonly keyField: string;
34
+ readonly onScroll?: (() => void) | undefined;
35
+ readonly onWheel?: ((event: WheelEvent) => void) | undefined;
36
+ readonly onResize?: ((entry: ResizeObserverEntry) => void) | undefined;
37
+ } & {}>;
38
+ virtualListInstRef: import("vue").Ref<{
39
+ listElRef: HTMLElement;
40
+ itemsElRef: HTMLElement | null;
41
+ scrollTo: import("vueuc").VVirtualListScrollTo;
42
+ } | null>;
43
+ scrollbarInstRef: import("vue").Ref<import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
44
+ readonly container: import("vue").PropType<() => HTMLElement | null | undefined>;
45
+ readonly content: import("vue").PropType<() => HTMLElement | null | undefined>;
46
+ readonly onScroll: import("vue").PropType<(e: Event) => void>;
47
+ }>>, {
48
+ sync: () => void;
49
+ handleContentResize: () => void;
50
+ handleContainerResize: () => void;
51
+ contentRef: import("vue").Ref<HTMLElement | null>;
52
+ yRailRef: import("vue").Ref<HTMLElement | null>;
53
+ containerRef: import("vue").Ref<HTMLElement | null>;
54
+ contentHeightRef: import("vue").Ref<Nullable<number>>;
55
+ containerHeightRef: import("vue").Ref<Nullable<number>>;
56
+ needYBarRef: import("vue").ComputedRef<boolean>;
57
+ yBarSizePxRef: import("vue").ComputedRef<string>;
58
+ handleYScrollMouseDown: (e: MouseEvent) => void;
59
+ yBarTopPxRef: import("vue").ComputedRef<string>;
60
+ handleScroll: (e: Event) => void;
61
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
62
+ readonly container: import("vue").PropType<() => HTMLElement | null | undefined>;
63
+ readonly content: import("vue").PropType<() => HTMLElement | null | undefined>;
64
+ readonly onScroll: import("vue").PropType<(e: Event) => void>;
65
+ }>>, {}, true, {}, {}, {
66
+ P: {};
67
+ B: {};
68
+ D: {};
69
+ C: {};
70
+ M: {};
71
+ Defaults: {};
72
+ }, Readonly<import("vue").ExtractPropTypes<{
73
+ readonly container: import("vue").PropType<() => HTMLElement | null | undefined>;
74
+ readonly content: import("vue").PropType<() => HTMLElement | null | undefined>;
75
+ readonly onScroll: import("vue").PropType<(e: Event) => void>;
76
+ }>>, {
77
+ sync: () => void;
78
+ handleContentResize: () => void;
79
+ handleContainerResize: () => void;
80
+ contentRef: import("vue").Ref<HTMLElement | null>;
81
+ yRailRef: import("vue").Ref<HTMLElement | null>;
82
+ containerRef: import("vue").Ref<HTMLElement | null>;
83
+ contentHeightRef: import("vue").Ref<Nullable<number>>;
84
+ containerHeightRef: import("vue").Ref<Nullable<number>>;
85
+ needYBarRef: import("vue").ComputedRef<boolean>;
86
+ yBarSizePxRef: import("vue").ComputedRef<string>;
87
+ handleYScrollMouseDown: (e: MouseEvent) => void;
88
+ yBarTopPxRef: import("vue").ComputedRef<string>;
89
+ handleScroll: (e: Event) => void;
90
+ }, {}, {}, {}, {}> | null>;
91
+ getScrollContainer: () => HTMLElement | null | undefined;
92
+ getScrollContent: () => HTMLElement | null | undefined;
93
+ syncScrollbar: () => void | undefined;
94
+ handleScroll: () => void;
95
+ handleResize: () => void;
96
+ readonly VVirtualList: import("vue").DefineComponent<{
97
+ showScrollbar: {
98
+ type: BooleanConstructor;
99
+ default: boolean;
100
+ };
101
+ columns: {
102
+ type: import("vue").PropType<import("vueuc").VVirtualListColumn[]>;
103
+ default: () => never[];
104
+ };
105
+ renderCol: import("vue").PropType<import("vueuc").VVirtualListRenderCol>;
106
+ renderItemWithCols: import("vue").PropType<import("vueuc").VVirtualListRenderItemWithCols>;
107
+ items: {
108
+ type: import("vue").PropType<import("vueuc").VVirtualListItemData[]>;
109
+ default: () => never[];
110
+ };
111
+ itemSize: {
112
+ type: NumberConstructor;
113
+ required: true;
114
+ };
115
+ itemResizable: BooleanConstructor;
116
+ itemsStyle: import("vue").PropType<string | import("vue").CSSProperties>;
117
+ visibleItemsTag: {
118
+ type: import("vue").PropType<string | object>;
119
+ default: string;
120
+ };
121
+ visibleItemsProps: ObjectConstructor;
122
+ ignoreItemResize: BooleanConstructor;
123
+ onScroll: import("vue").PropType<(event: Event) => void>;
124
+ onWheel: import("vue").PropType<(event: WheelEvent) => void>;
125
+ onResize: import("vue").PropType<(entry: ResizeObserverEntry) => void>;
126
+ defaultScrollKey: (StringConstructor | NumberConstructor)[];
127
+ defaultScrollIndex: NumberConstructor;
128
+ keyField: {
129
+ type: StringConstructor;
130
+ default: string;
131
+ };
132
+ paddingTop: {
133
+ type: (StringConstructor | NumberConstructor)[];
134
+ default: number;
135
+ };
136
+ paddingBottom: {
137
+ type: (StringConstructor | NumberConstructor)[];
138
+ default: number;
139
+ };
140
+ }, {
141
+ listHeight: import("vue").Ref<number | undefined>;
142
+ listStyle: {
143
+ overflow: string;
144
+ };
145
+ keyToIndex: import("vue").ComputedRef<Map<any, any>>;
146
+ itemsStyle: import("vue").ComputedRef<(string | import("vue").CSSProperties | {
147
+ boxSizing: string;
148
+ width: string | undefined;
149
+ height: string;
150
+ minHeight: string;
151
+ paddingTop: string;
152
+ paddingBottom: string;
153
+ } | undefined)[]>;
154
+ visibleItemsStyle: import("vue").ComputedRef<{
155
+ transform: string;
156
+ }>;
157
+ viewportItems: import("vue").ComputedRef<import("vueuc").VVirtualListItemData[]>;
158
+ listElRef: import("vue").Ref<HTMLElement | null>;
159
+ itemsElRef: import("vue").Ref<Element | null>;
160
+ scrollTo: import("vueuc").VVirtualListScrollTo;
161
+ handleListResize: (entry: ResizeObserverEntry) => void;
162
+ handleListScroll: (e: UIEvent) => void;
163
+ handleListWheel: (e: WheelEvent) => void;
164
+ handleItemResize: (key: string | number, entry: ResizeObserverEntry) => void;
165
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
166
+ showScrollbar: {
167
+ type: BooleanConstructor;
168
+ default: boolean;
169
+ };
170
+ columns: {
171
+ type: import("vue").PropType<import("vueuc").VVirtualListColumn[]>;
172
+ default: () => never[];
173
+ };
174
+ renderCol: import("vue").PropType<import("vueuc").VVirtualListRenderCol>;
175
+ renderItemWithCols: import("vue").PropType<import("vueuc").VVirtualListRenderItemWithCols>;
176
+ items: {
177
+ type: import("vue").PropType<import("vueuc").VVirtualListItemData[]>;
178
+ default: () => never[];
179
+ };
180
+ itemSize: {
181
+ type: NumberConstructor;
182
+ required: true;
183
+ };
184
+ itemResizable: BooleanConstructor;
185
+ itemsStyle: import("vue").PropType<string | import("vue").CSSProperties>;
186
+ visibleItemsTag: {
187
+ type: import("vue").PropType<string | object>;
188
+ default: string;
189
+ };
190
+ visibleItemsProps: ObjectConstructor;
191
+ ignoreItemResize: BooleanConstructor;
192
+ onScroll: import("vue").PropType<(event: Event) => void>;
193
+ onWheel: import("vue").PropType<(event: WheelEvent) => void>;
194
+ onResize: import("vue").PropType<(entry: ResizeObserverEntry) => void>;
195
+ defaultScrollKey: (StringConstructor | NumberConstructor)[];
196
+ defaultScrollIndex: NumberConstructor;
197
+ keyField: {
198
+ type: StringConstructor;
199
+ default: string;
200
+ };
201
+ paddingTop: {
202
+ type: (StringConstructor | NumberConstructor)[];
203
+ default: number;
204
+ };
205
+ paddingBottom: {
206
+ type: (StringConstructor | NumberConstructor)[];
207
+ default: number;
208
+ };
209
+ }>>, {
210
+ columns: import("vueuc").VVirtualListColumn[];
211
+ showScrollbar: boolean;
212
+ items: import("vueuc").VVirtualListItemData[];
213
+ itemResizable: boolean;
214
+ visibleItemsTag: string | object;
215
+ ignoreItemResize: boolean;
216
+ keyField: string;
217
+ paddingTop: string | number;
218
+ paddingBottom: string | number;
219
+ }, {}>;
220
+ readonly scrollbar: import("../../utils/install").SFCWithInstall<import("vue").DefineComponent<{
221
+ readonly container: import("vue").PropType<() => HTMLElement | null | undefined>;
222
+ readonly content: import("vue").PropType<() => HTMLElement | null | undefined>;
223
+ readonly onScroll: import("vue").PropType<(e: Event) => void>;
224
+ }, {
225
+ sync: () => void;
226
+ handleContentResize: () => void;
227
+ handleContainerResize: () => void;
228
+ contentRef: import("vue").Ref<HTMLElement | null>;
229
+ yRailRef: import("vue").Ref<HTMLElement | null>;
230
+ containerRef: import("vue").Ref<HTMLElement | null>;
231
+ contentHeightRef: import("vue").Ref<Nullable<number>>;
232
+ containerHeightRef: import("vue").Ref<Nullable<number>>;
233
+ needYBarRef: import("vue").ComputedRef<boolean>;
234
+ yBarSizePxRef: import("vue").ComputedRef<string>;
235
+ handleYScrollMouseDown: (e: MouseEvent) => void;
236
+ yBarTopPxRef: import("vue").ComputedRef<string>;
237
+ handleScroll: (e: Event) => void;
238
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
239
+ readonly container: import("vue").PropType<() => HTMLElement | null | undefined>;
240
+ readonly content: import("vue").PropType<() => HTMLElement | null | undefined>;
241
+ readonly onScroll: import("vue").PropType<(e: Event) => void>;
242
+ }>>, {}, {}>>;
243
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
244
+ readonly items: {
245
+ readonly type: import("vue").PropType<import("vueuc").VVirtualListItemData[]>;
246
+ readonly default: () => never[];
247
+ };
248
+ readonly itemSize: {
249
+ readonly type: NumberConstructor;
250
+ readonly required: true;
251
+ };
252
+ readonly itemResizable: BooleanConstructor;
253
+ readonly paddingTop: {
254
+ readonly type: import("vue").PropType<number | string>;
255
+ readonly default: 0;
256
+ };
257
+ readonly paddingBottom: {
258
+ readonly type: import("vue").PropType<number | string>;
259
+ readonly default: 0;
260
+ };
261
+ readonly keyField: {
262
+ readonly type: StringConstructor;
263
+ readonly default: "key";
264
+ };
265
+ readonly onScroll: import("vue").PropType<() => void>;
266
+ readonly onWheel: import("vue").PropType<(event: WheelEvent) => void>;
267
+ readonly onResize: import("vue").PropType<(entry: ResizeObserverEntry) => void>;
268
+ }>>, {
269
+ readonly items: import("vueuc").VVirtualListItemData[];
270
+ readonly itemResizable: boolean;
271
+ readonly paddingTop: string | number;
272
+ readonly paddingBottom: string | number;
273
+ readonly keyField: string;
274
+ }, {}>;
275
+ export default _default;