Skip to content
This repository has been archived by the owner on Sep 30, 2024. It is now read-only.

fix: add undefined value to Icon and Button #21

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/components/buttons/button/Button.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { type ContextColorsType } from '@/consts/colors';
import { default as RuiProgress } from '@/components/progress/Progress.vue';

export interface Props {
value?: unknown;
disabled?: boolean;
loading?: boolean;
color?: ContextColorsType;
Expand All @@ -19,6 +20,7 @@ defineOptions({
});

const props = withDefaults(defineProps<Props>(), {
value: undefined,
disabled: false,
loading: false,
color: undefined,
Expand Down
2 changes: 2 additions & 0 deletions src/components/icons/Icon.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { type ContextColorsType } from '@/consts/colors';
import { type RuiIcons } from '~/src';

export interface Props {
value?: unknown;
name: RuiIcons;
size?: number | string;
color?: ContextColorsType;
Expand All @@ -13,6 +14,7 @@ defineOptions({
});

const props = withDefaults(defineProps<Props>(), {
value: undefined,
size: 24,
color: undefined,
});
Expand Down
Loading