refactor(editor): Continue porting components over to composition API (no-changelog) (#8893)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2024-03-15 12:43:08 +01:00
committed by GitHub
parent 80c4bc443a
commit 6c693e1afd
39 changed files with 989 additions and 1253 deletions

View File

@@ -1,6 +1,6 @@
import type { ComponentInstance } from 'vue';
import type { StoryFn } from '@storybook/vue3';
import N8nRecycleScroller from './RecycleScroller.vue';
import type { ComponentInstance } from 'vue';
export default {
title: 'Atoms/RecycleScroller',
@@ -23,7 +23,9 @@ const Template: StoryFn = (args) => ({
},
methods: {
resizeItem(item: { id: string; height: string }, fn: (item: { id: string }) => void) {
const itemRef = (this as ComponentInstance).$refs[`item-${item.id}`] as HTMLElement;
const itemRef = (this as ComponentInstance<typeof N8nRecycleScroller>).$refs[
`item-${item.id}`
] as HTMLElement;
item.height = '200px';
itemRef.style.height = '200px';