Skip to content

Commit 4323581

Browse files
committed
fix(button-loading): specify loadingPosition type as Align for better type safety
1 parent fffca04 commit 4323581

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/button/button-loading.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<script setup lang="ts">
22
import { computed, ref, useAttrs, watchEffect } from 'vue';
3+
import type { Align } from '@soybeanjs/headless';
34
import { useOmitProps } from '@soybeanjs/headless/composables';
45
import Icon from '../icon/icon.vue';
56
import Button from './button.vue';
@@ -12,7 +13,7 @@ defineOptions({
1213
1314
const props = withDefaults(defineProps<ButtonLoadingProps>(), {
1415
loadingIcon: 'svg-spinners:270-ring',
15-
loadingPosition: 'start'
16+
loadingPosition: 'start' as Align
1617
});
1718
1819
const attrs = useAttrs();

0 commit comments

Comments
 (0)