flowrix 1.0.1-beta.120 → 1.0.1-beta.121
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.
package/dist/module.json
CHANGED
|
@@ -2,9 +2,9 @@ export default function (props: any): {
|
|
|
2
2
|
filters: import("vue").Ref<{}, {}>;
|
|
3
3
|
samplesData: import("vue").ComputedRef<any>;
|
|
4
4
|
innerBanner: any;
|
|
5
|
-
SideBar:
|
|
6
|
-
TopBar:
|
|
7
|
-
SampleCard:
|
|
8
|
-
Pagination:
|
|
9
|
-
Services:
|
|
5
|
+
SideBar: new () => import("vue").ComponentPublicInstance;
|
|
6
|
+
TopBar: new () => import("vue").ComponentPublicInstance;
|
|
7
|
+
SampleCard: new () => import("vue").ComponentPublicInstance;
|
|
8
|
+
Pagination: new () => import("vue").ComponentPublicInstance;
|
|
9
|
+
Services: new () => import("vue").ComponentPublicInstance;
|
|
10
10
|
};
|
|
@@ -1,24 +1,29 @@
|
|
|
1
|
-
import { ref, computed, defineAsyncComponent } from "vue";
|
|
1
|
+
import { ref, computed, defineAsyncComponent, defineComponent } from "vue";
|
|
2
2
|
export default function(props) {
|
|
3
3
|
const filters = ref({});
|
|
4
4
|
const samplesData = computed(() => props);
|
|
5
|
-
const
|
|
6
|
-
|
|
5
|
+
const EmptyComponent = defineComponent(() => null);
|
|
6
|
+
function asyncIfExists(path) {
|
|
7
|
+
const modules = import.meta.glob("@/components/**/*.vue");
|
|
8
|
+
return defineAsyncComponent(
|
|
9
|
+
modules[path] ? modules[path] : async () => EmptyComponent
|
|
10
|
+
);
|
|
11
|
+
}
|
|
12
|
+
const InnerBanner = asyncIfExists("@/components/Others/InnerBanner.vue");
|
|
13
|
+
const SideBar = asyncIfExists(
|
|
14
|
+
"@/components/Samples/Template01/Sidebar.vue"
|
|
7
15
|
);
|
|
8
|
-
const
|
|
9
|
-
|
|
16
|
+
const TopBar = asyncIfExists(
|
|
17
|
+
"@/components/Samples/Template01/TopBar.vue"
|
|
10
18
|
);
|
|
11
|
-
const
|
|
12
|
-
|
|
19
|
+
const SampleCard = asyncIfExists(
|
|
20
|
+
"@/components/Product/SampleProductCard.vue"
|
|
13
21
|
);
|
|
14
|
-
const
|
|
15
|
-
|
|
22
|
+
const Pagination = asyncIfExists(
|
|
23
|
+
"@/components/Others/Pagination.vue"
|
|
16
24
|
);
|
|
17
|
-
const
|
|
18
|
-
|
|
19
|
-
);
|
|
20
|
-
const Services = defineAsyncComponent(
|
|
21
|
-
() => import("@/components/Services/Template01/Services.vue")
|
|
25
|
+
const Services = asyncIfExists(
|
|
26
|
+
"@/components/Services/Template01/Services.vue"
|
|
22
27
|
);
|
|
23
28
|
return {
|
|
24
29
|
// pageData,
|