mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-11 12:57:29 -08:00
fix: Fix vue type warnings (no-changelog) (#9038)
This commit is contained in:
parent
83e47398f3
commit
77b359ada6
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue