chore: type optimization

This commit is contained in:
Vben
2021-06-17 21:43:53 +08:00
parent e9064631c7
commit 4f20d45f9d
18 changed files with 112 additions and 106 deletions

View File

@@ -43,7 +43,9 @@
const getIsTabs = computed(() => !props.isExtra);
const getTrigger = computed(() => (unref(getIsTabs) ? ['contextmenu'] : ['click']));
const getTrigger = computed((): ('contextmenu' | 'click' | 'hover')[] =>
unref(getIsTabs) ? ['contextmenu'] : ['click']
);
const { getDropMenuList, handleMenuEvent, handleContextMenu } = useTabDropdown(
props as TabContentProps,