fix: Fix vue type warnings (no-changelog) (#9038)

This commit is contained in:
Tomi Turtiainen 2024-04-03 15:04:21 +03:00 committed by GitHub
parent 83e47398f3
commit 77b359ada6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 7 additions and 5 deletions

View file

@ -5,14 +5,15 @@
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import type { FontAwesomeIconProps } from '@fortawesome/vue-fontawesome';
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'; import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';
import type { IconSize, IconColor } from '@/types/icon'; import type { IconSize, IconColor } from '@/types/icon';
import N8nText from '../N8nText'; import N8nText from '../N8nText';
interface IconProps { interface IconProps {
icon: string; icon: FontAwesomeIconProps['icon'];
size?: IconSize; size?: IconSize;
spin?: boolean; spin?: FontAwesomeIconProps['spin'];
color?: IconColor; color?: IconColor;
} }

View file

@ -27,7 +27,8 @@ interface RadioOption {
interface RadioButtonsProps { interface RadioButtonsProps {
modelValue?: string; modelValue?: string;
options?: RadioOption[]; options?: RadioOption[];
size: 'small' | 'medium'; /** @default medium */
size?: 'small' | 'medium';
disabled?: boolean; disabled?: boolean;
} }

View file

@ -13,7 +13,7 @@ export interface IconButtonProps {
active?: boolean; active?: boolean;
disabled?: boolean; disabled?: boolean;
float?: TextFloat; float?: TextFloat;
icon?: string; icon?: string | string[];
loading?: boolean; loading?: boolean;
outline?: boolean; outline?: boolean;
size?: ButtonSize; size?: ButtonSize;

View file

@ -52,7 +52,7 @@
v-touch:tap="deleteNode" v-touch:tap="deleteNode"
class="option" class="option"
data-test-id="delete-sticky" data-test-id="delete-sticky"
:title="$locale.baseText('node.deleteNode')" :title="$locale.baseText('node.delete')"
> >
<font-awesome-icon icon="trash" /> <font-awesome-icon icon="trash" />
</div> </div>