chore: format code

This commit is contained in:
vben
2021-08-24 22:41:48 +08:00
parent 2884e863ce
commit 56a966cfbf
148 changed files with 259 additions and 250 deletions

View File

@@ -27,7 +27,7 @@ export function useContentViewHeight() {
contentHeight.value = window.innerHeight;
},
100,
{ immediate: true }
{ immediate: true },
);
async function setPageHeight(height: number) {

View File

@@ -107,7 +107,7 @@
() => props.currentPage,
(v) => {
current.value = v;
}
},
);
const isTitleClickable = computed(() => !!props.onTitleClick);
const getPagination = computed(() => {

View File

@@ -60,7 +60,7 @@
const { getIsMobile } = useAppInject();
const getComputedMenuMode = computed(() =>
unref(getIsMobile) ? MenuModeEnum.INLINE : props.menuMode || unref(getMenuMode)
unref(getIsMobile) ? MenuModeEnum.INLINE : props.menuMode || unref(getMenuMode),
);
const getComputedMenuTheme = computed(() => props.theme || unref(getMenuTheme));

View File

@@ -20,11 +20,11 @@ export function useSplitMenu(splitType: Ref<MenuSplitTyeEnum>) {
const throttleHandleSplitLeftMenu = useThrottleFn(handleSplitLeftMenu, 50);
const splitNotLeft = computed(
() => unref(splitType) !== MenuSplitTyeEnum.LEFT && !unref(getIsHorizontal)
() => unref(splitType) !== MenuSplitTyeEnum.LEFT && !unref(getIsHorizontal),
);
const getSplitLeft = computed(
() => !unref(getSplit) || unref(splitType) !== MenuSplitTyeEnum.LEFT
() => !unref(getSplit) || unref(splitType) !== MenuSplitTyeEnum.LEFT,
);
const getSpiltTop = computed(() => unref(splitType) === MenuSplitTyeEnum.TOP);
@@ -48,7 +48,7 @@ export function useSplitMenu(splitType: Ref<MenuSplitTyeEnum>) {
},
{
immediate: true,
}
},
);
// Menu changes
@@ -59,7 +59,7 @@ export function useSplitMenu(splitType: Ref<MenuSplitTyeEnum>) {
},
{
immediate: true,
}
},
);
// split Menu changes
@@ -68,7 +68,7 @@ export function useSplitMenu(splitType: Ref<MenuSplitTyeEnum>) {
() => {
if (unref(splitNotLeft)) return;
genMenus();
}
},
);
// Handle left menu split

View File

@@ -49,7 +49,7 @@
function handleCopy() {
const { isSuccessRef } = useCopyToClipboard(
JSON.stringify(unref(appStore.getProjectConfig), null, 2)
JSON.stringify(unref(appStore.getProjectConfig), null, 2),
);
unref(isSuccessRef) &&
createSuccessModal({

View File

@@ -23,7 +23,7 @@
const getIsUnFold = computed(() => !unref(getShowMenu) && !unref(getShowHeader));
const getIcon = computed(() =>
unref(getIsUnFold) ? 'codicon:screen-normal' : 'codicon:screen-full'
unref(getIsUnFold) ? 'codicon:screen-normal' : 'codicon:screen-full',
);
function handleFold() {

View File

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