@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,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;
@@ -0,0 +1,6 @@
1
+ import _sfc_main from './virtual-list.vue2.mjs';
2
+
3
+
4
+
5
+ export { _sfc_main as default };
6
+ //# sourceMappingURL=virtual-list.vue.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"virtual-list.vue.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
@@ -0,0 +1,79 @@
1
+ import { defineComponent, ref, openBlock, createBlock, unref, withCtx, createVNode, renderSlot } from 'vue';
2
+ import { VVirtualList } from 'vueuc';
3
+ import { KScrollBar } from '../../scroll-bar/index.mjs';
4
+ import { virtualListProps } from './types.mjs';
5
+
6
+ var _sfc_main = /* @__PURE__ */ defineComponent({
7
+ __name: "virtual-list",
8
+ props: virtualListProps,
9
+ setup(__props) {
10
+ const props = __props;
11
+ const virtualListInstRef = ref(null);
12
+ const scrollbarInstRef = ref(null);
13
+ function getScrollContainer() {
14
+ var _a;
15
+ return (_a = virtualListInstRef.value) == null ? void 0 : _a.listElRef;
16
+ }
17
+ function getScrollContent() {
18
+ var _a;
19
+ return (_a = virtualListInstRef.value) == null ? void 0 : _a.itemsElRef;
20
+ }
21
+ const syncScrollbar = () => {
22
+ var _a;
23
+ return (_a = scrollbarInstRef.value) == null ? void 0 : _a.sync();
24
+ };
25
+ function handleScroll() {
26
+ var _a;
27
+ (_a = props.onScroll) == null ? void 0 : _a.call(props);
28
+ syncScrollbar();
29
+ }
30
+ function handleResize() {
31
+ syncScrollbar();
32
+ }
33
+ return (_ctx, _cache) => {
34
+ return openBlock(), createBlock(
35
+ unref(KScrollBar),
36
+ {
37
+ ref_key: "scrollbarInstRef",
38
+ ref: scrollbarInstRef,
39
+ style: { "max-height": "300px" },
40
+ container: getScrollContainer,
41
+ content: getScrollContent
42
+ },
43
+ {
44
+ default: withCtx(() => [
45
+ createVNode(unref(VVirtualList), {
46
+ ref_key: "virtualListInstRef",
47
+ ref: virtualListInstRef,
48
+ items: _ctx.items,
49
+ style: { "height": "100%" },
50
+ "item-size": _ctx.itemSize,
51
+ "item-resizable": _ctx.itemResizable,
52
+ "show-scrollbar": false,
53
+ "padding-bottom": _ctx.paddingBottom,
54
+ "padding-top": _ctx.paddingTop,
55
+ "on-scroll": handleScroll,
56
+ "on-resize": handleResize
57
+ }, {
58
+ default: withCtx(({ item, index }) => [
59
+ renderSlot(_ctx.$slots, "default", {
60
+ item,
61
+ index
62
+ })
63
+ ]),
64
+ _: 3
65
+ /* FORWARDED */
66
+ }, 8, ["items", "item-size", "item-resizable", "padding-bottom", "padding-top"])
67
+ ]),
68
+ _: 3
69
+ /* FORWARDED */
70
+ },
71
+ 512
72
+ /* NEED_PATCH */
73
+ );
74
+ };
75
+ }
76
+ });
77
+
78
+ export { _sfc_main as default };
79
+ //# sourceMappingURL=virtual-list.vue2.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"virtual-list.vue2.mjs","sources":["../../../../../../packages/antdv/components/virtual-list/src/virtual-list.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { ref } from 'vue'\nimport { VVirtualList, type VirtualListInst } from 'vueuc'\nimport scrollbar from '../../scroll-bar'\nimport { virtualListProps } from './types'\n\nconst props = defineProps(virtualListProps)\nconst virtualListInstRef = ref<VirtualListInst | null>(null)\nconst scrollbarInstRef = ref<InstanceType<typeof scrollbar> | null>(null)\nfunction getScrollContainer(): HTMLElement | null | undefined {\n return virtualListInstRef.value?.listElRef\n}\nfunction getScrollContent(): HTMLElement | null | undefined {\n return virtualListInstRef.value?.itemsElRef\n}\nconst syncScrollbar = () => scrollbarInstRef.value?.sync()\nfunction handleScroll() {\n props.onScroll?.()\n syncScrollbar()\n}\nfunction handleResize() {\n syncScrollbar()\n}\n</script>\n\n<template>\n <scrollbar ref=\"scrollbarInstRef\" style=\"max-height: 300px\" :container=\"getScrollContainer\" :content=\"getScrollContent\">\n <VVirtualList\n ref=\"virtualListInstRef\"\n :items=\"items\"\n style=\"height: 100%\"\n :item-size=\"itemSize\"\n :item-resizable=\"itemResizable\"\n :show-scrollbar=\"false\"\n :padding-bottom=\"paddingBottom\"\n :padding-top=\"paddingTop\"\n :on-scroll=\"handleScroll\"\n :on-resize=\"handleResize\"\n >\n <template #default=\"{ item, index }\">\n <slot :item=\"item\" :index=\"index\" />\n </template>\n </VVirtualList>\n </scrollbar>\n</template>\n\n<style></style>\n"],"names":[],"mappings":";;;;;;;;;AAMA,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AACd,IAAM,MAAA,kBAAA,GAAqB,IAA4B,IAAI,CAAA,CAAA;AAC3D,IAAM,MAAA,gBAAA,GAAmB,IAA2C,IAAI,CAAA,CAAA;AACxE,IAAA,SAAS,kBAAqD,GAAA;;AAC5D,MAAO,OAAA,CAAA,EAAA,GAAA,kBAAA,CAAmB,UAAnB,IAA0B,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,SAAA,CAAA;AAAA,KACnC;AACA,IAAA,SAAS,gBAAmD,GAAA;;AAC1D,MAAO,OAAA,CAAA,EAAA,GAAA,kBAAA,CAAmB,UAAnB,IAA0B,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,UAAA,CAAA;AAAA,KACnC;AACA,IAAA,MAAM,gBAAgB,MAAG;;AAAG,MAAA,OAAA,CAAA,EAAA,GAAA,gBAAA,CAAiB,UAAjB,IAAwB,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,IAAA,EAAA,CAAA;AAAA,KAAA,CAAA;AACpD,IAAA,SAAS,YAAe,GAAA;;AACtB,MAAA,CAAA,EAAA,GAAA,KAAA,CAAM,QAAN,KAAA,IAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,IAAA,CAAA,KAAA,CAAA,CAAA;AACA,MAAc,aAAA,EAAA,CAAA;AAAA,KAChB;AACA,IAAA,SAAS,YAAe,GAAA;AACtB,MAAc,aAAA,EAAA,CAAA;AAAA,KAChB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,23 @@
1
+ import type { InjectionKey, Ref } from 'vue';
2
+ export declare const defaultNamespace = "king";
3
+ export declare const namespaceContextKey: InjectionKey<Ref<string | undefined>>;
4
+ export declare function useGetDerivedNamespace(namespaceOverrides?: Ref<string | undefined>): import("vue").ComputedRef<string>;
5
+ export declare function useNamespace(block: string, namespaceOverrides?: Ref<string | undefined>): {
6
+ namespace: import("vue").ComputedRef<string>;
7
+ b: (blockSuffix?: string) => string;
8
+ e: (element?: string) => string;
9
+ m: (modifier?: string) => string;
10
+ be: (blockSuffix?: string, element?: string) => string;
11
+ em: (element?: string, modifier?: string) => string;
12
+ bm: (blockSuffix?: string, modifier?: string) => string;
13
+ bem: (blockSuffix?: string, element?: string, modifier?: string) => string;
14
+ is: {
15
+ (name: string, state: boolean | undefined): string;
16
+ (name: string): string;
17
+ };
18
+ cssVar: (object: Record<string, string>) => Record<string, string>;
19
+ cssVarName: (name: string) => string;
20
+ cssVarBlock: (object: Record<string, string>) => Record<string, string>;
21
+ cssVarBlockName: (name: string) => string;
22
+ };
23
+ export type UseNamespaceReturn = ReturnType<typeof useNamespace>;
@@ -0,0 +1,78 @@
1
+ import { getCurrentInstance, inject, ref, computed, unref } from 'vue';
2
+
3
+ const defaultNamespace = "king";
4
+ const statePrefix = "is-";
5
+ function _bem(namespace, block, blockSuffix, element, modifier) {
6
+ let cls = `${namespace}-${block}`;
7
+ if (blockSuffix) {
8
+ cls += `-${blockSuffix}`;
9
+ }
10
+ if (element) {
11
+ cls += `__${element}`;
12
+ }
13
+ if (modifier) {
14
+ cls += `--${modifier}`;
15
+ }
16
+ return cls;
17
+ }
18
+ const namespaceContextKey = Symbol("namespaceContextKey");
19
+ function useGetDerivedNamespace(namespaceOverrides) {
20
+ const derivedNamespace = namespaceOverrides || (getCurrentInstance() ? inject(namespaceContextKey, ref(defaultNamespace)) : ref(defaultNamespace));
21
+ const namespace = computed(() => {
22
+ return unref(derivedNamespace) || defaultNamespace;
23
+ });
24
+ return namespace;
25
+ }
26
+ function useNamespace(block, namespaceOverrides) {
27
+ const namespace = useGetDerivedNamespace(namespaceOverrides);
28
+ const b = (blockSuffix = "") => _bem(namespace.value, block, blockSuffix, "", "");
29
+ const e = (element) => element ? _bem(namespace.value, block, "", element, "") : "";
30
+ const m = (modifier) => modifier ? _bem(namespace.value, block, "", "", modifier) : "";
31
+ const be = (blockSuffix, element) => blockSuffix && element ? _bem(namespace.value, block, blockSuffix, element, "") : "";
32
+ const em = (element, modifier) => element && modifier ? _bem(namespace.value, block, "", element, modifier) : "";
33
+ const bm = (blockSuffix, modifier) => blockSuffix && modifier ? _bem(namespace.value, block, blockSuffix, "", modifier) : "";
34
+ const bem = (blockSuffix, element, modifier) => blockSuffix && element && modifier ? _bem(namespace.value, block, blockSuffix, element, modifier) : "";
35
+ const is = (name, ...args) => {
36
+ const state = args.length >= 1 ? args[0] : true;
37
+ return name && state ? `${statePrefix}${name}` : "";
38
+ };
39
+ const cssVar = (object) => {
40
+ const styles = {};
41
+ for (const key in object) {
42
+ if (object[key]) {
43
+ styles[`--${namespace.value}-${key}`] = object[key];
44
+ }
45
+ }
46
+ return styles;
47
+ };
48
+ const cssVarBlock = (object) => {
49
+ const styles = {};
50
+ for (const key in object) {
51
+ if (object[key]) {
52
+ styles[`--${namespace.value}-${block}-${key}`] = object[key];
53
+ }
54
+ }
55
+ return styles;
56
+ };
57
+ const cssVarName = (name) => `--${namespace.value}-${name}`;
58
+ const cssVarBlockName = (name) => `--${namespace.value}-${block}-${name}`;
59
+ return {
60
+ namespace,
61
+ b,
62
+ e,
63
+ m,
64
+ be,
65
+ em,
66
+ bm,
67
+ bem,
68
+ is,
69
+ // css
70
+ cssVar,
71
+ cssVarName,
72
+ cssVarBlock,
73
+ cssVarBlockName
74
+ };
75
+ }
76
+
77
+ export { defaultNamespace, namespaceContextKey, useGetDerivedNamespace, useNamespace };
78
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sources":["../../../../../packages/antdv/hooks/use-namespace/index.ts"],"sourcesContent":["import { computed, getCurrentInstance, inject, ref, unref } from 'vue'\n\nimport type { InjectionKey, Ref } from 'vue'\n\nexport const defaultNamespace = 'king'\nconst statePrefix = 'is-'\n\nfunction _bem(namespace: string, block: string, blockSuffix: string, element: string, modifier: string) {\n let cls = `${namespace}-${block}`\n if (blockSuffix) {\n cls += `-${blockSuffix}`\n }\n if (element) {\n cls += `__${element}`\n }\n if (modifier) {\n cls += `--${modifier}`\n }\n return cls\n}\n\nexport const namespaceContextKey: InjectionKey<Ref<string | undefined>> = Symbol('namespaceContextKey')\n\nexport function useGetDerivedNamespace(namespaceOverrides?: Ref<string | undefined>) {\n const derivedNamespace = namespaceOverrides || (getCurrentInstance() ? inject(namespaceContextKey, ref(defaultNamespace)) : ref(defaultNamespace))\n const namespace = computed(() => {\n return unref(derivedNamespace) || defaultNamespace\n })\n return namespace\n}\n\nexport function useNamespace(block: string, namespaceOverrides?: Ref<string | undefined>) {\n const namespace = useGetDerivedNamespace(namespaceOverrides)\n const b = (blockSuffix = '') => _bem(namespace.value, block, blockSuffix, '', '')\n const e = (element?: string) => (element ? _bem(namespace.value, block, '', element, '') : '')\n const m = (modifier?: string) => (modifier ? _bem(namespace.value, block, '', '', modifier) : '')\n const be = (blockSuffix?: string, element?: string) => (blockSuffix && element ? _bem(namespace.value, block, blockSuffix, element, '') : '')\n const em = (element?: string, modifier?: string) => (element && modifier ? _bem(namespace.value, block, '', element, modifier) : '')\n const bm = (blockSuffix?: string, modifier?: string) => (blockSuffix && modifier ? _bem(namespace.value, block, blockSuffix, '', modifier) : '')\n const bem = (blockSuffix?: string, element?: string, modifier?: string) =>\n blockSuffix && element && modifier ? _bem(namespace.value, block, blockSuffix, element, modifier) : ''\n const is: {\n (name: string, state: boolean | undefined): string\n (name: string): string\n } = (name: string, ...args: [boolean | undefined] | []) => {\n const state = args.length >= 1 ? args[0]! : true\n return name && state ? `${statePrefix}${name}` : ''\n }\n\n // for css var\n // --el-xxx: value;\n const cssVar = (object: Record<string, string>) => {\n const styles: Record<string, string> = {}\n for (const key in object) {\n if (object[key]) {\n styles[`--${namespace.value}-${key}`] = object[key]\n }\n }\n return styles\n }\n // with block\n const cssVarBlock = (object: Record<string, string>) => {\n const styles: Record<string, string> = {}\n for (const key in object) {\n if (object[key]) {\n styles[`--${namespace.value}-${block}-${key}`] = object[key]\n }\n }\n return styles\n }\n\n const cssVarName = (name: string) => `--${namespace.value}-${name}`\n const cssVarBlockName = (name: string) => `--${namespace.value}-${block}-${name}`\n\n return {\n namespace,\n b,\n e,\n m,\n be,\n em,\n bm,\n bem,\n is,\n // css\n cssVar,\n cssVarName,\n cssVarBlock,\n cssVarBlockName\n }\n}\n\nexport type UseNamespaceReturn = ReturnType<typeof useNamespace>\n"],"names":[],"mappings":"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"}
package/es/index.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ import installer from './installer';
2
+ export * from './components';
3
+ export default installer;
package/es/index.mjs ADDED
@@ -0,0 +1,11 @@
1
+ import plugin from './installer.mjs';
2
+ import './components/index.mjs';
3
+ export { formType } from './components/form/component/form.mjs';
4
+ export { KForm } from './components/form/index.mjs';
5
+ export { virtualListProps } from './components/virtual-list/src/types.mjs';
6
+ export { KVirtualList } from './components/virtual-list/index.mjs';
7
+
8
+
9
+
10
+ export { plugin as default };
11
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;"}
@@ -0,0 +1,6 @@
1
+ import type { App } from 'vue';
2
+ export declare function install(app: App): any;
3
+ declare const plugin: {
4
+ install: typeof install;
5
+ };
6
+ export default plugin;
@@ -0,0 +1,14 @@
1
+ import './components/index.mjs';
2
+ import { KForm } from './components/form/index.mjs';
3
+ import { KVirtualList } from './components/virtual-list/index.mjs';
4
+
5
+ const component = [KForm, KVirtualList];
6
+ function install(app) {
7
+ component.forEach((i) => app.use(i));
8
+ }
9
+ const plugin = {
10
+ install
11
+ };
12
+
13
+ export { plugin as default, install };
14
+ //# sourceMappingURL=installer.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"installer.mjs","sources":["../../../packages/antdv/installer.ts"],"sourcesContent":["/*\n * @Description:\n * @Version: 2.0\n * @Autor: caohao\n * @Date: 2024-09-16 23:00:22\n * @LastEditors: error: error: git config user.name & please set dead value or install git && error: git config user.email & please set dead value or install git & please set dead value or install git\n * @LastEditTime: 2024-10-18 13:49:00\n */\nimport type { App, Plugin } from 'vue'\nimport { KForm, KVirtualList } from './components'\n\nconst component = [KForm, KVirtualList] as Plugin[]\nexport function install(app: App): any {\n component.forEach(i => app.use(i))\n}\nconst plugin = {\n install\n}\nexport default plugin\n"],"names":[],"mappings":";;;;AAWA,MAAM,SAAA,GAAY,CAAC,KAAA,EAAO,YAAY,CAAA,CAAA;AAC/B,SAAS,QAAQ,GAAe,EAAA;AACrC,EAAA,SAAA,CAAU,OAAQ,CAAA,CAAA,CAAA,KAAK,GAAI,CAAA,GAAA,CAAI,CAAC,CAAC,CAAA,CAAA;AACnC,CAAA;AACA,MAAM,MAAS,GAAA;AAAA,EACb,OAAA;AACF;;;;"}
@@ -0,0 +1 @@
1
+ import '@king-one/antdv/theme-chalk/src/base.scss';
@@ -0,0 +1,5 @@
1
+ 'use strict';
2
+
3
+ require('@king-one/antdv/theme-chalk/src/base.scss');
4
+
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
@@ -0,0 +1,10 @@
1
+ import type { RuleItem } from 'async-validator';
2
+ import type { PropType } from 'vue';
3
+ export declare const formType: {
4
+ readonly model: {
5
+ readonly type: ObjectConstructor;
6
+ };
7
+ readonly rules: {
8
+ readonly type: PropType<Record<string, RuleItem[]>>;
9
+ };
10
+ };
@@ -0,0 +1,13 @@
1
+ 'use strict';
2
+
3
+ const formType = {
4
+ model: {
5
+ type: Object
6
+ },
7
+ rules: {
8
+ type: Object
9
+ }
10
+ };
11
+
12
+ exports.formType = formType;
13
+ //# sourceMappingURL=form.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"form.js","sources":["../../../../../../packages/antdv/components/form/component/form.ts"],"sourcesContent":["/*\n * @Description:\n * @Version: 2.0\n * @Autor: caohao\n * @Date: 2024-09-16 17:25:58\n * @LastEditors: caohao\n * @LastEditTime: 2024-09-16 22:46:07\n */\nimport type {\n RuleItem\n} from 'async-validator'\nimport type { PropType } from 'vue'\n\nexport const formType = {\n model: {\n type: Object\n },\n rules: {\n type: Object as PropType<Record<string, RuleItem[]>>\n }\n} as const\n"],"names":[],"mappings":";;AAaO,MAAM,QAAW,GAAA;AAAA,EACtB,KAAO,EAAA;AAAA,IACL,IAAM,EAAA,MAAA;AAAA,GACR;AAAA,EACA,KAAO,EAAA;AAAA,IACL,IAAM,EAAA,MAAA;AAAA,GACR;AACF;;;;"}
@@ -0,0 +1,16 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ readonly model: {
3
+ readonly type: ObjectConstructor;
4
+ };
5
+ readonly rules: {
6
+ readonly type: import("vue").PropType<Record<string, import("async-validator").RuleItem[]>>;
7
+ };
8
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
9
+ readonly model: {
10
+ readonly type: ObjectConstructor;
11
+ };
12
+ readonly rules: {
13
+ readonly type: import("vue").PropType<Record<string, import("async-validator").RuleItem[]>>;
14
+ };
15
+ }>>, {}, {}>;
16
+ export default _default;
@@ -0,0 +1,10 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var form_vue_vue_type_script_setup_true_lang = require('./form.vue2.js');
6
+
7
+
8
+
9
+ exports.default = form_vue_vue_type_script_setup_true_lang.default;
10
+ //# sourceMappingURL=form.vue.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"form.vue.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
@@ -0,0 +1,30 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var vue = require('vue');
6
+ var form = require('./form.js');
7
+
8
+ const _hoisted_1 = { class: "king-form" };
9
+ const _hoisted_2 = /* @__PURE__ */ vue.createElementVNode(
10
+ "div",
11
+ null,
12
+ "\u4F1F\u5927\u7684\u597D\u6B4C",
13
+ -1
14
+ /* HOISTED */
15
+ );
16
+ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
17
+ __name: "form",
18
+ props: form.formType,
19
+ setup(__props) {
20
+ return (_ctx, _cache) => {
21
+ return vue.openBlock(), vue.createElementBlock("form", _hoisted_1, [
22
+ _hoisted_2,
23
+ vue.renderSlot(_ctx.$slots, "default")
24
+ ]);
25
+ };
26
+ }
27
+ });
28
+
29
+ exports.default = _sfc_main;
30
+ //# sourceMappingURL=form.vue2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"form.vue2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}