mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-13 05:47:31 -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: 'markdown-click', link: string, e: Event);
|
||||||
(event: 'resize', values: ResizeData);
|
(event: 'resize', values: ResizeData);
|
||||||
(event: 'resizestart');
|
(event: 'resizestart');
|
||||||
(event: 'resizeend', value: unknown);
|
(event: 'resizeend');
|
||||||
}>();
|
}>();
|
||||||
|
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
|
@ -160,9 +160,9 @@ const onResizeStart = () => {
|
||||||
$emit('resizestart');
|
$emit('resizestart');
|
||||||
};
|
};
|
||||||
|
|
||||||
const onResizeEnd = (resizeEnd: unknown) => {
|
const onResizeEnd = () => {
|
||||||
isResizing.value = false;
|
isResizing.value = false;
|
||||||
$emit('resizeend', resizeEnd);
|
$emit('resizeend');
|
||||||
};
|
};
|
||||||
|
|
||||||
const onInputScroll = (event: WheelEvent) => {
|
const onInputScroll = (event: WheelEvent) => {
|
||||||
|
|
|
@ -30,8 +30,8 @@
|
||||||
import { computed, useCssModule } from 'vue';
|
import { computed, useCssModule } from 'vue';
|
||||||
|
|
||||||
interface TreeProps {
|
interface TreeProps {
|
||||||
value?: Record<string, unknown>;
|
value?: unknown;
|
||||||
path?: string[];
|
path?: Array<string | number>;
|
||||||
depth?: number;
|
depth?: number;
|
||||||
nodeClass?: string;
|
nodeClass?: string;
|
||||||
}
|
}
|
||||||
|
@ -65,7 +65,7 @@ const isSimple = (data: unknown): boolean => {
|
||||||
return typeof data !== 'object';
|
return typeof data !== 'object';
|
||||||
};
|
};
|
||||||
|
|
||||||
const getPath = (key: string): unknown[] => {
|
const getPath = (key: string): Array<string | number> => {
|
||||||
if (Array.isArray(props.value)) {
|
if (Array.isArray(props.value)) {
|
||||||
return [...props.path, parseInt(key, 10)];
|
return [...props.path, parseInt(key, 10)];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue