eco-vue-js 0.5.3 → 0.5.5
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/Button/WButton.vue.d.ts +4 -3
- package/dist/components/Button/WButton.vue.d.ts.map +1 -1
- package/dist/components/Button/WButton.vue.js +2 -1
- package/dist/components/Button/WButtonAction.vue.d.ts +6 -5
- package/dist/components/Button/WButtonAction.vue.d.ts.map +1 -1
- package/dist/components/Button/WButtonAction.vue.js +2 -7
- package/dist/components/Button/WButtonMore.vue.d.ts.map +1 -1
- package/dist/components/Button/WButtonMore.vue.js +2 -1
- package/dist/components/Button/WButtonMoreItem.vue.d.ts +26 -2
- package/dist/components/Button/WButtonMoreItem.vue.d.ts.map +1 -1
- package/dist/components/Button/WButtonMoreItem.vue.js +4 -3
- package/dist/components/Button/WButtonSelection.vue.d.ts +10 -13
- package/dist/components/Button/WButtonSelection.vue.d.ts.map +1 -1
- package/dist/components/Button/WButtonSelection.vue.js +31 -15
- package/dist/components/Checkbox/WCheckbox.vue.d.ts +2 -0
- package/dist/components/Checkbox/WCheckbox.vue.d.ts.map +1 -1
- package/dist/components/Checkbox/WCheckbox.vue.js +6 -3
- package/dist/components/DropdownMenu/WDropdownMenu.vue.d.ts +2 -0
- package/dist/components/DropdownMenu/WDropdownMenu.vue.d.ts.map +1 -1
- package/dist/components/DropdownMenu/WDropdownMenu.vue.js +4 -3
- package/dist/components/ImageViewer/WImageViewer.vue.d.ts.map +1 -1
- package/dist/components/ImageViewer/WImageViewer.vue.js +2 -0
- package/dist/components/InfiniteList/WInfiniteList.vue.d.ts +48 -15
- package/dist/components/InfiniteList/WInfiniteList.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/WInfiniteList.vue.js +81 -32
- package/dist/components/InfiniteList/WInfiniteListPages.vue.d.ts +9 -9
- package/dist/components/InfiniteList/WInfiniteListPages.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/WInfiniteListPages.vue.js +17 -17
- package/dist/components/InfiniteList/components/EmptyComponent.vue.d.ts +10 -0
- package/dist/components/InfiniteList/components/EmptyComponent.vue.d.ts.map +1 -0
- package/dist/components/InfiniteList/components/EmptyComponent.vue.js +11 -0
- package/dist/components/InfiniteList/components/InfiniteListPage.vue.d.ts +9 -9
- package/dist/components/InfiniteList/components/InfiniteListPage.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/components/InfiniteListPage.vue.js +49 -64
- package/dist/components/InfiniteList/components/InfiniteListPageSelectItem.vue.d.ts +33 -0
- package/dist/components/InfiniteList/components/InfiniteListPageSelectItem.vue.d.ts.map +1 -0
- package/dist/components/InfiniteList/components/InfiniteListPageSelectItem.vue.js +27 -0
- package/dist/components/InfiniteList/components/InfiniteListPageSelectItem.vue2.js +5 -0
- package/dist/components/InfiniteList/models/injection.d.ts +16 -0
- package/dist/components/InfiniteList/models/injection.d.ts.map +1 -0
- package/dist/components/InfiniteList/models/injection.js +4 -0
- package/dist/components/InfiniteList/use/useSelected.d.ts +14 -0
- package/dist/components/InfiniteList/use/useSelected.d.ts.map +1 -0
- package/dist/components/InfiniteList/use/useSelected.js +159 -0
- package/dist/components/Input/WInput.vue.d.ts +3 -3
- package/dist/components/Input/WInputAsync.vue.d.ts +3 -3
- package/dist/components/Input/WInputOptions.vue.d.ts +3 -3
- package/dist/components/Input/WInputOptions.vue.d.ts.map +1 -1
- package/dist/components/Input/WInputSuggest.vue.d.ts +3 -3
- package/dist/components/Link/WLink.vue.d.ts +3 -2
- package/dist/components/Link/WLink.vue.d.ts.map +1 -1
- package/dist/components/Link/WLink.vue.js +2 -1
- package/dist/components/Link/WLinkArrow.vue.d.ts +2 -1
- package/dist/components/Link/WLinkArrow.vue.d.ts.map +1 -1
- package/dist/components/Link/WLinkArrow.vue.js +2 -1
- package/dist/components/ListCard/WListCard.vue.d.ts +10 -18
- package/dist/components/ListCard/WListCard.vue.d.ts.map +1 -1
- package/dist/components/ListCard/WListCard.vue.js +50 -25
- package/dist/components/MenuItem/WMenuItem.vue.d.ts +23 -2
- package/dist/components/MenuItem/WMenuItem.vue.d.ts.map +1 -1
- package/dist/components/MenuItem/WMenuItem.vue.js +3 -2
- package/dist/components/Modal/WModal.vue.d.ts.map +1 -1
- package/dist/components/Nav/WNavItem.vue.d.ts +2 -1
- package/dist/components/Nav/WNavItem.vue.d.ts.map +1 -1
- package/dist/components/Nav/WNavItem.vue.js +2 -1
- package/dist/components/Nav/WNavItemExpand.vue.d.ts +2 -1
- package/dist/components/Nav/WNavItemExpand.vue.d.ts.map +1 -1
- package/dist/components/Nav/WNavItemExpand.vue.js +2 -1
- package/dist/components/Notify/components/NotifyCard.vue.d.ts +25 -4
- package/dist/components/Notify/components/NotifyCard.vue.d.ts.map +1 -1
- package/dist/components/Notify/components/NotifyCard.vue.js +4 -3
- package/dist/components/Notify/models/types.d.ts +1 -0
- package/dist/components/Notify/models/types.d.ts.map +1 -1
- package/dist/components/Select/WSelect.vue.d.ts +3 -3
- package/dist/components/Select/WSelect.vue.d.ts.map +1 -1
- package/dist/components/Select/WSelectAsync.vue.d.ts +3 -3
- package/dist/components/Select/WSelectAsync.vue.d.ts.map +1 -1
- package/dist/components/Select/WSelectAsyncList.vue.d.ts +3 -3
- package/dist/components/Select/WSelectAsyncList.vue.d.ts.map +1 -1
- package/dist/components/Select/WSelectAsyncSingle.vue.d.ts +3 -3
- package/dist/components/Select/WSelectAsyncSingle.vue.d.ts.map +1 -1
- package/dist/components/Select/WSelectSingle.vue.d.ts +3 -3
- package/dist/components/Select/WSelectSingle.vue.d.ts.map +1 -1
- package/dist/components/Select/components/SelectAsyncList.vue.d.ts +3 -3
- package/dist/components/Select/components/SelectAsyncList.vue.d.ts.map +1 -1
- package/dist/components/Select/components/SelectOption.vue.d.ts +3 -3
- package/dist/components/Select/components/SelectOption.vue.d.ts.map +1 -1
- package/dist/types/global.d.ts +13 -10
- package/dist/types/types.d.ts +9 -0
- package/dist/utils/Modal.d.ts +8 -5
- package/dist/utils/Modal.d.ts.map +1 -1
- package/dist/utils/useDefaultQuery.d.ts +1 -1
- package/dist/utils/useDefaultQuery.d.ts.map +1 -1
- package/package.json +4 -1
@@ -1,10 +1,12 @@
|
|
1
1
|
declare const _default: <Model extends string | number, Data extends DefaultData, ApiError, QueryParams>(__VLS_props: {
|
2
|
+
count?: number | undefined;
|
3
|
+
reverse?: boolean | undefined;
|
4
|
+
onSelect?: ((values: Model[]) => any) | undefined;
|
2
5
|
transition?: boolean | undefined;
|
6
|
+
"onUpdate:count"?: ((value: number) => any) | undefined;
|
3
7
|
valueGetter?: ((data: Data) => Model) | undefined;
|
4
8
|
wrap?: boolean | undefined;
|
5
|
-
"onUpdate:count"?: ((value: number) => any) | undefined;
|
6
9
|
scrollingElement?: Element | null | undefined;
|
7
|
-
"onUpdate:selected"?: ((values: Model[]) => any) | undefined;
|
8
10
|
queryParams: QueryParams;
|
9
11
|
selected?: Model[] | undefined;
|
10
12
|
selectOnly?: boolean | undefined;
|
@@ -15,20 +17,25 @@ declare const _default: <Model extends string | number, Data extends DefaultData
|
|
15
17
|
hidePageTitle?: boolean | undefined;
|
16
18
|
noGap?: boolean | undefined;
|
17
19
|
emptyStub?: string | undefined;
|
18
|
-
reverseSelection?: boolean | undefined;
|
19
|
-
allowPageSelection?: boolean | undefined;
|
20
20
|
minHeight?: boolean | undefined;
|
21
21
|
pageClass?: string | undefined;
|
22
22
|
refetchInterval?: number | false | undefined;
|
23
23
|
queryOptions?: Partial<Parameters<UseQueryPaginated<Data, ApiError, QueryParams>>[1]>;
|
24
|
+
reverseSelection?: boolean | undefined;
|
25
|
+
allowPageSelection?: boolean | undefined;
|
24
26
|
maxPages?: number | undefined;
|
25
27
|
"onUpdate:page"?: ((value: number | undefined) => any) | undefined;
|
26
28
|
skipScrollTarget?: boolean | undefined;
|
27
29
|
pageLength?: number | undefined;
|
28
30
|
excludeParams?: (keyof QueryParams)[] | undefined;
|
31
|
+
allowSelect?: boolean | undefined;
|
32
|
+
allowSelectRange?: boolean | undefined;
|
29
33
|
"onUpdate:header-padding"?: ((value: number) => any) | undefined;
|
34
|
+
"onSelect-reverse"?: ((values: Model[]) => any) | undefined;
|
35
|
+
"onSelect-range"?: ((value: SelectedRange<Model>) => any) | undefined;
|
30
36
|
headerMargin?: number | undefined;
|
31
37
|
headerTopIgnore?: boolean | undefined;
|
38
|
+
selectedRange?: SelectedRange<Model> | undefined;
|
32
39
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: {
|
33
40
|
attrs: any;
|
34
41
|
slots: Readonly<{
|
@@ -47,6 +54,7 @@ declare const _default: <Model extends string | number, Data extends DefaultData
|
|
47
54
|
}) => void) | undefined;
|
48
55
|
header?: ((props: {
|
49
56
|
goto: (page: number, itemIndex?: number) => void;
|
57
|
+
selectAllValue: boolean | null;
|
50
58
|
}) => void) | undefined;
|
51
59
|
}> & {
|
52
60
|
default?: ((props: {
|
@@ -64,24 +72,29 @@ declare const _default: <Model extends string | number, Data extends DefaultData
|
|
64
72
|
}) => void) | undefined;
|
65
73
|
header?: ((props: {
|
66
74
|
goto: (page: number, itemIndex?: number) => void;
|
75
|
+
selectAllValue: boolean | null;
|
67
76
|
}) => void) | undefined;
|
68
77
|
};
|
69
78
|
emit: {
|
70
79
|
(e: 'update:page', value: number | undefined): void;
|
71
80
|
(e: 'update:header-padding', value: number): void;
|
72
81
|
(e: 'update:count', value: number): void;
|
73
|
-
(e: '
|
82
|
+
(e: 'select', values: Model[]): void;
|
83
|
+
(e: 'select-reverse', values: Model[]): void;
|
84
|
+
(e: 'select-range', value: SelectedRange<Model>): void;
|
74
85
|
};
|
75
86
|
} | undefined, __VLS_expose?: ((exposed: import("vue").ShallowUnwrapRef<{
|
76
87
|
resetPage(): void;
|
77
88
|
}>) => void) | undefined, __VLS_setup?: Promise<{
|
78
89
|
props: {
|
90
|
+
count?: number | undefined;
|
91
|
+
reverse?: boolean | undefined;
|
92
|
+
onSelect?: ((values: Model[]) => any) | undefined;
|
79
93
|
transition?: boolean | undefined;
|
94
|
+
"onUpdate:count"?: ((value: number) => any) | undefined;
|
80
95
|
valueGetter?: ((data: Data) => Model) | undefined;
|
81
96
|
wrap?: boolean | undefined;
|
82
|
-
"onUpdate:count"?: ((value: number) => any) | undefined;
|
83
97
|
scrollingElement?: Element | null | undefined;
|
84
|
-
"onUpdate:selected"?: ((values: Model[]) => any) | undefined;
|
85
98
|
queryParams: QueryParams;
|
86
99
|
selected?: Model[] | undefined;
|
87
100
|
selectOnly?: boolean | undefined;
|
@@ -92,20 +105,25 @@ declare const _default: <Model extends string | number, Data extends DefaultData
|
|
92
105
|
hidePageTitle?: boolean | undefined;
|
93
106
|
noGap?: boolean | undefined;
|
94
107
|
emptyStub?: string | undefined;
|
95
|
-
reverseSelection?: boolean | undefined;
|
96
|
-
allowPageSelection?: boolean | undefined;
|
97
108
|
minHeight?: boolean | undefined;
|
98
109
|
pageClass?: string | undefined;
|
99
110
|
refetchInterval?: number | false | undefined;
|
100
111
|
queryOptions?: Partial<Parameters<UseQueryPaginated<Data, ApiError, QueryParams>>[1]>;
|
112
|
+
reverseSelection?: boolean | undefined;
|
113
|
+
allowPageSelection?: boolean | undefined;
|
101
114
|
maxPages?: number | undefined;
|
102
115
|
"onUpdate:page"?: ((value: number | undefined) => any) | undefined;
|
103
116
|
skipScrollTarget?: boolean | undefined;
|
104
117
|
pageLength?: number | undefined;
|
105
118
|
excludeParams?: (keyof QueryParams)[] | undefined;
|
119
|
+
allowSelect?: boolean | undefined;
|
120
|
+
allowSelectRange?: boolean | undefined;
|
106
121
|
"onUpdate:header-padding"?: ((value: number) => any) | undefined;
|
122
|
+
"onSelect-reverse"?: ((values: Model[]) => any) | undefined;
|
123
|
+
"onSelect-range"?: ((value: SelectedRange<Model>) => any) | undefined;
|
107
124
|
headerMargin?: number | undefined;
|
108
125
|
headerTopIgnore?: boolean | undefined;
|
126
|
+
selectedRange?: SelectedRange<Model> | undefined;
|
109
127
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
110
128
|
expose(exposed: import("vue").ShallowUnwrapRef<{
|
111
129
|
resetPage(): void;
|
@@ -127,6 +145,7 @@ declare const _default: <Model extends string | number, Data extends DefaultData
|
|
127
145
|
}) => void) | undefined;
|
128
146
|
header?: ((props: {
|
129
147
|
goto: (page: number, itemIndex?: number) => void;
|
148
|
+
selectAllValue: boolean | null;
|
130
149
|
}) => void) | undefined;
|
131
150
|
}> & {
|
132
151
|
default?: ((props: {
|
@@ -144,25 +163,30 @@ declare const _default: <Model extends string | number, Data extends DefaultData
|
|
144
163
|
}) => void) | undefined;
|
145
164
|
header?: ((props: {
|
146
165
|
goto: (page: number, itemIndex?: number) => void;
|
166
|
+
selectAllValue: boolean | null;
|
147
167
|
}) => void) | undefined;
|
148
168
|
};
|
149
169
|
emit: {
|
150
170
|
(e: 'update:page', value: number | undefined): void;
|
151
171
|
(e: 'update:header-padding', value: number): void;
|
152
172
|
(e: 'update:count', value: number): void;
|
153
|
-
(e: '
|
173
|
+
(e: 'select', values: Model[]): void;
|
174
|
+
(e: 'select-reverse', values: Model[]): void;
|
175
|
+
(e: 'select-range', value: SelectedRange<Model>): void;
|
154
176
|
};
|
155
177
|
}>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
156
178
|
[key: string]: any;
|
157
179
|
}> & {
|
158
180
|
__ctx?: {
|
159
181
|
props: {
|
182
|
+
count?: number | undefined;
|
183
|
+
reverse?: boolean | undefined;
|
184
|
+
onSelect?: ((values: Model[]) => any) | undefined;
|
160
185
|
transition?: boolean | undefined;
|
186
|
+
"onUpdate:count"?: ((value: number) => any) | undefined;
|
161
187
|
valueGetter?: ((data: Data) => Model) | undefined;
|
162
188
|
wrap?: boolean | undefined;
|
163
|
-
"onUpdate:count"?: ((value: number) => any) | undefined;
|
164
189
|
scrollingElement?: Element | null | undefined;
|
165
|
-
"onUpdate:selected"?: ((values: Model[]) => any) | undefined;
|
166
190
|
queryParams: QueryParams;
|
167
191
|
selected?: Model[] | undefined;
|
168
192
|
selectOnly?: boolean | undefined;
|
@@ -173,20 +197,25 @@ declare const _default: <Model extends string | number, Data extends DefaultData
|
|
173
197
|
hidePageTitle?: boolean | undefined;
|
174
198
|
noGap?: boolean | undefined;
|
175
199
|
emptyStub?: string | undefined;
|
176
|
-
reverseSelection?: boolean | undefined;
|
177
|
-
allowPageSelection?: boolean | undefined;
|
178
200
|
minHeight?: boolean | undefined;
|
179
201
|
pageClass?: string | undefined;
|
180
202
|
refetchInterval?: number | false | undefined;
|
181
203
|
queryOptions?: Partial<Parameters<UseQueryPaginated<Data, ApiError, QueryParams>>[1]>;
|
204
|
+
reverseSelection?: boolean | undefined;
|
205
|
+
allowPageSelection?: boolean | undefined;
|
182
206
|
maxPages?: number | undefined;
|
183
207
|
"onUpdate:page"?: ((value: number | undefined) => any) | undefined;
|
184
208
|
skipScrollTarget?: boolean | undefined;
|
185
209
|
pageLength?: number | undefined;
|
186
210
|
excludeParams?: (keyof QueryParams)[] | undefined;
|
211
|
+
allowSelect?: boolean | undefined;
|
212
|
+
allowSelectRange?: boolean | undefined;
|
187
213
|
"onUpdate:header-padding"?: ((value: number) => any) | undefined;
|
214
|
+
"onSelect-reverse"?: ((values: Model[]) => any) | undefined;
|
215
|
+
"onSelect-range"?: ((value: SelectedRange<Model>) => any) | undefined;
|
188
216
|
headerMargin?: number | undefined;
|
189
217
|
headerTopIgnore?: boolean | undefined;
|
218
|
+
selectedRange?: SelectedRange<Model> | undefined;
|
190
219
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
191
220
|
expose(exposed: import("vue").ShallowUnwrapRef<{
|
192
221
|
resetPage(): void;
|
@@ -208,6 +237,7 @@ declare const _default: <Model extends string | number, Data extends DefaultData
|
|
208
237
|
}) => void) | undefined;
|
209
238
|
header?: ((props: {
|
210
239
|
goto: (page: number, itemIndex?: number) => void;
|
240
|
+
selectAllValue: boolean | null;
|
211
241
|
}) => void) | undefined;
|
212
242
|
}> & {
|
213
243
|
default?: ((props: {
|
@@ -225,13 +255,16 @@ declare const _default: <Model extends string | number, Data extends DefaultData
|
|
225
255
|
}) => void) | undefined;
|
226
256
|
header?: ((props: {
|
227
257
|
goto: (page: number, itemIndex?: number) => void;
|
258
|
+
selectAllValue: boolean | null;
|
228
259
|
}) => void) | undefined;
|
229
260
|
};
|
230
261
|
emit: {
|
231
262
|
(e: 'update:page', value: number | undefined): void;
|
232
263
|
(e: 'update:header-padding', value: number): void;
|
233
264
|
(e: 'update:count', value: number): void;
|
234
|
-
(e: '
|
265
|
+
(e: 'select', values: Model[]): void;
|
266
|
+
(e: 'select-reverse', values: Model[]): void;
|
267
|
+
(e: 'select-range', value: SelectedRange<Model>): void;
|
235
268
|
};
|
236
269
|
} | undefined;
|
237
270
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WInfiniteList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/InfiniteList/WInfiniteList.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"WInfiniteList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/InfiniteList/WInfiniteList.vue"],"names":[],"mappings":"AAkFA;;;;;;;0BA4ZyB,IAAI,KAAK,KAAK;;;iBAxBtB,WAAW;;;;gBAFZ,kBAAkB,IAAI,EAAE,QAAQ,EAAE,WAAW,CAAC;2BACnC,OAAO,KAAK,OAAO;;;;;;;;mBAiB3B,QAAQ,WAAW,kBAAkB,IAAI,EAAE,QAAQ,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;;;;;;;;;;;;;;;;;WAwBlF,GAAG;;;kBAhRA,IAAI;+BACS,IAAI,GAAG,SAAS,KAAK,IAAI;sBAClC,OAAO;qBACR,MAAM,IAAI;;;mBAGZ,OAAO;kBACR,OAAO;uBACF,OAAO;kBACZ,MAAM;mBACL,MAAM;cACT,IAAI;;yBA9EQ,MAAM,cAAc,MAAM;;cAkFtC,IAAI;;;kBAfF,IAAI;+BACS,IAAI,GAAG,SAAS,KAAK,IAAI;sBAClC,OAAO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6 +1,9 @@
|
|
1
|
-
import { defineComponent, ref, watch, onMounted, onBeforeUnmount, openBlock, createElementBlock, Fragment, createElementVNode, normalizeClass, unref, renderSlot, createCommentVNode, createVNode, withCtx } from 'vue';
|
1
|
+
import { defineComponent, ref, toRef, provide, watch, onMounted, onBeforeUnmount, openBlock, createElementBlock, Fragment, createElementVNode, normalizeClass, unref, renderSlot, normalizeProps, guardReactiveProps, createCommentVNode, createVNode, withCtx } from 'vue';
|
2
2
|
import { useInfiniteListHeader } from './use/useInfiniteListHeader.js';
|
3
3
|
import _sfc_main$1 from './WInfiniteListPages.vue.js';
|
4
|
+
import _sfc_main$2 from './components/InfiniteListPageSelectItem.vue.js';
|
5
|
+
import { useSelected } from './use/useSelected.js';
|
6
|
+
import { wInfiniteListSelection } from './models/injection.js';
|
4
7
|
|
5
8
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
6
9
|
__name: "WInfiniteList",
|
@@ -12,27 +15,32 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
12
15
|
hidePageTitle: { type: Boolean },
|
13
16
|
headerMargin: { default: 0 },
|
14
17
|
skipScrollTarget: { type: Boolean },
|
15
|
-
selected: { default: void 0 },
|
16
18
|
wrap: { type: Boolean },
|
17
19
|
noGap: { type: Boolean },
|
18
20
|
transition: { type: Boolean },
|
19
|
-
pageLength: { default: void 0 },
|
20
21
|
scrollingElement: { default: void 0 },
|
21
22
|
headerTopIgnore: { type: Boolean },
|
22
23
|
minHeight: { type: Boolean },
|
23
24
|
excludeParams: { default: void 0 },
|
24
25
|
emptyStub: { default: void 0 },
|
25
|
-
selectOnly: { type: Boolean },
|
26
|
-
unselectOnly: { type: Boolean },
|
27
|
-
reverseSelection: { type: Boolean },
|
28
|
-
allowPageSelection: { type: Boolean },
|
29
26
|
pageClass: { default: void 0 },
|
30
27
|
maxPages: { default: void 0 },
|
31
28
|
refetchInterval: { type: [Number, Boolean], default: void 0 },
|
29
|
+
queryOptions: { default: void 0 },
|
30
|
+
pageLength: { default: 24 },
|
31
|
+
count: { default: 0 },
|
32
|
+
allowSelect: { type: Boolean },
|
33
|
+
allowSelectRange: { type: Boolean },
|
32
34
|
valueGetter: { type: Function, default: (item) => item.id },
|
33
|
-
|
35
|
+
selected: { default: () => [] },
|
36
|
+
selectedRange: { default: void 0 },
|
37
|
+
reverse: { type: Boolean },
|
38
|
+
selectOnly: { type: Boolean },
|
39
|
+
unselectOnly: { type: Boolean },
|
40
|
+
reverseSelection: { type: Boolean },
|
41
|
+
allowPageSelection: { type: Boolean }
|
34
42
|
},
|
35
|
-
emits: ["update:page", "update:header-padding", "update:count", "
|
43
|
+
emits: ["update:page", "update:header-padding", "update:count", "select", "select-reverse", "select-range"],
|
36
44
|
setup(__props, { expose: __expose, emit: __emit }) {
|
37
45
|
const props = __props;
|
38
46
|
const emit = __emit;
|
@@ -44,6 +52,33 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
44
52
|
infiniteListPages.value?.goto(page, itemIndex);
|
45
53
|
};
|
46
54
|
const { indicator, header, headerTop, headerHeight, isIntersecting } = useInfiniteListHeader(props.scrollingElement);
|
55
|
+
const {
|
56
|
+
setSelectedRange,
|
57
|
+
getIsSelected,
|
58
|
+
getIsSelectedBetween,
|
59
|
+
allowSelectHover,
|
60
|
+
setRangeHover,
|
61
|
+
setSelectedCursor,
|
62
|
+
toggleSelected,
|
63
|
+
selectedCount,
|
64
|
+
selectAllValue
|
65
|
+
} = useSelected(
|
66
|
+
toRef(props, "count"),
|
67
|
+
toRef(props, "pageLength"),
|
68
|
+
toRef(props, "selected"),
|
69
|
+
toRef(props, "reverse"),
|
70
|
+
toRef(props, "selectedRange"),
|
71
|
+
(value) => emit("select", value),
|
72
|
+
(value) => emit("select-reverse", value),
|
73
|
+
(value) => emit("select-range", value)
|
74
|
+
);
|
75
|
+
provide(wInfiniteListSelection, {
|
76
|
+
allowSelect: toRef(props, "allowSelect"),
|
77
|
+
allowSelectRange: toRef(props, "allowSelectRange"),
|
78
|
+
allowSelectHover,
|
79
|
+
selectedCount,
|
80
|
+
clearSelected: () => emit("select", [])
|
81
|
+
});
|
47
82
|
watch(isIntersecting, (value) => {
|
48
83
|
if (!value && headerHeight.value) {
|
49
84
|
updateHeaderPadding(headerHeight.value - props.headerMargin);
|
@@ -79,7 +114,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
79
114
|
"z-20": !unref(isIntersecting)
|
80
115
|
}])
|
81
116
|
}, [
|
82
|
-
renderSlot(_ctx.$slots, "header", { goto })
|
117
|
+
renderSlot(_ctx.$slots, "header", normalizeProps(guardReactiveProps({ selectAllValue: unref(selectAllValue), goto })))
|
83
118
|
], 2)
|
84
119
|
], 64)) : createCommentVNode("", true),
|
85
120
|
createVNode(_sfc_main$1, {
|
@@ -92,7 +127,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
92
127
|
"skip-scroll-target": _ctx.skipScrollTarget,
|
93
128
|
"skeleton-length": _ctx.skeletonLength,
|
94
129
|
"hide-page-title": _ctx.hidePageTitle,
|
95
|
-
selected: _ctx.selected,
|
96
130
|
wrap: _ctx.wrap,
|
97
131
|
"no-gap": _ctx.noGap,
|
98
132
|
transition: _ctx.transition,
|
@@ -102,36 +136,51 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
102
136
|
"min-height": _ctx.minHeight,
|
103
137
|
"exclude-params": _ctx.excludeParams,
|
104
138
|
"empty-stub": _ctx.emptyStub,
|
105
|
-
"select-only": _ctx.selectOnly,
|
106
|
-
"unselect-only": _ctx.unselectOnly,
|
107
|
-
"reverse-selection": _ctx.reverseSelection,
|
108
|
-
"allow-page-selection": _ctx.allowPageSelection,
|
109
139
|
"page-class": _ctx.pageClass,
|
110
140
|
"max-pages": _ctx.maxPages,
|
111
141
|
"refetch-interval": _ctx.refetchInterval,
|
112
|
-
"value-getter": _ctx.valueGetter,
|
113
142
|
"query-options": _ctx.queryOptions,
|
114
|
-
|
115
|
-
"
|
143
|
+
selected: _ctx.selected,
|
144
|
+
"value-getter": _ctx.valueGetter,
|
145
|
+
"select-only": _ctx.selectOnly,
|
146
|
+
"unselect-only": _ctx.unselectOnly,
|
147
|
+
"reverse-selection": _ctx.reverseSelection,
|
148
|
+
"allow-page-selection": _ctx.allowPageSelection,
|
149
|
+
"onUpdate:selected": _cache[0] || (_cache[0] = ($event) => _ctx.$emit("select", $event)),
|
150
|
+
"onUpdate:count": _cache[1] || (_cache[1] = ($event) => _ctx.$emit("update:count", $event)),
|
116
151
|
"onUpdate:page": _cache[2] || (_cache[2] = ($event) => _ctx.$emit("update:page", $event))
|
117
152
|
}, {
|
118
153
|
default: withCtx(({ item, setter, skeleton, refetch, previous, next, first, last, resetting, page, index }) => [
|
119
|
-
|
120
|
-
item,
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
154
|
+
createVNode(_sfc_main$2, {
|
155
|
+
selected: skeleton ? false : unref(getIsSelected)(_ctx.valueGetter(item)),
|
156
|
+
"selected-between": skeleton ? false : unref(getIsSelectedBetween)(_ctx.valueGetter(item), page, index),
|
157
|
+
"onUpdate:selected": ($event) => {
|
158
|
+
unref(toggleSelected)(_ctx.valueGetter(item), _ctx.reverse && !_ctx.selectedRange ? !$event : $event);
|
159
|
+
unref(setSelectedCursor)($event ? { page, index, id: _ctx.valueGetter(item) } : null);
|
160
|
+
},
|
161
|
+
"onUpdate:selectedRange": ($event) => unref(setSelectedRange)({ page, index, id: _ctx.valueGetter(item) }),
|
162
|
+
"onUpdate:selectedRangeHover": ($event) => unref(setRangeHover)({ page, index, id: _ctx.valueGetter(item) })
|
163
|
+
}, {
|
164
|
+
default: withCtx(() => [
|
165
|
+
renderSlot(_ctx.$slots, "default", {
|
166
|
+
item,
|
167
|
+
setter,
|
168
|
+
skeleton,
|
169
|
+
refetch,
|
170
|
+
previous,
|
171
|
+
next,
|
172
|
+
first,
|
173
|
+
last,
|
174
|
+
resetting,
|
175
|
+
page,
|
176
|
+
index
|
177
|
+
})
|
178
|
+
]),
|
179
|
+
_: 2
|
180
|
+
}, 1032, ["selected", "selected-between", "onUpdate:selected", "onUpdate:selectedRange", "onUpdate:selectedRangeHover"])
|
132
181
|
]),
|
133
182
|
_: 3
|
134
|
-
}, 8, ["query-params", "use-query-fn", "is-invalid-page", "scrolling-element", "skip-scroll-target", "skeleton-length", "hide-page-title", "
|
183
|
+
}, 8, ["query-params", "use-query-fn", "is-invalid-page", "scrolling-element", "skip-scroll-target", "skeleton-length", "hide-page-title", "wrap", "no-gap", "transition", "page-length", "header-top", "header-height", "min-height", "exclude-params", "empty-stub", "page-class", "max-pages", "refetch-interval", "query-options", "selected", "value-getter", "select-only", "unselect-only", "reverse-selection", "allow-page-selection"])
|
135
184
|
], 64);
|
136
185
|
};
|
137
186
|
}
|
@@ -1,8 +1,8 @@
|
|
1
1
|
declare const _default: <Model extends string | number, Data extends DefaultData, ApiError, QueryParams>(__VLS_props: {
|
2
2
|
transition?: boolean | undefined;
|
3
|
+
"onUpdate:count"?: ((value: number) => any) | undefined;
|
3
4
|
valueGetter: (data: Data) => Model;
|
4
5
|
wrap?: boolean | undefined;
|
5
|
-
"onUpdate:count"?: ((value: number) => any) | undefined;
|
6
6
|
scrollingElement?: Element | null | undefined;
|
7
7
|
"onUpdate:selected"?: ((values: Model[]) => any) | undefined;
|
8
8
|
queryParams: QueryParams;
|
@@ -15,12 +15,12 @@ declare const _default: <Model extends string | number, Data extends DefaultData
|
|
15
15
|
hidePageTitle?: boolean | undefined;
|
16
16
|
noGap?: boolean | undefined;
|
17
17
|
emptyStub?: string | undefined;
|
18
|
-
reverseSelection?: boolean | undefined;
|
19
|
-
allowPageSelection?: boolean | undefined;
|
20
18
|
minHeight?: boolean | undefined;
|
21
19
|
pageClass?: string | undefined;
|
22
20
|
refetchInterval?: number | false | undefined;
|
23
21
|
queryOptions?: Partial<Parameters<UseQueryPaginated<Data, ApiError, QueryParams>>[1]>;
|
22
|
+
reverseSelection?: boolean | undefined;
|
23
|
+
allowPageSelection?: boolean | undefined;
|
24
24
|
maxPages?: number | undefined;
|
25
25
|
"onUpdate:page"?: ((value: number | undefined) => any) | undefined;
|
26
26
|
skipScrollTarget?: boolean | undefined;
|
@@ -70,9 +70,9 @@ declare const _default: <Model extends string | number, Data extends DefaultData
|
|
70
70
|
}>) => void) | undefined, __VLS_setup?: Promise<{
|
71
71
|
props: {
|
72
72
|
transition?: boolean | undefined;
|
73
|
+
"onUpdate:count"?: ((value: number) => any) | undefined;
|
73
74
|
valueGetter: (data: Data) => Model;
|
74
75
|
wrap?: boolean | undefined;
|
75
|
-
"onUpdate:count"?: ((value: number) => any) | undefined;
|
76
76
|
scrollingElement?: Element | null | undefined;
|
77
77
|
"onUpdate:selected"?: ((values: Model[]) => any) | undefined;
|
78
78
|
queryParams: QueryParams;
|
@@ -85,12 +85,12 @@ declare const _default: <Model extends string | number, Data extends DefaultData
|
|
85
85
|
hidePageTitle?: boolean | undefined;
|
86
86
|
noGap?: boolean | undefined;
|
87
87
|
emptyStub?: string | undefined;
|
88
|
-
reverseSelection?: boolean | undefined;
|
89
|
-
allowPageSelection?: boolean | undefined;
|
90
88
|
minHeight?: boolean | undefined;
|
91
89
|
pageClass?: string | undefined;
|
92
90
|
refetchInterval?: number | false | undefined;
|
93
91
|
queryOptions?: Partial<Parameters<UseQueryPaginated<Data, ApiError, QueryParams>>[1]>;
|
92
|
+
reverseSelection?: boolean | undefined;
|
93
|
+
allowPageSelection?: boolean | undefined;
|
94
94
|
maxPages?: number | undefined;
|
95
95
|
"onUpdate:page"?: ((value: number | undefined) => any) | undefined;
|
96
96
|
skipScrollTarget?: boolean | undefined;
|
@@ -144,9 +144,9 @@ declare const _default: <Model extends string | number, Data extends DefaultData
|
|
144
144
|
__ctx?: {
|
145
145
|
props: {
|
146
146
|
transition?: boolean | undefined;
|
147
|
+
"onUpdate:count"?: ((value: number) => any) | undefined;
|
147
148
|
valueGetter: (data: Data) => Model;
|
148
149
|
wrap?: boolean | undefined;
|
149
|
-
"onUpdate:count"?: ((value: number) => any) | undefined;
|
150
150
|
scrollingElement?: Element | null | undefined;
|
151
151
|
"onUpdate:selected"?: ((values: Model[]) => any) | undefined;
|
152
152
|
queryParams: QueryParams;
|
@@ -159,12 +159,12 @@ declare const _default: <Model extends string | number, Data extends DefaultData
|
|
159
159
|
hidePageTitle?: boolean | undefined;
|
160
160
|
noGap?: boolean | undefined;
|
161
161
|
emptyStub?: string | undefined;
|
162
|
-
reverseSelection?: boolean | undefined;
|
163
|
-
allowPageSelection?: boolean | undefined;
|
164
162
|
minHeight?: boolean | undefined;
|
165
163
|
pageClass?: string | undefined;
|
166
164
|
refetchInterval?: number | false | undefined;
|
167
165
|
queryOptions?: Partial<Parameters<UseQueryPaginated<Data, ApiError, QueryParams>>[1]>;
|
166
|
+
reverseSelection?: boolean | undefined;
|
167
|
+
allowPageSelection?: boolean | undefined;
|
168
168
|
maxPages?: number | undefined;
|
169
169
|
"onUpdate:page"?: ((value: number | undefined) => any) | undefined;
|
170
170
|
skipScrollTarget?: boolean | undefined;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WInfiniteListPages.vue.d.ts","sourceRoot":"","sources":["../../../src/components/InfiniteList/WInfiniteListPages.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"WInfiniteListPages.vue.d.ts","sourceRoot":"","sources":["../../../src/components/InfiniteList/WInfiniteListPages.vue"],"names":[],"mappings":"AA4EA;;;;wBAkewB,IAAI,KAAK,KAAK;;;;iBApBrB,WAAW;;;;gBAFZ,kBAAkB,IAAI,EAAE,QAAQ,EAAE,WAAW,CAAC;2BACnC,OAAO,KAAK,OAAO;;;;;;;;mBAkB3B,QAAQ,WAAW,kBAAkB,IAAI,EAAE,QAAQ,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;;;;;;;;;;;WAelF,GAAG;;;kBApRA,IAAI;+BACS,IAAI,GAAG,SAAS,K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BApBrB,WAAW;;;;wBAFZ,kBAAkB,IAAI,EAAE,QAAQ,EAAE,WAAW,CAAC;mCACnC,OAAO,KAAK,OAAO;;;;;;;;2BAkB3B,QAAQ,WAAW,kBAAkB,IAAI,EAAE,QAAQ,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;;;;;;;;;;;;;8CAlT/C,MAAM;aAgUuB,IAAI;eACpE,GAAG;;;sBApRA,IAAI;mCACS,IAAI,GAAG,SAAS,KAAK,IAAI;0BAClC,OAAO;yBACR,MAAM,IAAI;;;uBAGZ,OAAO;sBACR,OAAO;2BACF,OAAO;sBACZ,MAAM;uBACL,MAAM;kBACT,IAAI;;;sBAXF,IAAI;mCACS,IAAI,GAAG,SAAS,KAAK,IAAI;0BAClC,OAAO;yBACR,MAAM,IAAI;;;uBAGZ,OAAO;sBACR,OAAO;2BACF,OAAO;sBACZ,MAAM;uBACL,MAAM;kBACT,IAAI;;;gBArKN,aAAa,SAAS,MAAM,GAAG,SAAS,GAAG,IAAI;gBAC/C,cAAc,SAAS,MAAM,GAAG,IAAI;gBACpC,iBAAiB,UAAU,KAAK,EAAE,GAAG,IAAI;;;;AAvD/C,wBAwe2E;AAQ3E,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
@@ -15,7 +15,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
15
15
|
skeletonLength: { default: void 0 },
|
16
16
|
hidePageTitle: { type: Boolean },
|
17
17
|
skipScrollTarget: { type: Boolean },
|
18
|
-
selected: { default: void 0 },
|
19
18
|
wrap: { type: Boolean },
|
20
19
|
noGap: { type: Boolean },
|
21
20
|
transition: { type: Boolean },
|
@@ -26,15 +25,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
26
25
|
minHeight: { type: Boolean },
|
27
26
|
excludeParams: { default: void 0 },
|
28
27
|
emptyStub: { default: void 0 },
|
29
|
-
selectOnly: { type: Boolean },
|
30
|
-
unselectOnly: { type: Boolean },
|
31
|
-
reverseSelection: { type: Boolean },
|
32
|
-
allowPageSelection: { type: Boolean },
|
33
28
|
pageClass: { default: void 0 },
|
34
29
|
maxPages: { default: 5 },
|
35
30
|
refetchInterval: { type: [Number, Boolean], default: void 0 },
|
31
|
+
queryOptions: { default: void 0 },
|
32
|
+
selected: { default: void 0 },
|
36
33
|
valueGetter: {},
|
37
|
-
|
34
|
+
selectOnly: { type: Boolean },
|
35
|
+
unselectOnly: { type: Boolean },
|
36
|
+
reverseSelection: { type: Boolean },
|
37
|
+
allowPageSelection: { type: Boolean }
|
38
38
|
},
|
39
39
|
emits: ["update:page", "update:count", "update:selected"],
|
40
40
|
setup(__props, { expose: __expose, emit: __emit }) {
|
@@ -184,37 +184,37 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
184
184
|
"first-page": index === 0,
|
185
185
|
"last-page": index === pages.value.length - 1,
|
186
186
|
"hide-page-title": _ctx.hidePageTitle,
|
187
|
-
selected: _ctx.selected,
|
188
187
|
wrap: _ctx.wrap,
|
189
188
|
"no-gap": _ctx.noGap,
|
190
189
|
transition: _ctx.transition,
|
191
190
|
resetting: isResettingPage.value,
|
192
191
|
"empty-stub": _ctx.emptyStub,
|
193
|
-
"select-only": _ctx.selectOnly,
|
194
|
-
"unselect-only": _ctx.unselectOnly,
|
195
|
-
"reverse-selection": _ctx.reverseSelection,
|
196
|
-
"allow-page-selection": _ctx.allowPageSelection,
|
197
192
|
"min-height": _ctx.minHeight,
|
198
193
|
"page-class": _ctx.pageClass,
|
199
194
|
"refetch-interval": _ctx.refetchInterval,
|
200
195
|
"scrolling-element": _ctx.scrollingElement,
|
201
|
-
"value-getter": _ctx.valueGetter,
|
202
196
|
"query-options": _ctx.queryOptions,
|
197
|
+
selected: _ctx.selected,
|
198
|
+
"value-getter": _ctx.valueGetter,
|
199
|
+
"select-only": _ctx.selectOnly,
|
200
|
+
"unselect-only": _ctx.unselectOnly,
|
201
|
+
"reverse-selection": _ctx.reverseSelection,
|
202
|
+
"allow-page-selection": _ctx.allowPageSelection,
|
203
|
+
"onUpdate:selected": _cache[1] || (_cache[1] = ($event) => _ctx.$emit("update:selected", $event)),
|
203
204
|
"onUpdate:count": updateCount,
|
204
205
|
"onUpdate:pagesCount": updatePagesCount,
|
205
|
-
"onUpdate:nextPage": _cache[
|
206
|
+
"onUpdate:nextPage": _cache[2] || (_cache[2] = ($event) => {
|
206
207
|
updateNextPage($event);
|
207
208
|
infiniteScroll.value?.checkIsScrollDown();
|
208
209
|
}),
|
209
|
-
"onUpdate:previousPage": _cache[
|
210
|
+
"onUpdate:previousPage": _cache[3] || (_cache[3] = ($event) => {
|
210
211
|
updatePreviousPage($event);
|
211
212
|
infiniteScroll.value?.checkIsScrollUp();
|
212
213
|
}),
|
213
214
|
"onUpdate:scroll": updateScroll,
|
214
|
-
"onUpdateFromHeader:scroll": _cache[
|
215
|
+
"onUpdateFromHeader:scroll": _cache[4] || (_cache[4] = ($event) => _ctx.headerTop > 0 && nextTick(() => updateScroll(_ctx.headerTop))),
|
215
216
|
"onRemove:page": removePage,
|
216
217
|
onRefetch: ($event) => unref(refetchNextPages)(index),
|
217
|
-
"onUpdate:selected": _cache[4] || (_cache[4] = ($event) => _ctx.$emit("update:selected", $event)),
|
218
218
|
onFetched: _cache[5] || (_cache[5] = ($event) => isResettingPage.value = false)
|
219
219
|
}, {
|
220
220
|
default: withCtx(({ item, setter, skeleton, refetch, previous, next, first, last, page: itemPage, index: itemIndex }) => [
|
@@ -233,7 +233,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
233
233
|
})
|
234
234
|
]),
|
235
235
|
_: 2
|
236
|
-
}, 1032, ["query-params", "use-query-fn", "is-invalid-page", "skeleton-length", "first-page", "last-page", "hide-page-title", "
|
236
|
+
}, 1032, ["query-params", "use-query-fn", "is-invalid-page", "skeleton-length", "first-page", "last-page", "hide-page-title", "wrap", "no-gap", "transition", "resetting", "empty-stub", "min-height", "page-class", "refetch-interval", "scrolling-element", "query-options", "selected", "value-getter", "select-only", "unselect-only", "reverse-selection", "allow-page-selection", "onRefetch"]);
|
237
237
|
}), 128)),
|
238
238
|
count.value !== 0 && nextPage.value ? (openBlock(), createBlock(_sfc_main$2, {
|
239
239
|
key: 1,
|
@@ -0,0 +1,10 @@
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>, {
|
2
|
+
default?(_: {}): any;
|
3
|
+
}>;
|
4
|
+
export default _default;
|
5
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
6
|
+
new (): {
|
7
|
+
$slots: S;
|
8
|
+
};
|
9
|
+
};
|
10
|
+
//# sourceMappingURL=EmptyComponent.vue.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"EmptyComponent.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/InfiniteList/components/EmptyComponent.vue"],"names":[],"mappings":";;;AAiDA,wBAAwG;AACxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { renderSlot } from 'vue';
|
2
|
+
import _export_sfc from '../../../_virtual/_plugin-vue_export-helper.js';
|
3
|
+
|
4
|
+
const _sfc_main = {};
|
5
|
+
|
6
|
+
function _sfc_render(_ctx, _cache) {
|
7
|
+
return renderSlot(_ctx.$slots, "default")
|
8
|
+
}
|
9
|
+
const EmptyComponent = /*#__PURE__*/_export_sfc(_sfc_main, [['render',_sfc_render]]);
|
10
|
+
|
11
|
+
export { EmptyComponent as default };
|