Skip to content

Commit cd1c2c6

Browse files
committed
fix: add variant prop, deprecate mode
1 parent 650516c commit cd1c2c6

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

adminforth/spa/src/afcl/Button.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,9 @@ const props = withDefaults(defineProps<{
3030
loader: false,
3131
disabled: false,
3232
active: false,
33-
variant: 'primary'
3433
});
3534
36-
// mode is deprecated, but we still want to support it for backward compatibility,
35+
// mode is deprecated, but we still want to support it for backward compatibility,
3736
// so we check both variant and mode props
3837
const currentVariant = computed(() => props.variant ?? props.mode ?? 'primary');
3938
</script>

0 commit comments

Comments
 (0)