mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 12:44:07 -08:00
fix: Fix last TS issues in design system Tree.vue and Sticky.vue (no-changelog) (#9579)
This commit is contained in:
parent
c0ec990f4c
commit
99c15a0fd8
|
@ -99,7 +99,7 @@ const $emit = defineEmits<{
|
|||
(event: 'markdown-click', link: string, e: Event);
|
||||
(event: 'resize', values: ResizeData);
|
||||
(event: 'resizestart');
|
||||
(event: 'resizeend', value: unknown);
|
||||
(event: 'resizeend');
|
||||
}>();
|
||||
|
||||
const { t } = useI18n();
|
||||
|
@ -160,9 +160,9 @@ const onResizeStart = () => {
|
|||
$emit('resizestart');
|
||||
};
|
||||
|
||||
const onResizeEnd = (resizeEnd: unknown) => {
|
||||
const onResizeEnd = () => {
|
||||
isResizing.value = false;
|
||||
$emit('resizeend', resizeEnd);
|
||||
$emit('resizeend');
|
||||
};
|
||||
|
||||
const onInputScroll = (event: WheelEvent) => {
|
||||
|
|
|
@ -30,8 +30,8 @@
|
|||
import { computed, useCssModule } from 'vue';
|
||||
|
||||
interface TreeProps {
|
||||
value?: Record<string, unknown>;
|
||||
path?: string[];
|
||||
value?: unknown;
|
||||
path?: Array<string | number>;
|
||||
depth?: number;
|
||||
nodeClass?: string;
|
||||
}
|
||||
|
@ -65,7 +65,7 @@ const isSimple = (data: unknown): boolean => {
|
|||
return typeof data !== 'object';
|
||||
};
|
||||
|
||||
const getPath = (key: string): unknown[] => {
|
||||
const getPath = (key: string): Array<string | number> => {
|
||||
if (Array.isArray(props.value)) {
|
||||
return [...props.path, parseInt(key, 10)];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue