fix: Fix last TS issues in design system Tree.vue and Sticky.vue (no-changelog) (#9579)

This commit is contained in:
Mutasem Aldmour 2024-05-31 18:10:51 +02:00 committed by GitHub
parent c0ec990f4c
commit 99c15a0fd8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 6 deletions

View file

@ -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) => {

View file

@ -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)];
}