@finema/core 2.26.3 → 2.26.5
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
package/dist/module.mjs
CHANGED
|
@@ -1,17 +1,22 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
2
|
+
<slot
|
|
3
3
|
v-if="loading"
|
|
4
|
-
|
|
4
|
+
name="loading"
|
|
5
|
+
>
|
|
6
|
+
<div
|
|
7
|
+
|
|
8
|
+
:class="theme.base({
|
|
5
9
|
class: [ui?.base, props.class]
|
|
6
10
|
})"
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
+
>
|
|
12
|
+
<Icon
|
|
13
|
+
:name="icon"
|
|
14
|
+
:class="[theme.icon({
|
|
11
15
|
class: [ui?.icon]
|
|
12
16
|
})]"
|
|
13
|
-
|
|
14
|
-
|
|
17
|
+
/>
|
|
18
|
+
</div>
|
|
19
|
+
</slot>
|
|
15
20
|
<slot v-else />
|
|
16
21
|
</template>
|
|
17
22
|
|
|
@@ -19,6 +24,7 @@
|
|
|
19
24
|
import { computed } from "vue";
|
|
20
25
|
import { loaderTheme } from "#core/theme/loader";
|
|
21
26
|
import { useUiConfig } from "#core/composables/useConfig";
|
|
27
|
+
defineSlots();
|
|
22
28
|
const props = defineProps({
|
|
23
29
|
loading: { type: Boolean, required: false, default: true },
|
|
24
30
|
icon: { type: String, required: false, default: "i-svg-spinners:180-ring-with-bg" },
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { loaderTheme } from '#core/theme/loader';
|
|
2
|
+
type __VLS_Slots = {
|
|
3
|
+
loading: () => any;
|
|
4
|
+
};
|
|
2
5
|
type __VLS_Props = {
|
|
3
6
|
loading?: boolean;
|
|
4
7
|
icon?: string;
|
|
5
8
|
ui?: typeof loaderTheme['slots'];
|
|
6
9
|
class?: any;
|
|
7
10
|
};
|
|
8
|
-
declare var __VLS_5: {};
|
|
9
|
-
type __VLS_Slots = {} & {
|
|
10
|
-
default?: (props: typeof __VLS_5) => any;
|
|
11
|
-
};
|
|
12
11
|
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
13
12
|
loading: boolean;
|
|
14
13
|
icon: string;
|