mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-23 04:39:08 +00:00
refactor(editor): Continue porting components over to composition API (no-changelog) (#8893)
This commit is contained in:
committed by
GitHub
parent
80c4bc443a
commit
6c693e1afd
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user